1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-jcQxEZyF.js","assets/index-CpFQwZLR.js","assets/index-CcVs6Rvr.css","assets/defineProperty-LwXDZy-M.js","assets/index-C-9Waosp.js","assets/index-BRDBwHng.js","assets/index-BJL-poRs.js","assets/AnniversaryDigitalPage-BAujFAqx.js","assets/Seo-Clyo2Rp1.js","assets/PostSubmitScheduling-CzJaohUK.js","assets/mastertech-hero-banner-D_BPwkLm.js","assets/deliveryMode-MrevIdaj.js","assets/monitor-play-OMkx1Thu.js","assets/clock-3-ki7Czti3.js","assets/layers-3-DHBouqgt.js","assets/AnniversaryDigitalPage-CdYBT-82.css","assets/SkillGapPage-DQwgONWx.js","assets/levels-Cm8nOjIZ.js","assets/levels-0NgZsay1.css","assets/chart-no-axes-combined-IIExiRE9.js","assets/SkillGapPage-EVt5-JXN.css","assets/Auth-CFPq3Yku.js","assets/AuthStudent-Dmnf3_Xd.js","assets/accordion-Dtsnz6iv.js","assets/useCreateSupportTicket-owolS7gQ.js","assets/constants-SfCkMqJq.js","assets/useSupport360-Bs4otxyY.js","assets/key-round-BpOT_KvV.js","assets/AuthCompany-BO4_ENqK.js","assets/ForgotPassword-Nf5vi9xM.js","assets/ResetPassword-DiEVrq40.js","assets/SuperAdminLogin-B6gVk-3z.js","assets/dot-BBCGBNlc.js","assets/Cursos-BxPmr1sR.js","assets/RelatedJobs-cJ13YrQo.js","assets/access-B_cVSrwK.js","assets/BlogSection-DvB9ImXc.js","assets/index-bExq-lcl.js","assets/PageHeroWithForm-BaUEMGIC.js","assets/LeadCaptureFormPremium-BQt17UUn.js","assets/CtaRow-Bb6Vn9VX.js","assets/scarcityBadges-IpzTddXq.js","assets/differenceInDays-CLNiF777.js","assets/arrow-up-narrow-wide-DKQtv3C8.js","assets/bi-category-hero-iTs9IBEy.js","assets/sap-category-hero-CSQB1c3X.js","assets/useInfiniteScroll-Df2kW9pv.js","assets/PageWidgetSlot-BtOyWPTC.js","assets/QuizCTA-xce2niGC.js","assets/QuizModal-BHK-2S21.js","assets/useActivityTracker-BVON-FnI.js","assets/usePageWidgetsConfig-CwRJj6qR.js","assets/useCoupon-CkP3HdZz.js","assets/SpinWheel-jMwJ7E-u.js","assets/shopping-bag-ANz6c518.js","assets/filter-CZoBP81T.js","assets/arrow-up-down-BOUjyAy5.js","assets/Unsubscribe-Cxj4H18U.js","assets/mail-x-DIYhTbdg.js","assets/SupportCsat-B5isZRLF.js","assets/Sobre-D7C8m5n2.js","assets/Contato-_A6YxFQD.js","assets/radio-group-DAIHZdLC.js","assets/Atendimento-CUge0wlI.js","assets/Vagas-DNcfNzSs.js","assets/ResumeFormDialog-CK6FYlmy.js","assets/alert-_qmQNIoU.js","assets/tabs-B-8Qmrzm.js","assets/OpportunityRadar-voXk1Iu8.js","assets/scan-line-BfnUKHqp.js","assets/OpportunityRadar-DE6q6Ccq.css","assets/user-plus-BgNOMWRW.js","assets/JobDetail-DYLOUBom.js","assets/StudentLayout-vV4Oeia0.js","assets/progress-Cn9zvabj.js","assets/ManualHeaderAccess-BtBiivCC.js","assets/calendar-check-Cfe_wXa3.js","assets/dumbbell-BopN_Qlm.js","assets/file-user-CWZctJlx.js","assets/file-pen-line-C22SLVeq.js","assets/StudentLayout-CtItbu1S.css","assets/useJobMatching-BUgU3adZ.js","assets/resumeStorage-D0miRmP3.js","assets/briefcase-business-BeGAIZn2.js","assets/lock-keyhole-CBki3Aiw.js","assets/Carreiras-B0qF26jQ.js","assets/Empresas-DHyU7pc_.js","assets/EmpresasAtendidas-B4TPzTGm.js","assets/LandingFooter-B1GTkASX.js","assets/purify.es-DxJI3Wx7.js","assets/useEmpresasAtendidasContent-D7rlOxbh.js","assets/CasosCorporativos-D4LzcJ1s.js","assets/presentation-B3D_DfrG.js","assets/statusMachine-CWOSu4-4.js","assets/corporate-cases-cinema-DdG57_HH.js","assets/corporate-cases-cinema-DasAdwXm.css","assets/CasoCorporativoDetalhe-DX7G0lJN.js","assets/TeamPassSapHub-CYF1f3p_.js","assets/submitAssessment-RmuICc8p.js","assets/slider-BsVw8mUd.js","assets/user-cog-BnUIEOcB.js","assets/users-round-6xWHlh0a.js","assets/bot-B5_hsCVW.js","assets/calendar-days-CLbF6zKq.js","assets/scroll-text-DpCD6XPn.js","assets/radar-0j8aDak4.js","assets/Sales360TeamPassHub-CIL3pZn4.js","assets/LocacaoSala-TB9g1bHJ.js","assets/coerce-BFb34pzN.js","assets/utensils-D9CHxT-J.js","assets/printer-B6rcfNm1.js","assets/Calendario-BOkppvoT.js","assets/training-university-hero-Bcjd3RY3.js","assets/useCalendarioData-Bd1Ewo23.js","assets/useInfiniteQuery-CpcvpDBL.js","assets/Inscricao-ro5R66jN.js","assets/CouponInput-271alw5u.js","assets/CourseDetail-GcwMf4nN.js","assets/SyllabusDownloadDialog-vkKTy-Sx.js","assets/resolveOffering-BcRhr7oQ.js","assets/flask-conical-BjyctZMP.js","assets/useCourseSettings-3TEonBV0.js","assets/Formacoes-tpbR-rYQ.js","assets/FormationDetail-C8tEr7N0.js","assets/table-CynS5UXh.js","assets/useBun
1dleDiscount-BbbdcKiQ.js","assets/FreeCourses-Dn5I--4Q.js","assets/PageBanner-CxZiNM_D.js","assets/FreeCertifications-CVmSKGxc.js","assets/freeCertificationsData-mS_2_589.js","assets/badge-check-BpkYNTUi.js","assets/TrialCorporativoPage-BQRvNHv5.js","assets/lucide-react-_qLNpGd8.js","assets/alarm-clock-MdTtPLW2.js","assets/underline-0AT0YdyN.js","assets/align-left-jfYKaMke.js","assets/arrow-down-a-z-ai7uZqUQ.js","assets/arrow-down-left-HtvR5jUM.js","assets/arrow-down-right-Cr_QGctm.js","assets/arrow-down-up-B940aPaL.js","assets/wheat-QoLY-ddx.js","assets/arrow-left-right-DoUjR-Aj.js","assets/arrow-right-left-DxjyK1oP.js","assets/separator-horizontal-DwmGC8bP.js","assets/at-sign-D7e4j5VK.js","assets/badge-dollar-sign-J8i_JuJ9.js","assets/badge-percent-Y9L02p-Z.js","assets/beaker-hNT-hz6E.js","assets/bell-dot-C6C4ftFG.js","assets/bell-off-kBUPZAF8.js","assets/bell-ring-DM6RC-0y.js","assets/blocks-iFY0MbR4.js","assets/bolt-DeXl0Txv.js","assets/book-a-DAMwpfmq.js","assets/book-check-Bd8_sYFo.js","assets/book-dashed-BtifJ1c6.js","assets/book-marked-BcIXuOm8.js","assets/book-open-check-DCusw11h.js","assets/sheet-fMn12Tqf.js","assets/building-C8M1Zyw6.js","assets/cable-Bzlj4eXi.js","assets/calculator-DpXXPnZM.js","assets/calendar-plus-CiFaCJvz.js","assets/calendar-range-DqzGb1CN.js","assets/calendar-x-2-DjSbM6gD.js","assets/calendar-x-mwdVTEtR.js","assets/chart-no-axes-column-CfeEpdwb.js","assets/chart-no-axes-gantt-DONAS-a1.js","assets/chevrons-up-down-uGOsEp0W.js","assets/share-BBG9m_Yu.js","assets/circle-arrow-down-DBr4BsRc.js","assets/circle-arrow-right-CCgVqSTm.js","assets/circle-arrow-up-B0wyvm19.js","assets/circle-dashed-DuE9B3EU.js","assets/circle-dollar-sign-C0FNxNvr.js","assets/circle-minus-_tLsWaCs.js","assets/circle-off-DjhMiJsE.js","assets/circle-pause-D57chp2N.js","assets/circle-plus-BatxBvgY.js","assets/circle-slash-xb0zVXiF.js","assets/circle-stop-BGjRkCt8.js","assets/circle-user-DvxV3x_C.js","assets/clapperboard-CbULquMC.js","assets/clipboard-copy-DAa9QVCs.js","assets/clipboard-paste-B2Tj8lR7.js","assets/clipboard-Db7T3DSN.js","assets/cloud-download-C24mMuhc.js","assets/send-horizontal-BBhS66Cq.js","assets/cloud-upload-VrgJJhZx.js","assets/code-xml-Cn7kcI8x.js","assets/columns-3-CeGHRAbc.js","assets/contact-BFOnZCon.js","assets/copy-plus-BUvOQUTR.js","assets/copy-x-CWplfevc.js","assets/crosshair-XxfwvCvG.js","assets/database-zap-Dl6kaGFg.js","assets/voicemail-CZn1DZEQ.js","assets/diamond-DIKUArCa.js","assets/door-open-DPzJUxvb.js","assets/droplet-cTSawdwx.js","assets/droplets-CBWJ30LF.js","assets/earth-BxkjRmmz.js","assets/ellipsis-DUkd-Ptv.js","assets/file-archive-BEA45EZo.js","assets/file-audio-DxQxlsJb.js","assets/file-check-2-CX4_QPOY.js","assets/file-check-BCNQ4G57.js","assets/file-clock-3c5dennq.js","assets/file-code-2-CBC8HOKX.js","assets/file-down-DEL2JZ8P.js","assets/file-image-kFmyYulz.js","assets/file-json-DQcXANK9.js","assets/file-key-B1lTxgfa.js","assets/file-pen-aUCEq6lu.js","assets/file-plus-2-BrjG8CO9.js","assets/file-plus-RpsxVUTW.js","assets/file-question-Ch1rX2W-.js","assets/file-search-CllZt4Iu.js","assets/file-spreadsheet-BWM9KLzk.js","assets/file-type-vrCRo7Q0.js","assets/file-up-N3XiJB_y.js","assets/file-video-4jHf3ZN6.js","assets/file-warning-sh5nnKbU.js","assets/list-x-CvZURgSc.js","assets/school-HReSz10K.js","assets/filter-x-Crf8X_bF.js","assets/flag-BDHVBOP3.js","assets/folder-kanban--vYvG_Ww.js","assets/folder-plus-7X_Be_8J.js","assets/folder-tree-nuM6ZHEw.js","assets/footprints-BOrgbdtj.js","assets/smile-dSrIq9QC.js","assets/gallery-vertical-end-C8qj5gt-.js","assets/gamepad-2-BEbiN0s2.js","assets/gavel-CpcNjC3x.js","assets/ghost-BJcDz_Mz.js","assets/git-commit-horizontal-BlOl3_Ga.js","assets/git-compare-arrows-DXkWa-DC.js","assets/git-compare-6TAWLdYP.js","assets/git-merge-B55c-r7Z.js","assets/github-CB2nvM-T.js","assets/grid-2x2-jAdwtYdd.js","assets/grip-vertical-CyBeyfsg.js","assets/handshake-DRFx0giC.js","assets/strikethrough-CB56O-Np.js","assets/headset-C29wxjRw.js","assets/heart-pulse-DXLYw9cw.js","assets/history-BThpd_2V.js","assets/hourglass-bq8pj0O0.js","assets/image-off-B4LmkLqA.js","assets/image-plus-BTt9skGV.js","assets/infinity-BtEn8z1y.js","assets/kanban-ZkhLZ6qk.js","assets/keyboard-CZIuUNUl.js","assets/landmark-CMLAYWwi.js","assets/languages-DzjCGAXy.js","assets/layout-dashboard-DGpsm5HV.js","assets/layout-template-D3pA487R.js","assets/library-musLwVNC.js","assets/life-buoy-Ch6fSiMa.js","assets/link-2-off-mYqK3i__.js","assets/list-checks-BC9dqEZ2.js","assets/list-filter-CPQcp-jo.js","assets/list-ordered-nD7sQBTW.js","assets/list-plus-BfdysqAZ.js","assets/list-todo-BJjg9QCc.js","assets/lock-open-Cb0uBtnJ.js","assets/mail-c
1heck-D_tdR2rC.js","assets/mail-open-C8KE_T5K.js","assets/mail-question-BSIXwe82.js","assets/mail-warning-BBBGJe8f.js","assets/map-pin-off-DcJcxqvI.js","assets/minimize-4YhmZl_0.js","assets/megaphone-B_OOAnPI.js","assets/merge-DaBBB4sn.js","assets/message-circle-more-CflaQ2Ro.js","assets/message-circle-question-6mRVQayD.js","assets/message-circle-reply-y8O_rM2f.js","assets/message-square-plus-CVyRErs-.js","assets/message-square-quote-jQf1LT5B.js","assets/message-square-reply-CUWQNrnO.js","assets/message-square-text-CSCEMdbD.js","assets/message-square-warning-1O_oSjyO.js","assets/messages-square-CESYBmKD.js","assets/monitor-smartphone-D2BNs6t6.js","assets/mouse-pointer-2-Cnd165gK.js","assets/mouse-pointer-click-BhGRKJ8I.js","assets/mouse-pointer-kgHLxLXP.js","assets/sliders-vertical-DpMBso_U.js","assets/move-up-DLoRjfN2.js","assets/move-nDxO_NJs.js","assets/octagon-x-BtMBB2OJ.js","assets/octagon-alert-JWNlm2KV.js","assets/package-check-BDTm9u6m.js","assets/package-x-CPxGSyK5.js","assets/paint-bucket-BcxVuzaS.js","assets/panel-bottom-BGhGfH_2.js","assets/panel-left-close-D50ftiFa.js","assets/panel-left-qiA3BcoM.js","assets/panel-right-close-BPek2XcN.js","assets/panel-right-open-D1cH6wno.js","assets/panel-right-B8dnLqM1.js","assets/panels-top-left-CmnvJboc.js","assets/paperclip-DBCJiqZz.js","assets/party-popper-BAcPf5lD.js","assets/pen-line-8567chQb.js","assets/pencil-line-IvHhfVni.js","assets/pencil-CeODWry_.js","assets/phone-forwarded-U0dOFhKC.js","assets/phone-missed-DNLncCcb.js","assets/phone-off-BuHSP1VM.js","assets/pin-off-BFxjSt-Z.js","assets/pin-CrnEleou.js","assets/plug-zyg47L7b.js","assets/power-off-B_o5W1oQ.js","assets/power-_0IpgL_8.js","assets/rectangle-ellipsis-D8xP23QN.js","assets/undo-BE6CglsL.js","assets/refresh-ccw-CBAU7kIl.js","assets/reply-vTgYpvbU.js","assets/rotate-cw-C4U_0WUg.js","assets/rows-3-MpI3ZT5s.js","assets/scale-Cnk-_e73.js","assets/scan-search-CQfdsypZ.js","assets/search-x-9w_CBHub.js","assets/shield-off-CPtwH2NR.js","assets/shield-question-bNDIXPcd.js","assets/shield-x-mcdUTr52.js","assets/shuffle-CJ37n6s_.js","assets/sigma-wlyXc2Dk.js","assets/signal-hn2rNzIo.js","assets/signature-D4Hieb_v.js","assets/skull-MUMQE1uA.js","assets/split-B20LMBij.js","assets/sprout-Cnm-evdN.js","assets/square-check-big-BVvRGTD2.js","assets/star-off-DbL-mJPn.js","assets/stethoscope--RlNehZn.js","assets/sticky-note-DfnQDShN.js","assets/swords-BMy18PEp.js","assets/table-2-BVwj2uji.js","assets/table-properties-D72SxB-B.js","assets/test-tube-diagonal-CI4KS8sd.js","assets/test-tube-CazH7WOn.js","assets/thermometer-snowflake-KRSjIZh9.js","assets/thermometer-DQWwnbYx.js","assets/thumbs-down-DMu9zpPm.js","assets/thumbs-up-BaHb6Ihb.js","assets/ticket-lnFBGpcL.js","assets/timer-reset-hvYqYkQc.js","assets/toggle-left-CNIXkxbe.js","assets/toggle-right-DfumDe7_.js","assets/tower-control-CkpLAeux.js","assets/trash-CJabiUWF.js","assets/truck-C670P9bj.js","assets/tv-DZc3DYE-.js","assets/type-D8EIBeir.js","assets/umbrella-HH2X3iDU.js","assets/undo-2-CxIC9FjU.js","assets/unlink-sJsxgP3b.js","assets/user-minus-CKoEWahw.js","assets/user-round-check-DmXw3pe1.js","assets/user-round-x-CLL7B3Xo.js","assets/user-round-DFc-bbkT.js","assets/user-search-Crtczekl.js","assets/user-x-DFxmMyM-.js","assets/variable-Bb8dMGZZ.js","assets/volume-x-Bzg0_sUT.js","assets/wand-sparkles-CGWeE1Si.js","assets/webhook-a6BAwkaJ.js","assets/wifi-off-BXXRDtSO.js","assets/zap-off-BWHF4SY_.js","assets/zoom-out-CbYuTZo5.js","assets/Reveal-KW3E5ISb.js","assets/FreeCourseDetail-Cn0NDnFz.js","assets/FreeCoursesHub-CoThmxfX.js","assets/Checkout-Dm3CdNSV.js","assets/separator-DprxPE6Z.js","assets/CheckoutPagoLivreTeste-7mxEiGzC.js","assets/PagamentoPix-D3ODBKAU.js","assets/PagamentoBoleto-BJrX7G1G.js","assets/ConfirmacaoPagamento-DdwUw1Iu.js","assets/PagamentoSucesso-C98AxOWH.js","assets/Blog-cOPaiEhv.js","assets/BlogPost-BFcmRUBB.js","assets/useBlogReadingConfig-DMaEmmB0.js","assets/Plataforma360-XrDV3qgk.js","assets/usePlatform360Images-CpBZzns-.js","assets/usePlatform360Config-CdHsZlLI.js","assets/heroMedia-DURkGV2w.js","assets/platform-screenshot-B4dGeqJ_.js","assets/DigitalCourses-DOVZmgUc.js","assets/TrainingUniversity-D5ybT4S4.js","assets/TrainingCorporateSubscriptions-9DzVA-Na.js","assets/teamPassFaq-CZjUH43g.js","assets/MasterTech-CU4J-9Qc.js","assets/institutionalFacts-Bmwqsjzj.js","assets/MasterTechEnrollment-CcUaKLOr.js","assets/MasterTechCohortSelector-CmnbBWUo.js","assets/FormationEnrollment-Bp8jC_l8.js","assets/Simulados-Bsxyth1y.js","assets/QuizPreviewShare-Cp83P23n.js","assets/quizRandomization-C_Ve8z-t.js","assets/Termos-DKW8pvfq.js","assets/Privacidade-FSvQp_Af.js","assets/Promocoes-nMgUZBvo.js","assets/CourseSyllabus-Yvfd80rH.js","assets/CreateDemoAccess-C4-3ZZRj.js","assets/BlackFriday-WWA88SiU.js","assets/useBlackFridayItems-Dr2_jfgh.js","assets/TrialExpired-CSgw5SOg.js","assets/PropostaPublica-B_YRH9gs.js","assets/usePropostasData-BYZ5va8C.js","assets/queries-B0BRph7B.js","assets/proposalIssuer-DO37dp5R.js","assets/investmentOptions-BmPx63fS.js","assets/isPast-CSQMLAzl.
1js","assets/PropostaIAPublica-CxuNvkDy.js","assets/Instalar-BW1oBQRF.js","assets/BookAppointment-NFwwFiwm.js","assets/businessDiagnostic-BrVJlo4L.js","assets/business-diagnostic-contract-Bvs7eXpR.js","assets/useSchedulingAppointments-B2MVLZbC.js","assets/SchedulingLanding-DWbrAT6k.js","assets/InvestorPresentation-Cjpl7eH2.js","assets/PitchDeckComparativo-DZNe3haK.js","assets/usePitchDeckMetrics-CfcmjTNA.js","assets/ResponsiveContainer-5k-fTcuC.js","assets/toNumber-BOefi7Di.js","assets/RadarChart-JHv7-riF.js","assets/generateCategoricalChart-hCpnfEuK.js","assets/findIndex-_eSbYruZ.js","assets/tiny-invariant-BaFNuDhB.js","assets/PolarAngleAxis-QGSV1ADc.js","assets/PieChart-H0lhaCSy.js","assets/BarChart-D-OkWXPM.js","assets/YAxis-OnkAH1hO.js","assets/CartesianGrid-SQezMbC3.js","assets/PitchDeckComparativo4-mkEd_Vgg.js","assets/Certificacoes-CNS3_ShF.js","assets/useMarketCertifications-nMA21cIu.js","assets/GuiaCertificacoes-B2UmeEAX.js","assets/CertificationDetail-CZepjMJC.js","assets/CertificationCompare-DGkbdsd6.js","assets/TourT360-B7kGFCHf.js","assets/t360-notificacoes-Dx-sjxgs.js","assets/T360TourExportDialog-KMGMbfO6.js","assets/TourSolucoes-CxQBqwiZ.js","assets/B2BSolutionsTour-Bd_FQexS.js","assets/ChangelogPdf-BhUqdAgH.js","assets/ManualPlataformaPdf-Cmw07LvL.js","assets/CentralPdfs-BEjsr6T0.js","assets/AdminLayout-d4MNosoN.js","assets/AdminPageHeader-Bj4-YuFH.js","assets/LandingPage-C3ykApeD.js","assets/LandingPageRenderer-BkwnT22N.js","assets/LandingSalesTriggers-CWhgzyZM.js","assets/useLandingPages-D3mwOG6f.js","assets/LaunchLandingPage-t69h9zUn.js","assets/OneScreenForm-CCBceT_1.js","assets/MobileExperiencePreview-Do68MaRi.js","assets/ApresentacaoComercial-DVsHLxFu.js","assets/PresentationExportDialog-DM13ubcN.js","assets/AcceptOffer-Coxs_pKE.js","assets/FormTypeformPreview-j0XagAcj.js","assets/CertificateVerification-5pUnakA9.js","assets/PaymentPage-BmXAC1Cr.js","assets/AssinarContrato-CB1OjkCg.js","assets/contractProcessor-BUG2t08w.js","assets/pedidoItemName-i2WsjRZ5.js","assets/ImplantacaoPortal-DCGi6uBh.js","assets/implantacao-CZnqoweS.js","assets/ApplyToJob-CuLu2fjX.js","assets/useRecruitmentCandidates-BwjhgmLU.js","assets/useRecruitmentQuestions-o-LU0WMH.js","assets/Turbine2026-DafxlO65.js","assets/DiaDoConsumidor-BT4a4ZuJ.js","assets/TrilhaPerfeita-BRS0iejf.js","assets/SkillMapModal-DvhJGQrv.js","assets/DiagnosticoCarreira-kIBY1vkT.js","assets/DiagnosticoEmpresarial-BD8aD0LJ.js","assets/DocumentacaoTrafegoPdf-d0b32Ak5.js","assets/AnalyseFunnel60Days-PD0-PE1X.js","assets/differenceInHours-KKGmUMqH.js","assets/AreaChart-D3Ygy1z7.js","assets/Area-xWDKlqVI.js","assets/PilulasConhecimento-D7OG9FF1.js","assets/ResultadoSalvo-6j8Wr0zi.js","assets/Busca-Ze90w4PP.js","assets/Qualificacao-cvrehPjV.js","assets/QualificarExterno-DeNkpntH.js","assets/hooks-D40CzD7L.js","assets/QuestionStep-D8MsubTI.js","assets/utils-BgpsuDFR.js","assets/types-CtrTX0cZ.js","assets/gamification-CZ2BC-Qv.js","assets/logic-D2PQrcrQ.js","assets/NotFound-Cn0RNfgH.js","assets/GuiasIndex-DgvDyNWI.js","assets/GuiaDetail-6Xl1HrwO.js","assets/GuiaSap-DlzLDLJ2.js","assets/SapQuiz-XE438jVC.js","assets/SapLeadForm-wIBt9C6E.js","assets/useSapLiveMetrics-bqObicIY.js","assets/SapQuizModal-Dk9ef7Ng.js","assets/sapCareersData-BAlV5_7V.js","assets/DiagnosticoSap-Dla9ZWXa.js","assets/CarreirasSapIndex-BJ-odN94.js","assets/CarreiraSapDetail-wDQ1SH3g.js","assets/GlossarioIndex-54Boj5cA.js","assets/GlossarioDetail-BTPnNhem.js","assets/SalariosIndex-Z2qZcy9a.js","assets/SalarioDetail-zHc-LPK1.js","assets/ComparativosIndex-DpGrbnwb.js","assets/ComparativoDetail-BBLSBEYJ.js","assets/CarreirasIndex-nXMdma6v.js","assets/CarreiraDetail-6hDX9-Yw.js","assets/TechnologyHub-CKGH04gy.js","assets/TestCinematicForm-COXJc7fq.js","assets/TestMultiStepForm-5gCKNVVT.js","assets/MultiStepCinematicForm-FAhkU3z9.js","assets/CursosV2-DWpXcMVJ.js","assets/PublicProjects-DEfupQjs.js","assets/usePortfolioProjects-BNAj-Y-w.js","assets/ProjectCard-Cs9AxMRL.js","assets/ProjectDetail-TXAFuzCM.js","assets/CampaignLanding-tvVZAo_H.js","assets/SAPCoursesHub-CFnqgHOE.js","assets/AIAccelerate-1Y4NlDUS.js","assets/use-reduced-motion-DWx3sMmu.js","assets/VibeCodingExpert-DICD7H17.js","assets/ClaudeCodeProfessional-CVU80F9Y.js","assets/CyberSecurityAIDefenseExpert-Dn4zKer_.js","assets/SapCareerCases-L4FTXM4Y.js","assets/Diagnostico-DouPTCEx.js","assets/OAuthConsent-xQvli22K.js","assets/ReferralLanding-ibttTAMc.js","assets/referralValidation-Bfch1GEb.js","assets/useApprovedCategories-M0EynL-b.js","assets/TalentSignup-C50bSXYv.js","assets/TalentInvite-B9zGfi0-.js","assets/AdminRouteLayout-CGXPVbQS.js","assets/kommoConversations-CGFvzrVX.js","assets/useAdminActivityTracker-DFqFlDED.js","assets/adminMenuItems-BJilRqg4.js","assets/CreateAppointmentQuickAction-E8IU5XSv.js","assets/MeetingLeadSearch-BocnE9ac.js","assets/searchUtils-BjyxoN66.js","assets/QuickCreateLeadDialog-BaOwsTGE.js","assets/useContactIntegrity-vvX1d58A.js","assets/OfferActionButton-BTcxyKyb.js","assets/SaleCelebrationRealtimeBridge-N4OOccEk.js","assets/modalOrchestrator-DBT1a-A4.js","assets/form-CgtHMe5c.js","assets/outcome-Bs0Yrcg_.js","assets/MeetingLivePanel-stRqzD-B.js","assets/LeadWhatsAppChat-DOJTHVqD.js","assets/phoneUtils-h437MOrC.js","assets/useCurrentSellerWhatsAppInstance-Bp2XW1Qz.js","assets/useSalesPermissions-CY6jfgNE.js","assets/SelectWhatsAppInstanceDialog-hR_s0pvN.js","assets/useSalesScriptEngine-BgoSeCVX.js","assets/useSonaxCall-Dwrvszsh.js","assets/differenceInMinutes-CR7ME5Vs.js","assets/fetchRecebimentos-XUbHvZ-M.js","assets/SaleCelebrationPopup-BodfHprB.js","assets/useUserReminders-Cdp0eoNt.js","assets/isToday-99lJqybc.js","assets/ManagerDailyBriefingPopup-P1VkhMfl.js","assets/page-transition-DyytLacP.js","assets/usePromotionalCampaigns-DoES0v4k.js","assets/PlatformManual-CtGloZrD.js","assets/PlatformManualReader-Dxao2_aT.js","assets/programs-BQ53vwUD.js","assets/StudentSkillGap-CXD7LnCV.js","assets/StudentPlatform-Dp8UWSB5.js","assets/sessionAttendanceMap-0S_Pkdgg.js","assets/LiveSessionCard-Bi9uSupd.js","assets/isTomorrow-C3LE8CUw.js","assets/generateCertificatePDF-DKx-eDT6.js","assets/useReferralProgram-Qr2RfO8T.js","assets/LessonExercisePlayer-D06gtpsQ.js","assets/LessonExerciseHistory-D0ziE58k.js","assets/attemptViewApi-Dpvopdj_.js","assets/resolveLessonVideoUrl-A3e4Q05V.js","assets/ExerciseResultBadge-J_X-S-9x.js","assets/downloadPdfSafe-BTz4ZfJW.js","assets/FloatingAudioContext-BKy9052n.js","assets/rewardCatalog-_IBzVJH4.js","assets/SectionBanner-DRW2oK1p.js","assets/useUnifiedGamification-MBvPmHt1.js","assets/attendanceStatus-Ht7TDrkV.js","assets/AttendanceGamePanel-Bk1XJCdb.js","assets/useAudioLibrary-IB3c_mM1.js","assets/useAudioPlayer-Cp0_3X08.js","assets/LessonQuiz-DhovqFVL.js","assets/SessionPollsPanel-Bz1l-jRO.js","assets/learningTracker-CXq4lF4p.js","assets/useLiveRoomCourseContent-DIqBfygm.js","assets/useStudentExercises-BUgdgJcS.js","assets/ExerciseCard-C_SBLh0n.js","assets/VideoPlayer-Cxk_u9on.js","assets/useGam
1ificationConfig-BVFbRbAf.js","assets/clientError-Cyu1fP7x.js","assets/formatDistanceToNowStrict-72fEaY3m.js","assets/ProvisionAccessButton-DF6s8KxJ.js","assets/entitlement-Cstkj7E-.js","assets/FlashcardStudy-Q1ZOaAP9.js","assets/DevelopmentEntry-Dy0RrT3O.js","assets/learning-BldvGNjO.css","assets/StudentPremiumDashboard-B6pvdzeM.js","assets/StudentPremiumDashboard-Dox8xjEi.css","assets/StudentCareerHomeV2-DHSG0qqu.js","assets/useCareerOS-CqwFfA-P.js","assets/marketData-BtmaFska.js","assets/PlatformManual-BhaWnAsw.js","assets/LiveSessionsArea-n2rIEoU_.js","assets/CohortDetail-BOsiPZs2.js","assets/CohortDiscussionTab-fQI8uVyE.js","assets/CourseExercisesPanel-D6zM5muR.js","assets/selection-CxlECy75.js","assets/DigitalCoursePage-BZLzlzFV.js","assets/nr01Manifest-BwMpeFPB.js","assets/NR01StudentCourse-DuWGe3DW.js","assets/LiveSessionDetail-sODFiC7O.js","assets/LiveSessionHeaderCard-CBYpBhg2.js","assets/AcademicCalendar-Dmueetwc.js","assets/FlashcardsPage-BBbfev-O.js","assets/ExercisesPage-3lm1OT29.js","assets/ExercisesPage-BG7PxDjd.css","assets/CourseExercisesPage-D-xY9kOd.js","assets/ExerciseRunnerPage-yUP8trYm.js","assets/AttendanceDashboard-LdsWzKwT.js","assets/LearningPathAI-DYgL5pdE.js","assets/LearningWorkspace-Ljk2FHlc.js","assets/AssessmentResult-CoBB2gNo.js","assets/api-JmKeEUYn.js","assets/skillmap-engine-DpUN5wNF.js","assets/StudentCareerEngine-DxhamC69.js","assets/CareerOS-DyX3yQ30.js","assets/CareerProfilePage-DTlfaKjl.js","assets/JobMatchingPage-F8bXoYtM.js","assets/MarketPanel-Cs_iAmdv.js","assets/SkillGraphPage-Dwpn17rT.js","assets/ChangePassword-B7g7i1yc.js","assets/invitationAccess-Snhknq3e.js","assets/UserSettings-D9ggI2t_.js","assets/AffiliateDashboard-DCjvz-l_.js","assets/PartnerCompanyAccess-DgW2yTnY.js","assets/Indicar-CKXUIN9k.js","assets/useReferralMissions-CTLJa_CW.js","assets/AppDashboard-CFZHbUl6.js","assets/DateSelector-Bvfn30NZ.js","assets/CompanyOnboarding-CX_gey7m.js","assets/EmployeeDashboard-DJ_sKmZj.js","assets/useTimeClock-8tsXI-h1.js","assets/TimeClockHistory-BuCqo0Ce.js","assets/GamificationPage-DhMaDsZs.js","assets/Portfolio-DBxo5w0X.js","assets/EbookViewer-CeZcmJJk.js","assets/EvolutionFlowPage-BKlrLlej.js","assets/useCompanyQuizzes-xaIsMgLI.js","assets/QuizLanguagesSection-CYRHb0X8.js","assets/MeusCertificadosPage-BETkUc49.js","assets/JourneyFlowWelcomePage-C-GDt-Ns.js","assets/useJourneyFlowWelcome-CMwmDcvs.js","assets/JourneyFlowEntryGate-MHJyiSzo.js","assets/SupportPage-BOSUWNR7.js","assets/CompanyPortalGuard-DZiv2jdu.js","assets/CompanyPortalLayout-U02IX1de.js","assets/useCompanyPortalData-BrLpgrPK.js","assets/useEmpresaRelatorios-CwUBpRQS.js","assets/CompanyPortalLayout-CynUNGdz.css","assets/CompanyDashboardV2-BvZyi8Ei.js","assets/orderStatus-BnfC6q4Q.js","assets/CompanyCollaboratorsPage-CQxA1NSt.js","assets/useCompanyProgressOverview-BtKRZrrR.js","assets/exportCSV-CzvgehBy.js","assets/CollaboratorDetailPage-B2nE3hOT.js","assets/CompanyCoursesPage-IOLtVVmF.js","assets/CompanyAttendancePage-DzxG5qGH.js","assets/useCompanyPortalExtensions-DzsKzIYD.js","assets/useCompanyAttendanceUnified-DVwq4WSf.js","assets/CompanyCertificatesPage-COj4dgL8.js","assets/EmpresaRelatoriosPage-Bgcdmuht.js","assets/LineChart-CXZw8IfS.js","assets/Line-CTg27XyM.js","assets/EmpresaPerfilPage-OAhwFAzC.js","assets/CompanyOrdersPage-Dhw9JSng.js","assets/CompanyJourneysPage-BKsecVkq.js","assets/useJourneyMutations-BzAsJ1kK.js","assets/JourneyWizardPage-kJUYE1dY.js","assets/AddQuizToJourneyDialog-y0vXA0j-.js","assets/core.esm-BXFVQhpr.js","assets/sortable.esm-CDzFRoeE.js","assets/JourneyDetailPage-C16o3j64.js","assets/CompanyGroupsPage-D3hRDbVS.js","assets/GroupDetailPage-Cd4BkbAX.js","assets/CompanyEvaluationsPage-C-Wc1riO.js","assets/CompanyModuleEvaluationsPage-Cju0DF5H.js","assets/CompanyProgressPage-Cy1Lj0-y.js","assets/CompanyFlowPage-DybkehND.js","assets/CompanyOnboardingPage-DbE-AUdw.js","assets/CompanyRankingPage-klhtX64B.js","assets/subMonths-DSEh1jtO.js","assets/CompanyNotificationsPage-DejuW77P.js","assets/CompanyAllocationsPage-BCVPqGPn.js","assets/CompanyQuizLibraryPage-CBAHhudr.js","assets/xlsx-CWc3kuOC.js","assets/CompanyConfiguracoesPage-AjqysDcs.js","assets/CompanyQuizPage-D0mBMIOH.js","assets/Module2LearningPilot-CfcSNti0.js","assets/Module2LearningPilot-PPik6Cka.css","assets/ParticipationPage-b7qZp6VH.js","assets/useCohortParticipation-BQ4uRPds.js","assets/followupApi-VJl1DMg-.js","assets/InstructorDashboard-CSxefdos.js","assets/InstructorLayout-FtRzRX13.js","assets/sidebar-CsezoH2H.js","assets/InstructorCalendar-CMpWac7z.js","assets/InstructorCohorts-20vq382x.js","assets/InstructorCohortDetail-Dz4Lqi58.js","assets/isFuture-BGcW3upS.js","assets/InstructorAttendance-D1eELRJ-.js","assets/InstructorEarnings-CXxXV2Ds.js","assets/InstructorMaterials-Ic5B-OPq.js","assets/InstructorProfile-DV7nZIcJ.js","assets/InstructorAnnouncements-FOH-45lk.js","assets/InstructorHelp-fdc34KuD.js","assets/InstructorDocuments-ySrx5gQk.js","assets/InstructorSessionRoom-gT3TZV3G.js","assets/manualOperationProtocol-CDV3kHxf.js","assets/ManualAttendanceDialog-Mqt3eBTx.js","assets/InstructorProfileEdit-BvO-mMmn.js","assets/InstructorCohortAttendance-Bd26X0oK.js","assets/InstructorSupport-36dUSlc5.js","assets/DepartmentSelector-DI4XWQkp.js","assets/EvidenceDropzone-OVIH4LjS.js","assets/LeadCentralPage-BXMlWHGC.js","assets/AuditWorksp
1ace-G0CslwqP.js","assets/types-C9Q4aJ26.js","assets/useUnifiedTimeline-DaZ2InzX.js","assets/useKommoSyncAuditor-BaKjp-zn.js","assets/leadFieldCatalog-CFYduy3c.js","assets/AuditUnifiedTimelineTab-B-kGDxha.js","assets/KommoPipelineStagePicker-ClicDfZi.js","assets/useManagerActions-Z8MpXF64.js","assets/CredentialsHubPage-dW58_S2I.js","assets/api-B1AIVxTo.js","assets/ConselhoGeralPage-GidYycGH.js","assets/MobileExperiencePage-DAsbMwPC.js","assets/Bug360Page-CYCMKiB6.js","assets/SkillGapAdmin-BhM7LVdj.js","assets/SkillGapAdmin-lKIp3FN1.css","assets/Admin-YifhM9jO.js","assets/TeamPerformance-BnPpLT4k.js","assets/model-C3UXZVf6.js","assets/kommo-deep-link-BJ_b0yRf.js","assets/reportReadFailure-wpwwSF9U.js","assets/workRequest-BgiPGii0.js","assets/FreeCertificationsAdmin-nPaCL-hL.js","assets/LocacaoSalaAdmin-Bci0YMJK.js","assets/SDRPerformanceReport-DF2Hq2iq.js","assets/LeadershipDashboardPage-DhtINsg6.js","assets/lazy-chart-CmTqxvd4.js","assets/Categories-Bnw4F7fS.js","assets/imageUrlGuard-Bocq32DE.js","assets/useCourseOrder-0Q529E4A.js","assets/slugify-XPpfKlWf.js","assets/WidgetsConfigSection-Cn8GsEwt.js","assets/Courses-Di66a-Cq.js","assets/useYouTubeUpload-BLLmT7lR.js","assets/Cohorts-DZTY7qgR.js","assets/fetchAllRows-CteEK0UF.js","assets/courseConfig-CUjWveam.js","assets/DeliveryModeSelect-CzfWod_6.js","assets/CohortLiveSessionsManager-C8NkzbxQ.js","assets/ResetStudentPassword-FthR6zOu.js","assets/WhatsAppInstanceSelector-BHyrKwj5.js","assets/ManualIssuanceModal-CktOCEMk.js","assets/useManualCertificateIssuance-BwSkoD5F.js","assets/CohortNotificationDialog-Db_Kg4JA.js","assets/index-ChGlDkfc.js","assets/toggle-group-2e1eS4gR.js","assets/toggle-QHE3vvFV.js","assets/getYear-DV7LShe0.js","assets/jspdf.plugin.autotable-Ctv5SbFQ.js","assets/AcademicDeliveryCockpit-CgZE6LcK.js","assets/CommercialPageHeader-Bi_GM8bl.js","assets/hooks-ooWdfWEn.js","assets/CohortKickoffCockpitPage-BbJQmg-n.js","assets/CohortManualCertificates-BU36mtrU.js","assets/ManualCertificateIssuances-BoUKGbjS.js","assets/ManualCertificateIssueHub-iZPZLNZR.js","assets/ManualAttendancePage-Cvnj9Flj.js","assets/CohortEnrollments-bos5onfB.js","assets/pagination-BMAHoE1x.js","assets/CohortAllocationRequests-h8k3xwvz.js","assets/Instructors-D7pFXxQs.js","assets/endOfYear-K4Ris91o.js","assets/UserAccessHistoryTab-C-RBtUEl.js","assets/useAccessAuditData-CCrOMPRc.js","assets/ImpersonateUserButton-Depcq12O.js","assets/InstructorManagement-XRm80NbK.js","assets/LiveChat-CQ55vuf7.js","assets/resizable-BGFSbDlH.js","assets/LeadDetailDialog-B6yS3lVz.js","assets/leadSearchTerm-Dh_9EMCx.js","assets/usePrioritySettings-BvaHgWr1.js","assets/KommoTimeline-ecPxFQXa.js","assets/useLeadCadenceSteps-DtUox_RJ.js","assets/useSellerCoach-Ckv4dAEZ.js","assets/useEnriquecedor-DDzFz9L-.js","assets/ChatQuickActionsBar-BQCJVdlR.js","assets/ChatOfferSelector-DSvyCa8c.js","assets/useChatReplies-CE9VZiVP.js","assets/readCatalogPages-0HBDwbfM.js","assets/presentation-sv3SVGix.js","assets/pdfStructure-DOaV_ULq.js","assets/syllabus-C__0O_Im.js","assets/PlaybookT360-CBbtj4h-.js","assets/useT360SalesContent-CAuFM8PX.js","assets/sectionConfig-CY_Qgeci.js","assets/SolutionPortfolio-Dn6EnI34.js","assets/PlatformGallery-BgxLe2H3.js","assets/FeatureMatrix-BfswB2Hy.js","assets/CorporateJourneyMap-BCtwWwjl.js","assets/AudienceBenefits-C62_NVKI.js","assets/ComparativeScenarios-BtWK9INc.js","assets/CorporateCases-olRK_sHr.js","assets/JourneyTimelines-BTutj9S5.js","assets/CareerAccelerator-DIXE4RzG.js","assets/PlaybookCatalog-jGQ5sOV8.js","assets/cache-DIU8FtLt.js","assets/DocumentsList-C901Mj6X.js","assets/scriptSafety-759DwXCE.js","assets/leadFieldNormalizers-B0bfKq-D.js","assets/t360Api-DDkzmT4r.js","assets/ComercialPropostaDialog-DOdNZC86.js","assets/useVIPPricingConfig-B7Z51v0E.js","assets/LeadSearchSelector-CLeDenBk.js","assets/useEmpresaContatos-CcAYPEs9.js","assets/useTemplatesCondicoesComerciais-lZcHpbzj.js","assets/ViabilidadeCalculator-D00DIkj9.js","assets/deliveryFormat-BU9wE8Qz.js","assets/proposalDefaults-CSu5PA4s.js","assets/blockComposer-HJsLp0LG.js","assets/productDossier-BzXD6a-q.js","assets/App
1ointmentOutcomeDialog-K3VatPyr.js","assets/useEngineSession-CfcLyxZS.js","assets/useUnifiedFollowUps-fVOjw60k.js","assets/labels-CekqepdT.js","assets/useLeadFullEventLog-CG_vwQzh.js","assets/PedidoFormDialog-DuuPUkRo.js","assets/dateConstants-BSyCIAAj.js","assets/EditClientDialog-_Uyqr7Kj.js","assets/useEnrichByCNPJ-kY6_4Pvk.js","assets/CompanyPickerUniversal-Xz91ppUN.js","assets/StudentAllocationModal-BrIEBZf-.js","assets/useSalesTeamVendedores-C_Y8Xug4.js","assets/useSDRStatusConfig-Vkvgf2-l.js","assets/useLeadInternalNotifications-ChU0VUae.js","assets/LeadFollowUpPanel-tImTTatG.js","assets/SlaCell-DHMIwaRV.js","assets/useDefaultCallIntegration-Bk-vFQoS.js","assets/useLeadTasks-on7k0z1p.js","assets/SLAManagement-CGv2BxPV.js","assets/useSLAMonitoring-BSC0FucK.js","assets/CompetitorCenter-Ca5wQILO.js","assets/Leads-CeGmgh6x.js","assets/useLeadsUsage-B9Le91_8.js","assets/useAdminUIConfig-Bjt2h2IV.js","assets/LeadsTestLab-BiT_aMTO.js","assets/LeadsGovernancePage-BvoUnMjg.js","assets/useMottAgent-BLGU5K60.js","assets/LeadDataQualityPage-2tZvRoNi.js","assets/LeadDuplicatesPage-RxBD_rft.js","assets/LeadObservability-BS2CMLRP.js","assets/LeadScoreAuditPage-B5jY2Kne.js","assets/LeadsScoreAuditPage-B8cl7apo.js","assets/TemperaturaReconciliacao-Dc0IiSRG.js","assets/LeadTemperatureBadge-D2V_pl3d.js","assets/LeadsCampaignPanel-Dr4YUmp5.js","assets/FormsTestCenter-B_B5Qqgt.js","assets/KommoRoutingAudit-50oIgFLl.js","assets/KommoCentralBanner-BIB_s-2J.js","assets/KommoHub-Y9RHR_FD.js","assets/constants-DgmKuRMV.js","assets/InboxCenter-IHOCl-9k.js","assets/Tags-0GtElqaZ.js","assets/useTags-CIv29kWE.js","assets/LeadFormQualificationConfig-HMlqX1Up.js","assets/LeadScoreConfig-Dpp7iLv7.js","assets/useScoringRegras-Cb4FYONJ.js","assets/leadScoring-bLvSzBjc.js","assets/ScoringThresholdsPanel-B9GpEdXQ.js","assets/useLeadScoreConfig-DEvY1EPE.js","assets/LeadsDashboard-A4NCsfHl.js","assets/UnifiedSchedulingCenter-B7Ba7lm_.js","assets/AttendanceSourceNotice-izUn8cuw.js","assets/SchedulingCTAConfig-SsIlYCXW.js","assets/SchedulingGeneralConfig-DGkT1V56.js","assets/CreateLeadDialog-BZz6xtOT.js","assets/PerformanceCentralPage-CWYhEhtY.js","assets/Prospeccao-C0hNbQI7.js","assets/MarketIntelligencePage-DwpQzBA2.js","assets/RunsTable-DevfSJy1.js","assets/MarketIntelligenceCampaignPage-DGV8GHEG.js","assets/CourseForm-DcAOtGU0.js","assets/useCourseFormData-B0xfq7mq.js","assets/useCertificateTemplates-D5dqn-ym.js","assets/storageUpload-B82J6SR3.js","assets/useLogoLibrary-BcPF6nOK.js","assets/CourseMaterialsManager-CCv78VP8.js","assets/CohortForm-BUqrlOqj.js","assets/Import-igMfU0vy.js","assets/ImportCourses-FfRpCyHD.js","assets/FormsCtas-D5I0E6pM.js","assets/FormBuilderEditor-D9x3Vwje.js","assets/FieldEditorDialog-BuPHU58X.js","assets/LogoUploader-Bej4KldR.js","assets/EmpresasAtendidasAdmin-BLn4_4eD.js","assets/CorporateCasesAdmin-BPYtISBF.js","assets/CarouselManager-nt-cGGHh.js","assets/ManagerActionTemplatesPage-B1z-MR3J.js","assets/ProposalStudioLayout-fX11DOtB.js","assets/ProposalStudioOverview-DI9Dewqx.js","assets/ProposalBlocksPage-Delwt1Dh.js","assets/useProposalBlocks-D6aTEEsZ.js","assets/ProposalAISettingsPage-BAgI-OLQ.js","assets/useProposalAISettings-CFtBimYG.js","assets/ProposalPromptsPage-Cm5nO-nu.js","assets/ProposalRulesPage-DZZ9-7UQ.js","assets/ProposalTemplatesPage-zyvKO4HF.js","assets/ProductDossiersPage-jP5OT27z.js","assets/ProposalMigrationPage-D3GvdfnX.js","assets/ProposalWizardPage-B72bgXNF.js","assets/NovaPropostaPJWizardPage-BbbRuwJd.js","assets/QuickCreateCatalogItemDialog-Byu1-ST8.js","assets/useProposalMutations-BJfw_RSG.js","assets/useCatalogIndex-8udRai93.js","assets/similarity-DYogIcf9.js","assets/ProposalBuilderV4Page-Ch5XLMb5.js","assets/QuickCreateClienteDialog-ZsDMJYDE.js","assets/clientePromotion-BNJK78F5.js","assets/clienteDuplicateCheck-DqMKdW4j.js","assets/proposalBuilderV4Readiness-CuHwxPry.js","assets/GamificationStats-CrooeJtv.js","assets/AcademicGovernance-DF3SYRXX.js","assets/Formations-Cqr0jS8z.js","assets/FormationForm-r7MshvJ7.js","assets/FormatsConfig-Cr-whTNq.js","assets/CohortFieldsConfig-Cn3kzvFK.js","assets/Jobs-B97fVjjA.js","assets/JobForm-BepUaRWc.js","assets/JobEngineMonitor-CStGzOgg.js","assets/Testimonials-CB3TFOd2.js","assets/TestimonialForm-DwPHGE3g.js","assets/Labels-miwKR4Ma.js","assets/CategoryKeywords-CjUs9l-m.js","assets/Marketing-OUNRkCzz.js","assets/MobileExperienceManager-CNTu-lgw.js","assets/registry-BjEwucm2.js","assets/useOpenCohorts-ETT--cmT.js","assets/MobileExperiencePreview-pNR7qznD.js","assets/ExperienciaMobileManager-KszhSEWW.js","assets/LeadGameEnginePage-Dnx5fOxe.js","assets/LeadGameBadge-FLwDKC3c.js","assets/SalesCopilotPage-R3vj31Sc.js","assets/WhatsAppSMS-g0MUFD7J.js","assets/WhatsAppOfficialLabPage-DOtHEz6n.js","assets/WhatsAppBlitzCampaign-awUzC7oD.js","assets/useWhatsAppHub-CVQ6s-Q3.js","assets/SmsCentral-DV2aePTx.js","assets/SmsTemplateEditor-Ca_EfRi7.js","assets/EmailMarketing-KEE3t_yj.js","assets/EmailEditor-DhMU7O5e.js","assets/Campaigns-DIPUXlSE.js","assets/CampaignWizard-C3-xVkCt.js","assets/MetaCreativosAds-DC-cKrOE.js","assets/useBrandIdentity-C9QWx8yr.js","assets/MetaAdsAnalyticsPage-D0uV4z57.js","assets/CreativeStudioPage-BQQor1zz.js","assets/CampaignOperationsHub-B9y_Kn16.js","assets/MarketingContentStudio-DY2nJugx.js","assets/ContentEngine-0yBT3V7X.js","assets/TrafficManager-Bil1s0hD.js","assets/TrafficAuditCenter-C8ghhuII.js","assets/FullFunnelDashboard-BzYrAhUl.js","assets/FreeCourses-SGf_HnGJ.js","assets/PageManager-BWOTJBnc.js","assets/MasterTechConfig-siygOrPo.js","assets/LeadMagnetsAdmin-BQHaA669.js","assets/MasterTechEnrollments-CTqwjKzq.js","assets/MasterTechUsers-CXoVUURN.js","assets/SubscriptionManagement-C9mMTCP_.js","assets/PriceCampaigns-BpFN8upI.js","assets/FlashSales-sCfMuVoh.js","assets/BundleTiers-CCHTQV-2.js","assets/WheelPrizes-D4Uocq-q.js","assets/BlackFridayAnalytics-DC0T2zs-.js","assets/BlackFridayConfig-CE-tylGD.js","assets/Analytics-0ldVbPmV.js","assets/ConversionAttribution-DjhOccDj.js","assets/Dashboard-Bp4syir0.js","assets/DashboardCustomizer-xktak1g8.js","assets/Resumes-mvVQrTBQ.js","assets/BlogPosts-gABI6kD_.js","assets/BlogPostEmailDialog-DrtbEOPc.js","assets/BlogEmailPreview-Cpq79M90.js","assets/BlogPostForm-DVSkQDSY.js","assets/PopupManager-pMUWZYdq.js","assets/PopupCenter-piL8tL8W.js","assets/Upsells-8ywjl3PY.js","assets/UpsellConfig-DHNa2csU.js","assets/GenerateDigitalCourseThumbnails-8qmEShbF.js","assets/CourseSettings-CgLvrij9.js","assets/SyllabusManager-BI83i_dp.js","assets/LiveSessions-GELHgljL.js","assets/LiveSessionAttendanceList-gCICNXMp.js","assets/AttendanceReport-8HbxNSbL.js","assets/RecordedSessions-Bv0tBVQe.js","assets/MarketCertifications-BHZibNw2.js","assets/useCurrencyExchangeRates-hejy--hq.js","assets/CertificationForm-BAHWlWqX.js","assets/RelatedCoursesSelector-C9kTrDo9.js","assets/CertificationToCourse-DWKlDHRl.js","assets/CurrencyExchangeConfig-oH0I2k_l.js","assets/CertificationSales-_XTLKKZy.js","assets/SystemSettings-BGvDmlgY.js","assets/useTimezone-Cc3vEnVA.js","assets/TimezoneSettings-2TOHwwjf.js","assets/ClearCache-B9ICGr0a.js","assets/Student360-By0kHByK.js","assets/useStudent360-BUb4NQc6.js","assets/Student360Profile-DTnqTw0Z.js","assets/LearningControl-Fu3717J-.js","assets/PortfolioCuration-DMPQhmfJ.js","assets/AttributionDashboard-9iXMxIz-.js","assets/InternalUserAudit-D9zTJUkO.js","assets/CreateSalesAccessDialog-Cv_nN3b2.js","assets/CompanySettings-COe1yD3V.js","assets/TutorConfig-CjmYVpji.js","assets/BulkAIGeneration-CyqVazzS.js","assets/BatchGenerateContent-BOtdFTWw.js","assets/BatchGenerator-Dn8WSLQZ.js","assets/ExercisesCenter-rnU_0ynm.js","assets/LiveSessionForm-C3qaG8cZ.js","assets/Achievements-LPWvM6rc.js","assets/Rewards-NtaITaT7.js","assets/GamificationConfig-kenCQtrH.js","assets/ExchangeRateConfig-BHcLPPvg.js","assets/NotificationManager-B2Vb_17s.js","assets/Clientes-Cc6P-jE_.js","assets/Pedidos-7SsKnUY4.js","assets/EditContractDialog-JT84qFfY.js","assets/lazy-rich-text-editor-Ca-QrmBG.js","assets/notaFiscal-mGrjS3TS.js","assets/GoalProgressIndicator-DDyPGIV7.js","assets/useSalesGoals-2a8nHCVC.js","assets/ReconciliationPreviewDialog-COWDYamF.js","assets/LeadMergeDialog-DwSBaSB9.js","assets/SalesSpeedBadge-DXoplxEd.js","assets/DateRangeFilter-Db4g-2W_.js","assets/useReceitaPrevista-BZpbchQ5.js","assets/salesAnalytics-D690AIJn.js","assets/directLeadFilter-DpSuutka.js","assets/SendPropostaDialog-CZXmF-PS.js","assets/postSendEffects-CzOOTCo9.js","assets/rich-text-editor-CSjbCOWC.js","assets/rich-text-editor-BzY4kI8E.css","assets/PropostaFollowUpQuickLog-DMAh4Npj.js","assets/usePaymentReconciliationCockpit-C6trb6Zz.js","assets/PedidosV2-CafTdq6v.js","assets/PedidosExecutiveDashboard-B9eRKBgJ.js","assets/useExecutiveOrdersDashboard-BBXPCVU6.js","assets/ComposedCh
1art-6DBFGJ29.js","assets/PedidosDashboardV3-BRmE-FNB.js","assets/DataTableColumnHeader-DVGMHdxr.js","assets/DataTableViewOptions-B5FqsiOr.js","assets/Comercial360Page-DPv8o5Or.js","assets/FileSaver.min-r5rnkAiE.js","assets/RevenueCommandCenterPage-D7T82MYE.js","assets/salesFlow-BmggkUuj.js","assets/Cupons-DzX4CNd1.js","assets/Automations-DTGTibER.js","assets/AutomationLogs-O_zv8e_c.js","assets/AutomationSendReport-D4-mXoPq.js","assets/lazy-dompurify-BV8GLF1G.js","assets/AutomationDashboard-Nm_Y6d5O.js","assets/AutomationsHub-bFgPBNZ4.js","assets/ScheduleSpecialistSettings-D2ihbdPW.js","assets/CadenceEditor-DrAiDjMa.js","assets/EmailHistory-BhFqcBwR.js","assets/EmailTest-ChxZdgRz.js","assets/CampaignManager-B-AamVqP.js","assets/MassAutomationDialog-nGP06vva.js","assets/Integrations-DdAezIUe.js","assets/useWhatsAppInstances-iVw9xCMZ.js","assets/useDepartments-CwuU3mkR.js","assets/ApiKeyCard-DYSVFsWX.js","assets/StationSyncDashboardPage-Dt76Piuv.js","assets/WebhooksSettings-CxeP9FOK.js","assets/MetaLeadHealth-Dnez2B8V.js","assets/HotjarSettings-IHBfawcz.js","assets/ConnectorControlCenter-B0l3ZVVe.js","assets/KommoSalesAnalytics-KF-4dcJl.js","assets/LeadQualificacaoPage-oe_7AWNz.js","assets/useClosers-9mSt8Ico.js","assets/walkLeadToState-Dz-TFAjg.js","assets/qualificationHandoff-wcddztmi.js","assets/BulkSDRQualifyDialog-DoH8OSkn.js","assets/DecisionMakersPanel-D8GhjJXB.js","assets/apolloCanonicalAccount-BASthXqg.js","assets/CanonicalLeadTemperature-DB9sNUFy.js","assets/LeadQualificacaoPage-CDwadl8H.css","assets/LeadQualificacaoConfigPage-BfZ4fg8y.js","assets/QualificacaoCentralPage-D7xz0wHD.js","assets/LeadCloserPage-D_34Gn4o.js","assets/LeadFontesPage-CORgKMJG.js","assets/ProspectsPage-BDAjlH2b.js","assets/useProspects-DMC5K2Rt.js","assets/useQueries-BSkFo9qh.js","assets/BusinessDiagnosticsPage-C_P1k0vc.js","assets/KommoSellersConfig-BqrZ_rvK.js","assets/Atendimentos-BN0kojLB.js","assets/Affiliates-CzO6iik-.js","assets/SchedulingAppointments-Dz1vDc9f.js","assets/CRM-CsfnTQtQ.js","assets/CRMComercial-3Q1O06VM.js","assets/LeadsHeatmap-JgxnjhgX.js","assets/CRMOperacional-Dbld89I8.js","assets/KommoPipelines-wnv-uKcE.js","assets/useLeadsPedidos-Dvr-sBGc.js","assets/KommoMigration-E8Z9ctsC.js","assets/KommoFieldMapping-CPkYcaTm.js","assets/KommoSyncControlCenter-Cp5xXXe7.js","assets/KommoConversations-DhtzqdFu.js","assets/FunnelConfigPage-CYyMdajx.js","assets/Pipeline-D_OBCh0M.js","assets/CardVisualConfig-dLFRfpZH.js","assets/useLeadsLastInteraction-IFr7Yw60.js","assets/B2BQuickActions-4Oz6yTXa.js","assets/DealRiskPanel-BAguzv9Y.js","assets/useNextRoundRobinSeller-C-_4N8l2.js","assets/useB2BStageSLA-PX5mdnmi.js","assets/PipelineLegadoPage-B2biLATq.js","assets/CloserDashboard-fnRHVBmE.js","assets/DealDetailPage-CjgWFY_w.js","assets/useB2BEnforcer-CyRfE2JL.js","assets/PipelineSettings-DGoexReH.js","assets/PartnerCompanies-CQeD36yY.js","assets/DigitalCourses-BiDV-GR5.js","assets/MaterialUploadDialog-XCxp7YRp.js","assets/PageLayoutConfig-Ce-jHZkI.js","assets/TopMenuManager-C70w6q8A.js","assets/ActionBarConfigPage-BHHnxLqi.js","assets/useActionBarConfig-DU9oQjFa.js","assets/ContractClauses-ZCJWciIQ.js","assets/ContractClausesContent-BxvaM-4H.js","assets/ContractTemplateConfig-DavtEC2x.js","assets/ContractConfigContent-DcN2mxEr.js","assets/ContractTemplates-C0woe6wD.js","assets/FormConfigs-CyvH9Czj.js","assets/FormConfigForm-Da25bCME.js","assets/FormManager-DLke4bfI.js","assets/Subscriptions-BGpGOlZr.js","assets/QuizManager-CzXuo410.js","assets/SalesTeam-H_8om-9l.js","assets/ResendSalesCredentialsDialog-Da-a2mYU.js","assets/useCanonicalSalesReport-T2zyChZp.js","assets/range-DWssokOr.js","assets/EmployeePayrollDialog-cOEhh7GW.js","assets/useEmployeePayroll-CBogz4h1.js","assets/useCostCenters-D0TcO0Av.js","assets/useEmployeePositions-BXawaUDS.js","assets/SalesPlaybook-11U4_UvQ.js","assets/jszip.min-DSGjlIP4.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/SalesBa
1dgeDisplay-BejmsdlP.js","assets/LeadQualificationConfig-Db_fRGnd.js","assets/SalesAutomationConfigDialog-CI9Stng1.js","assets/ScriptsHubMain-CVn1KxNn.js","assets/ScriptsHub-Bi6O4aCd.js","assets/LayoutCenter-1AtcvICi.js","assets/TemplatesCondicoesComerciais-Czdq1kN0.js","assets/RACIMatrix-CFs_KFep.js","assets/Employees-CIN6co_Y.js","assets/TimeClockSettings-djjzfzHy.js","assets/TimeClockReports-BFDgx1ww.js","assets/WorkSchedules-BOSUNWSw.js","assets/ProcessEnrollments-GY31CwS7.js","assets/DREConfig-BLJQTMtS.js","assets/EmployeePayroll-CpceYZlJ.js","assets/useEmployeePayrollList-CiIE6RIq.js","assets/useEmployeeActivities-DNfv2Dkn.js","assets/eachDayOfInterval-ZBLuasfn.js","assets/getDay-6kSPIOlU.js","assets/isWithinInterval--oKDxxJp.js","assets/JobFunctionsConfig-BfbIVII9.js","assets/EmployeeActivities-CwEpkEOF.js","assets/subWeeks-BXRzOh8a.js","assets/OperationsCenter-Bwhtdb-C.js","assets/HRSettings-D1zxZnxH.js","assets/ClienteDetail-z61WMdmA.js","assets/StudentOnboardingConfig-BXomP32B.js","assets/StudentSettings-0CrYCW5T.js","assets/UserManagement-BDAnr3CK.js","assets/AdminUserCreate-D4hlxtXS.js","assets/StudentManagement-BdPRK8t7.js","assets/UserRoles-CZchALaX.js","assets/UnallocatedStudents-CpU8ldDk.js","assets/CallPageLeads-D_-6Kde9.js","assets/AutoCallSettings-D5ALSgV0.js","assets/useBulkCallQueue-7pyamn-V.js","assets/CorporateSubscriptions-D1h8FF1D.js","assets/CorporateSubscriptionsConfig-DsHgbQKl.js","assets/ImplantacoesPage-_jhYGkqG.js","assets/useImplantacoes-CPaRlpKx.js","assets/ImplantacaoDetailPage-Cn5DR6EO.js","assets/useImplantacaoKickoff-Day9O8Lh.js","assets/ImplantacaoKickoffPage-B0qA6tFj.js","assets/ImplantacaoJornadasPage-COwRmMqg.js","assets/TeamPassTrialConfig-CINx26rt.js","assets/useTeamPassTrialSettings-D6_uxuYU.js","assets/TeamPassTrialApprovals-Ch6_elyh.js","assets/useTeamPassTrialRequests-BiGYzpH_.js","assets/TeamPassTrialDashboard-COYRB3a7.js","assets/OrgDesign-BQ7Fvto5.js","assets/TrackingScripts-BAK6Hclq.js","assets/TrackingScriptInjector-BFPro4rR.js","assets/BasicClientAccess-sKvFPCCa.js","assets/SalesDashboard-CBZ5XWUZ.js","assets/InteractiveSalesDashboard-DVLNHZjG.js","assets/useSalesRankingSounds-V-6IJlni.js","assets/differenceInBusinessDays-COuOVUcK.js","assets/isWeekend-bnfqT_-d.js","assets/InteractiveSalesConfig-BubAc79u.js","assets/SalesEcosystem-DqF8OcwJ.js","assets/useIntelligenceData-YBpULVbt.js","assets/ProductivityReport-CxEBiwlb.js","assets/PaymentLinks-2W1PcaR2.js","assets/PaymentLinkRequestDialog-kF8ygTQs.js","assets/SimpleEmailEditor-BFrRKbwQ.js","assets/PaymentLinkRequests-lMFRHXFy.js","assets/PaymentReminderConfig-Zh9-NPx7.js","assets/PaymentConfig-B6WMQO9v.js","assets/VendedorDashboard-C_X8vyjT.js","assets/SalesGoalProgress-Dq0DE1iC.js","assets/ReminderCenterWidget-BBVdmLaf.js","assets/MyDailyQueue-BKTx4YDu.js","assets/SalesCalendar-D7yAAIcA.js","assets/SalesCalendarPage-B6Ex8TEH.js","assets/react-big-calendar-DUANX6F0.js","assets/memoize-one.esm-Csszt2cz.js","assets/omit-DxDEAE1D.js","assets/react-big-calendar-C9ea2X9P.css","assets/isThisWeek-BoZVzGui.js","assets/PowerDialer-C74U2pEa.js","assets/PedidoAlunosAudit-WIbljmGF.js","assets/AtribuicaoReconciliacao-C-8mVkY0.js","assets/ContactIntegrityAudit-ChimOMK2.js","assets/CompanyUserEnrollmentAudit-DKwYVfGF.js","assets/PasswordResetAuditPage-4zUe98xG.js","assets/SalesCalculator-C-9Cp-1Z.js","assets/BillingSimulator-DvIk_fZR.js","assets/PropostasGestao-2ssHPQb3.js","assets/PropostaCommercialActions-Cat8pzRx.js","assets/dnd.esm-Bu86HIsb.js","assets/PropostaNextBestAction-BWGu2tKH.js","assets/PropostaTimelineUnified-Dk67fvc1.js","assets/useProposalSLAConfig-Cyui6zh8.js","assets/suggestTemperature-DdYAyoaR.js","assets/ProposalDocumentActions-CLGEeun9.js","assets/usePropostaFollowUpSummary-B9JrQtHe.js","assets/parseProposalDocument-ByGC5zmo.js","assets/CatalogItemPicker-D6cOyEyo.js","assets/CoachFooter-CXzJX-Vh.js","assets/ProposalAuditTimeline-PklNZOtK.js","assets/useEnrichCompany-C5fsuYWk.js","assets/WarRoomPropostas-BYUPQN5p.js","assets/PropostaSnapshotPage-ooIgrc-8.js","assets/DealDesk-D2yAlRy3.js","assets/ProposalEditor-D5C2TKEG.js","assets/ApprovalBadge-Bz150Erp.js","assets/PropostasAuditPage-D2nuMDWL.js","assets/ProposalFieldMappings-EMEd47ce.js","assets/CertificateConfig-CrLnlAMn.js","assets/CertificatesManager-s_TFFLSS.js","assets/CertificadosAdminPage-GHoNs5pc.js","assets/Suppliers-DbcaFo6u.js","assets/useSuppliers-BruOKB9B.js","assets/AccountsPayable-BSK_j7-i.js","assets/useAccountsPayable-C2pJBuaD.js","assets/useChartOfAccounts-aPJV-2Z9.js","assets/useCashFlowData-BmrYbtTw.js","assets/useAccountsReceivable-CXe7aaPv.js","assets/useSalesForecasts-JDigKnVA.js","assets/AccountsReceivable-BisVj0Eh.js","assets/CostCenters-DXbDAySa.js","assets/ChartOfAccounts-uE4K7C5y.js","assets/CashFlowDashboard-Co-w-H1Y.js","assets/CashFlowKPIs-U0-tcUY_.js","assets/useReceitaGeradaVsPrevista-CzS_zyXH.js","assets/GeneralAnalysisCard-DaYAPMcB.js","assets/chart-C446vqq6.js","assets/useForec
1astIntegrationSettings-Bv-dNT_j.js","assets/CashFlowCenter-CdL8EyzZ.js","assets/ScenarioSimulator-Byo0JY2t.js","assets/TemplatesHub-C22r2-Bi.js","assets/ProposalTemplates-vOYhVTU4.js","assets/FinanceiroDashboard-AK-gEUoX.js","assets/useEmpresasB2BDashboard-D9HI3-vf.js","assets/useCorporateMetrics-DDnKKYEx.js","assets/FinancialReconciliation-DY0nKbPi.js","assets/useFinancialAudit-CDPYFwFG.js","assets/FinancialAuditCenter-CRwNan6Y.js","assets/ReconciliationCenter-k0UJeLJT.js","assets/FinanceCommandCenter-B_7m4ecO.js","assets/RevenueIntelligence-BmXYncsX.js","assets/FinanceForecast-DvK6t3mh.js","assets/useFinanceForecast-V3LmTEUh.js","assets/RevenueCohortAnalysis-DHct9zQK.js","assets/ProfitabilityEngine-DbZcVXSJ.js","assets/MRRDashboard-_RiK8BfS.js","assets/BlackFridayItemsManager-ts7l7VrU.js","assets/BlackFridayEmailMarketing-DK0aTiW8.js","assets/LandingPages-JpHiXvY1.js","assets/Launches-CrDywsgf.js","assets/api-BbGCIVvP.js","assets/LaunchForm-BpuR6mJR.js","assets/AlumniCases-BK9nWpXL.js","assets/LandingPageEditor-DftL7x6I.js","assets/IntelligenceDashboard-CUXmp_sn.js","assets/pipelineHelpers-B_ziR34H.js","assets/RadarComercial-BwMGd2jL.js","assets/ApolloImportDialog-HaEV6d3L.js","assets/ApolloPersonSearch-Dg9DRUXs.js","assets/GovRadar-BF_lpLLj.js","assets/MoneyOnTheTable-BtgJafWQ.js","assets/guardianJustification-CMcv70i_.js","assets/AIKnowledgeBase-CnftWd3k.js","assets/AIAgentManager-D4OSply8.js","assets/AdminChatbotDebug-l13kwz-k.js","assets/DataVerification-D7ruAzZY.js","assets/FunnelBuilder-FFu1x4eP.js","assets/ClosingToolkit-BpEflVts.js","assets/CampaignPlanner-BXlaSsW1.js","assets/MotorPlanejamentoComercial-ChZSUyGa.js","assets/MarketingIntelligencePage-Dwo14HdB.js","assets/exportUtils-C1cRgIC3.js","assets/MarketingCalendar-B0ejGofG.js","assets/StrategicMarketingPlan-2OKxd6n3.js","assets/useStrategicPlanPreview-B9SiI3XT.js","assets/MarketingInvestments-YLXQuIcf.js","assets/MarketingActionPlan-DEZO2rOL.js","assets/ProductFeedGenerator-B4iSLC88.js","assets/LeadReconciliation-CtTrR2Uj.js","assets/PerformanceReport-BQRpQKmc.js","assets/ConversionAuditPage-B4QaxBxI.js","assets/BackfillAttribution-DP5apntL.js","assets/TrackingDebugTest-wmaJs46Y.js","assets/SalesFarming-CfeUx63e.js","assets/useSalesFarming-CJq6B643.js","assets/salesFarming-DgcVr5iY.js","assets/SalesFarmingEditor-Bvq0bXLg.js","assets/ContentSourceSelector-B0D22oq0.js","assets/SalesFarmingMetrics-8TdoeZDT.js","assets/CadenceMonitoringDashboard-BbbphSFo.js","assets/OutboundROIDashboard-C9bYWCGv.js","assets/DailyNewsletter-xep0srLE.js","assets/useDailyNewsletter-Div9iO4y.js","assets/Ambassad
1orProgram-UcG-WaS3.js","assets/TrustedCompaniesAdmin-ClQpUxPZ.js","assets/StudentReferralsAdmin-Z4Y3gRvZ.js","assets/SalesRankingLive-CIs8ERnc.js","assets/ScoringRulesConfig-CFaXoBSb.js","assets/LeadsBoard-EbHLi09o.js","assets/PriorityLeadsReport-B3WAJjDr.js","assets/PriorityConfig-DjXOXd-Z.js","assets/LeadsSettings-CMVexQwy.js","assets/useOutboundOnboardingSteps-Do44jqVV.js","assets/QualificationSlaTab-4VLJCx3e.js","assets/useQualificationSlaSettings-_jp_G1VQ.js","assets/SalesSpeedRankingConfig-C5HQL3Wh.js","assets/LeadFieldsConfig-CKFeXqSe.js","assets/AIPromptsPage-BmZN8mhx.js","assets/AIUsageDashboard-t-QsDruW.js","assets/AIPerformanceDashboard-C7-tAo0m.js","assets/AIFunctionsManager-_G86aD08.js","assets/IACentralPage-CxomM7XC.js","assets/CreateTrialAccess-DatlXZjR.js","assets/TrialManagement-CTjmkqdW.js","assets/EmpresasPage-aOrMG4QT.js","assets/useEmpresaData-DY6TXjK1.js","assets/NewMeetingDialog-SC6C1xko.js","assets/EmpresaDetailPage-BXGl2_gk.js","assets/CorporateJourneysConfig-DEvd64W3.js","assets/ExerciciosCursoPage-BwN31xGG.js","assets/SimuladoEditor-CWeEHe-s.js","assets/QuizPreviewDialog-Cd7w-Kdf.js","assets/EmpresasB2BDashboard-DhNmWZIO.js","assets/B2BDashboard-45o_Kl3U.js","assets/CrmCompaniesPage-BpToBlAr.js","assets/CrmContatosPage-CFepOo0A.js","assets/SitemapGenerator-B1wiW29T.js","assets/DashboardsHub-BFauhSj0.js","assets/AdminSitemap-EJg3UXHZ.js","assets/UnifiedMediaCenter-o7sapUxI.js","assets/MaterialsCenter-C5z5l3PZ.js","assets/ProductCenter-D4ul8z49.js","assets/LearningPathTemplates-Bd8tZHNH.js","assets/AITrackCalendarConfig-src6S1RK.js","assets/ActivityLogs-DvEMmKvg.js","assets/InternalActivityToday-rlN3KtKC.js","assets/AuditLogs-BVoIRvLv.js","assets/SecurityDashboard-fL-TOQ0p.js","assets/PlatformLogs-KIzjwGPv.js","assets/PlatformDocumentation-CXxtag2C.js","assets/SystemPerformance-C4ZyEBUa.js","assets/PlatformAudit-JvAYqTDR.js","assets/DataIntegrity-DkackDl5.js","assets/ResourceMonitor-CwMCZYXi.js","assets/StudentOffers-l-_iXgAB.js","assets/Lixeira-BJhbMy2m.js","assets/SystemMindMap-BXUuuY5T.js","assets/PlatformVersions-FknKhqxk.js","assets/PublicationValidator-D31f9XGg.js","assets/ApiDocumentation-D6LtH4DB.js","assets/AdminManual-SePobqut.js","assets/KnowledgeCenter-D5jRM_Jk.js","assets/InternalAgentChat-CEm8WQaX.js","assets/useInternalAgentAccess-L6Hvd5na.js","assets/InternalAgentHistory-Dxzilmdc.js","assets/MediaAIConfig-CvBn7zzV.js","assets/SystemMessages-69zrYFDN.js","assets/KnowledgePills-cdWpgwwA.js","assets/Backups-C-B9pbpj.js","assets/ITDashboard-DU4Wdc_B.js","assets/useSupportTickets-5Q-HD8MD.js","assets/useITSoftware-CMVc1M_U.js","assets/useITAssets-9NFpz5Ch.js","assets/useITServices-CKDs3Bks.js","assets/SupportTickets-BsKjwOQM.js","assets/routing-D4ZjBU2g.js","assets/SlaBadge-CLeQRuwK.js","assets/TicketDetail-DpzLtKC3.js","assets/useSupportIntelligence-CITYHsmu.js","assets/SupportMonitoring-DBx9Xy6Y.js","assets/SupportTicketConfig-B_-b9QaF.js","assets/ITSoftware-C3xtk0A6.js","assets/ITAssets-BP69GLvN.js","assets/ITServices-BNZzhjYN.js","assets/PermissionsManagement-q94WRDhZ.js","assets/IntegrityBadge-DnoztR0u.js","assets/PermissionsOverview-j_dcfPZq.js","assets/AccessControl-LG3wUbrv.js","assets/InstructorOffers-FU0bXKGp.js","assets/InstructorOfferConfig-BnMBHchc.js","assets/PresentationEmbedsConfig-bdfhhlTF.js","assets/VIPPricingConfig-DdGEjW32.js","assets/RecruitmentDashboard-OanZGmUz.js","assets/useRecruitmentProcesses-DUPa5yVG.js","assets/RecruitmentProcessForm-Bg54YkR9.js","assets/RecruitmentCandidates-CPyiTpcx.js","assets/CandidateEvaluation-1dQS5SDS.js","assets/EvaluationsDashboard-BwdqeK8O.js","assets/ExecutiveDashboard-Mi5qzPao.js","assets/ExecutiveDashboardMtd-CFauQbTV.js","assets/DataBookExecutive-DVw-2zHE.js","assets/useDataBookInputs-BWUbpj62.js","assets/DataBookInputs-Cb4AL9vi.js","assets/ReconciliationOrphans-pO9zNhnm.js","assets/WarRoom-r2E3OdJF.js","assets/DataBrainDashboard-DHD90ysR.js","assets/SellerGamificationPage-DgR70NmF.js","assets/AdminAttendanceManager-BHrZFJlr.js","assets/StudentCenter-CHC6xX6_.js","assets/StudentAreaCenter-BUCqyZJe.js","assets/NotebookLM-jsXUQZcL.js","assets/NotebookLMContentStudio-BrVk6By2.js","assets/YouTubeCRUD-BdXMV60r.js","assets/SalesLearning-Cmr67aaa.js","assets/useSalesLearning-B9lFSb7n.js","assets/learningAudience-DGhG5hVy.js","assets/MandatoryActivitiesConfig-CS3vraud.js","assets/VisualTemplatesGallery-5ofamdf2.js","assets/MoodDashboard-RnkUII8i.js","assets/PlatformUsageDashboard-CNf5ZWYW.js","assets/IdeaHub-DvcgiMmc.js","assets/SuperAdminPanel-Fj9hPhpZ.js","assets/SEOContentManager-CVPyUss0.js","assets/SEOContentEngine-BrkyGs6v.js","assets/AttendanceDashboardPage-CAnEuy9q.js","assets/TrilhaPerfeitaConfig-BbCdsvuS.js","assets/FaqComercialConfig-BqujnZ_U.js","assets/useCommercialFaq-Cg5825K2.js","assets/TestePagamentoAfinz-BeboVXaR.js","assets/StrategicCashFlowDashboard-Dtm6Dp7p.js","assets/hover-card-CNWe7dkC.js","assets/DiretoriaSettings-Dlx6hUe9.js","assets/useWeeklyReports-DzuOPuVR.js","assets/subQuarters-x7qEMLrV.js","assets/ReportsDashboard-DGkr7Dvc.js","assets/PerformanceOrganizacional-OZOchjHo.js","assets/AudienceAI-Cfd-H-02.js","assets/AuditCore-BBupSLIS.js","assets/PedidoItensFormatAudit-Bp2sNm8y.js","assets/LeadsPedidosAuditPage-DjImEUcu.js","assets/CommercialReconciliationPage-C9DnyxSe.js","assets/FormationRateioAudit-DNUWChIa.js","assets/LiveAttendanceAudit-CJ-vBrtE.js","assets/AuditoriaAcessos-G_AiXS1P.js","assets/CSEngineDashboard-BoEGl7Ud.js","assets/CSCompanyDetail-BcpRGuyO.js","assets/LeadEditPage-BYjdc6S4.js","assets/useRecalcLeadScoreV7-0z_hM05M.js","assets/LeadSolutionButton-CZqhCPsz.js","assets/dossier-vbJ_YftP.js","assets/interests-B7fVe6Us.js","assets/api-B32-pckE.js","assets/QuickQualificationEnginePage-BNq4FLl4.js","assets/hooks-CcJyji7E.js","assets/QuickQualificationPrimePage-DWlvmd0B.js","assets/decision-BpdaLvGi.js","assets/useLeadJourneySteps-Bf2CR9eh.js","assets/LeadCloserCockpitPage-BdbetAOV.js","assets/useCloserQueue-KoZHKwhl.js","assets/hooks-HCmUJFeO.js","assets/CentralAcaoComercial-CNsTAuX1.js","assets/CentralMotores-8FEAUALq.js","assets/T360GrowthEngine-DeyTJQEf.js","assets/T360SalesAI-eZjK_5jm.js","assets/T360EducationAI-BeLc8PhA.js","assets/T360Intelligence-Snan33pm.js","assets/TvSalaRegistrar-B-YoO689.js","assets/TvSalaTelao-C_znJ2IB.js","assets/ComercialLayout-BHQUL3HJ.js","assets/useActionQueue-By1TFLpY.js","assets/useWarRoomTrack-CdxAOz6i.js","assets/warRoomFlags-B21NIMJd.js","assets/ComercialDashboardPage-BivX8RYX.js","assets/UpcomingActivitiesBar-B8TLd2EJ.js","assets/KpiCard-HzEgasDK.js","assets/CloserAcceptanceWizard-yT2eN9RM.js","assets/LeadActionsMenu-DwhBwxUu.js","assets/hooks-CAzULizC.js","assets/CockpitComercial-CmrtfqRf.js","assets/ComercialLinksPage-DCM3s1XI.js","assets/ComercialPedidosPage-D3uyFvsw.js","assets/ComercialAgendamentosPage-D2mR1SSg.js","assets/ComercialAdminPage-DToYGoV4.js","assets/ComercialCatalogoPage-DxwXXwzk.js","assets/ComercialPropostasPage-iNwwYmGb.js","assets/ComercialSDRDashboard-DpG724zr.js","assets/SDRFollowupAlerts-Bau3V3ZR.js","assets/ComercialLeadsPage-DGKKIleS.js","assets/MarketingPerformancePage-CiEJRd8Z.js","assets/ComercialEmpresasPage-DXb9My9M.js","assets/ComercialTurmasPage-DGVIu1mj.js","assets/ComercialPlaybookPage-1PM2KNaN.js","assets/ComercialScriptsHubPage-CWSjwxgS.js","assets/ComercialEmentasPage-CHQR7O59.js","assets/ComercialConversoesPage-Dg0Jh0ft.js","assets/ConversionCenter-D4sK3b4Q.js","assets/ComercialPropostasB2BDashboard-DTuYqn5y.js","assets/ComercialAprendizadoPage-CZFxup2_.js","assets/ComercialFaqPage-KKVN7QDW.js","assets/ComercialCloserPage-BAl4QQaR.js","assets/Auditor360Page-rsaGwTl0.js","assets/AuditPrimitives-D5b0iqEH.js","assets/MeuPerformanceReviewPage-CX3mjXmX.js","assets/CentralPropostasPage-BwVX5OcN.js","assets/ComercialAprovacoesPage-BHAFA2P3.js","assets/ComercialAcoesPage-DOwHYstB.js","assets/AcceptanceCenterPage-
1DQBgE4u_.js","assets/ScriptsSapPlaybook2026-CyD1-dLG.js","assets/CrmV2Pipeline-BuLR8qJ6.js","assets/useCrmV2Board-Dd1uy0GW.js","assets/CrmV2FunnelMetricsPage-Bb39gy9g.js","assets/FollowUpPage-f4qpJa2j.js","assets/ComercialPlanejamentoPage-BNgivYhF.js","assets/DailySalesManagerPage-BtbqjBNF.js","assets/GuardiaoAtendimentoPage-EbUhliws.js","assets/SalesCommandCenter-tLIqVvMv.js","assets/SalesCommandCenter-B3-Z4qYj.css","assets/MeuDiaPage-4DWkocxw.js","assets/WarRoomHome-CxKDBcah.js","assets/WarRoomLayoutHeader-DX16SjBA.js","assets/WarRoomPlaybook-gI887qZH.js","assets/WarRoomAssistente-NSFXeinv.js","assets/WarRoomTrilha-BruTdNqk.js","assets/WarRoomCertificados-ChfA2Mun.js","assets/WarRoomGestor-Bst-M4wg.js","assets/missionTypes-Cvt9TpoS.js","assets/WarRoomIngestao-wY6TPvlq.js","assets/WarRoomRoles-BSZPeD6S.js","assets/useRoleTracks-CtoUfIrg.js","assets/WarRoomRoleTrack-UR01hDCF.js","assets/LeadsWorkspacePage-CkHXbdVb.js","assets/referralMissionLead-Df9mMjG8.js","assets/LeadsWorkspacePage-CuwjVQgH.css","assets/LearningExplorer-7P_M9phW.js","assets/taxonomy-e-ZpnQmI.js","assets/LearningExplorer-BzUPeiVW.css","assets/navigation-lNO10gQB.css","assets/print-BrGmdpNp.css","assets/CalendarioV2Preview-DREQUJx4.js","assets/HotjarProvider-BCSZoktW.js","assets/DeferredGlobalComponents-DE3ERqsI.js","assets/FloatingAudioPlayer-CjjrOz11.js","assets/PushNotificationToast-D6t9XVPU.js","assets/ActionBar-B8xIfc8A.js","assets/UtilityHub-CPyQ02kj.js","assets/api-CRcLJKTk.js","assets/UtilityDetail-BHJKhElp.js"])))=>i.map(i=>d[i]); 2import{r as A,u as Y9,w as X9,j as a,R as Ne,b as IA,p as kF,h as b2,c as J,_ as B,x as Z9,y as IF,z as J9,A as eH,l as tH,E as rH}from"./index-CpFQwZLR.js";const nH=(e,t,r,n)=>{const s=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);yu(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...s):console?.warn&&console.warn(...s)},LE={},Ub=(e,t,r,n)=>{yu(r)&&LE[r]||(yu(r)&&(LE[r]=new Date),nH(e,t,r,n))},FF=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},Qb=(e,t,r)=>{e.loadNamespaces(t,FF(e,r))},DE=(e,t,r,n)=>{if(yu(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Qb(e,r,n);r.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,FF(e,n))},aH=(e,t,r={})=>!t.languages||!t.languages.length?(Ub(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,s)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!s(n.isLanguageChangingTo,e))return!1}}),yu=e=>typeof e=="string",sH=e=>typeof e=="object"&&e!==null,oH=A.createContext();class iH{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const lH=(e,t)=>{const r=A.useRef();return A.useEffect(()=>{r.current=e},[e,t]),r.current},TF=(e,t,r,n)=>e.getFixedT(t,r,n),cH=(e,t,r,n)=>A.useCallback(TF(e,t,r,n),[e,t,r,n]),mh=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:s}=A.useContext(oH)||{},o=r||n||X9();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new iH),!o){Ub(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const C=(L,P)=>yu(P)?P:sH(P)&&yu(P.defaultValue)?P.defaultValue:Array.isArray(L)?L[L.length-1]:L,T=[C,{},!1];return T.t=C,T.i18n={},T.ready=!1,T}o.options.react?.wait&&Ub(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...Y9(),...o.options.react,...t},{useSuspense:l,keyPrefix:c}=i;let u=s||o.options?.defaultNS;u=yu(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces?.(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(C=>aH(C,o,i)),f=cH(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),h=()=>f,m=()=>TF(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[g,p]=A.useState(h);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const y=lH(x),b=A.useRef(!0);A.useEffect(()=>{const{bindI18n:C,bindI18nStore:T}=i;b.current=!0,!d&&!l&&(t.lng?DE(o,t.lng,u,()=>{b.current&&p(m)}):Qb(o,u,()=>{b.current&&p(m)})),d&&y&&y!==x&&b.current&&p(m);const L=()=>{b.current&&p(m)};return C&&o?.on(C,L),T&&o?.store.on(T,L),()=>{b.current=!1,o&&C&&C?.split(" ").forEach(P=>o.off(P,L)),T&&o&&T.split(" ").forEach(P=>o.store.off(P,L))}},[o,x]),A.useEffect(()=>{b.current&&d&&p(h)},[o,c,d]);const j=[g,o,d];if(j.t=g,j.i18n=o,j.ready=d,d||!d&&!l)return j;throw new Promise(C=>{t.lng?DE(o,t.lng,u,()=>C()):Qb(o,u,()=>C())})},uH=1,dH=1e6;let xy=0;function AH(){return xy=(xy+1)%Number.MAX_SAFE_INTEGER,xy.toString()}const vy=new Map,RE=e=>{if(vy.has(e))return;const t=setTimeout(()=>{vy.delete(e),am({type:"REMOVE_TOAST",toastId:e})}
2,dH);vy.set(e,t)},fH=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,uH)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?RE(r):e.toasts.forEach(n=>{RE(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},qg=[];let Kg={toasts:[]};function am(e){Kg=fH(Kg,e),qg.forEach(t=>{t(Kg)})}function mH({...e}){const t=AH(),r=s=>am({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>am({type:"DISMISS_TOAST",toastId:t});return am({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function hh(){const[e,t]=A.useState(Kg);return A.useEffect(()=>(qg.push(t),()=>{const r=qg.indexOf(t);r>-1&&qg.splice(r,1)}),[e]),{...e,toast:mH,dismiss:r=>am({type:"DISMISS_TOAST",toastId:r})}}function At(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function ME(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xl(...e){return t=>{let r=!1;const n=e.map(s=>{const o=ME(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():ME(e[s],null)}}}}function er(...e){return A.useCallback(xl(...e),e)}function hH(e,t){const r=A.createContext(t),n=o=>{const{children:i,...l}=o,c=A.useMemo(()=>l,Object.values(l));return a.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function s(o){const i=A.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,s]}function Ha(e,t=[]){let r=[];function n(o,i){const l=A.createContext(i),c=r.length;r=[...r,i];const u=f=>{const{scope:h,children:m,...g}=f,p=h?.[e]?.[c]||l,x=A.useMemo(()=>g,Object.values(g));return a.jsx(p.Provider,{value:x,children:m})};u.displayName=o+"Provider";function d(f,h){const m=h?.[e]?.[c]||l,g=A.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=r.map(i=>A.createContext(i));return function(l){const c=l?.[e]||o;return A.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[n,pH(s,...t)]}function pH(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((l,{useScope:c,scopeName:u})=>{const f=c(o)[`__scope${u}`];return{...l,...f}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function gc(e){const t=gH(e),r=A.forwardRef((n,s)=>{const{children:o,...i}=n,l=A.Children.toArray(o),c=l.find(xH);if(c){const u=c.props.children,d=l.map(f=>f===c?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...i,ref:s,children:A.isValidElement(u)?A.cloneElement(u,void 0,d):null})}return a.jsx(t,{...i,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var w2=gc("Slot");function gH(e){const t=A.forwardRef((r,n)=>{const{children:s,...o}=r;if(A.isValidElement(s)){const i=yH(s),l=vH(o,s.props);return s.type!==A.Fragment&&(l.ref=n?xl(n,i):i),A.cloneElement(s,l)}return A.Children.count(s)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var PF=Symbol("radix.slottable");function LF(e){const t=({children:r})=>a.jsx(a.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=PF,t}function xH(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===PF}function vH(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...l)=>{const c=o(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function yH(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function yx(e){const t=e+"CollectionProvider",[r,n]=Ha(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:x,children:y}=p,b=Ne.useRef(null),j=Ne.useRef(new Map).current;return a.jsx(s,{scope:x,itemMap:j,collectionRef:b,children:y})};i.displayName=t;const l=e+"CollectionSlot",c=gc(l),u=Ne.forwardRef((p,x)=>{const{scope:y,children:b}=p,j=o(l,y),C=er(x,j.collectionRef);return a.jsx(c,{ref:C,children:b})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=gc(d),m=Ne.forwardRef((p,x)=>{const{scope:y,children:b,...j}=p,C=Ne.useRef(null),T=er(x,C),L=o(d,y);return Ne.useEffect(()=>(L.itemMap.set(C,{ref:C,...j}),()=>void L.itemMap.delete(C))),a.jsx(h,{[f]:"",ref:T,children:b})});m.displayName=d;function g(p){const x=o(e+"CollectionConsumer",p);return Ne.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const j=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((L,P)=>j.indexOf(L.ref.current)-j.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},g,n]}var bH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_t=bH.reduce((e,t)=>
2{const r=gc(`Primitive.${t}`),n=A.forwardRef((s,o)=>{const{asChild:i,...l}=s,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _2(e,t){e&&IA.flushSync(()=>e.dispatchEvent(t))}function Bn(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...r)=>t.current?.(...r),[])}function wH(e,t=globalThis?.document){const r=Bn(e);A.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var _H="DismissableLayer",Vb="dismissableLayer.update",CH="dismissableLayer.pointerDownOutside",jH="dismissableLayer.focusOutside",OE,DF=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yu=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...c}=e,u=A.useContext(DF),[d,f]=A.useState(null),h=d?.ownerDocument??globalThis?.document,[,m]=A.useState({}),g=er(t,P=>f(P)),p=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(x),b=d?p.indexOf(d):-1,j=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,T=BH(P=>{const I=P.target,E=[...u.branches].some(O=>O.contains(I));!C||E||(s?.(P),i?.(P),P.defaultPrevented||l?.())},h),L=NH(P=>{const I=P.target;[...u.branches].some(O=>O.contains(I))||(o?.(P),i?.(P),P.defaultPrevented||l?.())},h);return wH(P=>{b===u.layers.size-1&&(n?.(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},h),A.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(OE=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),UE(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=OE)}},[d,h,r,u]),A.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),UE())},[d,u]),A.useEffect(()=>{const P=()=>m({});return document.addEventListener(Vb,P),()=>document.removeEventListener(Vb,P)},[]),a.jsx(_t.div,{...c,ref:g,style:{pointerEvents:j?C?"auto":"none":void 0,...e.style},onFocusCapture:At(e.onFocusCapture,L.onFocusCapture),onBlurCapture:At(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:At(e.onPointerDownCapture,T.onPointerDownCapture)})});Yu.displayName=_H;var EH="DismissableLayerBranch",RF=A.forwardRef((e,t)=>{const r=A.useContext(DF),n=A.useRef(null),s=er(t,n);return A.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),a.jsx(_t.div,{...e,ref:s})});RF.displayName=EH;function BH(e,t=globalThis?.document){const r=Bn(e),n=A.useRef(!1),s=A.useRef(()=>{});return A.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let c=function(){MF(CH,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function NH(e,t=globalThis?.document){const r=Bn(e),n=A.useRef(!1);return A.useEffect(()=>{const s=o=>{o.target&&!n.current&&MF(jH,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function UE(){const e=new CustomEvent(Vb);document.dispatchEvent(e)}function MF(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?_2(s,o):s.dispatchEvent(o)}var SH=Yu,kH=RF,On=globalThis?.document?A.useLayoutEffect:()=>{},IH="Portal",FA=A.forwardRef((e,t)=>{const{container:r,...n}=e,[s,o]=A.useState(!1);On(()=>o(!0),[]);const i=r||s&&globalThis?.document?.body;return i?kF.createPortal(a.jsx(_t.div,{...n,ref:t}),i):null});FA.displayName=IH;function FH(e,t){return A.useReducer((r,n)=>t[r][n]??r,e)}var Na=e=>{const{present:t,children:r}=e,n=TH(t),s=typeof r=="function"?r({present:n.isPresent}):A.Children.only(r),o=er(n.ref,PH(s));return typeof r=="function"||n.isPresent?A.cloneElement(s,{ref:o}):null};Na.displayName="Presence";function TH(e){const[t,r]=A.useState(),n=A.useRef(null),s=A.useRef(e),o=A.useRef("none"),i=e?"mounted":"unmounted",[l,c]=FH(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const u=kp(n.current);o.current=l==="mounted"?u:"none"},[l]),On(()=>{const u=n.current,d=s.current;if(d!==e){const h=o.current,m=kp(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),On(()=>
2{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const p=kp(n.current).includes(m.animationName);if(m.target===t&&p&&(c("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=m=>{m.target===t&&(o.current=kp(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:A.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function kp(e){return e?.animationName||"none"}function PH(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var LH=b2[" useInsertionEffect ".trim().toString()]||On;function Io({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,i]=DH({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:s;{const d=A.useRef(e!==void 0);A.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}const u=A.useCallback(d=>{if(l){const f=RH(d)?d(e):d;f!==e&&i.current?.(f)}else o(d)},[l,e,o,i]);return[c,u]}function DH({defaultProp:e,onChange:t}){const[r,n]=A.useState(e),s=A.useRef(r),o=A.useRef(t);return LH(()=>{o.current=t},[t]),A.useEffect(()=>{s.current!==r&&(o.current?.(r),s.current=r)},[r,s]),[r,n,o]}function RH(e){return typeof e=="function"}var OF=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),MH="VisuallyHidden",bx=A.forwardRef((e,t)=>a.jsx(_t.span,{...e,ref:t,style:{...OF,...e.style}}));bx.displayName=MH;var OH=bx,C2="ToastProvider",[j2,UH,QH]=yx("Toast"),[UF]=Ha("Toast",[QH]),[VH,wx]=UF(C2),QF=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[l,c]=A.useState(null),[u,d]=A.useState(0),f=A.useRef(!1),h=A.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${C2}\`. Expected non-empty \`string\`.`),a.jsx(j2.Provider,{scope:t,children:a.jsx(VH,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:A.useCallback(()=>d(m=>m+1),[]),onToastRemove:A.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};QF.displayName=C2;var VF="ToastViewport",HH=["F8"],Hb="toast.viewportPause",zb="toast.viewportResume",HF=A.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=HH,label:s="Notifications ({hotkey})",...o}=e,i=wx(VF,r),l=UH(r),c=A.useRef(null),u=A.useRef(null),d=A.useRef(null),f=A.useRef(null),h=er(t,f,i.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;A.useEffect(()=>{const x=y=>{n.length!==0&&n.every(j=>y[j]||y.code===j)&&f.current?.focus()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),A.useEffect(()=>{const x=c.current,y=f.current;if(g&&x&&y){const b=()=>{if(!i.isClosePausedRef.current){const L=new CustomEvent(Hb);y.dispatchEvent(L),i.isClosePausedRef.current=!0}},j=()=>
2{if(i.isClosePausedRef.current){const L=new CustomEvent(zb);y.dispatchEvent(L),i.isClosePausedRef.current=!1}},C=L=>{!x.contains(L.relatedTarget)&&j()},T=()=>{x.contains(document.activeElement)||j()};return x.addEventListener("focusin",b),x.addEventListener("focusout",C),x.addEventListener("pointermove",b),x.addEventListener("pointerleave",T),window.addEventListener("blur",b),window.addEventListener("focus",j),()=>{x.removeEventListener("focusin",b),x.removeEventListener("focusout",C),x.removeEventListener("pointermove",b),x.removeEventListener("pointerleave",T),window.removeEventListener("blur",b),window.removeEventListener("focus",j)}}},[g,i.isClosePausedRef]);const p=A.useCallback(({tabbingDirection:x})=>{const b=l().map(j=>{const C=j.ref.current,T=[C,...rz(C)];return x==="forwards"?T:T.reverse()});return(x==="forwards"?b.reverse():b).flat()},[l]);return A.useEffect(()=>{const x=f.current;if(x){const y=b=>{const j=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!j){const T=document.activeElement,L=b.shiftKey;if(b.target===x&&L){u.current?.focus();return}const E=p({tabbingDirection:L?"backwards":"forwards"}),O=E.findIndex(k=>k===T);yy(E.slice(O+1))?b.preventDefault():L?u.current?.focus():d.current?.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[l,p]),a.jsxs(kH,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&a.jsx($b,{ref:u,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"forwards"});yy(x)}}),a.jsx(j2.Slot,{scope:r,children:a.jsx(_t.ol,{tabIndex:-1,...o,ref:h})}),g&&a.jsx($b,{ref:d,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"backwards"});yy(x)}})]})});HF.displayName=VF;var zF="ToastFocusProxy",$b=A.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=wx(zF,r);return a.jsx(bx,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{const l=i.relatedTarget;!o.viewport?.contains(l)&&n()}})});$b.displayName=zF;var ph="Toast",zH="toast.swipeStart",$H="toast.swipeMove",qH="toast.swipeCancel",KH="toast.swipeEnd",$F=A.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=e,[l,c]=Io({prop:n,defaultProp:s??!0,onChange:o,caller:ph});return a.jsx(Na,{present:r||l,children:a.jsx(YH,{open:l,...i,ref:t,onClose:()=>c(!1),onPause:Bn(e.onPause),onResume:Bn(e.onResume),onSwipeStart:At(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:At(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:At(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:At(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});$F.displayName=ph;var[GH,WH]=UF(ph,{onClose(){}}),YH=A.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...g}=e,p=wx(ph,r),[x,y]=A.useState(null),b=er(t,U=>y(U)),j=A.useRef(null),C=A.useRef(null),T=s||p.duration,L=A.useRef(0),P=A.useRef(T),I=A.useRef(0),{onToastAdd:E,onToastRemove:O}=p,k=Bn(()=>{x?.contains(document.activeElement)&&p.viewport?.focus(),i()}),D=A.useCallback(U=>{!U||U===1/0||(window.clearTimeout(I.current),L.current=new Date().getTime(),I.current=window.setTimeout(k,U))},[k]);A.useEffect(()=>{const U=p.viewport;if(U){const ee=()=>{D(P.current),u?.()},ae=()=>{const V=new Date().getTime()-L.current;P.current=P.current-V,window.clearTimeout(I.current),c?.()};return U.addEventListener(Hb,ae),U.addEventListener(zb,ee),()=>{U.removeEventListener(Hb,ae),U.removeEventListener(zb,ee)}}},[p.viewport,T,c,u,D]),A.useEffect(()=>{o&&!p.isClosePausedRef.current&&D(T)},[o,T,p.isClosePausedRef,D]),A.useEffect(()=>(E(),()=>O()),[E,O]);const H=A.useMemo(()=>x?ZF(x):null,[x]);return p.viewport?a.jsxs(a.Fragment,{children:[H&&a.jsx(XH,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),a.jsx(GH,{scope:r,onClose:k,children:IA.createPortal(a.jsx(j2.ItemSlot,{scope:r,children:a.jsx(SH,{asChild:!0,onEscapeKeyDown:At(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||k(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(_t.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection,...g,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:At(e.onKeyDown,U=>{U.key==="Escape"&&(l?.(U.nativeEvent),U.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,k()))}),onPointerDown:At(e.onPointerDown,U=>{U.button===0&&(j.current={x:U.clientX,y:U.clientY})}),onPointerMove:At(e.onPointerMove,U=>{if(!j.current)return;const ee=U.clientX-j.current.x,ae=U.clientY-j.current.y,V=!!C.current,q=["left","right"].includes(p.swipeDirection),G=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Ae=q?G(0,ee):0,se=q?0:G(0,ae),S=U.pointerType==="touch"?10:2,Q={x:Ae,y:se},z={originalEvent:U,delta:Q};V?(C.current=Q,Ip($H,f,z,{discrete:!1})):QE(Q,p.swipeDirection,S)?(C.current=Q,Ip(zH,d,z,{discrete:!1}),U.target.setPointerCapture(U.pointerId)):(Math.abs(ee)>S||Math.abs(ae)>S)&&(j.current=null)}),onPointerUp:At(e.onPointerUp,U=>{const ee=C.current,ae=U.target;if(ae.hasPointerCapture(U.pointerId)&&ae.releasePointerCapture(U.pointerId),C.current=null,j.current=null,ee){const V=U.currentTarget,q={originalEvent:U,delta:ee};QE(ee,p.swipeDirection,p.swipeThreshold)?Ip(KH,m,q,{discrete:!0}):Ip(qH,h,q,{discrete:!0}),V.addEventListener("click",G=>G.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),XH=e=>{const{__scopeToast:t,children:r,...n}=e,s=wx(ph,t),[o,i]=A.useState(!1),[l,c]=A.useState(!1);return ez(()=>i(!0)),A.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(FA,{asChild:!0,children:a.jsx(bx,{...n,children:o&&a.jsxs(a.Fragment,{children:[s.label," ",r]})})})},ZH="ToastTitle",qF=A.forwardRef((e,t)=>
2{const{__scopeToast:r,...n}=e;return a.jsx(_t.div,{...n,ref:t})});qF.displayName=ZH;var JH="ToastDescription",KF=A.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return a.jsx(_t.div,{...n,ref:t})});KF.displayName=JH;var GF="ToastAction",WF=A.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?a.jsx(XF,{altText:r,asChild:!0,children:a.jsx(E2,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${GF}\`. Expected non-empty \`string\`.`),null)});WF.displayName=GF;var YF="ToastClose",E2=A.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=WH(YF,r);return a.jsx(XF,{asChild:!0,children:a.jsx(_t.button,{type:"button",...n,ref:t,onClick:At(e.onClick,s.onClose)})})});E2.displayName=YF;var XF=A.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return a.jsx(_t.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function ZF(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),tz(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...ZF(n))}}),t}function Ip(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?_2(s,o):s.dispatchEvent(o)}var QE=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return t==="left"||t==="right"?o&&n>r:!o&&s>r};function ez(e=()=>{}){const t=Bn(e);On(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function tz(e){return e.nodeType===e.ELEMENT_NODE}function rz(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function yy(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var nz=QF,JF=HF,eT=$F,tT=qF,rT=KF,nT=WF,aT=E2;function sT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=sT(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oT(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=sT(e))&&(n&&(n+=" "),n+=t);return n}const VE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HE=oT,gh=(e,t)=>r=>{var n;if(t?.variants==null)return HE(e,r?.class,r?.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=r?.[u],f=o?.[u];if(d===null)return null;const h=VE(d)||VE(f);return s[u][h]}),l=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(g=>{let[p,x]=g;return Array.isArray(x)?x.includes({...o,...l}[p]):{...o,...l}[p]===x})?[...u,f,h]:u},[]);return HE(e,i,c,r?.class,r?.className)};/** 3 * @license lucide-react v0.462.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const az=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iT=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 8 * @license lucide-react v0.462.0 - ISC 9 * 10 * This source code is licensed under the ISC license. 11 * See the LICENSE file in the root directory of this source tree. 12 */var sz={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"};/** 13 * @license lucide-react v0.462.0 - ISC 14 * 15 * This source code is licensed under the ISC license. 16 * See the LICENSE file in the root directory of this source tree. 17 */const oz=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...l},c)=>A.createElement("svg",{ref:c,...sz,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:iT("lucide",s),...l},[...i.map(([u,d])=>A.createElement(u,d)),...Array.isArray(o)?o:[o]]));/** 18 * @license lucide-react v0.462.0 - ISC 19 * 20 * This source code is licensed under the ISC license. 21 * See the LICENSE file in the root directory of this source tree. 22 */const ve=(e,t)=>
22{const r=A.forwardRef(({className:n,...s},o)=>A.createElement(oz,{ref:o,iconNode:t,className:iT(`lucide-${az(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 23 * @license lucide-react v0.462.0 - ISC 24 * 25 * This source code is licensed under the ISC license. 26 * See the LICENSE file in the root directory of this source tree. 27 */const iz=ve("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 28 * @license lucide-react v0.462.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 */const lz=ve("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);/** 33 * @license lucide-react v0.462.0 - ISC 34 * 35 * This source code is licensed under the ISC license. 36 * See the LICENSE file in the root directory of this source tree. 37 */const cz=ve("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 38 * @license lucide-react v0.462.0 - ISC 39 * 40 * This source code is licensed under the ISC license. 41 * See the LICENSE file in the root directory of this source tree. 42 */const uz=ve("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 43 * @license lucide-react v0.462.0 - ISC 44 * 45 * This source code is licensed under the ISC license. 46 * See the LICENSE file in the root directory of this source tree. 47 */const TA=ve("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 48 * @license lucide-react v0.462.0 - ISC 49 * 50 * This source code is licensed under the ISC license. 51 * See the LICENSE file in the root directory of this source tree. 52 */const _r=ve("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 53 * @license lucide-react v0.462.0 - ISC 54 * 55 * This source code is licensed under the ISC license. 56 * See the LICENSE file in the root directory of this source tree. 57 */const dz=ve("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 58 * @license lucide-react v0.462.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const Az=ve("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 63 * @license lucide-react v0.462.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */const kn=ve("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 68 * @license lucide-react v0.462.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const fz=ve("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** 73 * @license lucide-react v0.462.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const mz=ve("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** 78 * @license lucide-react v0.462.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const Fm=ve("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 83 * @license lucide-react v0.462.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const hz=ve("Bluetooth",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]]);/** 88 * @license lucide-react v0.462.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const Zo=ve("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 93 * @license lucide-react v0.462.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const pz=ve("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 98 * @license lucide-react v0.462.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const gz=ve("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]);/** 103 * @license lucide-react v0.462.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const lT=ve("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 108 * @license lucide-react v0.462.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const xz=ve("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** 113 * @license lucide-react v0.462.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const vl=ve("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 118 * @license lucide-react v0.462.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const zs=ve("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 123 * @license lucide-react v0.462.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const qb=ve("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
127],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/** 128 * @license lucide-react v0.462.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const Ra=ve("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 133 * @license lucide-react v0.462.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const vz=ve("CalendarCheck2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"bce9hv"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]]);/** 138 * @license lucide-react v0.462.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const yz=ve("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 143 * @license lucide-react v0.462.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const dn=ve("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 148 * @license lucide-react v0.462.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const bz=ve("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 153 * @license lucide-react v0.462.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const wz=ve("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/** 158 * @license lucide-react v0.462.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const _z=ve("Cast",[["path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6",key:"3zrzxg"}],["path",{d:"M2 12a9 9 0 0 1 8 8",key:"g6cvee"}],["path",{d:"M2 16a5 5 0 0 1 4 4",key:"1y1dii"}],["line",{x1:"2",x2:"2.01",y1:"20",y2:"20",key:"xu2jvo"}]]);/** 163 * @license lucide-react v0.462.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const Cz=ve("Cat",[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]]);/** 168 * @license lucide-react v0.462.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const _x=ve("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 173 * @license lucide-react v0.462.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const jz=ve("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 178 * @license lucide-react v0.462.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const Ez=ve("ChartNoAxesColumnIncreasing",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}
182],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);/** 183 * @license lucide-react v0.462.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const Bz=ve("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/** 188 * @license lucide-react v0.462.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const Nz=ve("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 193 * @license lucide-react v0.462.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const $s=ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 198 * @license lucide-react v0.462.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const rs=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 203 * @license lucide-react v0.462.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const Jd=ve("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 208 * @license lucide-react v0.462.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const Vs=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 213 * @license lucide-react v0.462.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const cT=ve("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 218 * @license lucide-react v0.462.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const Cx=ve("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 223 * @license lucide-react v0.462.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const Vf=ve("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 228 * @license lucide-react v0.462.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const ss=ve("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 233 * @license lucide-react v0.462.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const Sz=ve("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 238 * @license lucide-react v0.462.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const uT=ve("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 243 * @license lucide-react v0.462.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const kz=ve("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 248 * @license lucide-react v0.462.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const B2=ve("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 253 * @license lucide-react v0.462.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const dT=ve("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 258 * @license lucide-react v0.462.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree.
262 */const Iz=ve("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 263 * @license lucide-react v0.462.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const AT=ve("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 268 * @license lucide-react v0.462.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const Vr=ve("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 273 * @license lucide-react v0.462.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const fT=ve("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 278 * @license lucide-react v0.462.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const mT=ve("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 283 * @license lucide-react v0.462.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const Fz=ve("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/** 288 * @license lucide-react v0.462.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const hT=ve("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/** 293 * @license lucide-react v0.462.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const Tz=ve("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 298 * @license lucide-react v0.462.0 - ISC 299 * 300 * This source code is licensed under the ISC license. 301 * See the LICENSE file in the root directory of this source tree. 302 */const pT=ve("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 303 * @license lucide-react v0.462.0 - ISC 304 * 305 * This source code is licensed under the ISC license. 306 * See the LICENSE file in the root directory of this source tree. 307 */const Pz=ve("Component",[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]]);/** 308 * @license lucide-react v0.462.0 - ISC 309 * 310 * This source code is licensed under the ISC license. 311 * See the LICENSE file in the root directory of this source tree.
312 */const PA=ve("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 313 * @license lucide-react v0.462.0 - ISC 314 * 315 * This source code is licensed under the ISC license. 316 * See the LICENSE file in the root directory of this source tree. 317 */const Lz=ve("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 318 * @license lucide-react v0.462.0 - ISC 319 * 320 * This source code is licensed under the ISC license. 321 * See the LICENSE file in the root directory of this source tree. 322 */const N2=ve("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 323 * @license lucide-react v0.462.0 - ISC 324 * 325 * This source code is licensed under the ISC license. 326 * See the LICENSE file in the root directory of this source tree. 327 */const jx=ve("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 328 * @license lucide-react v0.462.0 - ISC 329 * 330 * This source code is licensed under the ISC license. 331 * See the LICENSE file in the root directory of this source tree. 332 */const gT=ve("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 333 * @license lucide-react v0.462.0 - ISC 334 * 335 * This source code is licensed under the ISC license. 336 * See the LICENSE file in the root directory of this source tree. 337 */const Dz=ve("Dog",[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]]);/** 338 * @license lucide-react v0.462.0 - ISC 339 * 340 * This source code is licensed under the ISC license. 341 * See the LICENSE file in the root directory of this source tree. 342 */const xT=ve("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 343 * @license lucide-react v0.462.0 - ISC 344 * 345 * This source code is licensed under the ISC license. 346 * See the LICENSE file in the root directory of this source tree. 347 */const S2=ve("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 348 * @license lucide-react v0.462.0 - ISC 349 * 350 * This source code is licensed under the ISC license. 351 * See the LICENSE file in the root directory of this source tree. 352 */const Rz=ve("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** 353 * @license lucide-react v0.462.0 - ISC 354 * 355 * This source code is licensed under the ISC license. 356 * See the LICENSE file in the root directory of this source tree. 357 */const Iu=ve("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 358 * @license lucide-react v0.462.0 - ISC 359 * 360 * This source code is licensed under the ISC license. 361 * See the LICENSE file in the root directory of this source tree. 362 */const Mz=ve("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 363 * @license lucide-react v0.462.0 - ISC 364 * 365 * This source code is licensed under the ISC license. 366 * See the LICENSE file in the root directory of this source tree. 367 */const k2=ve("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 368 * @license lucide-react v0.462.0 - ISC 369 * 370 * This source code is licensed under the ISC license. 371 * See the LICENSE file in the root directory of this source tree. 372 */const Oz=ve("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 373 * @license lucide-react v0.462.0 - ISC 374 * 375 * This source code is licensed under the ISC license. 376 * See the LICENSE file in the root directory of this source tree. 377 */const Uz=ve("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/** 378 * @license lucide-react v0.462.0 - ISC 379 * 380 * This source code is licensed under the ISC license. 381 * See the LICENSE file in the root directory of this source tree. 382 */const Qz=ve("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",ke
382y:"1mlx9k"}]]);/** 383 * @license lucide-react v0.462.0 - ISC 384 * 385 * This source code is licensed under the ISC license. 386 * See the LICENSE file in the root directory of this source tree. 387 */const hA=ve("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 388 * @license lucide-react v0.462.0 - ISC 389 * 390 * This source code is licensed under the ISC license. 391 * See the LICENSE file in the root directory of this source tree. 392 */const Vz=ve("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/** 393 * @license lucide-react v0.462.0 - ISC 394 * 395 * This source code is licensed under the ISC license. 396 * See the LICENSE file in the root directory of this source tree. 397 */const Hz=ve("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** 398 * @license lucide-react v0.462.0 - ISC 399 * 400 * This source code is licensed under the ISC license. 401 * See the LICENSE file in the root directory of this source tree. 402 */const zz=ve("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);/** 403 * @license lucide-react v0.462.0 - ISC 404 * 405 * This source code is licensed under the ISC license. 406 * See the LICENSE file in the root directory of this source tree. 407 */const $z=ve("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);/** 408 * @license lucide-react v0.462.0 - ISC 409 * 410 * This source code is licensed under the ISC license. 411 * See the LICENSE file in the root directory of this source tree. 412 */const vi=ve("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** 413 * @license lucide-react v0.462.0 - ISC 414 * 415 * This source code is licensed under the ISC license. 416 * See the LICENSE file in the root directory of this source tree. 417 */const vT=ve("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 418 * @license lucide-react v0.462.0 - ISC 419 * 420 * This source code is licensed under the ISC license. 421 * See the LICENSE file in the root directory of this source tree. 422 */const qz=ve("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** 423 * @license lucide-react v0.462.0 - ISC 424 * 425 * This source code is licensed under the ISC license. 426 * See the LICENSE file in the root directory of this source tree. 427 */const Kz=ve("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 428 * @license lucide-react v0.462.0 - ISC 429 * 430 * This source code is licensed under the ISC license. 431 * See the LICENSE file in the root directory of this source tree. 432 */const Gz=ve("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/** 433 * @license lucide-react v0.462.0 - ISC 434 * 435 * This source code is licensed under the ISC license. 436 * See the LICENSE file in the root directory of this source tree. 437 */const Fu=ve("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 438 * @license lucide-react v0.462.0 - ISC 439 * 440 * This source code is licensed under the ISC license. 441 * See the LICENSE file in the root directory of this source tree. 442 */const Wz=ve("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 443 * @license lucide-react v0.462.0 - ISC 444 * 445 * This source code is licensed under the ISC license. 446 * See the LICENSE file in the root directory of this source tree. 447 */const yT=ve("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 448 * @license lucide-react v0.462.0 - ISC 449 * 450 * This source code is licensed under the ISC license. 451 * See the LICENSE file in the root directory of this source tree. 452 */const Mn=ve("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 453 * @license lucide-react v0.462.0 - ISC 454 * 455 * This source code is licensed under the ISC license. 456 * See the LICENSE file in the root directory of this source tree. 457 */const Yz=ve("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 458 * @license lucide-react v0.462.0 - ISC 459 * 460 * This source code is licensed under the ISC license. 461 * See the LICENSE file in the root directory of this source tree. 462 */const Xz=ve("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/** 463 * @license lucide-react v0.462.0 - ISC 464 * 465 * This source code is licensed under the ISC license. 466 * See the LICENSE file in the root directory of this source tree. 467 */const Zz=ve("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}
467]]);/** 468 * @license lucide-react v0.462.0 - ISC 469 * 470 * This source code is licensed under the ISC license. 471 * See the LICENSE file in the root directory of this source tree. 472 */const Jz=ve("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/** 473 * @license lucide-react v0.462.0 - ISC 474 * 475 * This source code is licensed under the ISC license. 476 * See the LICENSE file in the root directory of this source tree. 477 */const e$=ve("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 478 * @license lucide-react v0.462.0 - ISC 479 * 480 * This source code is licensed under the ISC license. 481 * See the LICENSE file in the root directory of this source tree. 482 */const t$=ve("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 483 * @license lucide-react v0.462.0 - ISC 484 * 485 * This source code is licensed under the ISC license. 486 * See the LICENSE file in the root directory of this source tree. 487 */const r$=ve("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/** 488 * @license lucide-react v0.462.0 - ISC 489 * 490 * This source code is licensed under the ISC license. 491 * See the LICENSE file in the root directory of this source tree. 492 */const Ex=ve("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 493 * @license lucide-react v0.462.0 - ISC 494 * 495 * This source code is licensed under the ISC license. 496 * See the LICENSE file in the root directory of this source tree. 497 */const n$=ve("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 498 * @license lucide-react v0.462.0 - ISC 499 * 500 * This source code is licensed under the ISC license. 501 * See the LICENSE file in the root directory of this source tree. 502 */const a$=ve("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 503 * @license lucide-react v0.462.0 - ISC 504 * 505 * This source code is licensed under the ISC license. 506 * See the LICENSE file in the root directory of this source tree. 507 */const bT=ve("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 508 * @license lucide-react v0.462.0 - ISC 509 * 510 * This source code is licensed under the ISC license. 511 * See the LICENSE file in the root directory of this source tree. 512 */const s$=ve("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 513 * @license lucide-react v0.462.0 - ISC 514 * 515 * This source code is licensed under the ISC license. 516 * See the LICENSE file in the root directory of this source tree. 517 */const wT=ve("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** 518 * @license lucide-react v0.462.0 - ISC 519 * 520 * This source code is licensed under the ISC license. 521 * See the LICENSE file in the root directory of this source tree. 522 */const o$=ve("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** 523 * @license lucide-react v0.462.0 - ISC 524 * 525 * This source code is licensed under the ISC license. 526 * See the LICENSE file in the root directory of this source tree. 527 */const xh=ve("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 528 * @license lucide-react v0.462.0 - ISC 529 * 530 * This source code is licensed under the ISC license. 531 * See the LICENSE file in the root directory of this source tree. 532 */const i$=ve("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 533 * @license lucide-react v0.462.0 - ISC 534 * 535 * This source code is licensed under the ISC license. 536 * See the LICENSE file in the root directory of this source tree. 537 */const l$=ve("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);/** 538 * @license lucide-react v0.462.0 - ISC 539 * 540 * This source code is licensed under the ISC license. 541 * See the LICENSE file in the root directory of this source tree. 542 */const c$=ve("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 543 * @license lucide-react v0.462.0 - ISC 544 * 545 * This source code is licensed under the ISC license. 546 * See the LICENSE file in the root directory of this source tree. 547 */const Tm=ve("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 548 * @license lucide-react v0.462.0 - ISC 549 * 550 * This source code is licensed under the ISC license. 551 * See the LICENSE file in the root directory of this source tree.
552 */const Bx=ve("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 553 * @license lucide-react v0.462.0 - ISC 554 * 555 * This source code is licensed under the ISC license. 556 * See the LICENSE file in the root directory of this source tree. 557 */const u$=ve("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 558 * @license lucide-react v0.462.0 - ISC 559 * 560 * This source code is licensed under the ISC license. 561 * See the LICENSE file in the root directory of this source tree. 562 */const _T=ve("Linkedin",[["path",{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",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 563 * @license lucide-react v0.462.0 - ISC 564 * 565 * This source code is licensed under the ISC license. 566 * See the LICENSE file in the root directory of this source tree. 567 */const CT=ve("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 568 * @license lucide-react v0.462.0 - ISC 569 * 570 * This source code is licensed under the ISC license. 571 * See the LICENSE file in the root directory of this source tree. 572 */const $r=ve("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 573 * @license lucide-react v0.462.0 - ISC 574 * 575 * This source code is licensed under the ISC license. 576 * See the LICENSE file in the root directory of this source tree. 577 */const Nx=ve("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 578 * @license lucide-react v0.462.0 - ISC 579 * 580 * This source code is licensed under the ISC license. 581 * See the LICENSE file in the root directory of this source tree. 582 */const Kb=ve("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 583 * @license lucide-react v0.462.0 - ISC 584 * 585 * This source code is licensed under the ISC license. 586 * See the LICENSE file in the root directory of this source tree. 587 */const zE=ve("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 588 * @license lucide-react v0.462.0 - ISC 589 * 590 * This source code is licensed under the ISC license. 591 * See the LICENSE file in the root directory of this source tree. 592 */const mo=ve("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 593 * @license lucide-react v0.462.0 - ISC 594 * 595 * This source code is licensed under the ISC license. 596 * See the LICENSE file in the root directory of this source tree. 597 */const Sx=ve("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 598 * @license lucide-react v0.462.0 - ISC 599 * 600 * This source code is licensed under the ISC license. 601 * See the LICENSE file in the root directory of this source tree. 602 */const d$=ve("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 603 * @license lucide-react v0.462.0 - ISC 604 * 605 * This source code is licensed under the ISC license. 606 * See the LICENSE file in the root directory of this source tree.
607 */const by=ve("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 608 * @license lucide-react v0.462.0 - ISC 609 * 610 * This source code is licensed under the ISC license. 611 * See the LICENSE file in the root directory of this source tree. 612 */const A$=ve("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** 613 * @license lucide-react v0.462.0 - ISC 614 * 615 * This source code is licensed under the ISC license. 616 * See the LICENSE file in the root directory of this source tree. 617 */const jT=ve("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 618 * @license lucide-react v0.462.0 - ISC 619 * 620 * This source code is licensed under the ISC license. 621 * See the LICENSE file in the root directory of this source tree. 622 */const qs=ve("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 623 * @license lucide-react v0.462.0 - ISC 624 * 625 * This source code is licensed under the ISC license. 626 * See the LICENSE file in the root directory of this source tree. 627 */const Tu=ve("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 628 * @license lucide-react v0.462.0 - ISC 629 * 630 * This source code is licensed under the ISC license. 631 * See the LICENSE file in the root directory of this source tree. 632 */const f$=ve("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 633 * @license lucide-react v0.462.0 - ISC 634 * 635 * This source code is licensed under the ISC license. 636 * See the LICENSE file in the root directory of this source tree. 637 */const m$=ve("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 638 * @license lucide-react v0.462.0 - ISC 639 * 640 * This source code is licensed under the ISC license. 641 * See the LICENSE file in the root directory of this source tree. 642 */const h$=ve("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 643 * @license lucide-react v0.462.0 - ISC 644 * 645 * This source code is licensed under the ISC license. 646 * See the LICENSE file in the root directory of this source tree. 647 */const cl=ve("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 648 * @license lucide-react v0.462.0 - ISC 649 * 650 * This source code is licensed under the ISC license. 651 * See the LICENSE file in the root directory of this source tree. 652 */const sm=ve("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 653 * @license lucide-react v0.462.0 - ISC 654 * 655 * This source code is licensed under the ISC license. 656 * See the LICENSE file in the root directory of this source tree. 657 */const p$=ve("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 658 * @license lucide-react v0.462.0 - ISC 659 * 660 * This source code is licensed under the ISC license. 661 * See the LICENSE file in the root directory of this source tree. 662 */const g$=ve("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/** 663 * @license lucide-react v0.462.0 - ISC 664 * 665 * This source code is licensed under the ISC license. 666 * See the LICENSE file in the root directory of this source tree. 667 */const x$=ve("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 668 * @license lucide-react v0.462.0 - ISC 669 * 670 * This source code is licensed under the ISC license. 671 * See the LICENSE file in the root directory of this source tree. 672 */const I2=ve("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** 673 * @license lucide-react v0.462.0 - ISC 674 * 675 * This source code is licensed under the ISC license. 676 * See the LICENSE file in the root directory of this source tree. 677 */const v$=ve("Octagon",[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]]);/** 678 * @license lucide-react v0.462.0 - ISC 679 * 680 * This source code is licensed under the ISC license. 681 * See the LICENSE file in the root directory of this source tree. 682 */const F2=ve("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 683 * @license lucide-react v0.462.0 - ISC 684 * 685 * This source code is licensed under the ISC license. 686 * See the LICENSE file in the root directory of this source tree. 687 */const y$=ve("Paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",ke
687y:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/** 688 * @license lucide-react v0.462.0 - ISC 689 * 690 * This source code is licensed under the ISC license. 691 * See the LICENSE file in the root directory of this source tree. 692 */const ET=ve("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 693 * @license lucide-react v0.462.0 - ISC 694 * 695 * This source code is licensed under the ISC license. 696 * See the LICENSE file in the root directory of this source tree. 697 */const Gb=ve("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 698 * @license lucide-react v0.462.0 - ISC 699 * 700 * This source code is licensed under the ISC license. 701 * See the LICENSE file in the root directory of this source tree. 702 */const b$=ve("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/** 703 * @license lucide-react v0.462.0 - ISC 704 * 705 * This source code is licensed under the ISC license. 706 * See the LICENSE file in the root directory of this source tree. 707 */const T2=ve("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/** 708 * @license lucide-react v0.462.0 - ISC 709 * 710 * This source code is licensed under the ISC license. 711 * See the LICENSE file in the root directory of this source tree. 712 */const w$=ve("Pentagon",[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]]);/** 713 * @license lucide-react v0.462.0 - ISC 714 * 715 * This source code is licensed under the ISC license. 716 * See the LICENSE file in the root directory of this source tree. 717 */const _$=ve("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 718 * @license lucide-react v0.462.0 - ISC 719 * 720 * This source code is licensed under the ISC license. 721 * See the LICENSE file in the root directory of this source tree. 722 */const $E=ve("PhoneCall",[["path",{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",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/** 723 * @license lucide-react v0.462.0 - ISC 724 * 725 * This source code is licensed under the ISC license. 726 * See the LICENSE file in the root directory of this source tree. 727 */const Pu=ve("Phone",[["path",{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",key:"foiqr5"}]]);/** 728 * @license lucide-react v0.462.0 - ISC 729 * 730 * This source code is licensed under the ISC license. 731 * See the LICENSE file in the root directory of this source tree. 732 */const C$=ve("PiggyBank",[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]]);/** 733 * @license lucide-react v0.462.0 - ISC 734 * 735 * This source code is licensed under the ISC license. 736 * See the LICENSE file in the root directory of this source tree. 737 */const j$=ve("Pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]);/** 738 * @license lucide-react v0.462.0 - ISC 739 * 740 * This source code is licensed under the ISC license. 741 * See the LICENSE file in the root directory of this source tree. 742 */const E$=ve("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
7421-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/** 743 * @license lucide-react v0.462.0 - ISC 744 * 745 * This source code is licensed under the ISC license. 746 * See the LICENSE file in the root directory of this source tree. 747 */const Pm=ve("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 748 * @license lucide-react v0.462.0 - ISC 749 * 750 * This source code is licensed under the ISC license. 751 * See the LICENSE file in the root directory of this source tree. 752 */const BT=ve("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 753 * @license lucide-react v0.462.0 - ISC 754 * 755 * This source code is licensed under the ISC license. 756 * See the LICENSE file in the root directory of this source tree. 757 */const B$=ve("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 758 * @license lucide-react v0.462.0 - ISC 759 * 760 * This source code is licensed under the ISC license. 761 * See the LICENSE file in the root directory of this source tree. 762 */const N$=ve("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** 763 * @license lucide-react v0.462.0 - ISC 764 * 765 * This source code is licensed under the ISC license. 766 * See the LICENSE file in the root directory of this source tree. 767 */const S$=ve("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/** 768 * @license lucide-react v0.462.0 - ISC 769 * 770 * This source code is licensed under the ISC license. 771 * See the LICENSE file in the root directory of this source tree. 772 */const k$=ve("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 773 * @license lucide-react v0.462.0 - ISC 774 * 775 * This source code is licensed under the ISC license. 776 * See the LICENSE file in the root directory of this source tree. 777 */const I$=ve("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 778 * @license lucide-react v0.462.0 - ISC 779 * 780 * This source code is licensed under the ISC license. 781 * See the LICENSE file in the root directory of this source tree. 782 */const F$=ve("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/** 783 * @license lucide-react v0.462.0 - ISC 784 * 785 * This source code is licensed under the ISC license. 786 * See the LICENSE file in the root directory of this source tree. 787 */const xc=ve("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 788 * @license lucide-react v0.462.0 - ISC 789 * 790 * This source code is licensed under the ISC license. 791 * See the LICENSE file in the root directory of this source tree. 792 */const T$=ve("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/** 793 * @license lucide-react v0.462.0 - ISC 794 * 795 * This source code is licensed under the ISC license. 796 * See the LICENSE file in the root directory of this source tree. 797 */const LA=ve("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
797kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 798 * @license lucide-react v0.462.0 - ISC 799 * 800 * This source code is licensed under the ISC license. 801 * See the LICENSE file in the root directory of this source tree. 802 */const NT=ve("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 803 * @license lucide-react v0.462.0 - ISC 804 * 805 * This source code is licensed under the ISC license. 806 * See the LICENSE file in the root directory of this source tree. 807 */const P$=ve("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 808 * @license lucide-react v0.462.0 - ISC 809 * 810 * This source code is licensed under the ISC license. 811 * See the LICENSE file in the root directory of this source tree. 812 */const ST=ve("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 813 * @license lucide-react v0.462.0 - ISC 814 * 815 * This source code is licensed under the ISC license. 816 * See the LICENSE file in the root directory of this source tree. 817 */const vc=ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 818 * @license lucide-react v0.462.0 - ISC 819 * 820 * This source code is licensed under the ISC license. 821 * See the LICENSE file in the root directory of this source tree. 822 */const kT=ve("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 823 * @license lucide-react v0.462.0 - ISC 824 * 825 * This source code is licensed under the ISC license. 826 * See the LICENSE file in the root directory of this source tree. 827 */const L$=ve("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** 828 * @license lucide-react v0.462.0 - ISC 829 * 830 * This source code is licensed under the ISC license. 831 * See the LICENSE file in the root directory of this source tree. 832 */const D$=ve("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 833 * @license lucide-react v0.462.0 - ISC 834 * 835 * This source code is licensed under the ISC license. 836 * See the LICENSE file in the root directory of this source tree. 837 */const Gg=ve("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 838 * @license lucide-react v0.462.0 - ISC 839 * 840 * This source code is licensed under the ISC license. 841 * See the LICENSE file in the root directory of this source tree. 842 */const IT=ve("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 843 * @license lucide-react v0.462.0 - ISC 844 * 845 * This source code is licensed under the ISC license. 846 * See the LICENSE file in the root directory of this source tree. 847 */const R$=ve("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
847y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 848 * @license lucide-react v0.462.0 - ISC 849 * 850 * This source code is licensed under the ISC license. 851 * See the LICENSE file in the root directory of this source tree. 852 */const P2=ve("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 853 * @license lucide-react v0.462.0 - ISC 854 * 855 * This source code is licensed under the ISC license. 856 * See the LICENSE file in the root directory of this source tree. 857 */const _i=ve("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 858 * @license lucide-react v0.462.0 - ISC 859 * 860 * This source code is licensed under the ISC license. 861 * See the LICENSE file in the root directory of this source tree.
862 */const M$=ve("Ship",[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]]);/** 863 * @license lucide-react v0.462.0 - ISC 864 * 865 * This source code is licensed under the ISC license. 866 * See the LICENSE file in the root directory of this source tree. 867 */const O$=ve("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 868 * @license lucide-react v0.462.0 - ISC 869 * 870 * This source code is licensed under the ISC license. 871 * See the LICENSE file in the root directory of this source tree. 872 */const U$=ve("Siren",[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]]);/** 873 * @license lucide-react v0.462.0 - ISC 874 * 875 * This source code is licensed under the ISC license. 876 * See the LICENSE file in the root directory of this source tree. 877 */const Q$=ve("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** 878 * @license lucide-react v0.462.0 - ISC 879 * 880 * This source code is licensed under the ISC license. 881 * See the LICENSE file in the root directory of this source tree. 882 */const FT=ve("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** 883 * @license lucide-react v0.462.0 - ISC 884 * 885 * This source code is licensed under the ISC license. 886 * See the LICENSE file in the root directory of this source tree. 887 */const V$=ve("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 888 * @license lucide-react v0.462.0 - ISC 889 * 890 * This source code is licensed under the ISC license. 891 * See the LICENSE file in the root directory of this source tree. 892 */const H$=ve("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 893 * @license lucide-react v0.462.0 - ISC 894 * 895 * This source code is licensed under the ISC license. 896 * See the LICENSE file in the root directory of this source tree. 897 */const z$=ve("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/** 898 * @license lucide-react v0.462.0 - ISC 899 * 900 * This source code is licensed under the ISC license. 901 * See the LICENSE file in the root directory of this source tree. 902 */const Nr=ve("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"}]]);/** 903 * @license lucide-react v0.462.0 - ISC 904 * 905 * This source code is licensed under the ISC license. 906 * See the LICENSE file in the root directory of this source tree. 907 */const $$=ve("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 908 * @license lucide-react v0.462.0 - ISC 909 * 910 * This source code is licensed under the ISC license. 911 * See the LICENSE file in the root directory of this source tree. 912 */const q$=ve("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 913 * @license lucide-react v0.462.0 - ISC 914 * 915 * This source code is licensed under the ISC license. 916 * See the LICENSE file in the root directory of this source tree. 917 */const os=ve("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 918 * @license lucide-react v0.462.0 - ISC 919 * 920 * This source code is licensed under the ISC license. 921 * See the LICENSE file in the root directory of this source tree.
922 */const K$=ve("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 923 * @license lucide-react v0.462.0 - ISC 924 * 925 * This source code is licensed under the ISC license. 926 * See the LICENSE file in the root directory of this source tree. 927 */const om=ve("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 928 * @license lucide-react v0.462.0 - ISC 929 * 930 * This source code is licensed under the ISC license. 931 * See the LICENSE file in the root directory of this source tree. 932 */const G$=ve("Sunset",[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/** 933 * @license lucide-react v0.462.0 - ISC 934 * 935 * This source code is licensed under the ISC license. 936 * See the LICENSE file in the root directory of this source tree. 937 */const W$=ve("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/** 938 * @license lucide-react v0.462.0 - ISC 939 * 940 * This source code is licensed under the ISC license. 941 * See the LICENSE file in the root directory of this source tree. 942 */const Y$=ve("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/** 943 * @license lucide-react v0.462.0 - ISC 944 * 945 * This source code is licensed under the ISC license. 946 * See the LICENSE file in the root directory of this source tree. 947 */const L2=ve("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 948 * @license lucide-react v0.462.0 - ISC 949 * 950 * This source code is licensed under the ISC license. 951 * See the LICENSE file in the root directory of this source tree. 952 */const X$=ve("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/** 953 * @license lucide-react v0.462.0 - ISC 954 * 955 * This source code is licensed under the ISC license. 956 * See the LICENSE file in the root directory of this source tree. 957 */const Lu=ve("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 958 * @license lucide-react v0.462.0 - ISC 959 * 960 * This source code is licensed under the ISC license. 961 * See the LICENSE file in the root directory of this source tree. 962 */const Z$=ve("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** 963 * @license lucide-react v0.462.0 - ISC 964 * 965 * This source code is licensed under the ISC license. 966 * See the LICENSE file in the root directory of this source tree. 967 */const J$=ve("ThermometerSun",[["path",{d:"M12 9a4 4 0 0 0-2 7.5",key:"1jvsq6"}],["path",{d:"M12 3v2",key:"1w22ol"}],["path",{d:"m6.6 18.4-1.4 1.4",key:"w2yidj"}],["path",{d:"M20 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"iof6y5"}],["path",{d:"M4 13H2",key:"118le4"}],["path",{d:"M6.34 7.34 4.93 5.93",key:"1brd51"}
967]]);/** 968 * @license lucide-react v0.462.0 - ISC 969 * 970 * This source code is licensed under the ISC license. 971 * See the LICENSE file in the root directory of this source tree. 972 */const eq=ve("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** 973 * @license lucide-react v0.462.0 - ISC 974 * 975 * This source code is licensed under the ISC license. 976 * See the LICENSE file in the root directory of this source tree. 977 */const tq=ve("TramFront",[["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m18 22-2-3",key:"1p0ohu"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}]]);/** 978 * @license lucide-react v0.462.0 - ISC 979 * 980 * This source code is licensed under the ISC license. 981 * See the LICENSE file in the root directory of this source tree. 982 */const TT=ve("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 983 * @license lucide-react v0.462.0 - ISC 984 * 985 * This source code is licensed under the ISC license. 986 * See the LICENSE file in the root directory of this source tree. 987 */const rq=ve("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 988 * @license lucide-react v0.462.0 - ISC 989 * 990 * This source code is licensed under the ISC license. 991 * See the LICENSE file in the root directory of this source tree. 992 */const ls=ve("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 993 * @license lucide-react v0.462.0 - ISC 994 * 995 * This source code is licensed under the ISC license. 996 * See the LICENSE file in the root directory of this source tree. 997 */const vh=ve("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 998 * @license lucide-react v0.462.0 - ISC 999 * 1000 * This source code is licensed under the ISC license. 1001 * See the LICENSE file in the root directory of this source tree. 1002 */const nq=ve("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/** 1003 * @license lucide-react v0.462.0 - ISC 1004 * 1005 * This source code is licensed under the ISC license. 1006 * See the LICENSE file in the root directory of this source tree. 1007 */const fl=ve("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 1008 * @license lucide-react v0.462.0 - ISC 1009 * 1010 * This source code is licensed under the ISC license. 1011 * See the LICENSE file in the root directory of this source tree. 1012 */const aq=ve("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 1013 * @license lucide-react v0.462.0 - ISC 1014 * 1015 * This source code is licensed under the ISC license. 1016 * See the LICENSE file in the root directory of this source tree. 1017 */const sq=ve("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 1018 * @license lucide-react v0.462.0 - ISC 1019 * 1020 * This source code is licensed under the ISC license. 1021 * See the LICENSE file in the root directory of this source tree. 1022 */const cs=ve("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"}]]);/** 1023 * @license lucide-react v0.462.0 - ISC 1024 * 1025 * This source code is licensed under the ISC license. 1026 * See the LICENSE file in the root directory of this source tree. 1027 */const wa=ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 1028 * @license lucide-react v0.462.0 - ISC 1029 * 1030 * This source code is licensed under the ISC license. 1031 * See the LICENSE file in the root directory of this source tree. 1032 */const yh=ve("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 1033 * @license lucide-react v0.462.0 - ISC 1034 * 1035 * This source code is licensed under the ISC license. 1036 * See the LICENSE file in the root directory of this source tree.
1037 */const oq=ve("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 1038 * @license lucide-react v0.462.0 - ISC 1039 * 1040 * This source code is licensed under the ISC license. 1041 * See the LICENSE file in the root directory of this source tree. 1042 */const iq=ve("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 1043 * @license lucide-react v0.462.0 - ISC 1044 * 1045 * This source code is licensed under the ISC license. 1046 * See the LICENSE file in the root directory of this source tree. 1047 */const lq=ve("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/** 1048 * @license lucide-react v0.462.0 - ISC 1049 * 1050 * This source code is licensed under the ISC license. 1051 * See the LICENSE file in the root directory of this source tree. 1052 */const cq=ve("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** 1053 * @license lucide-react v0.462.0 - ISC 1054 * 1055 * This source code is licensed under the ISC license. 1056 * See the LICENSE file in the root directory of this source tree. 1057 */const uq=ve("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** 1058 * @license lucide-react v0.462.0 - ISC 1059 * 1060 * This source code is licensed under the ISC license. 1061 * See the LICENSE file in the root directory of this source tree. 1062 */const dq=ve("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 1063 * @license lucide-react v0.462.0 - ISC 1064 * 1065 * This source code is licensed under the ISC license. 1066 * See the LICENSE file in the root directory of this source tree. 1067 */const Ua=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 1068 * @license lucide-react v0.462.0 - ISC 1069 * 1070 * This source code is licensed under the ISC license. 1071 * See the LICENSE file in the root directory of this source tree. 1072 */const Aq=ve("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 1073 * @license lucide-react v0.462.0 - ISC 1074 * 1075 * This source code is licensed under the ISC license. 1076 * See the LICENSE file in the root directory of this source tree. 1077 */const DA=ve("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),D2="-",fq=e=>{const t=hq(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(D2);return l[0]===""&&l.length!==1&&l.shift(),PT(l,t)||mq(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&n[i]?[...c,...n[i]]:c}}},PT=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?PT(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(D2);return t.validators.find(({validator:i})=>i(o))?.classGroupId},qE=/^\[(.+)\]$/,mq=e=>{if(qE.test(e)){const t=qE.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hq=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return gq(Object.entries(e.classGroups),r).forEach(([o,i])=>{Wb(i,n,o,t)}),n},Wb=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:KE(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(pq(s)){Wb(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}
vendor: 4,834 bytes, line 1077
1077Object.entries(s).forEach(([o,i])=>{Wb(i,KE(t,o),r,n)})})},KE=(e,t)=>{let r=e;return t.split(D2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},pq=e=>e.isThemeGetter,gq=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[r,s]}):e,xq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},LT="!",vq=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,i=l=>{const c=[];let u=0,d=0,f;for(let x=0;x<l.length;x++){let y=l[x];if(u===0){if(y===s&&(n||l.slice(x,x+o)===t)){c.push(l.slice(d,x)),d=x+o;continue}if(y==="/"){f=x;continue}}y==="["?u++:y==="]"&&u--}const h=c.length===0?l:l.substring(d),m=h.startsWith(LT),g=m?h.substring(1):h,p=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:p}};return r?l=>r({className:l,parseClassName:i}):i},yq=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},bq=e=>({cache:xq(e.cacheSize),parseClassName:vq(e),...fq(e)}),wq=/\s+/,_q=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(wq);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=r(u);let g=!!m,p=n(g?h.substring(0,m):h);if(!p){if(!g){l=u+(l.length>0?" "+l:l);continue}if(p=n(h),!p){l=u+(l.length>0?" "+l:l);continue}g=!1}const x=yq(d).join(":"),y=f?x+LT:x,b=y+p;if(o.includes(b))continue;o.push(b);const j=s(p,g);for(let C=0;C<j.length;++C){const T=j[C];o.push(y+T)}l=u+(l.length>0?" "+l:l)}return l};function Cq(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=DT(t))&&(n&&(n+=" "),n+=r);return n}const DT=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=DT(e[n]))&&(r&&(r+=" "),r+=t);return r};function jq(e,...t){let r,n,s,o=i;function i(c){const u=t.reduce((d,f)=>f(d),e());return r=bq(u),n=r.cache.get,s=r.cache.set,o=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=_q(c,r);return s(c,d),d}return function(){return o(Cq.apply(null,arguments))}}const ln=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},RT=/^\[(?:([a-z-]+):)?(.+)\]$/i,Eq=/^\d+\/\d+$/,Bq=new Set(["px","full","screen"]),Nq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sq=/\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$/,kq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Iq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ji=e=>eA(e)||Bq.has(e)||Eq.test(e),Vl=e=>RA(e,"length",Uq),eA=e=>!!e&&!Number.isNaN(Number(e)),wy=e=>RA(e,"number",eA),_f=e=>!!e&&Number.isInteger(Number(e)),Tq=e=>e.endsWith("%")&&eA(e.slice(0,-1)),dr=e=>RT.test(e),Hl=e=>Nq.test(e),Pq=new Set(["length","size","percentage"]),Lq=e=>RA(e,Pq,MT),Dq=e=>RA(e,"position",MT),Rq=new Set(["image","url"]),Mq=e=>RA(e,Rq,Vq),Oq=e=>RA(e,"",Qq),Cf=()=>!0,RA=(e,t,r)=>{const n=RT.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Uq=e=>Sq.test(e)&&!kq.test(e),MT=()=>!1,Qq=e=>Iq.test(e),Vq=e=>Fq.test(e),Hq=()=>{const e=ln("colors"),t=ln("spacing"),r=ln("blur"),n=ln("brightness"),s=ln("borderColor"),o=ln("borderRadius"),i=ln("borderSpacing"),l=ln("borderWidth"),c=ln("contrast"),u=ln("grayscale"),d=ln("hueRotate"),f=ln("invert"),h=ln("gap"),m=ln("gradientColorStops"),g=ln("gradientColorStopPositions"),p=ln("inset"),x=ln("margin"),y=ln("opacity"),b=ln("padding"),j=ln("saturate"),C=ln("scale"),T=ln("sepia"),L=ln("skew"),P=ln("space"),I=ln("translate"),E=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",dr,t],D=()=>[dr,t],H=()=>["",Ji,Vl],U=()=>["auto",eA,dr],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",dr],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[eA,dr];return{cacheSize:500,separator:":",theme:{colors:[Cf],spacing:[Ji,Vl],blur:["none","",Hl,dr],brightness:se(),borderColor:[e],borderRadius:["n
1077one","","full",Hl,dr],borderSpacing:D(),borderWidth:H(),contrast:se(),grayscale:G(),hueRotate:se(),invert:G(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Tq,Vl],inset:k(),margin:k(),opacity:se(),padding:D(),saturate:se(),scale:se(),sepia:G(),skew:se(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",dr]}],container:["container"],columns:[{columns:[Hl]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"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:[...ee(),dr]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_f,dr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",dr]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",_f,dr]}],"grid-cols":[{"grid-cols":[Cf]}],"col-start-end":[{col:["auto",{span:["full",_f,dr]},dr]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Cf]}],"row-start-end":[{row:["auto",{span:[_f,dr]},dr]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",dr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",dr]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",dr,t]}],"min-w":[{"min-w":[dr,t,"min","max","fit"]}],"max-w":[{"max-w":[dr,t,"none","full","min","max","fit","prose",{screen:[Hl]},Hl]}],h:[{h:[dr,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[dr,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[dr,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[dr,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Hl,Vl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wy]}],"font-family":[{font:[Cf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",dr]}],"line-clamp":[{"line-clamp":["none",eA,wy]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ji,dr]}],"list-image":[{"list-image":["none",dr]}],"list-style-type":[{list:["none","disc","decimal",dr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ji,Vl]}],"underline-offset":[{"underline-offset":["auto",Ji,dr]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dr]}],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",dr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Dq]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mq]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
1077],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,471 bytes, line 1077
1077],"divide-style":[{divide:ae()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[Ji,dr]}],"outline-w":[{outline:[Ji,Vl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ji,Vl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hl,Oq]}],"shadow-color":[{shadow:[Cf]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Hl,dr]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"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",dr]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",dr]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",dr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[_f,dr]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",dr]}],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",dr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",dr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ji,Vl,wy]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
1077none"]}]},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"]}}},zq=jq(Hq),$q={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qq=(e,t,r)=>{let n;const s=$q[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function tA(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Kq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yq={date:tA({formats:Kq,defaultWidth:"full"}),time:tA({formats:Gq,defaultWidth:"full"}),dateTime:tA({formats:Wq,defaultWidth:"full"})},Xq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zq=(e,t,r,n)=>Xq[e];function yi(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):i;s=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;s=e.values[l]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const Jq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eK={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tK={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rK={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1077ay","Saturday"]},nK={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},aK={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sK=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},oK={ordinalNumber:sK,era:yi({values:Jq,defaultWidth:"wide"}),quarter:yi({values:eK,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yi({values:tK,defaultWidth:"wide"}),day:yi({values:rK,defaultWidth:"wide"}),dayPeriod:yi({values:nK,defaultWidth:"wide",formattingValues:aK,defaultFormattingWidth:"wide"})};function bi(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const i=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?lK(l,f=>f.test(i)):iK(l,f=>f.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function iK(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function lK(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function OT(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;const l=t.slice(s.length);return{value:i,rest:l}}}const cK=/^(\d+)(th|st|nd|rd)?/i,uK=/\d+/i,dK={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},AK={any:[/^b/i,/^(a|c)/i]},fK={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mK={any:[/1/i,/2/i,/3/i,/4/i]},hK={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pK={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gK={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xK={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vK={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yK={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bK={ordinalNumber:OT({matchPattern:cK,parsePattern:uK,valueCallback:e=>parseInt(e,10)}),era:bi({matchPatterns:dK,defaultMatchWidth:"wide",parsePatterns:AK,defaultParseWidth:"any"}),quarter:bi({matchPatterns:fK,defaultMatchWidth:"wide",parsePatterns:mK,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bi({matchPatterns:hK,defaultMatchWidth:"wide",parsePatterns:pK,defaultParseWidth:"any"}),day:bi({matchPatterns:gK,defaultMatchWidth:"wide",parsePatterns:xK,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:vK,defaultMatchWidth:"any",parsePatterns:yK,defaultParseWidth:"any"})},R2={code:"en-US",formatDistance:qq,formatLong:Yq,formatRelative:Zq,localize:oK,match:bK,options:{weekStartsOn:0,firstWeekContainsDate:1}};let UT={};function Xu(){return UT}function $Oe(e){UT=e}const qOe=7,wK=365.2425,M2=6048e5,_K=864e5,O2=6e4,U2=36e5,KOe=1e3,GOe=525600,Fp=43200,GE=1440,WOe=60,YOe=3,XOe=12,ZOe=4,CK=3600,JOe=60,QT=CK*24,eUe=QT*7,jK=QT*wK,EK=jK/12,tUe=EK*3;function Gt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ml(e){const t=Gt(e);return t.setHours(0,0,0,0),t}function pA(e){const t=Gt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ci(e,t){const r=ml(e),n=ml(t),s=+r-pA(r),o=+n-pA(n);return Math.round((s-o)/_K)}function Bs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function VT(e){const t=Gt(e),r=Bs(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function BK(e){const t=Gt(e);return Ci(t,VT(t))+1}
1077function ki(e,t){const r=Xu(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Gt(e),o=s.getDay(),i=(o<n?7:0)+o-n;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function Du(e){return ki(e,{weekStartsOn:1})}function HT(e){const t=Gt(e),r=t.getFullYear(),n=Bs(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Du(n),o=Bs(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=Du(o);return t.getTime()>=s.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function NK(e){const t=HT(e),r=Bs(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Du(r)}function zT(e){const t=Gt(e),r=+Du(t)-+NK(t);return Math.round(r/M2)+1}function $T(e,t){const r=Gt(e),n=r.getFullYear(),s=Xu(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,i=Bs(e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const l=ki(i,t),c=Bs(e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const u=ki(c,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function SK(e,t){const r=Xu(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=$T(e,t),o=Bs(e,0);return o.setFullYear(s,0,n),o.setHours(0,0,0,0),ki(o,t)}function qT(e,t){const r=Gt(e),n=+ki(r,t)-+SK(r,t);return Math.round(n/M2)+1}function Ur(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const zl={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ur(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ur(r+1,2)},d(e,t){return Ur(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ur(e.getHours()%12||12,t.length)},H(e,t){return Ur(e.getHours(),t.length)},m(e,t){return Ur(e.getMinutes(),t.length)},s(e,t){return Ur(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return Ur(s,t.length)}},_d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},WE={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return zl.y(e,t)},Y:function(e,t,r,n){const s=$T(e,n),o=s>0?s:1-s;if(t==="YY"){const i=o%100;return Ur(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Ur(o,t.length)},R:function(e,t){const r=HT(e);return Ur(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ur(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ur(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ur(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return zl.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ur(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=qT(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):Ur(s,t.length)},I:function(e,t,r){const n=zT(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ur(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):zl.d(e,t)},D:function(e,t,r){const n=BK(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ur(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ur(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ur(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return Ur(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=_d.noon:n===0?s=_d.midnight:s=n/12>
1077=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=_d.evening:n>=12?s=_d.afternoon:n>=4?s=_d.morning:s=_d.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return zl.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):zl.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ur(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ur(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):zl.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):zl.s(e,t)},S:function(e,t){return zl.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return XE(n);case"XXXX":case"XX":return cu(n);case"XXXXX":case"XXX":default:return cu(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return XE(n);case"xxxx":case"xx":return cu(n);case"xxxxx":case"xxx":default:return cu(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+YE(n,":");case"OOOO":default:return"GMT"+cu(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+YE(n,":");case"zzzz":default:return"GMT"+cu(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ur(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ur(n,t.length)}};function YE(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+Ur(o,2)}function XE(e,t){return e%60===0?(e>0?"-":"+")+Ur(Math.abs(e)/60,2):cu(e,t)}function cu(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Ur(Math.trunc(n/60),2),o=Ur(n%60,2);return r+s+t+o}const ZE=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},KT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},kK=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return ZE(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",ZE(n,t)).replace("{{time}}",KT(s,t))},IK={p:KT,P:kK},FK=/^D+$/,TK=/^Y+$/,PK=["D","DD","YY","YYYY"];function LK(e){return FK.test(e)}function DK(e){return TK.test(e)}function RK(e,t,r){const n=MK(e,t,r);if(console.warn(n),PK.includes(e))throw new RangeError(n)}function MK(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Q2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function OK(e){if(!Q2(e)&&typeof e!="number")return!1;const t=Gt(e);return!isNaN(Number(t))}const UK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VK=/^'([^]*?)'?$/,HK=/''/g,zK=/[a-zA-Z]/;function Kt(e,t,r){const n=Xu(),s=r?.locale??n.locale??R2,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=Gt(e);if(!OK(l))throw new RangeError("Invalid time value");let c=t.match(QK).map(d=>{const f=d[0];if(f==="p"||f==="P"){const h=IK[f];return h(d,s.formatLong)}return d}).join("").match(UK).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const f=d[0];if(f==="'")return{isToken:!1,value:$K(d)};if(WE[f])return{isToken:!0,value:d};
1077if(f.match(zK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const u={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return c.map(d=>{if(!d.isToken)return d.value;const f=d.value;(!r?.useAdditionalWeekYearTokens&&DK(f)||!r?.useAdditionalDayOfYearTokens&&LK(f))&&RK(f,t,String(e));const h=WE[f[0]];return h(l,f,s.localize,u)}).join("")}function $K(e){const t=e.match(VK);return t?t[1].replace(HK,"'"):e}function Ea(e,t){const r=Gt(e);return isNaN(t)?Bs(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Fo(e,t){const r=Gt(e);if(isNaN(t))return Bs(e,NaN);if(!t)return r;const n=r.getDate(),s=Bs(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const o=s.getDate();return n>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),n),r)}function GT(e,t){const r=+Gt(e);return Bs(e,r+t)}function qK(e,t){return GT(e,t*U2)}function rA(e,t){return GT(e,t*O2)}function Yb(e,t){const r=t*7;return Ea(e,r)}function KK(e,t){return Fo(e,t*12)}function GK(e){let t;return e.forEach(function(r){const n=Gt(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function WK(e){let t;return e.forEach(r=>{const n=Gt(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Wg(e,t){const r=Gt(e),n=Gt(t),s=r.getTime()-n.getTime();return s<0?-1:s>0?1:s}function YK(e){return Bs(e,Date.now())}function Qs(e,t){const r=ml(e),n=ml(t);return+r==+n}function gA(e,t){const r=Gt(e),n=Gt(t),s=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return s*12+o}function XK(e,t,r){const n=ki(e,r),s=ki(t,r),o=+n-pA(n),i=+s-pA(s);return Math.round((o-i)/M2)}function ZK(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function JK(e,t){return+Gt(e)-+Gt(t)}function WT(e){const t=Gt(e);return t.setHours(23,59,59,999),t}function kx(e){const t=Gt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function eG(e){const t=Gt(e);return+WT(t)==+kx(t)}function tG(e,t){const r=Gt(e),n=Gt(t),s=Wg(r,n),o=Math.abs(gA(r,n));let i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*o);let l=Wg(r,n)===-s;eG(Gt(e))&&o===1&&Wg(e,n)===1&&(l=!1),i=s*(o-Number(l))}return i===0?0:i}function rG(e,t,r){const n=JK(e,t)/1e3;return ZK(r?.roundingMethod)(n)}function Hs(e){const t=Gt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function V2(e,t){const r=Xu(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Gt(e),o=s.getDay(),i=(o<n?-7:0)+6-(o-n);return s.setDate(s.getDate()+i),s.setHours(23,59,59,999),s}function YT(e){return V2(e,{weekStartsOn:1})}function nG(e,t,r){const n=Xu(),s=r?.locale??n.locale??R2,o=2520,i=Wg(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i});let c,u;i>0?(c=Gt(t),u=Gt(e)):(c=Gt(e),u=Gt(t));const d=rG(u,c),f=(pA(u)-pA(c))/1e3,h=Math.round((d-f)/60);let m;if(h<2)return r?.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,l):d<10?s.formatDistance("lessThanXSeconds",10,l):d<20?s.formatDistance("lessThanXSeconds",20,l):d<40?s.formatDistance("halfAMinute",0,l):d<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):h===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",h,l);if(h<45)return s.formatDistance("xMinutes",h,l);if(h<90)return s.formatDistance("aboutXHours",1,l);if(h<GE){const g=Math.round(h/60);return s.formatDistance("aboutXHours",g,l)}else{if(h<o)return s.formatDistance("xDays",1,l);if(h<Fp){const g=Math.round(h/GE);return s.formatDistance("xDays",g,l)}else if(h<Fp*2)return m=Math.round(h/Fp),s.formatDistance("aboutXMonths",m,l)}if(m=tG(u,c),m<12){const g=Math.round(h/Fp);return s.formatDistance("xMonths",g,l)}else{const g=m%12,p=Math.trunc(m/12);return g<3?s.formatDistance("aboutXYears",p,l):g<9?s.formatDistance("overXYears",p,l):s.formatDistance("almostXYears",p+1,l)}}function aG(e,t){return nG(e,YK(e),t)}function sG(e){const t=Gt(e),r=t.getFullYear(),n=t.getMonth(),s=Bs(e,0);return s.setFullYear(r,n+1,0),s.setHours(0,0,0,0),s.getDate()}function oG(){return Object.assign({}
1077,Xu())}function iG(e){return Math.trunc(+Gt(e)/1e3)}function lG(e){const t=Gt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function cG(e,t){return XK(lG(e),Hs(e),t)+1}function bu(e,t){const r=Gt(e),n=Gt(t);return r.getTime()>n.getTime()}function rc(e,t){const r=Gt(e),n=Gt(t);return+r<+n}function H2(e,t){const r=Gt(e),n=Gt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function uG(e,t){const r=Gt(e),n=Gt(t);return r.getFullYear()===n.getFullYear()}function _y(e,t){return Ea(e,-t)}function Ir(e,t){const r=t?.additionalDigits??2,n=mG(e);let s;if(n.date){const c=hG(n.date,r);s=pG(c.restDateString,c.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);const o=s.getTime();let i=0,l;if(n.time&&(i=gG(n.time),isNaN(i)))return new Date(NaN);if(n.timezone){if(l=xG(n.timezone),isNaN(l))return new Date(NaN)}else{const c=new Date(o+i),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(o+i+l)}const Tp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dG=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,AG=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,fG=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mG(e){const t={},r=e.split(Tp.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Tp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Tp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const s=Tp.timezone.exec(n);s?(t.time=n.replace(s[1],""),t.timezone=s[1]):t.time=n}return t}function hG(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const s=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function pG(e,t){if(t===null)return new Date(NaN);const r=e.match(dG);if(!r)return new Date(NaN);const n=!!r[4],s=jf(r[1]),o=jf(r[2])-1,i=jf(r[3]),l=jf(r[4]),c=jf(r[5])-1;if(n)return _G(t,l,c)?vG(t,l,c):new Date(NaN);{const u=new Date(0);return!bG(t,o,i)||!wG(t,s)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(s,i)),u)}}function jf(e){return e?parseInt(e):1}function gG(e){const t=e.match(AG);if(!t)return NaN;const r=Cy(t[1]),n=Cy(t[2]),s=Cy(t[3]);
1077return CG(r,n,s)?r*U2+n*O2+s*1e3:NaN}function Cy(e){return e&&parseFloat(e.replace(",","."))||0}function xG(e){if(e==="Z")return 0;const t=e.match(fG);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return jG(n,s)?r*(n*U2+s*O2):NaN}function vG(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const s=n.getUTCDay()||7,o=(t-1)*7+r+1-s;return n.setUTCDate(n.getUTCDate()+o),n}const yG=[31,null,31,30,31,30,31,31,30,31,30,31];function XT(e){return e%400===0||e%4===0&&e%100!==0}function bG(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(yG[t]||(XT(e)?29:28))}function wG(e,t){return t>=1&&t<=(XT(e)?366:365)}function _G(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function CG(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function jG(e,t){return t>=0&&t<=59}function jy(e,t){const r=Gt(e),n=r.getFullYear(),s=r.getDate(),o=Bs(e,0);o.setFullYear(n,t,15),o.setHours(0,0,0,0);const i=sG(o);return r.setMonth(t,Math.min(s,i)),r}function Ey(e,t){const r=Gt(e);return r.setHours(t),r}function By(e,t){const r=Gt(e);return r.setMinutes(t),r}function JE(e,t){const r=Gt(e);return isNaN(+r)?Bs(e,NaN):(r.setFullYear(t),r)}function eB(e,t,r){const n=oG(),s=NG(e,r.timeZone,r.locale??n.locale);return"formatToParts"in s?EG(s,t):BG(s,t)}function EG(e,t){const r=e.formatToParts(t);for(let n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function BG(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function NG(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function SG(e,t){const r=PG(t);return"formatToParts"in r?IG(r,e):FG(r,e)}const kG={year:0,month:1,day:2,hour:3,minute:4,second:5};function IG(e,t){try{const r=e.formatToParts(t),n=[];for(let s=0;s<r.length;s++){const o=kG[r[s].type];o!==void 0&&(n[o]=parseInt(r[s].value,10))}return n}catch(r){if(r instanceof RangeError)return[NaN];throw r}}function FG(e,t){const r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}const Ny={},tB=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),TG=tB==="06/25/2014, 00:00:00"||tB==="â06â/â25â/â2014â â00â:â00â:â00";function PG(e){return Ny[e]||(Ny[e]=TG?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ny[e]}function z2(e,t,r,n,s,o,i){const l=new Date(0);return l.setUTCFullYear(e,t,r),l.setUTCHours(n,s,o,i),l}const rB=36e5,LG=6e4,Sy={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ix(e,t,r){if(!e)return 0;let n=Sy.timezoneZ.exec(e);if(n)return 0;let s,o;if(n=Sy.timezoneHH.exec(e),n)return s=parseInt(n[1],10),nB(s)?-(s*rB):NaN;if(n=Sy.timezoneHHMM.exec(e),n){s=parseInt(n[2],10);const i=parseInt(n[3],10);return nB(s,i)?(o=Math.abs(s)*rB+i*LG,n[1]==="+"?-o:o):NaN}if(MG(e)){t=new Date(t||Date.now());const i=r?t:DG(t),l=Xb(i,e);return-(r?l:RG(t,l,e))}return NaN}function DG(e){return z2(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Xb(e,t){const r=SG(e,t),n=z2(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime();let s=e.getTime();const o=s%1e3;return s-=o>=0?o:1e3+o,n-s}function RG(e,t,r){let s=e.getTime()-t;const o=Xb(new Date(s),r);if(t===o)return t;s-=o-t;const i=Xb(new Date(s),r);return o===i?o:Math.max(o,i)}function nB(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const aB={};function MG(e){if(aB[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),aB[e]=!0,!0}catch{return!1}}const OG=60*1e3,UG={X:function(e,t,r){const n=ky(r.timeZone,e);if(n===0)return"Z";switch(t){case"X":return sB(n);case"XXXX":case"XX":return Ud(n);case"XXXXX":case"XXX":default:return Ud(n,":")}},x:function(e,t,r){const n=ky(r.timeZone,e);switch(t){case"x":return sB(n);case"xxxx":case"xx":return Ud(n);case"xxxxx":case"xxx":default:return Ud(n,":")}},O:function(e,t,r){const n=ky(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+QG(n,":");case"OOOO":default:return"GMT"+Ud(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return eB("short",e,r);
1077case"zzzz":default:return eB("long",e,r)}}};function ky(e,t){const r=e?Ix(e,t,!0)/OG:t?.getTimezoneOffset()??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function w0(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function Ud(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=w0(Math.floor(n/60),2),o=w0(Math.floor(n%60),2);return r+s+t+o}function sB(e,t){return e%60===0?(e>0?"-":"+")+w0(Math.abs(e)/60,2):Ud(e,t)}function QG(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.floor(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+w0(o,2)}function oB(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const ZT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Iy=36e5,iB=6e4,VG=2,_s={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:ZT};function _0(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const r=t.additionalDigits==null?VG:Number(t.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const n=HG(e),{year:s,restDateString:o}=zG(n.date,r),i=$G(o,s);if(i===null||isNaN(i.getTime()))return new Date(NaN);if(i){const l=i.getTime();let c=0,u;if(n.time&&(c=qG(n.time),c===null||isNaN(c)))return new Date(NaN);if(n.timeZone||t.timeZone){if(u=Ix(n.timeZone||t.timeZone,new Date(l+c)),isNaN(u))return new Date(NaN)}else u=oB(new Date(l+c)),u=oB(new Date(l+c+u));return new Date(l+c+u)}else return new Date(NaN)}function HG(e){const t={};let r=_s.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=_s.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){const s=_s.timeZone.exec(n);s?(t.time=n.replace(s[1],""),t.timeZone=s[1].trim()):t.time=n}return t}function zG(e,t){if(e){const r=_s.YYY[t],n=_s.YYYYY[t];let s=_s.YYYY.exec(e)||n.exec(e);if(s){const o=s[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(s=_s.YY.exec(e)||r.exec(e),s){const o=s[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function $G(e,t){if(t===null)return null;let r,n,s;if(!e||!e.length)return r=new Date(0),r.setUTCFullYear(t),r;let o=_s.MM.exec(e);if(o)return r=new Date(0),n=parseInt(o[1],10)-1,cB(t,n)?(r.setUTCFullYear(t,n),r):new Date(NaN);if(o=_s.DDD.exec(e),o){r=new Date(0);const i=parseInt(o[1],10);return WG(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(o=_s.MMDD.exec(e),o){r=new Date(0),n=parseInt(o[1],10)-1;const i=parseInt(o[2],10);return cB(t,n,i)?(r.setUTCFullYear(t,n,i),r):new Date(NaN)}if(o=_s.Www.exec(e),o)return s=parseInt(o[1],10)-1,uB(s)?lB(t,s):new Date(NaN);if(o=_s.WwwD.exec(e),o){s=parseInt(o[1],10)-1;const i=parseInt(o[2],10)-1;return uB(s,i)?lB(t,s,i):new Date(NaN)}return null}function qG(e){let t,r,n=_s.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),Fy(t)?t%24*Iy:NaN;if(n=_s.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),Fy(t,r)?t%24*Iy+r*iB:NaN;if(n=_s.HHMMSS.exec(e),n){t=parseInt(n[1],10),r=parseInt(n[2],10);const s=parseFloat(n[3].replace(",","."));return Fy(t,r,s)?t%24*Iy+r*iB+s*1e3:NaN}return null}function lB(e,t,r){t=t||0,r=r||0;const n=new Date(0);n.setUTCFullYear(e,0,4);const s=n.getUTCDay()||7,o=t*7+r+1-s;return n.setUTCDate(n.getUTCDate()+o),n}const KG=[31,28,31,30,31,30,31,31,30,31,30,31],GG=[31,29,31,30,31,30,31,31,30,31,30,31];function JT(e){return e%400===0||e%4===0&&e%100!==0}function cB(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;const n=JT(e);
1077if(n&&r>GG[t]||!n&&r>KG[t])return!1}return!0}function WG(e,t){if(t<1)return!1;const r=JT(e);return!(r&&t>366||!r&&t>365)}function uB(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Fy(e,t,r){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}const YG=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function XG(e,t,r={}){t=String(t);const n=t.match(YG);if(n){const s=_0(r.originalDate||e,r);t=n.reduce(function(o,i){if(i[0]==="'")return o;const l=o.indexOf(i),c=o[l-1]==="'",u=o.replace(i,"'"+UG[i[0]](s,i,r)+"'");return c?u.substring(0,l-1)+u.substring(l+1):u},t)}return Kt(e,t,r)}function ZG(e,t,r){e=_0(e,r);const n=Ix(t,e,!0),s=new Date(e.getTime()-n),o=new Date(0);return o.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),o.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),o}function Pp(e,t,r){if(typeof e=="string"&&!e.match(ZT))return _0(e,{...r,timeZone:t});e=_0(e,r);const n=z2(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),s=Ix(t,new Date(n));return new Date(n+s)}const JG={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},eW=(e,t,r)=>{let n;const s=JG[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"em "+n:"há "+n:n},tW={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},rW={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nW={full:"{{date}} 'à s' {{time}}",long:"{{date}} 'à s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aW={date:tA({formats:tW,defaultWidth:"full"}),time:tA({formats:rW,defaultWidth:"full"}),dateTime:tA({formats:nW,defaultWidth:"full"})},sW={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'à s' p"},yesterday:"'ontem à s' p",today:"'hoje à s' p",tomorrow:"'amanhã à s' p",nextWeek:"eeee 'à s' p",other:"P"},oW=(e,t,r,n)=>{const s=sW[e];return typeof s=="function"?s(t):s},iW={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},lW={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},cW={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},uW={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dW={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},AW={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},fW=(e,t)=>{const r=Number(e);return t?.unit==="week"?r+"ª":r+"º"},mW={ordinalNumber:fW,era:yi({values:iW,defaultWidth:"wide"}),quarter:yi({values:lW,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yi({values:cW,defaultWidth:"wide"}),day:yi({values:uW,defaultWidth:"wide"}),dayPeriod:yi({values:dW,defaultWidth:"wide",formattingValues:AW,defaultFormattingWidth:"wide"})},hW=/^(\d+)[ºªo]?/i,pW=/\d+/i,gW={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i}
1077,xW={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},vW={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},yW={any:[/1/i,/2/i,/3/i,/4/i]},bW={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},wW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},_W={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},CW={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},jW={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(d
1077a) (manhã|tarde|noite))/i},EW={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},BW={ordinalNumber:OT({matchPattern:hW,parsePattern:pW,valueCallback:e=>parseInt(e,10)}),era:bi({matchPatterns:gW,defaultMatchWidth:"wide",parsePatterns:xW,defaultParseWidth:"any"}),quarter:bi({matchPatterns:vW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bi({matchPatterns:bW,defaultMatchWidth:"wide",parsePatterns:wW,defaultParseWidth:"any"}),day:bi({matchPatterns:_W,defaultMatchWidth:"wide",parsePatterns:CW,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:jW,defaultMatchWidth:"any",parsePatterns:EW,defaultParseWidth:"any"})},cn={code:"pt-BR",formatDistance:eW,formatLong:aW,formatRelative:oW,localize:mW,match:BW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function je(...e){return zq(oT(e))}function NW(e){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)}function rUe(e,t="dd/MM/yy HH:mm"){if(!e)return"";const r=typeof e=="string"?new Date(e):e,s=ZG(r,"America/Sao_Paulo");return XG(s,t,{locale:cn})}const SW=nz,eP=A.forwardRef(({className:e,...t},r)=>a.jsx(JF,{ref:r,className:je("fixed top-0 z-[150] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-20 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));eP.displayName=JF.displayName;const kW=gh("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"}}),tP=A.forwardRef(({className:e,variant:t,...r},n)=>a.jsx(eT,{ref:n,className:je(kW({variant:t}),e),...r}));tP.displayName=eT.displayName;const IW=A.forwardRef(({className:e,...t},r)=>a.jsx(nT,{ref:r,className:je("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));IW.displayName=nT.displayName;const rP=A.forwardRef(({className:e,...t},r)=>a.jsx(aT,{ref:r,className:je("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(Ua,{className:"h-4 w-4"})}));rP.displayName=aT.displayName;const nP=A.forwardRef(({className:e,...t},r)=>a.jsx(tT,{ref:r,className:je("text-sm font-semibold",e),...t}));nP.displayName=tT.displayName;const aP=A.forwardRef(({className:e,...t},r)=>a.jsx(rT,{ref:r,className:je("text-sm opacity-90",e),...t}));aP.displayName=rT.displayName;function FW(){const{toasts:e}=hh();return a.jsxs(SW,{children:[e.map(function({id:t,title:r,description:n,action:s,...o}){return a.jsxs(tP,{...o,children:[a.jsxs("div",{className:"grid gap-1",children:[r&&a.jsx(nP,{children:r}),n&&a.jsx(aP,{children:n})]}),s,a.jsx(rP,{})]},t)}),a.jsx(eP,{})]})}var dB=["light","dark"],TW="(prefers-color-scheme: dark)",PW=A.createContext(void 0),LW={setTheme:e=>{},themes:[]},DW=()=>{var e;return(e=A.useContext(PW))!=null?e:LW};A.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:l,nonce:c})=>{let u=o==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?dB.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,p=!1,x=!0)=>{let y=i?i[g]:g,b=p?g+"|| ''":`'${y}
1077'`,j="";return s&&x&&!p&&dB.includes(g)&&(j+=`d.style.colorScheme = '${g}';`),r==="class"?p||y?j+=`c.add(${b})`:j+="null":y&&(j+=`d[s](n,${b})`),j},m=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${TW}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return A.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var RW=e=>{switch(e){case"success":return UW;case"info":return VW;case"warning":return QW;case"error":return HW;default:return null}},MW=Array(12).fill(0),OW=({visible:e,className:t})=>Ne.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Ne.createElement("div",{className:"sonner-spinner"},MW.map((r,n)=>Ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),UW=Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ne.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"})),QW=Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Ne.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"})),VW=Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ne.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"})),HW=Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ne.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"})),zW=Ne.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"},Ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$W=()=>{let[e,t]=Ne.useState(document.hidden);return Ne.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Zb=1,qW=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:n,...s}=t,o=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Zb++,i=this.toasts.find(c=>c.id===o),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(c=>c.id===o?(this.publish({...c,...t,id:o,title:n}
1077),{...c,...t,id:o,dismissible:l,title:n}):c):this.addToast({title:n,...s,dismissible:l,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:t,dismiss:!0})),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let s=t instanceof Promise?t:t(),o=n!==void 0,i,l=s.then(async u=>{if(i=["resolve",u],Ne.isValidElement(u))o=!1,this.create({id:n,type:"default",message:u});else if(GW(u)&&!u.ok){o=!1;let d=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description;this.create({id:n,type:"error",message:d,description:f})}else if(r.success!==void 0){o=!1;let d=typeof r.success=="function"?await r.success(u):r.success,f=typeof r.description=="function"?await r.description(u):r.description;this.create({id:n,type:"success",message:d,description:f})}}).catch(async u=>{if(i=["reject",u],r.error!==void 0){o=!1;let d=typeof r.error=="function"?await r.error(u):r.error,f=typeof r.description=="function"?await r.description(u):r.description;this.create({id:n,type:"error",message:d,description:f})}}).finally(()=>{var u;o&&(this.dismiss(n),n=void 0),(u=r.finally)==null||u.call(r)}),c=()=>new Promise((u,d)=>l.then(()=>i[0]==="reject"?d(i[1]):u(i[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{let n=r?.id||Zb++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ms=new qW,KW=(e,t)=>{let r=t?.id||Zb++;return Ms.addToast({title:e,...t,id:r}),r},GW=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",WW=KW,YW=()=>Ms.toasts,XW=()=>Ms.getActiveToasts(),et=Object.assign(WW,{success:Ms.success,info:Ms.info,warning:Ms.warning,error:Ms.error,custom:Ms.custom,message:Ms.message,promise:Ms.promise,dismiss:Ms.dismiss,loading:Ms.loading},{getHistory:YW,getToasts:XW});function ZW(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}ZW(`: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;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;
1077left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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}
1077: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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 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%);
1077--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[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%)} 1078`);function Lp(e){return e.label!==void 0}var JW=3,eY="32px",tY="16px",AB=4e3,rY=356,nY=14,aY=20,sY=200;function Ho(...e){return e.filter(Boolean).join(" ")}function oY(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var iY=e=>{var t,r,n,s,o,i,l,c,u,d,f;let{invert:h,toast:m,unstyled:g,interacting:p,setHeights:x,visibleToasts:y,heights:b,index:j,toasts:C,expanded:T,removeToast:L,defaultRichColors:P,closeButton:I,style:E,cancelButtonStyle:O,actionButtonStyle:k,className:D="",descriptionClassName:H="",duration:U,position:ee,gap:ae,loadingIcon:V,expandByDefault:q,classNames:G,icons:Ae,closeButtonAriaLabel:se="Close toast",pauseWhenPageIsHidden:S}=e,[Q,z]=Ne.useState(null),[W,ne]=Ne.useState(null),[X,te]=Ne.useState(!1),[fe,pe]=Ne.useState(!1),[_e,xe]=Ne.useState(!1),[Be,He]=Ne.useState(!1),[R,be]=Ne.useState(!1),[tt,at]=Ne.useState(0),[De,le]=Ne.useState(0),me=Ne.useRef(m.duration||U||AB),we=Ne.useRef(null),Fe=Ne.useRef(null),ze=j===0,Pe=j+1<=y,$e=m.type,ct=m.dismissible!==!1,pt=m.className||"",it=m.descriptionClassName||"",gt=Ne.useMemo(()=>b.findIndex(Le=>Le.toastId===m.id)||0,[b,m.id]),st=Ne.useMemo(()=>{var Le;return(Le=m.closeButton)!=null?Le:I},[m.closeButton,I]),Ut=Ne.useMemo(()=>m.duration||U||AB,[m.duration,U]),Lt=Ne.useRef(0),St=Ne.useRef(0),Mt=Ne.useRef(0),tr=Ne.useRef(null),[wt,ft]=ee.split("-"),ie=Ne.useMemo(()=>b.reduce((Le,ut,Qt)=>Qt>=gt?Le:Le+ut.height,0),[b,gt]),Ue=$W(),dt=m.invert||h,Re=$e==="loading";St.current=Ne.useMemo(()=>gt*ae+ie,[gt,ie]),Ne.useEffect(()=>{me.current=Ut},[Ut]),Ne.useEffect(()=>{te(!0)},[]),Ne.useEffect(()=>{let Le=Fe.current;if(Le){let ut=Le.getBoundingClientRect().height;return le(ut),x(Qt=>[{toastId:m.id,height:ut,position:m.position},...Qt]),()=>x(Qt=>Qt.filter(mt=>mt.toastId!==m.id))}},[x,m.id]),Ne.useLayoutEffect(()=>{if(!X)return;let Le=Fe.current,ut=Le.style.height;Le.style.height="auto";let Qt=Le.getBoundingClientRect().height;Le.style.height=ut,le(Qt),x(mt=>mt.find(ot=>ot.toastId===m.id)?mt.map(ot=>ot.toastId===m.id?{...ot,height:Qt}:ot):[{toastId:m.id,height:Qt,position:m.position},...mt])},[X,m.title,m.description,x,m.id]);let Xe=Ne.useCallback(()=>{pe(!0),at(St.current),x(Le=>Le.filter(ut=>ut.toastId!==m.id)),setTimeout(()=>{L(m)},sY)},[m,L,x,St]);Ne.useEffect(()=>{if(m.promise&&$e==="loading"||m.duration===1/0||m.type==="loading")return;let Le;return T||p||S&&Ue?(()=>{if(Mt.current<Lt.current){let ut=new Date().getTime()-Lt.current;me.current=me.current-ut}
1078Mt.current=new Date().getTime()})():me.current!==1/0&&(Lt.current=new Date().getTime(),Le=setTimeout(()=>{var ut;(ut=m.onAutoClose)==null||ut.call(m,m),Xe()},me.current)),()=>clearTimeout(Le)},[T,p,m,$e,S,Ue,Xe]),Ne.useEffect(()=>{m.delete&&Xe()},[Xe,m.delete]);function lt(){var Le,ut,Qt;return Ae!=null&&Ae.loading?Ne.createElement("div",{className:Ho(G?.loader,(Le=m?.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":$e==="loading"},Ae.loading):V?Ne.createElement("div",{className:Ho(G?.loader,(ut=m?.classNames)==null?void 0:ut.loader,"sonner-loader"),"data-visible":$e==="loading"},V):Ne.createElement(OW,{className:Ho(G?.loader,(Qt=m?.classNames)==null?void 0:Qt.loader),visible:$e==="loading"})}return Ne.createElement("li",{tabIndex:0,ref:Fe,className:Ho(D,pt,G?.toast,(t=m?.classNames)==null?void 0:t.toast,G?.default,G?.[$e],(r=m?.classNames)==null?void 0:r[$e]),"data-sonner-toast":"","data-rich-colors":(n=m.richColors)!=null?n:P,"data-styled":!(m.jsx||m.unstyled||g),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":R,"data-removed":fe,"data-visible":Pe,"data-y-position":wt,"data-x-position":ft,"data-index":j,"data-front":ze,"data-swiping":_e,"data-dismissible":ct,"data-type":$e,"data-invert":dt,"data-swipe-out":Be,"data-swipe-direction":W,"data-expanded":!!(T||q&&X),style:{"--index":j,"--toasts-before":j,"--z-index":C.length-j,"--offset":`${fe?tt:St.current}px`,"--initial-height":q?"auto":`${De}px`,...E,...m.style},onDragEnd:()=>{xe(!1),z(null),tr.current=null},onPointerDown:Le=>{Re||!ct||(we.current=new Date,at(St.current),Le.target.setPointerCapture(Le.pointerId),Le.target.tagName!=="BUTTON"&&(xe(!0),tr.current={x:Le.clientX,y:Le.clientY}))},onPointerUp:()=>{var Le,ut,Qt,mt;if(Be||!ct)return;tr.current=null;let ot=Number(((Le=Fe.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),or=Number(((ut=Fe.current)==null?void 0:ut.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Fr=new Date().getTime()-((Qt=we.current)==null?void 0:Qt.getTime()),Ar=Q==="x"?ot:or,Sr=Math.abs(Ar)/Fr;if(Math.abs(Ar)>=aY||Sr>.11){at(St.current),(mt=m.onDismiss)==null||mt.call(m,m),ne(Q==="x"?ot>0?"right":"left":or>0?"down":"up"),Xe(),He(!0),be(!1);return}xe(!1),z(null)},onPointerMove:Le=>{var ut,Qt,mt,ot;if(!tr.current||!ct||((ut=window.getSelection())==null?void 0:ut.toString().length)>0)return;let or=Le.clientY-tr.current.y,Fr=Le.clientX-tr.current.x,Ar=(Qt=e.swipeDirections)!=null?Qt:oY(ee);!Q&&(Math.abs(Fr)>1||Math.abs(or)>1)&&z(Math.abs(Fr)>Math.abs(or)?"x":"y");let Sr={x:0,y:0};Q==="y"?(Ar.includes("top")||Ar.includes("bottom"))&&(Ar.includes("top")&&or<0||Ar.includes("bottom")&&or>0)&&(Sr.y=or):Q==="x"&&(Ar.includes("left")||Ar.includes("right"))&&(Ar.includes("left")&&Fr<0||Ar.includes("right")&&Fr>0)&&(Sr.x=Fr),(Math.abs(Sr.x)>0||Math.abs(Sr.y)>0)&&be(!0),(mt=Fe.current)==null||mt.style.setProperty("--swipe-amount-x",`${Sr.x}px`),(ot=Fe.current)==null||ot.style.setProperty("--swipe-amount-y",`${Sr.y}px`)}},st&&!m.jsx?Ne.createElement("button",{"aria-label":se,"data-disabled":Re,"data-close-button":!0,onClick:Re||!ct?()=>{}:()=>{var Le;Xe(),(Le=m.onDismiss)==null||Le.call(m,m)},className:Ho(G?.closeButton,(s=m?.classNames)==null?void 0:s.closeButton)},(o=Ae?.close)!=null?o:zW):null,m.jsx||A.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:Ne.createElement(Ne.Fragment,null,$e||m.icon||m.promise?Ne.createElement("div",{"data-icon":"",className:Ho(G?.icon,(i=m?.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||lt():null,m.type!=="loading"?m.
1078icon||Ae?.[$e]||RW($e):null):null,Ne.createElement("div",{"data-content":"",className:Ho(G?.content,(l=m?.classNames)==null?void 0:l.content)},Ne.createElement("div",{"data-title":"",className:Ho(G?.title,(c=m?.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?Ne.createElement("div",{"data-description":"",className:Ho(H,it,G?.description,(u=m?.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),A.isValidElement(m.cancel)?m.cancel:m.cancel&&Lp(m.cancel)?Ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:Le=>{var ut,Qt;Lp(m.cancel)&&ct&&((Qt=(ut=m.cancel).onClick)==null||Qt.call(ut,Le),Xe())},className:Ho(G?.cancelButton,(d=m?.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,A.isValidElement(m.action)?m.action:m.action&&Lp(m.action)?Ne.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||k,onClick:Le=>{var ut,Qt;Lp(m.action)&&((Qt=(ut=m.action).onClick)==null||Qt.call(ut,Le),!Le.defaultPrevented&&Xe())},className:Ho(G?.actionButton,(f=m?.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function fB(){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}function lY(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",l=o?tY:eY;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=l:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var sP=A.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:m,visibleToasts:g=JW,toastOptions:p,dir:x=fB(),gap:y=nY,loadingIcon:b,icons:j,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:T}=e,[L,P]=Ne.useState([]),I=Ne.useMemo(()=>Array.from(new Set([n].concat(L.filter(S=>S.position).map(S=>S.position)))),[L,n]),[E,O]=Ne.useState([]),[k,D]=Ne.useState(!1),[H,U]=Ne.useState(!1),[ee,ae]=Ne.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=Ne.useRef(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),G=Ne.useRef(null),Ae=Ne.useRef(!1),se=Ne.useCallback(S=>{P(Q=>{var z;return(z=Q.find(W=>W.id===S.id))!=null&&z.delete||Ms.dismiss(S.id),Q.filter(({id:W})=>W!==S.id)})},[]);return Ne.useEffect(()=>Ms.subscribe(S=>{if(S.dismiss){P(Q=>Q.map(z=>z.id===S.id?{...z,delete:!0}:z));return}setTimeout(()=>{kF.flushSync(()=>{P(Q=>{let z=Q.findIndex(W=>W.id===S.id);return z!==-1?[...Q.slice(0,z),{...Q[z],...S},...Q.slice(z+1)]:[S,...Q]})})})}),[]),Ne.useEffect(()=>{if(d!=="system"){ae(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae("dark"):ae("light")),typeof window>"u")return;let S=window.matchMedia("(prefers-color-scheme: dark)");try{S.addEventListener("change",({matches:Q})=>{ae(Q?"dark":"light")})}catch{S.addListener(({matches:z})=>{try{ae(z?"dark":"light")}catch(W){console.error(W)}})}},[d]),Ne.useEffect(()=>{L.length<=1&&D(!1)},[L]),Ne.useEffect(()=>{let S=Q=>{var z,W;s.every(ne=>Q[ne]||Q.code===ne)&&(D(!0),(z=V.current)==null||z.focus()),Q.code==="Escape"&&(document.activeElement===V.current||(W=V.current)!=null&&W.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[s]),Ne.useEffect(()=>{if(V.current)return()=>{G.current&&(G.current.focus({preventScroll:!0}),G.current=null,Ae.current=!1)}},[V.current]),Ne.createElement("section",{ref:t,"aria-label":`${C} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((S,Q)=>{var z;let[W,ne]=S.split("-");return L.length?Ne.createElement("ol",{key:S,dir:x==="auto"?fB():x,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":ee,"data-y-position":W,"data-lifted":k&&L.length>1&&!o,"data-x-position":ne,style:{"--front-toast-height":`${((z=E[0])==null?void 0:z.height)||0}px`,"--width":`${rY}px`,"--gap":`${y}px`,...m,...lY(c,u)},onBlur:X=>{Ae.current&&!X.currentTarget.contains(X.relatedTarget)&&(Ae.current=!1,G.current&&(G.current.focus({preventScroll:!0}),G.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||Ae.current||(Ae.current=!0,G.current=X.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{H||D(!1)},onDragEnd:()=>D(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},L.filter(X=>!X.position&&Q===0||X.position===S).map((X,te)=>{var fe,pe;return Ne.createElement(iY,{key:X.id,icons:j,index:te,toast:X,defaultRichColors:f,duration:(fe=p?.duration)!=null?fe:h,className:p?.className,descriptionClassName:p?.descriptionClassName,invert:r,visibleToasts:g,closeButton:(pe=p?.closeButton)!=null?pe
1078:i,interacting:H,position:S,style:p?.style,unstyled:p?.unstyled,classNames:p?.classNames,cancelButtonStyle:p?.cancelButtonStyle,actionButtonStyle:p?.actionButtonStyle,removeToast:se,toasts:L.filter(_e=>_e.position==X.position),heights:E.filter(_e=>_e.position==X.position),setHeights:O,expandByDefault:o,gap:y,loadingIcon:b,expanded:k,pauseWhenPageIsHidden:T,swipeDirections:e.swipeDirections})})):null}))});const aUe=Object.freeze(Object.defineProperty({__proto__:null,Toaster:sP,toast:et},Symbol.toStringTag,{value:"Module"})),cY=({...e})=>{const{theme:t="system"}=DW();return a.jsx(sP,{theme:t,position:"bottom-right",offset:80,className:"toaster group z-[150]",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",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})};var uY=b2[" useId ".trim().toString()]||(()=>{}),dY=0;function la(e){const[t,r]=A.useState(uY());return On(()=>{r(n=>n??String(dY++))},[e]),e||(t?`radix-${t}`:"")}const AY=["top","right","bottom","left"],yc=Math.min,lo=Math.max,C0=Math.round,Dp=Math.floor,Ni=e=>({x:e,y:e}),fY={left:"right",right:"left",bottom:"top",top:"bottom"},mY={start:"end",end:"start"};function Jb(e,t,r){return lo(e,yc(t,r))}function yl(e,t){return typeof e=="function"?e(t):e}function bl(e){return e.split("-")[0]}function MA(e){return e.split("-")[1]}function $2(e){return e==="x"?"y":"x"}function q2(e){return e==="y"?"height":"width"}const hY=new Set(["top","bottom"]);function ji(e){return hY.has(bl(e))?"y":"x"}function K2(e){return $2(ji(e))}function pY(e,t,r){r===void 0&&(r=!1);const n=MA(e),s=K2(e),o=q2(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=j0(i)),[i,j0(i)]}function gY(e){const t=j0(e);return[ew(e),t,ew(t)]}function ew(e){return e.replace(/start|end/g,t=>mY[t])}const mB=["left","right"],hB=["right","left"],xY=["top","bottom"],vY=["bottom","top"];function yY(e,t,r){switch(e){case"top":case"bottom":return r?t?hB:mB:t?mB:hB;case"left":case"right":return t?xY:vY;default:return[]}}function bY(e,t,r,n){const s=MA(e);let o=yY(bl(e),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(ew)))),o}function j0(e){return e.replace(/left|right|bottom|top/g,t=>fY[t])}function wY(e){return{top:0,right:0,bottom:0,left:0,...e}}function oP(e){return typeof e!="number"?wY(e):{top:e,right:e,bottom:e,left:e}}function E0(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function pB(e,t,r){let{reference:n,floating:s}=e;const o=ji(t),i=K2(t),l=q2(i),c=bl(t),u=o==="y",d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,h=n[l]/2-s[l]/2;let m;switch(c){case"top":m={x:d,y:n.y-s.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-s.width,y:f};break;default:m={x:n.x,y:n.y}}switch(MA(t)){case"start":m[i]-=h*(r&&u?-1:1);break;case"end":m[i]+=h*(r&&u?-1:1);break}return m}const _Y=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}=r,l=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=pB(u,n,c),h=n,m={},g=0;for(let p=0;p<l.length;p++){const{name:x,fn:y}=l[p],{x:b,y:j,data:C,reset:T}=await y({x:d,y:f,initialPlacement:n,placement:h,strategy:s,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});d=b??d,f=j??f,m={...m,[x]:{...m[x],...C}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(u=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:d,y:f}=pB(u,h,c)),p=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:m}};async function Lm(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=yl(t,e),g=oP(m),x=l[h?f==="floating"?"reference":"floating":f],y=E0(await o.getClippingRect
1078({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),b=f==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),C=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},T=E0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:j,strategy:c}):b);return{top:(y.top-T.top+g.top)/C.y,bottom:(T.bottom-y.bottom+g.bottom)/C.y,left:(y.left-T.left+g.left)/C.x,right:(T.right-y.right+g.right)/C.x}}const CY=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=yl(e,t)||{};if(u==null)return{};const f=oP(d),h={x:r,y:n},m=K2(s),g=q2(m),p=await i.getDimensions(u),x=m==="y",y=x?"top":"left",b=x?"bottom":"right",j=x?"clientHeight":"clientWidth",C=o.reference[g]+o.reference[m]-h[m]-o.floating[g],T=h[m]-o.reference[m],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=L?L[j]:0;(!P||!await(i.isElement==null?void 0:i.isElement(L)))&&(P=l.floating[j]||o.floating[g]);const I=C/2-T/2,E=P/2-p[g]/2-1,O=yc(f[y],E),k=yc(f[b],E),D=O,H=P-p[g]-k,U=P/2-p[g]/2+I,ee=Jb(D,U,H),ae=!c.arrow&&MA(s)!=null&&U!==ee&&o.reference[g]/2-(U<D?O:k)-p[g]/2<0,V=ae?U<D?U-D:U-H:0;return{[m]:h[m]+V,data:{[m]:ee,centerOffset:U-ee-V,...ae&&{alignmentOffset:V}},reset:ae}}}),jY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=yl(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const y=bl(s),b=ji(l),j=bl(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=h||(j||!p?[j0(l)]:gY(l)),L=g!=="none";!h&&L&&T.push(...bY(l,p,g,C));const P=[l,...T],I=await Lm(t,x),E=[];let O=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&E.push(I[y]),f){const U=pY(s,i,C);E.push(I[U[0]],I[U[1]])}if(O=[...O,{placement:s,overflows:E}],!E.every(U=>U<=0)){var k,D;const U=(((k=o.flip)==null?void 0:k.index)||0)+1,ee=P[U];if(ee&&(!(f==="alignment"?b!==ji(ee):!1)||O.every(q=>q.overflows[0]>0&&ji(q.placement)===b)))return{data:{index:U,overflows:O},reset:{placement:ee}};let ae=(D=O.filter(V=>V.overflows[0]<=0).sort((V,q)=>V.overflows[1]-q.overflows[1])[0])==null?void 0:D.placement;if(!ae)switch(m){case"bestFit":{var H;const V=(H=O.filter(q=>{if(L){const G=ji(q.placement);return G===b||G==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(G=>G>0).reduce((G,Ae)=>G+Ae,0)]).sort((q,G)=>q[1]-G[1])[0])==null?void 0:H[0];V&&(ae=V);break}case"initialPlacement":ae=l;break}if(s!==ae)return{reset:{placement:ae}}}return{}}}};function gB(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xB(e){return AY.some(t=>e[t]>=0)}const EY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=yl(e,t);switch(n){case"referenceHidden":{const o=await Lm(t,{...s,elementContext:"reference"}),i=gB(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:xB(i)}}}case"escaped":{const o=await Lm(t,{...s,altBoundary:!0}),i=gB(o,r.floating);return{data:{escapedOffsets:i,escaped:xB(i)}}}default:return{}}}}},iP=new Set(["left","top"]);async function BY(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=bl(r),l=MA(r),c=ji(r)==="y",u=iP.has(i)?-1:1,d=o&&c?-1:1,f=yl(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const NY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:i,middlewareData:l}=t,c=await BY(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:i}}}}},SY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=yl(e,t),u={x:r,y:n},d=await Lm(t,c),f=ji(bl(s)),h=$2(f);let m=u[h],g=u[f];if(o){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+d[x],j=m-d[y];m=Jb(b,m,j)}if(i){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=g+d[x],j=g-d[y];g=Jb(b,g,j)}const p=l.fn({...t,[h]:m,[f]:g});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:o,[f]:i}}}}}},kY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=yl(e,t),d={x:r,y:n},f=ji(s),h=$2(f);let m=d[h],g=d[f];const p=yl(l,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const j=h==="y"?"height":"width",C=o.reference[h]-o.floating[j]+x.mainAxis,T=o.reference[h]+o.reference[j]-x.mainAxis;m<C?m=C:m>T&&(m=T)}if(u){var y,b;const j=h==="y"?"width":"height",C=iP.has(bl(s)),T=o.reference[f]-o.floating[j]+(C&&((y=i.offset)==null?void 0:y[f])||0)+(C?0:x.crossAxis),L=o.reference[f]+o.reference[j]+(C?0:((b=i.offset)==null?void 0:b[f])||0)-(C?x.crossAxis:0);g<T?g=T:g>L&&(g=L)}return{[h]:m,[f]:g}}}},IY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:i,elements:l}=t,{apply:c=()=>{},...u}=yl(e,t),d=await Lm(t,u),f=bl(s),h=MA(s),m=ji(s)==="y",{width:g,height:p}=o.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,x=h==="end"?"top":"bottom");const b=p-d.top-d.bottom,j=g-d.left-d.right,C=yc(p-d[x],b),T=yc(g-d[y],j),L=!t.middlewareData.shift;let P=C,I=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(I=j),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=b),L&&
1078!h){const O=lo(d.left,0),k=lo(d.right,0),D=lo(d.top,0),H=lo(d.bottom,0);m?I=g-2*(O!==0||k!==0?O+k:lo(d.left,d.right)):P=p-2*(D!==0||H!==0?D+H:lo(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:P});const E=await i.getDimensions(l.floating);return g!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Fx(){return typeof window<"u"}function OA(e){return lP(e)?(e.nodeName||"").toLowerCase():"#document"}function Ao(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ti(e){var t;return(t=(lP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lP(e){return Fx()?e instanceof Node||e instanceof Ao(e).Node:!1}function ei(e){return Fx()?e instanceof Element||e instanceof Ao(e).Element:!1}function Ii(e){return Fx()?e instanceof HTMLElement||e instanceof Ao(e).HTMLElement:!1}function vB(e){return!Fx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ao(e).ShadowRoot}const FY=new Set(["inline","contents"]);function bh(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!FY.has(s)}const TY=new Set(["table","td","th"]);function PY(e){return TY.has(OA(e))}const LY=[":popover-open",":modal"];function Tx(e){return LY.some(t=>{try{return e.matches(t)}catch{return!1}})}const DY=["transform","translate","scale","rotate","perspective"],RY=["transform","translate","scale","rotate","perspective","filter"],MY=["paint","layout","strict","content"];function G2(e){const t=W2(),r=ei(e)?ti(e):e;return DY.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||RY.some(n=>(r.willChange||"").includes(n))||MY.some(n=>(r.contain||"").includes(n))}function OY(e){let t=bc(e);for(;Ii(t)&&!xA(t);){if(G2(t))return t;if(Tx(t))return null;t=bc(t)}return null}function W2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const UY=new Set(["html","body","#document"]);function xA(e){return UY.has(OA(e))}function ti(e){return Ao(e).getComputedStyle(e)}function Px(e){return ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bc(e){if(OA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vB(e)&&e.host||Ti(e);return vB(t)?t.host:t}function cP(e){const t=bc(e);return xA(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ii(t)&&bh(t)?t:cP(t)}function Dm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=cP(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=Ao(s);if(o){const l=tw(i);return t.concat(i,i.visualViewport||[],bh(s)?s:[],l&&r?Dm(l):[])}return t.concat(s,Dm(s,[],r))}function tw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uP(e){const t=ti(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=Ii(e),o=s?e.offsetWidth:r,i=s?e.offsetHeight:n,l=C0(r)!==o||C0(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function Y2(e){return ei(e)?e:e.contextElement}function nA(e){const t=Y2(e);if(!Ii(t))return Ni(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=uP(t);let i=(o?C0(r.width):r.width)/n,l=(o?C0(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const QY=Ni(0);function dP(e){const t=Ao(e);return!W2()||!t.visualViewport?QY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ao(e)?!1:t}function Ru(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Y2(e);let i=Ni(1);t&&(n?ei(n)&&(i=nA(n)):i=nA(e));const l=VY(o,r,n)?dP(o):Ni(0);let c=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const h=Ao(o),m=n&&ei(n)?Ao(n):n;let g=h,p=tw(g);for(;p&&n&&m!==g;){const x=nA(p),y=p.getBoundingClientRect(),b=ti(p),j=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*x.x,C=y.top+(p.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,d*=x.x,f*=x.y,c+=j,u+=C,g=Ao(p),p=tw(g)}}return E0({width:d,height:f,x:c,y:u})}function X2(e,t){const r=Px(e).scrollLeft;return t?t.left+r:Ru(Ti(e)).left+r}function AP(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:X2(e,n)),o=n.top+t.scrollTop;return{x:s,y:o}}function HY(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",i=Ti(n),l=t?Tx(t.floating):!1;if(n===i||l&&o)return r;let c={scrollLeft:0,scrollTop:0},u=Ni(1);const d=Ni(0),f=Ii(n);if((f||!f&&!o)&&((OA(n)!=="body"||bh(i))&&(c=Px(n)),Ii(n))){const m=Ru(n);u=nA(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const h=i&&!f&&!o?AP(i,c,!0):Ni(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-c.scrollTop*u.y+d.y+h.y}}function zY(e){return Array.from(e.getClientRects())}function $Y(e){const t=Ti(e),r=Px(e),n=e.ownerDocument.body,s=lo(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=lo(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+X2(e);const l=-r.scrollTop;return ti(n).direction==="rtl"&&(i+=lo(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:l}}
1078function qY(e,t){const r=Ao(e),n=Ti(e),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,l=0,c=0;if(s){o=s.width,i=s.height;const u=W2();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:o,height:i,x:l,y:c}}const KY=new Set(["absolute","fixed"]);function GY(e,t){const r=Ru(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=Ii(e)?nA(e):Ni(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,c=s*o.x,u=n*o.y;return{width:i,height:l,x:c,y:u}}function yB(e,t,r){let n;if(t==="viewport")n=qY(e,r);else if(t==="document")n=$Y(Ti(e));else if(ei(t))n=GY(t,r);else{const s=dP(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return E0(n)}function fP(e,t){const r=bc(e);return r===t||!ei(r)||xA(r)?!1:ti(r).position==="fixed"||fP(r,t)}function WY(e,t){const r=t.get(e);if(r)return r;let n=Dm(e,[],!1).filter(l=>ei(l)&&OA(l)!=="body"),s=null;const o=ti(e).position==="fixed";let i=o?bc(e):e;for(;ei(i)&&!xA(i);){const l=ti(i),c=G2(i);!c&&l.position==="fixed"&&(s=null),(o?!c&&!s:!c&&l.position==="static"&&!!s&&KY.has(s.position)||bh(i)&&!c&&fP(e,i))?n=n.filter(d=>d!==i):s=l,i=bc(i)}return t.set(e,n),n}function YY(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Tx(t)?[]:WY(t,this._c):[].concat(r),n],l=i[0],c=i.reduce((u,d)=>{const f=yB(t,d,s);return u.top=lo(f.top,u.top),u.right=yc(f.right,u.right),u.bottom=yc(f.bottom,u.bottom),u.left=lo(f.left,u.left),u},yB(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function XY(e){const{width:t,height:r}=uP(e);return{width:t,height:r}}function ZY(e,t,r){const n=Ii(t),s=Ti(t),o=r==="fixed",i=Ru(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=Ni(0);function u(){c.x=X2(s)}if(n||!n&&!o)if((OA(t)!=="body"||bh(s))&&(l=Px(t)),n){const m=Ru(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else s&&u();o&&!n&&s&&u();const d=s&&!n&&!o?AP(s,l):Ni(0),f=i.left+l.scrollLeft-c.x-d.x,h=i.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function Ty(e){return ti(e).position==="static"}function bB(e,t){if(!Ii(e)||ti(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ti(e)===r&&(r=r.ownerDocument.body),r}function mP(e,t){const r=Ao(e);if(Tx(e))return r;if(!Ii(e)){let s=bc(e);for(;s&&!xA(s);){if(ei(s)&&!Ty(s))return s;s=bc(s)}return r}let n=bB(e,t);for(;n&&PY(n)&&Ty(n);)n=bB(n,t);return n&&xA(n)&&Ty(n)&&!G2(n)?r:n||OY(e)||r}const JY=async function(e){const t=this.getOffsetParent||mP,r=this.getDimensions,n=await r(e.floating);return{reference:ZY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function eX(e){return ti(e).direction==="rtl"}const tX={convertOffsetParentRelativeRectToViewportRelativeRect:HY,getDocumentElement:Ti,getClippingRect:YY,getOffsetParent:mP,getElementRects:JY,getClientRects:zY,getDimensions:XY,getScale:nA,isElement:ei,isRTL:eX};function hP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rX(e,t){let r=null,n;const s=Ti(e);function o(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(l||t(),!h||!m)return;const g=Dp(f),p=Dp(s.clientWidth-(d+h)),x=Dp(s.clientHeight-(f+m)),y=Dp(d),j={rootMargin:-g+"px "+-p+"px "+-x+"px "+-y+"px",threshold:lo(0,yc(1,c))||1};let C=!0;function T(L){const P=L[0].intersectionRatio;if(P!==c){if(!C)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!hP(u,e.getBoundingClientRect())&&i(),C=!1}try{r=new IntersectionObserver(T,{...j,root:s.ownerDocument})}catch{r=new IntersectionObserver(T,j)}r.observe(e)}return i(!0),o}function nX(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Y2(e),d=s||o?[...u?Dm(u):[],...Dm(t)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const f=u&&l?rX(u,r):null;let h=-1,m=null;i&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var j;(j=m)==null||j.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let g,p=c?Ru(e):null;c&&x();function x(){const y=Ru(e);p&&!hP(p,y)&&r(),p=y,g=requestAnimationFrame(x)}return r(),()=>{var y;d.forEach(b=>{s&&b.removeEventListener("scroll",r),o&&b.removeEventListener("resize",r)}),f?.(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const aX=NY,sX=SY,oX=jY,iX=IY,lX=EY,wB=CY,cX=kY,uX=(e,t,r)=>{const n=new Map,s={platform:tX,...r},o={...s.platform,_c:n};return _Y(e,t,{...s,platform:o})};var dX=typeof document<"u",AX=function(){},Yg=dX?A.useLayoutEffect:AX;function B0(e,t){if(e===t)return!0;
1078if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!B0(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!B0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function pP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _B(e,t){const r=pP(e);return Math.round(t*r)/r}function Py(e){const t=A.useRef(e);return Yg(()=>{t.current=e}),t}function fX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=A.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=A.useState(n);B0(h,n)||m(n);const[g,p]=A.useState(null),[x,y]=A.useState(null),b=A.useCallback(q=>{q!==L.current&&(L.current=q,p(q))},[]),j=A.useCallback(q=>{q!==P.current&&(P.current=q,y(q))},[]),C=o||g,T=i||x,L=A.useRef(null),P=A.useRef(null),I=A.useRef(d),E=c!=null,O=Py(c),k=Py(s),D=Py(u),H=A.useCallback(()=>{if(!L.current||!P.current)return;const q={placement:t,strategy:r,middleware:h};k.current&&(q.platform=k.current),uX(L.current,P.current,q).then(G=>{const Ae={...G,isPositioned:D.current!==!1};U.current&&!B0(I.current,Ae)&&(I.current=Ae,IA.flushSync(()=>{f(Ae)}))})},[h,t,r,k,D]);Yg(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const U=A.useRef(!1);Yg(()=>(U.current=!0,()=>{U.current=!1}),[]),Yg(()=>{if(C&&(L.current=C),T&&(P.current=T),C&&T){if(O.current)return O.current(C,T,H);H()}},[C,T,H,O,E]);const ee=A.useMemo(()=>({reference:L,floating:P,setReference:b,setFloating:j}),[b,j]),ae=A.useMemo(()=>({reference:C,floating:T}),[C,T]),V=A.useMemo(()=>{const q={position:r,left:0,top:0};if(!ae.floating)return q;const G=_B(ae.floating,d.x),Ae=_B(ae.floating,d.y);return l?{...q,transform:"translate("+G+"px, "+Ae+"px)",...pP(ae.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:Ae}},[r,l,ae.floating,d.x,d.y]);return A.useMemo(()=>({...d,update:H,refs:ee,elements:ae,floatingStyles:V}),[d,H,ee,ae,V])}const mX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?wB({element:n.current,padding:s}).fn(r):{}:n?wB({element:n,padding:s}).fn(r):{}}}},hX=(e,t)=>({...aX(e),options:[e,t]}),pX=(e,t)=>({...sX(e),options:[e,t]}),gX=(e,t)=>({...cX(e),options:[e,t]}),xX=(e,t)=>({...oX(e),options:[e,t]}),vX=(e,t)=>({...iX(e),options:[e,t]}),yX=(e,t)=>({...lX(e),options:[e,t]}),bX=(e,t)=>({...mX(e),options:[e,t]});var wX="Arrow",gP=A.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return a.jsx(_t.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});gP.displayName=wX;var _X=gP;function Z2(e){const[t,r]=A.useState(void 0);return On(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,l;if("borderBoxSize"in o){const c=o.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var J2="Popper",[xP,Sc]=Ha(J2),[CX,vP]=xP(J2),yP=e=>{const{__scopePopper:t,children:r}=e,[n,s]=A.useState(null);return a.jsx(CX,{scope:t,anchor:n,onAnchorChange:s,children:r})};yP.displayName=J2;var bP="PopperAnchor",wP=A.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=vP(bP,r),i=A.useRef(null),l=er(t,i);return A.useEffect(()=>{o.onAnchorChange(n?.current||i.current)}),n?null:a.jsx(_t.div,{...s,ref:l})});wP.displayName=bP;var e5="PopperContent",[jX,EX]=xP(e5),_P=A.forwardRef((e,t)=>
1078{const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=e,x=vP(e5,r),[y,b]=A.useState(null),j=er(t,X=>b(X)),[C,T]=A.useState(null),L=Z2(C),P=L?.width??0,I=L?.height??0,E=n+(o!=="center"?"-"+o:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],D=k.length>0,H={padding:O,boundary:k.filter(NX),altBoundary:D},{refs:U,floatingStyles:ee,placement:ae,isPositioned:V,middlewareData:q}=fX({strategy:"fixed",placement:E,whileElementsMounted:(...X)=>nX(...X,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[hX({mainAxis:s+I,alignmentAxis:i}),c&&pX({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?gX():void 0,...H}),c&&xX({...H}),vX({...H,apply:({elements:X,rects:te,availableWidth:fe,availableHeight:pe})=>{const{width:_e,height:xe}=te.reference,Be=X.floating.style;Be.setProperty("--radix-popper-available-width",`${fe}px`),Be.setProperty("--radix-popper-available-height",`${pe}px`),Be.setProperty("--radix-popper-anchor-width",`${_e}px`),Be.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),C&&bX({element:C,padding:l}),SX({arrowWidth:P,arrowHeight:I}),h&&yX({strategy:"referenceHidden",...H})]}),[G,Ae]=EP(ae),se=Bn(g);On(()=>{V&&se?.()},[V,se]);const S=q.arrow?.x,Q=q.arrow?.y,z=q.arrow?.centerOffset!==0,[W,ne]=A.useState();return On(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),a.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:V?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(jX,{scope:r,placedSide:G,onArrowChange:T,arrowX:S,arrowY:Q,shouldHideArrow:z,children:a.jsx(_t.div,{"data-side":G,"data-align":Ae,...p,ref:j,style:{...p.style,animation:V?void 0:"none"}})})})});_P.displayName=e5;var CP="PopperArrow",BX={top:"bottom",right:"left",bottom:"top",left:"right"},jP=A.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=EX(CP,n),i=BX[o.placedSide];return a.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:a.jsx(_X,{...s,ref:r,style:{...s.style,display:"block"}})})});jP.displayName=CP;function NX(e){return e!==null}var SX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=EP(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(s.arrow?.x??0)+l/2,m=(s.arrow?.y??0)+c/2;let g="",p="";return u==="bottom"?(g=i?f:`${h}px`,p=`${-c}px`):u==="top"?(g=i?f:`${h}px`,p=`${n.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=i?f:`${m}px`):u==="left"&&(g=`${n.floating.width+c}px`,p=i?f:`${m}px`),{data:{x:g,y:p}}}});function EP(e){const[t,r="center"]=e.split("-");return[t,r]}var wh=yP,_h=wP,Lx=_P,Dx=jP,[Rx]=Ha("Tooltip",[Sc]),Mx=Sc(),BP="TooltipProvider",kX=700,rw="tooltip.open",[IX,t5]=Rx(BP),NP=e=>{const{__scopeTooltip:t,delayDuration:r=kX,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,i=A.useRef(!0),l=A.useRef(!1),c=A.useRef(0);return A.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),a.jsx(IX,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:A.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:A.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:o})};NP.displayName=BP;var Rm="Tooltip",[FX,Ox]=Rx(Rm),SP=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,c=t5(Rm,e.__scopeTooltip),u=Mx(t),[d,f]=A.useState(null),h=la(),m=A.useRef(0),g=i??c.disableHoverableContent,p=l??c.delayDuration,x=A.useRef(!1),[y,b]=Io({prop:n,defaultProp:s??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(rw))):c.onClose(),o?.(P)},caller:Rm}),j=A.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=A.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x.current=!1,b(!0)},[b]),T=A.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),L=A.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,b(!0),m.current=0},p)},[p,b]);return A.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),a.jsx(wh,{...u,children:a.jsx(FX,{scope:t,contentId:h,open:y,stateAttribute:j,trigger:d,onTriggerChange:f,onTriggerEnter:A.useCallback(()=>{c.isOpenDelayedRef.current?L():C()},[c.isOpenDelayedRef,L,C]),onTriggerLeave:A.useCallback(()=>{g?T():(window.clearTimeout(m.current),m.current=0)},[T,g]),onOpen:C,onClose:T,disableHoverableContent:g,children:r})})};SP.displayName=Rm;var nw="TooltipTrigger",kP=A.forwardRef((e,t)=>
1078{const{__scopeTooltip:r,...n}=e,s=Ox(nw,r),o=t5(nw,r),i=Mx(r),l=A.useRef(null),c=er(t,l,s.onTriggerChange),u=A.useRef(!1),d=A.useRef(!1),f=A.useCallback(()=>u.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),a.jsx(_h,{asChild:!0,...i,children:a.jsx(_t.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:At(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:At(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:At(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:At(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:At(e.onBlur,s.onClose),onClick:At(e.onClick,s.onClose)})})});kP.displayName=nw;var TX="TooltipPortal",[sUe,PX]=Rx(TX,{forceMount:void 0}),vA="TooltipContent",IP=A.forwardRef((e,t)=>{const r=PX(vA,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,i=Ox(vA,e.__scopeTooltip);return a.jsx(Na,{present:n||i.open,children:i.disableHoverableContent?a.jsx(FP,{side:s,...o,ref:t}):a.jsx(LX,{side:s,...o,ref:t})})}),LX=A.forwardRef((e,t)=>{const r=Ox(vA,e.__scopeTooltip),n=t5(vA,e.__scopeTooltip),s=A.useRef(null),o=er(t,s),[i,l]=A.useState(null),{trigger:c,onClose:u}=r,d=s.current,{onPointerInTransitChange:f}=n,h=A.useCallback(()=>{l(null),f(!1)},[f]),m=A.useCallback((g,p)=>{const x=g.currentTarget,y={x:g.clientX,y:g.clientY},b=UX(y,x.getBoundingClientRect()),j=QX(y,b),C=VX(p.getBoundingClientRect()),T=zX([...j,...C]);l(T),f(!0)},[f]);return A.useEffect(()=>()=>h(),[h]),A.useEffect(()=>{if(c&&d){const g=x=>m(x,d),p=x=>m(x,c);return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",p)}}},[c,d,m,h]),A.useEffect(()=>{if(i){const g=p=>{const x=p.target,y={x:p.clientX,y:p.clientY},b=c?.contains(x)||d?.contains(x),j=!HX(y,i);b?h():j&&(h(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,i,u,h]),a.jsx(FP,{...e,ref:o})}),[DX,RX]=Rx(Rm,{isInside:!1}),MX=LF("TooltipContent"),FP=A.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,c=Ox(vA,r),u=Mx(r),{onClose:d}=c;return A.useEffect(()=>(document.addEventListener(rw,d),()=>document.removeEventListener(rw,d)),[d]),A.useEffect(()=>{if(c.trigger){const f=h=>{h.target?.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),a.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:a.jsxs(Lx,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(MX,{children:n}),a.jsx(DX,{scope:r,isInside:!0,children:a.jsx(OH,{id:c.contentId,role:"tooltip",children:s||n})})]})})});IP.displayName=vA;var TP="TooltipArrow",OX=A.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Mx(r);return RX(TP,r).isInside?null:a.jsx(Dx,{...s,...n,ref:t})});OX.displayName=TP;function UX(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function QX(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function VX(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function HX(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],c=t[i],u=l.x,d=l.y,f=c.x,h=c.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(s=!s)}return s}function zX(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),$X(t)}function $X(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var qX=NP,KX=SP,GX=kP,PP=IP;const LP=qX,WX=KX,YX=GX,DP=A.forwardRef(({className:e,sideOffset:t=4,...r},n)=>
1078a.jsx(PP,{ref:n,sideOffset:t,className:je("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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),...r}));DP.displayName=PP.displayName;var UA=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Mu=typeof window>"u"||"Deno"in globalThis;function bs(){}function XX(e,t){return typeof e=="function"?e(t):e}function aw(e){return typeof e=="number"&&e>=0&&e!==1/0}function RP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uc(e,t){return typeof e=="function"?e(t):e}function Co(e,t){return typeof e=="function"?e(t):e}function CB(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:l}=e;if(i){if(n){if(t.queryHash!==r5(i,t.options))return!1}else if(!Mm(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||o&&!o(t))}function jB(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ou(t.options.mutationKey)!==Ou(o))return!1}else if(!Mm(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function r5(e,t){return(t?.queryKeyHashFn||Ou)(e)}function Ou(e){return JSON.stringify(e,(t,r)=>sw(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Mm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Mm(e[r],t[r])):!1}function MP(e,t){if(e===t)return e;const r=EB(e)&&EB(t);if(r||sw(e)&&sw(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),i=o.length,l=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<i;d++){const f=r?d:o[d];(!r&&c.has(f)||r)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,u++):(l[f]=MP(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&u++)}return s===i&&u===s?e:l}return t}function N0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function EB(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sw(e){if(!BB(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!BB(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function BB(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZX(e){return new Promise(t=>{setTimeout(t,e)})}function ow(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?MP(e,t):t}function oUe(e){return e}function JX(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function eZ(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var n5=Symbol();function OP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===n5?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function UP(e,t){return typeof e=="function"?e(...t):!!e}var tZ=class extends UA{#t;#e;#r;constructor(){super(),this.#r=e=>{if(!Mu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},a5=new tZ,rZ=class extends UA{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(!Mu&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}
1078setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},S0=new rZ;function iw(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function nZ(e){return Math.min(1e3*2**e,3e4)}function QP(e){return(e??"online")==="online"?S0.isOnline():!0}var VP=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Ly(e){return e instanceof VP}function HP(e){let t=!1,r=0,n=!1,s;const o=iw(),i=p=>{n||(h(new VP(p)),e.abort?.())},l=()=>{t=!0},c=()=>{t=!1},u=()=>a5.isFocused()&&(e.networkMode==="always"||S0.isOnline())&&e.canRun(),d=()=>QP(e.networkMode)&&e.canRun(),f=p=>{n||(n=!0,e.onSuccess?.(p),s?.(),o.resolve(p))},h=p=>{n||(n=!0,e.onError?.(p),s?.(),o.reject(p))},m=()=>new Promise(p=>{s=x=>{(n||u())&&p(x)},e.onPause?.()}).then(()=>{s=void 0,n||e.onContinue?.()}),g=()=>{if(n)return;let p;const x=r===0?e.initialPromise:void 0;try{p=x??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(f).catch(y=>{if(n)return;const b=e.retry??(Mu?0:3),j=e.retryDelay??nZ,C=typeof j=="function"?j(r,y):j,T=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,y);if(t||!T){h(y);return}r++,e.onFail?.(r,y),ZX(C).then(()=>u()?void 0:m()).then(()=>{t?h(y):g()})})};return{promise:o,cancel:i,continue:()=>(s?.(),o),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?g():m().then(g),o)}}var aZ=e=>setTimeout(e,0);function sZ(){let e=[],t=0,r=l=>{l()},n=l=>{l()},s=aZ;const o=l=>{t?e.push(l):s(()=>{r(l)})},i=()=>{const l=e;e=[],l.length&&s(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var ya=sZ(),zP=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),aw(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mu?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},oZ=class extends zP{#t;#e;#r;#n;#a;#o;#i;constructor(e){super(),this.#i=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=iZ(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=ow(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(bs).catch(bs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Co(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n5||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>uc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!RP(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#i?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)}
1078)},s=()=>{const c=OP(this.options,t),d=(()=>{const f={client:this.#n,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#i=!1,this.options.persister?this.options.persister(c,d,this):c(d)},i=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:s};return n(c),c})();this.options.behavior?.onFetch(i,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#s({type:"fetch",meta:i.fetchOptions?.meta});const l=c=>{Ly(c)&&c.silent||this.#s({type:"error",error:c}),Ly(c)||(this.#r.config.onError?.(c,this),this.#r.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#a=HP({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(u){l(u);return}this.#r.config.onSuccess?.(c,this),this.#r.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:l,onFail:(c,u)=>{this.#s({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#a.start()}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$P(r.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Ly(n)&&n.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...r,error:n,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ya.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function $P(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function iZ(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var lZ=class extends UA{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const n=t.queryKey,s=t.queryHash??r5(n,t);let o=this.get(s);return o||(o=new oZ({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ya.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>CB(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>CB(e,r)):t}notify(e){ya.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ya.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ya.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},cZ=class extends zP{#t;#e;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||qP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})};this.#r=HP({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(s,o)=>{this.#n({type:"failed",failureCount:s,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",n=!this.#r.canStart();try{if(r)t();else{this.#n({type:"pending",variables:e,isPaused:n}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:n})}const s=await this.#r.start();return await this.#e.config.onSuccess?.(s,e,this.state.context,this),await this.options.onSuccess?.(s,e,this.state.context),await this.#e.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,e,this.state.context),this.#n({type:"success",data:s}),s}catch(s){try{throw await this.#e.config.onError?.(s,e,this.state.context,this),await this.options.onError?.(s,e,this.state.context),await this.#e.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,e,this.state.context),s}finally{this.#n({type:"error",error:s})}}finally{this.#e.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
1078case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ya.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function qP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uZ=class extends UA{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const n=new cZ({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=Rp(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Rp(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Rp(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(s=>s.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Rp(e);return typeof t=="string"?this.#e.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ya.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>jB(t,r))}findAll(e={}){return this.getAll().filter(t=>jB(e,t))}notify(e){ya.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
1078t.state.isPaused);return ya.batch(()=>Promise.all(e.map(t=>t.continue().catch(bs))))}};function Rp(e){return e.options.scope?.id}function NB(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let d=!1;const f=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},h=OP(t.options,t.fetchOptions),m=async(g,p,x)=>{if(d)return Promise.reject();if(p==null&&g.pages.length)return Promise.resolve(g);const b=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:p,direction:x?"backward":"forward",meta:t.options.meta};return f(L),L})(),j=await h(b),{maxPages:C}=t.options,T=x?eZ:JX;return{pages:T(g.pages,j,C),pageParams:T(g.pageParams,p,C)}};if(s&&o.length){const g=s==="backward",p=g?KP:lw,x={pages:o,pageParams:i},y=p(n,x);l=await m(x,y,g)}else{const g=e??o.length;do{const p=c===0?i[0]??n.initialPageParam:lw(n,l);if(c>0&&p==null)break;l=await m(l,p),c++}while(c<g)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function lw(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function KP(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function iUe(e,t){return t?lw(e,t)!=null:!1}function lUe(e,t){return!t||!e.getPreviousPageParam?!1:KP(e,t)!=null}var dZ=class{#t;#e;#r;#n;#a;#o;#i;#s;constructor(e={}){this.#t=e.queryCache||new lZ,this.#e=e.mutationCache||new uZ,this.#r=e.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#i=a5.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=S0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#i?.(),this.#i=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(uc(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(n.queryHash)?.state.data,i=XX(t,o);if(i!==void 0)return this.#t.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return ya.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;ya.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return ya.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ya.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(bs).catch(bs)}invalidateQueries(e,t={}){return ya.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=ya.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(bs)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(bs)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(uc(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bs).catch(bs)}fetchInfiniteQuery(e){return e.behavior=NB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bs).catch(bs)}ensureInfiniteQueryData(e){return e.behavior=NB(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return S0.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(Ou(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{Mm(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#a.set(Ou(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(n=>{Mm(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=r5(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n5&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},AZ=class extends UA{constructor(e,t){super(),this.options=t,this.#t=e,this.#s=null,this.#i=iw(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#n=void 0;#a;#o;#i;#s;#h;#A;#f;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),SB(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cw(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cw(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Co(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!N0(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&kB(this.#e,r,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#e!==r||Co(this.options.enabled,this.#e)!==Co(t.enabled,this.#e)||uc(this.options.staleTime,this.#e)!==uc(t.staleTime,this.#e))&&this.#p();const s=this.#g();n&&(this.#e!==r||Co(this.options.enabled,this.#e)!==Co(t.enabled,this.#e)||s!==this.#l)&&this.#x(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return mZ(this,r)&&(this.#n=r,this.#o=this.options,this.#a=this.#e.state),r}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),Reflect.get(r,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bs)),t}#p(){this.#y();const e=uc(this.options.staleTime,this.#e);if(Mu||this.#n.isStale||!aw(e))return;const r=RP(this.#n.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#x(e){this.#b(),this.#l=e,!(Mu||Co(this.options.enabled,this.#e)===!1||!aw(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>
1078{(this.options.refetchIntervalInBackground||a5.isFocused())&&this.#d()},this.#l))}#v(){this.#p(),this.#x(this.#g())}#y(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#b(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#e,n=this.options,s=this.#n,o=this.#a,i=this.#o,c=e!==r?e.state:this.#r,{state:u}=e;let d={...u},f=!1,h;if(t._optimisticResults){const I=this.hasListeners(),E=!I&&SB(e,t),O=I&&kB(e,r,t,n);(E||O)&&(d={...d,...$P(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:p}=d;h=d.data;let x=!1;if(t.placeholderData!==void 0&&h===void 0&&p==="pending"){let I;s?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(I=s.data,x=!0):I=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,I!==void 0&&(p="success",h=ow(s?.data,I,t),f=!0)}if(t.select&&h!==void 0&&!x)if(s&&h===o?.data&&t.select===this.#h)h=this.#A;else try{this.#h=t.select,h=t.select(h),h=ow(s?.data,h,t),this.#A=h,this.#s=null}catch(I){this.#s=I}this.#s&&(m=this.#s,h=this.#A,g=Date.now(),p="error");const y=d.fetchStatus==="fetching",b=p==="pending",j=p==="error",C=b&&y,T=h!==void 0,P={status:p,fetchStatus:d.fetchStatus,isPending:b,isSuccess:p==="success",isError:j,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:j&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:j&&T,isStale:s5(e,t),refetch:this.refetch,promise:this.#i,isEnabled:Co(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=k=>{P.status==="error"?k.reject(P.error):P.data!==void 0&&k.resolve(P.data)},E=()=>{const k=this.#i=P.promise=iw();I(k)},O=this.#i;switch(O.status){case"pending":e.queryHash===r.queryHash&&I(O);break;case"fulfilled":(P.status==="error"||P.data!==O.value)&&E();break;case"rejected":(P.status!=="error"||P.error!==O.reason)&&E();break}}return P}updateResult(){const e=this.#n,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#f=this.#e),N0(t,e))return;this.#n=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!this.#m.size)return!0;const o=new Set(s??this.#m);return this.options.throwOnError&&o.add("error"),Object.keys(this.#n).some(i=>{const l=i;return this.#n[l]!==e[l]&&o.has(l)})};this.#_({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#_(e){ya.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function fZ(e,t){return Co(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SB(e,t){return fZ(e,t)||e.state.data!==void 0&&cw(e,t,t.refetchOnMount)}function cw(e,t,r){if(Co(t.enabled,e)!==!1&&uc(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&s5(e,t)}return!1}function kB(e,t,r,n){return(e!==t||Co(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&s5(e,r)}function s5(e,t){return Co(t.enabled,e)!==!1&&e.isStaleByTime(uc(t.staleTime,e))}function mZ(e,t){return!N0(e.getCurrentResult(),t)}var hZ=class extends UA{#t;#e=void 0;#r;#n;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),N0(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&Ou(r.mutationKey)!==Ou(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#a(),this.#o()}mutate(t,r){return this.#n=r,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#a(){const t=this.#r?.state??qP();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.
1078status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){ya.batch(()=>{if(this.#n&&this.hasListeners()){const r=this.#e.variables,n=this.#e.context;t?.type==="success"?(this.#n.onSuccess?.(t.data,r,n),this.#n.onSettled?.(t.data,null,r,n)):t?.type==="error"&&(this.#n.onError?.(t.error,r,n),this.#n.onSettled?.(void 0,t.error,r,n))}this.listeners.forEach(r=>{r(this.#e)})})}},GP=A.createContext(void 0),vn=e=>{const t=A.useContext(GP);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pZ=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(GP.Provider,{value:e,children:t})),WP=A.createContext(!1),gZ=()=>A.useContext(WP);WP.Provider;function xZ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vZ=A.createContext(xZ()),yZ=()=>A.useContext(vZ),bZ=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},wZ=e=>{A.useEffect(()=>{e.clearReset()},[e])},_Z=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||UP(r,[e.error,n])),CZ=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jZ=(e,t)=>e.isLoading&&e.isFetching&&!t,EZ=(e,t)=>e?.suspense&&t.isPending,IB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function BZ(e,t,r){const n=gZ(),s=yZ(),o=vn(),i=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=n?"isRestoring":"optimistic",CZ(i),bZ(i,s),wZ(s);const l=!o.getQueryCache().get(i.queryHash),[c]=A.useState(()=>new t(o,i)),u=c.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(f=>{const h=d?c.subscribe(ya.batchCalls(f)):bs;return c.updateResult(),h},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),A.useEffect(()=>{c.setOptions(i)},[i,c]),EZ(i,u))throw IB(i,c,s);if(_Z({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!Mu&&jZ(u,n)&&(l?IB(i,c,s):o.getQueryCache().get(i.queryHash)?.promise)?.catch(bs).finally(()=>{c.updateResult()}),i.notifyOnChangeProps?u:c.trackResult(u)}function jt(e,t){return BZ(e,AZ)}function Dr(e,t){const r=vn(),[n]=A.useState(()=>new hZ(r,e));A.useEffect(()=>{n.setOptions(e)},[n,e]);const s=A.useSyncExternalStore(A.useCallback(i=>n.subscribe(ya.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=A.useCallback((i,l)=>{n.mutate(i,l).catch(bs)},[n]);if(s.error&&UP(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}/** 1079 * @remix-run/router v1.23.0 1080 * 1081 * Copyright (c) Remix Software Inc. 1082 * 1083 * This source code is licensed under the MIT license found in the 1084 * LICENSE.md file in the root directory of this source tree. 1085 * 1086 * @license MIT 1087 */function Om(){return Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Om.apply(this,arguments)}var nc;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(nc||(nc={}));const FB="popstate";function NZ(e){e===void 0&&(e={});function t(n,s){let{pathname:o,search:i,hash:l}=n.location;return uw("",{pathname:o,search:i,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:k0(s)}return kZ(t,r,null,e)}function In(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function YP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SZ(){return Math.random().toString(36).substr(2,8)}function TB(e,t){return{usr:e.state,key:e.key,idx:t}}function uw(e,t,r,n){return r===void 0&&(r=null),Om({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?QA(t):t,{state:r,key:t&&t.key||n||SZ()})}function k0(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function QA(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function kZ(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,l=nc.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Om({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=nc.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:p.location,delta:y})}function h(x,y){l=nc.Push;let b=uw(p.location,x,y);u=d()+1;let j=TB(b,u),C=p.createHref(b);try{i.pushState(j,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;s.location.assign(C)}o&&c&&c({action:l,location:p.location,delta:1})}function m(x,y){l=nc.Replace;let b=uw(p.location,x,y);u=d();let j=TB(b,u),C=p.createHref(b);i.replaceState(j,"",C),o&&c&&c({action:l,location:p.location,delta:0})}function g(x){let y=s.location.origin!=="null"?s.location.origin:s.location.href,b=typeof x=="str
1087ing"?x:k0(x);return b=b.replace(/ $/,"%20"),In(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let p={get action(){return l},get location(){return e(s,i)},listen(x){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(FB,f),c=x,()=>{s.removeEventListener(FB,f),c=null}},createHref(x){return t(s,x)},createURL:g,encodeLocation(x){let y=g(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(x){return i.go(x)}};return p}var PB;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(PB||(PB={}));function IZ(e,t,r){return r===void 0&&(r="/"),FZ(e,t,r)}function FZ(e,t,r,n){let s=typeof t=="string"?QA(t):t,o=yA(s.pathname||"/",r);if(o==null)return null;let i=XP(e);TZ(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=zZ(o);l=VZ(i[c],u)}return l}function XP(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(o,i,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(In(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=dc([n,c.relativePath]),d=r.concat(c);o.children&&o.children.length>0&&(In(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),XP(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:UZ(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,i);else for(let c of ZP(o.path))s(o,i,c)}),t}function ZP(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=ZP(n.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),s&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function TZ(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:QZ(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const PZ=/^:[\w-]+$/,LZ=3,DZ=2,RZ=1,MZ=10,OZ=-2,LB=e=>e==="*";function UZ(e,t){let r=e.split("/"),n=r.length;return r.some(LB)&&(n+=OZ),t&&(n+=DZ),r.filter(s=>!LB(s)).reduce((s,o)=>s+(PZ.test(o)?LZ:o===""?RZ:MZ),n)}function QZ(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function VZ(e,t,r){let{routesMeta:n}=e,s={},o="/",i=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=dw({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),h=c.route;if(!f)return null;
1087Object.assign(s,f.params),i.push({params:s,pathname:dc([o,f.pathname]),pathnameBase:GZ(dc([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=dc([o,f.pathnameBase]))}return i}function dw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=HZ(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let p=l[f]||"";i=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const g=l[f];return m&&!g?u[h]=void 0:u[h]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function HZ(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),YP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function zZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return YP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yA(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function $Z(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?QA(e):e;return{pathname:r?r.startsWith("/")?r:qZ(r,t):t,search:WZ(n),hash:YZ(s)}}function qZ(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Dy(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function KZ(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function o5(e,t){let r=KZ(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function i5(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=QA(e):(s=Om({},e),In(!s.pathname||!s.pathname.includes("?"),Dy("?","pathname","search",s)),In(!s.pathname||!s.pathname.includes("#"),Dy("#","pathname","hash",s)),In(!s.search||!s.search.includes("#"),Dy("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,l;if(i==null)l=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=$Z(s,l),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const dc=e=>e.join("/").replace(/\/\/+/g,"/"),GZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function XZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const JP=["post","put","patch","delete"];new Set(JP);const ZZ=["get",...JP];new Set(ZZ);/** 1088 * React Router v6.30.1 1089 * 1090 * Copyright (c) Remix Software Inc. 1091 * 1092 * This source code is licensed under the MIT license found in the 1093 * LICENSE.md file in the root directory of this source tree. 1094 * 1095 * @license MIT 1096 */function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1096for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Um.apply(this,arguments)}const Ux=A.createContext(null),eL=A.createContext(null),Cl=A.createContext(null),Qx=A.createContext(null),Pi=A.createContext({outlet:null,matches:[],isDataRoute:!1}),tL=A.createContext(null);function JZ(e,t){let{relative:r}=t===void 0?{}:t;Zu()||In(!1);let{basename:n,navigator:s}=A.useContext(Cl),{hash:o,pathname:i,search:l}=Hx(e,{relative:r}),c=i;return n!=="/"&&(c=i==="/"?n:dc([n,i])),s.createHref({pathname:c,search:l,hash:o})}function Zu(){return A.useContext(Qx)!=null}function fn(){return Zu()||In(!1),A.useContext(Qx).location}function rL(e){A.useContext(Cl).static||A.useLayoutEffect(e)}function jl(){let{isDataRoute:e}=A.useContext(Pi);return e?mJ():eJ()}function eJ(){Zu()||In(!1);let e=A.useContext(Ux),{basename:t,future:r,navigator:n}=A.useContext(Cl),{matches:s}=A.useContext(Pi),{pathname:o}=fn(),i=JSON.stringify(o5(s,r.v7_relativeSplatPath)),l=A.useRef(!1);return rL(()=>{l.current=!0}),A.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let f=i5(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:dc([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,o,e])}const nL=A.createContext(null);function tJ(){return A.useContext(nL)}function rJ(e){let t=A.useContext(Pi).outlet;return t&&A.createElement(nL.Provider,{value:e},t)}function Vx(){let{matches:e}=A.useContext(Pi),t=e[e.length-1];return t?t.params:{}}function Hx(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=A.useContext(Cl),{matches:s}=A.useContext(Pi),{pathname:o}=fn(),i=JSON.stringify(o5(s,n.v7_relativeSplatPath));return A.useMemo(()=>i5(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function nJ(e,t){return aJ(e,t)}function aJ(e,t,r,n){Zu()||In(!1);let{navigator:s}=A.useContext(Cl),{matches:o}=A.useContext(Pi),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=fn(),d;if(t){var f;let x=typeof t=="string"?QA(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||In(!1),d=x}else d=u;let h=d.pathname||"/",m=h;if(c!=="/"){let x=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=IZ(e,{pathname:m}),p=cJ(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:dc([c,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:dc([c,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&p?A.createElement(Qx.Provider,{value:{location:Um({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:nc.Pop}},p):p}function sJ(){let e=fJ(),t=XZ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:s},r):null,null)}const oJ=A.createElement(sJ,null);class iJ extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?A.createElement(Pi.Provider,{value:this.props.routeContext},A.createElement(tL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lJ(e){let{routeContext:t,match:r,children:n}=e,s=A.useContext(Ux);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(Pi.Provider,{value:t},n)}function cJ(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(s=r)==null?void 0:s.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);d>=0||In(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:m}=r,g=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let m,g=!1,p=null,x=null;r&&(m=l&&f.route.id?l[f.route.id]:void 0,p=f.route.errorElement||oJ,c&&(u<0&&h===0?(hJ("route-fallback"),g=!0,x=null):u===h&&(g=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,h+1)),b=()=>{let j;return m?j=p:g?j=x:f.route.Component?j=A.createElement(f.route.Component,null):f.route.element?j=f.route.element:j=d,A.createElement(lJ,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:j})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?A.createElement(iJ,{location:r.location,revalidation:r.revalidation,component:p,error:m,children:b(),routeC
1096ontext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var aL=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aL||{}),sL=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sL||{});function uJ(e){let t=A.useContext(Ux);return t||In(!1),t}function dJ(e){let t=A.useContext(eL);return t||In(!1),t}function AJ(e){let t=A.useContext(Pi);return t||In(!1),t}function oL(e){let t=AJ(),r=t.matches[t.matches.length-1];return r.route.id||In(!1),r.route.id}function fJ(){var e;let t=A.useContext(tL),r=dJ(),n=oL();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function mJ(){let{router:e}=uJ(aL.UseNavigateStable),t=oL(sL.UseNavigateStable),r=A.useRef(!1);return rL(()=>{r.current=!0}),A.useCallback(function(s,o){o===void 0&&(o={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Um({fromRouteId:t},o)))},[e,t])}const DB={};function hJ(e,t,r){DB[e]||(DB[e]=!0)}function pJ(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Me(e){let{to:t,replace:r,state:n,relative:s}=e;Zu()||In(!1);let{future:o,static:i}=A.useContext(Cl),{matches:l}=A.useContext(Pi),{pathname:c}=fn(),u=jl(),d=i5(t,o5(l,o.v7_relativeSplatPath),c,s==="path"),f=JSON.stringify(d);return A.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:s}),[u,f,s,r,n]),null}function uUe(e){return rJ(e.context)}function _(e){In(!1)}function gJ(e){let{basename:t="/",children:r=null,location:n,navigationType:s=nc.Pop,navigator:o,static:i=!1,future:l}=e;Zu()&&In(!1);let c=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:c,navigator:o,static:i,future:Um({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof n=="string"&&(n=QA(n));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:g="default"}=n,p=A.useMemo(()=>{let x=yA(d,c);return x==null?null:{location:{pathname:x,search:f,hash:h,state:m,key:g},navigationType:s}},[c,d,f,h,m,g,s]);return p==null?null:A.createElement(Cl.Provider,{value:u},A.createElement(Qx.Provider,{children:r,value:p}))}function xJ(e){let{children:t,location:r}=e;return nJ(Aw(t),r)}new Promise(()=>{});function Aw(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,s)=>{if(!A.isValidElement(n))return;let o=[...t,s];if(n.type===A.Fragment){r.push.apply(r,Aw(n.props.children,o));return}n.type!==_&&In(!1),!n.props.index||!n.props.children||In(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Aw(n.props.children,o)),r.push(i)}),r}/** 1097 * React Router DOM v6.30.1 1098 * 1099 * Copyright (c) Remix Software Inc. 1100 * 1101 * This source code is licensed under the MIT license found in the 1102 * LICENSE.md file in the root directory of this source tree. 1103 * 1104 * @license MIT 1105 */function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I0.apply(this,arguments)}function iL(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function vJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yJ(e,t){return e.button===0&&(!t||t==="_self")&&!vJ(e)}function fw(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function bJ(e,t){let r=fw(e);return t&&t.forEach((n,s)=>
1105{r.has(s)||t.getAll(s).forEach(o=>{r.append(s,o)})}),r}const wJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_J=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],CJ="6";try{window.__reactRouterVersion=CJ}catch{}const jJ=A.createContext({isTransitioning:!1}),EJ="startTransition",RB=b2[EJ];function BJ(e){let{basename:t,children:r,future:n,window:s}=e,o=A.useRef();o.current==null&&(o.current=NZ({window:s,v5Compat:!0}));let i=o.current,[l,c]=A.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=A.useCallback(f=>{u&&RB?RB(()=>c(f)):c(f)},[c,u]);return A.useLayoutEffect(()=>i.listen(d),[i,d]),A.useEffect(()=>pJ(n),[n]),A.createElement(gJ,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}const NJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Te=A.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:i,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=iL(t,wJ),{basename:m}=A.useContext(Cl),g,p=!1;if(typeof u=="string"&&SJ.test(u)&&(g=u,NJ))try{let j=new URL(window.location.href),C=u.startsWith("//")?new URL(j.protocol+u):new URL(u),T=yA(C.pathname,m);C.origin===j.origin&&T!=null?u=T+C.search+C.hash:p=!0}catch{}let x=JZ(u,{relative:s}),y=IJ(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:f});function b(j){n&&n(j),j.defaultPrevented||y(j)}return A.createElement("a",I0({},h,{href:g||x,onClick:p||o?n:b,ref:r,target:c}))}),dUe=A.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:s=!1,className:o="",end:i=!1,style:l,to:c,viewTransition:u,children:d}=t,f=iL(t,_J),h=Hx(c,{relative:f.relative}),m=fn(),g=A.useContext(eL),{navigator:p,basename:x}=A.useContext(Cl),y=g!=null&&TJ(h)&&u===!0,b=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,j=m.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;s||(j=j.toLowerCase(),C=C?C.toLowerCase():null,b=b.toLowerCase()),C&&x&&(C=yA(C,x)||C);const T=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let L=j===b||!i&&j.startsWith(b)&&j.charAt(T)==="/",P=C!=null&&(C===b||!i&&C.startsWith(b)&&C.charAt(b.length)==="/"),I={isActive:L,isPending:P,isTransitioning:y},E=L?n:void 0,O;typeof o=="function"?O=o(I):O=[o,L?"active":null,P?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let k=typeof l=="function"?l(I):l;return A.createElement(Te,I0({},f,{"aria-current":E,className:O,ref:r,style:k,to:c,viewTransition:u}),typeof d=="function"?d(I):d)});var mw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mw||(mw={}));var MB;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(MB||(MB={}));function kJ(e){let t=A.useContext(Ux);return t||In(!1),t}function IJ(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=jl(),u=fn(),d=Hx(e,{relative:i});return A.useCallback(f=>{if(yJ(f,r)){f.preventDefault();let h=n!==void 0?n:k0(u)===k0(d);c(e,{replace:h,state:s,preventScrollReset:o,relative:i,viewTransition:l})}},[u,c,d,n,s,r,e,o,i,l])}function FJ(e){let t=A.useRef(fw(e)),r=A.useRef(!1),n=fn(),s=A.useMemo(()=>bJ(n.search,r.current?null:t.current),[n.search]),o=jl(),i=A.useCallback((l,c)=>{const u=fw(typeof l=="function"?l(s):l);r.current=!0,o("?"+u,c)},[o,s]);return[s,i]}function TJ(e,t){t===void 0&&(t={});let r=A.useContext(jJ);r==null&&In(!1);let{basename:n}=kJ(mw.useViewTransitionState),s=Hx(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=yA(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=yA(r.nextLocation.pathname,n)||r.nextLocation.pathname;return dw(s.pathname,i)!=null||dw(s.pathname,o)!=null}const l5=12e4;function PJ(e){if(!e||typeof e!="object")return!1;const t=e;return t.status===401||t.status===403||["42501","PGRST301","PGRST302","PGRST303"].includes(t.code||"")?!1:typeof t.status=="number"&&t.status>=500||["PGRST000","PGRST001","PGRST002","PGRST003"].includes(t.code||"")||/failed to fetch|networkerror|network request failed|fetch failed|load failed/i.test(t.message||"")}function lL(e,t,r=Date.now()){return t>0&&r>=t&&r-t<l5&&PJ(e)}const LJ="notif_dedup_registry",DJ=500,RJ={new_lead:7*24*36e5,meeting_scheduled:24*36e5,meeting_rescheduled:24*36e5,proposal_sent:7*24*36e5,proposal_viewed:7*24*36e5,payment_pending:30*24*36e5,payment_approved:7*24*36e5,payment_failed:7*24*36e5,deal_won:7*24*36e5,deal_lost:7*24*36e5,stage_changed:24*36e5,sla_alert:30*24*36e5,followup_triggered:24*36e5,internal_notification:7*24*36e5,sale_confirmed:7*24*36e5,urgent:7*24*36e5,priority_alert:36e5,post_c
1105all_followup:24*36e5},MJ=7*24*36e5;let Qm=new Set,im=null;function cL(e){return`${LJ}_${e}`}function uL(e){try{const t=localStorage.getItem(cL(e));return t?JSON.parse(t):{}}catch{return{}}}function OJ(e,t){try{const r=Date.now(),n={},o=Object.entries(t).filter(([,i])=>i.ttlMs<=0?!0:r-new Date(i.seenAt).getTime()<i.ttlMs).sort((i,l)=>new Date(l[1].seenAt).getTime()-new Date(i[1].seenAt).getTime()).slice(0,DJ);for(const[i,l]of o)n[i]=l;localStorage.setItem(cL(e),JSON.stringify(n))}catch{}}function UJ(e,t,r){const n=r?new Date(r).toISOString():"no-ts";return`${e}:${t}:${n}`}function OB(e){if(im===e)return;im=e,Qm=new Set;const t=uL(e),r=Date.now();for(const[n,s]of Object.entries(t)){const o=r-new Date(s.seenAt).getTime();(s.ttlMs<=0||o<s.ttlMs)&&Qm.add(n)}}function dL(e){return Qm.has(e)}function AL(e,t){if(Qm.has(e)||(Qm.add(e),!im))return;const r=uL(im),n=t&&RJ[t]||MJ;r[e]={seenAt:new Date().toISOString(),ttlMs:n},OJ(im,r)}function AUe(e,t){return dL(e)?!1:(AL(e,t),!0)}const c5=A.createContext(void 0);function QJ({children:e}){const[t,r]=A.useState(null),[n,s]=A.useState(null),[o,i]=A.useState(!1),[l,c]=A.useState(!1),[u,d]=A.useState(!1),[f,h]=A.useState(!1),[m,g]=A.useState(!1),[p,x]=A.useState(!1),[y,b]=A.useState(!1),[j,C]=A.useState(!0),[T,L]=A.useState(!1),[P,I]=A.useState(!1),E=A.useRef(0),O=A.useRef(),k=A.useRef(!1),D=A.useRef(null),H=A.useRef(0),U=vn(),ee=A.useCallback(()=>{E.current=0,I(!1),O.current&&clearTimeout(O.current),i(!1),c(!1),d(!1),h(!1),g(!1),x(!1),b(!1)},[]),ae=A.useCallback(async se=>{const S=++H.current,Q=()=>D.current===se&&S===H.current&&!k.current,z=W=>{if(L(!0),!lL(W,E.current)){ee();return}I(!0),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{D.current===se&&ee()},Math.max(0,E.current+l5-Date.now()))};try{const{data:W,error:ne}=await J.from("user_roles").select("role").eq("user_id",se);if(!Q())return;if(ne){console.error("Erro ao verificar role (sessão preservada):",ne),z(ne);return}O.current&&clearTimeout(O.current),E.current=Date.now(),I(!1),L(!1);const X=W?.map(fe=>fe.role)||[],te=X.includes("superadmin");c(te),i(te||X.includes("admin")),d(X.includes("student")),h(X.includes("company_admin")),g(X.includes("company_user")),x(X.includes("instructor")),b(X.includes("employee"))}catch(W){console.error("Erro crÃtico ao verificar role:",W),Q()&&z(W)}finally{Q()&&C(!1)}},[ee]),V=A.useCallback(async()=>{const se=D.current;se&&await ae(se)},[ae]),q=A.useCallback(se=>{if(!(D.current!==se||k.current)){ae(se);for(const S of["unified-permissions","unified-sales-team-member","effective-permission"])U.invalidateQueries({queryKey:[S,se]})}},[ae,U]);A.useEffect(()=>{let se=!1;const S=z=>{z!==D.current&&(H.current++,ee(),L(!1),C(!!z)),D.current=z},{data:{subscription:Q}}=J.auth.onAuthStateChange((z,W)=>{if(!k.current){if(se=!0,S(W?.user.id??null),z==="TOKEN_REFRESHED"){s(W),r(W?.user??null),W?.user?setTimeout(()=>q(W.user.id),0):(ee(),C(!1));return}if(z==="SIGNED_OUT"){H.current++,s(null),r(null),ee(),C(!1);return}s(W),r(W?.user??null),W?.user?(OB(W.user.id),(async()=>{try{await J.rpc("handle_student_login",{p_user_id:W.user.id})}catch(ne){console.error("Streak sync failed:",ne)}})(),setTimeout(()=>ae(W.user.id),0)):(ee(),C(!1))}});return J.auth.getSession().then(({data:{session:z}})=>{k.current||se||(S(z?.user.id??null),s(z),r(z?.user??null),z?.user?(OB(z.user.id),ae(z.user.id)):C(!1))}).catch(z=>{console.error("Auth initialization failed:",z),se||(L(!0),C(!1))}),()=>{Q.unsubscribe(),H.current++,O.current&&clearTimeout(O.current)}},[ae,q,ee]),A.useEffect(()=>{if(!t?.id)return;const se=t.id;let S;const Q=()=>{document.visibilityState==="visible"&&(S&&clearTimeout(S),S=setTimeout(()=>q(se),150))},z=J.channel(`permission-session:${se}`);for(const ne of["user_roles","unified_permissions","effective_user_permissions","sales_team"])z.on("postgres_changes",{event:"*",schema:"public",table:ne,filter:`user_id=eq.${se}`},Q);z.subscribe(),window.addEventListener("focus",Q),document.addEventListener("visibilitychange",Q);const W=setInterval(Q,6e4);return()=>{S&&clearTimeout(S),clearInterval(W),window.removeEventListener("focus",Q),document.removeEventListener("visibilitychange",Q),J.removeChannel(z)}},[t?.id,q]);const G=A.useCallback(async()=>{try{k.current=!0,D.current=null,H.current++,C(!0);try{const{accessAudit:se}=await B(async()=>{const{accessAudit:S}=await Promise.resolve().then(()=>hee);return{accessAudit:S}},void 0);await se.endSession("logout")}catch{}localStorage.clear(),sessionStorage.clear(),await J.auth.signOut({scope:"global"})}catch(se){console.error("Error during sign out:",se)}finally{window.location.href="/auth"}},[]),Ae=A.useMemo(()=>({user:t,session:n,isAdmin:o,isSuperAdmin:l,isStudent:u,isCompanyAdmin:f,isCompanyUser:m,isInstructor:p,isEmployee:y,loading:j,rolesError:T,rolesStale:P,refreshRoles:V,signOut:G}),[t,n,o,l,u,f,m,p,y,j,T,P,V,G]);return a.jsx(c5.Provider,{value:Ae,children:e})}function fL(){const e=A.useContext(c5);if(e===void 0)throw new Error("useAuthContext must be used within an AuthProvider");return e}function fUe(){return A.useContext(c5)}const Zn=()=>fL(),VJ=()=>{const{pathname:e,hash:t}=fn();A.useEffect(()=>{if(t){const r=decodeURIComponent(t.slice(1));let n=0,s;const o=()=>{const i=document.getElementById(r);if(i){i.scrollIntoView({behavior:"instant",block:"start"});return}n+=1,n<30?s=requestAnimationFrame(o):window.scrollTo({top:0,left:0,behavior:"instant"})};return s=requestAnimationFrame(o),()=>cancelAnimationFrame(s)}window.scrollTo({top:0,left:0,behavior:"instant"})},[e,t])},hw="click_journey",HJ=20,zJ=30*24*60*60*1e3;function mL(){try{const e=localStorage.getItem(hw);if(!e)return[];const{v:t,t:r}=JSON.parse(e);return Date.now()-r>zJ?(localStorage.removeItem(hw),[]):Array.isArray(t)?t:[]}catch{return[]}}function $J(e){try{localStorage.setItem(hw,JSON.stringify({v:e.slice(-HJ),t:Date.now()}))}catch{}}
1105function qJ(){try{const e=new URLSearchParams(window.location.search),t=d=>{try{return sessionStorage.getItem(d)}catch{return null}},r=e.get("utm_source")||t("utm_source"),n=e.get("utm_medium")||t("utm_medium"),s=e.get("utm_campaign")||t("utm_campaign"),o=document.referrer||null,i=window.location.pathname,l=mL();if(!(r||n||o)&&l.length>0)return;const u=l[l.length-1];if(u&&u.source===r&&u.medium===n&&u.page===i)return;l.push({source:r,medium:n,campaign:s,referrer:o,page:i,at:new Date().toISOString()}),$J(l)}catch{}}function KJ(){return mL()}const GJ={"23943096361":"vibe_coding_expert_sp","23980000282":"itil_sp","23821463977":"itil5_sp","23780562881":"brand_sap_t1","23692555117":"brand_br","23546421585":"sap_prof_tier1","20822823103":"cyber_t1","20765288076":"sap_concorrentes_sp","20324521898":"hs_sap","22086254822":"mastertech_sprj","22862491330":"search-institucional-brasil","22940568895":"hs_sap_experimento_sp","22940601019":"hs_sap_experimento_bh_ssa_rj"};function hL(e){if(!e)return null;const t=e.trim();return t?/^\d+$/.test(t)&&GJ[t]||t:null}const WJ=/\{[a-z_]+\}/gi;function aA(e){if(e==null)return null;const t=e.replace(WJ,"").trim();return!t||/^[_\-.\s]+$/.test(t)?null:t}function YJ(e){try{const t=new URLSearchParams(e.startsWith("?")?e.slice(1):e),r=new URLSearchParams,n=new Set;for(const[s,o]of t.entries()){if(n.has(s))continue;const i=aA(o);if(i===null){const l=t.getAll(s).map(aA).find(c=>c!==null);l&&(r.append(s,l),n.add(s));continue}r.append(s,i),n.add(s)}return r.toString()}catch{return e}}function XJ(e){try{const t=new URL(e);return t.search=YJ(t.search),t.toString()}catch{return e}}const lm="utm_persist_",La="ft_",pw="session_landing_url",ZJ=30*24*60*60*1e3;function bA(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(^|; )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}function pL(){const e=bA("_ga");if(!e)return null;const t=e.split(".");return t.length>=4?`${t[2]}.${t[3]}`:null}const JJ=365;function eee(e,t,r){try{const n=new Date(Date.now()+r*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)};expires=${n};path=/;SameSite=Lax`}catch{}}function xs(e,t){try{const r=JSON.stringify({v:t,t:Date.now()});localStorage.setItem(lm+e,r)}catch{}try{sessionStorage.setItem(e,t)}catch{}e.startsWith(La)&&eee(`_${e}`,t,JJ)}function xr(e){try{const t=sessionStorage.getItem(e);if(t)return t}catch{}try{const t=localStorage.getItem(lm+e);if(t){const r=JSON.parse(t);if(r&&Date.now()-r.t<ZJ){try{sessionStorage.setItem(e,r.v)}catch{}return r.v}localStorage.removeItem(lm+e)}}catch{}if(e.startsWith(La)){const t=bA(`_${e}`);if(t){try{const r=JSON.stringify({v:t,t:Date.now()});localStorage.setItem(lm+e,r),sessionStorage.setItem(e,t)}catch{}return t}}return null}function gL(){const[e,t]=A.useState(()=>gw());return A.useEffect(()=>{try{if(window.location.hostname==="trainningeducation.com.br"||window.location.hostname==="www.trainningeducation.com.br"){const c=new URL(window.location.href);c.hostname="www.trainning.com.br",window.location.replace(c.toString());return}try{const c=["utm_source","utm_campaign","gclid","fbclid"];let u=0;for(const d of c){const f=sessionStorage.getItem(d),h=localStorage.getItem(lm+d);if(f&&h)try{const{v:m}=JSON.parse(h);m&&m!==f&&(u++,console.warn(`[UTM Drift] ${d}: session=${f} != local=${m}`))}catch{}}if(u>0){const d=window;d.__lvSignals=d.__lvSignals||{},d.__lvSignals.utmDrift=(d.__lvSignals.utmDrift||0)+u}}catch{}const r=new URLSearchParams(window.location.search),n=c=>{try{const u=r.getAll(c);for(const d of u)if(d&&d.trim().length>0)return d}catch{}return null};["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","gbraid","wbraid","ttclid","li_fat_id","msclkid"].forEach(c=>{const u=n(c);let d=aA(u);if(d&&c==="utm_campaign"&&(d=hL(d)),d){xs(c,d);const f=La+c;xr(f)||xs(f,d)}});try{const c=pL();c&&xs("gclientid",c);const u=bA("_fbp");u&&xs("fbp",u);let d=bA("_fbc");const f=n("fbclid");!d&&f&&(d=`fb.1.${Math.floor(Date.now()/1e3)}.${f}`),d&&xs("fbc",d)}catch{}n("gclid")&&!xr("utm_source")&&(xs("utm_source","google"),xs("utm_medium","cpc"),xr(La+"utm_source")||(xs(La+"utm_source","google"),xs(La+"utm_medium","cpc"))),n("fbclid")&&!xr("utm_source")&&(xs("utm_source","meta"),xs("utm_medium","paid"),xr(La+"utm_source")||(xs(La+"utm_source","meta"),xs(La+"utm_medium","paid"))),!xr(La+"referrer")&&document.referrer&&(document.referrer.includes("trainning.com.br")||xs(La+"referrer",document.referrer));const o=XJ(window.location.href),i=n("utm_source")||n("gclid")||n("fbclid")||n("gbraid")||n("wbraid");(!xr("landing_url")||i)&&xs("landing_url",o);try{sessionStorage.getItem(pw)||sessionStorage.setItem(pw,o)}catch{}qJ();const l=gw();t(l)}catch(r){console.warn("Não foi possÃvel persistir UTMs:",r)}},[]),e}function gw(){let e=null;try{if(typeof document<"u"&&document.referrer){const t=new URL(document.referrer).hostname;!t.includes("trainning.com.br")&&!t.includes("lovable.app")&&(e=document.referrer)}}catch{}return{utm_source:xr("utm_source"),utm_medium:xr("utm_medium"),utm_campaign:xr("utm_campaign"),utm_term:xr("utm_term"),utm_content:xr("utm_content"),landing_url:xr("landing_url"),referrer:e,gclid:xr("gclid"),fbclid:xr("fbclid"),gclientid:xr("gclientid")||pL(),fbp:xr("fbp")||bA("_fbp"),fbc:xr("fbc")||bA("_fbc")}
1105}function tee(){return{utm_source:xr("utm_source")||void 0,utm_medium:xr("utm_medium")||void 0,utm_campaign:xr("utm_campaign")||void 0,utm_term:xr("utm_term")||void 0,utm_content:xr("utm_content")||void 0}}function mUe(){return{gclid:xr("gclid")||void 0,fbclid:xr("fbclid")||void 0,ttclid:xr("ttclid")||void 0,li_fat_id:xr("li_fat_id")||void 0,msclkid:xr("msclkid")||void 0}}function ree(){try{const e=sessionStorage.getItem(pw);if(e)return e}catch{}return xr("landing_url")||void 0}function nee(){return{first_utm_source:xr(La+"utm_source")||void 0,first_utm_medium:xr(La+"utm_medium")||void 0,first_utm_campaign:xr(La+"utm_campaign")||void 0,first_utm_content:xr(La+"utm_content")||void 0,first_utm_term:xr(La+"utm_term")||void 0,first_referrer:xr(La+"referrer")||void 0}}const Xg="_ltid",Zg="lead_tracking_uuid",UB=365*24*60*60;function QB(e,t,r){typeof document>"u"||(document.cookie=`${e}=${encodeURIComponent(t)};path=/;max-age=${r};SameSite=Lax`)}function xL(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}function aee(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function vL(){let e=xL(Xg);if(e){try{localStorage.setItem(Zg,e)}catch{}return e}try{if(e=localStorage.getItem(Zg),e)return QB(Xg,e,UB),e}catch{}e=aee(),QB(Xg,e,UB);try{localStorage.setItem(Zg,e)}catch{}return e}function see(){return xL(Xg)||(()=>{try{return localStorage.getItem(Zg)}catch{return null}})()}const oee=()=>{let e=sessionStorage.getItem("analytics_session_id");return e||(e=`${Date.now()}_${Math.random().toString(36).substr(2,9)}`,sessionStorage.setItem("analytics_session_id",e)),e},Ry=()=>tee(),VB=()=>{const e=navigator.userAgent;let t="desktop",r="unknown",n="unknown";return/mobile/i.test(e)&&(t="mobile"),/tablet/i.test(e)&&(t="tablet"),e.indexOf("Chrome")>-1?r="Chrome":e.indexOf("Safari")>-1?r="Safari":e.indexOf("Firefox")>-1?r="Firefox":e.indexOf("Edge")>-1&&(r="Edge"),e.indexOf("Win")>-1?n="Windows":e.indexOf("Mac")>-1?n="MacOS":e.indexOf("Linux")>-1?n="Linux":e.indexOf("Android")>-1?n="Android":e.indexOf("iOS")>-1&&(n="iOS"),{deviceType:t,browser:r,os:n}},iee=()=>{const{user:e}=Zn(),t=fn(),r=A.useRef(oee()),n=A.useRef(Date.now()),s=A.useRef(!1),o=A.useRef(null);return A.useEffect(()=>{if(s.current)return;(async()=>{try{const{deviceType:u,browser:d,os:f}=VB(),h=Ry();await J.from("analytics_sessions").insert({session_id:r.current,user_id:e?.id,user_agent:navigator.userAgent,device_type:u,browser:d,os:f,language:navigator.language,referrer:document.referrer||void 0,...h}),s.current=!0}catch(u){console.error("Error tracking session:",u)}})()},[e]),A.useEffect(()=>{const c=t.pathname;if(c.startsWith("/preview/")||o.current===c)return;if(o.current){const d=Math.floor((Date.now()-n.current)/1e3);J.from("analytics_page_views").update({time_on_page_seconds:d}).eq("session_id",r.current).eq("page_path",o.current).then(()=>{})}o.current=c,n.current=Date.now(),(async()=>{const d=vL();try{await J.from("analytics_page_views").insert({session_id:r.current,user_id:e?.id,page_path:c,page_title:document.title}),await J.from("unified_tracking_events").insert({tracking_uuid:d,event_name:"page_view",event_type:"pageview",metadata:{path:c,title:document.title},session_id:r.current,page_url:window.location.href})}catch(f){console.error("Error tracking page view:",f)}})()},[t.pathname,e]),{trackConversion:async(c,u,d,f)=>{try{const h=Ry();await J.from("analytics_conversions").insert({session_id:r.current,user_id:e?.id,conversion_type:c,conversion_value:u,course_id:d,source:h.utm_source,medium:h.utm_medium,campaign:h.utm_campaign,metadata:f})}catch(h){console.error("Error tracking conversion:",h)}},trackLead:async c=>{try{const u=Ry(),{deviceType:d}=VB();await J.from("analytics_leads").insert({lead_id:c,session_id:r.current,source:u.utm_source,medium:u.utm_medium,campaign:u.utm_campaign,first_touch_page:window.location.pathname,device_type:d})}catch(u){console.error("Error tracking lead:",u)}},sessionId:r.current}},My="access_audit_client_sid",Oy="access_audit_server_sid",lee=5e3,HB=20,cee=6e4,uee=6e4,zB=15e3,$B=6e4,dee=/(password|senha|token|secret|credential|authorization|card_number|cvv|api_key)/i;function Aee(){const e=navigator.userAgent,t=/mobile|android|iphone|ipad/i.test(e);let r="desktop";/tablet|ipad/i.test(e)?r="tablet":/mobile|iphone|android/i.test(e)&&(r="mobile");let n="unknown",s="";const o=e.match(/Edg\/([\d.]+)/),i=e.match(/Chrome\/([\d.]+)/),l=e.match(/Firefox\/([\d.]+)/),c=e.match(/Version\/([\d.]+).*Safari/);o?(n="Edge",s=o[1]):i?(n="Chrome",s=i[1]):l?(n="Firefox",s=l[1]):c&&(n="Safari",s=c[1]);let u="unknown";/Windows/i.test(e)?u="Windows":/Mac OS/i.test(e)?u="MacOS":/Android/i.test(e)?u="Android":/iPhone|iPad|iOS/i.test(e)?u="iOS":/Linux/i.test(e)&&(u="Linux");let d="";try{d=Intl.DateTimeFormat().resolvedOptions().timeZone??""}catch{}return{device_type:r,device_name:"",browser:n,browser_version:s,operating_system:u,user_agent_summary:`${n} ${s} / ${u}`.trim(),is_mobile:t,timezone:d}}function fee(e){if(!e)return{};const t={};for(const[r,n]of Object.entries(e))dee.test(r)||(typeof n=="string"&&n.length>500?t[r]=n.slice(0,500):t[r]=n);return t}class mee{queue=[];flushTimer=null;heartbeatTimer=null;activityTimer=null;lastActivityAt=Date.now();pendingActiveSeconds=0;lastPageView=null;starting=!1;flushing=!1;currentRoute="";listenersBound=!1;onSessionInvalid=null;stats={errors:0,sent:0};get serverSessionId(){try{return sessionStorage.getItem(Oy)}catch{return null}}get clientSessionId(){let t="";try{t=sessionStorage.getItem(My)??"",t||(t=`${Date.now().toString(36)}-${crypto.randomUUID()}`,sessionStorage.setItem(My,t))}catch{t=`mem-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}return t}async ensureSession(t="password"){if(this.starting||this.serverSessionId){this.startTimers();return}this.starting=!0;try{const{data:r,error:n}=await J.rpc("access_start_session",{p_client_session_id:this.clientSessionId,p_login_method:t,p_device:Aee()});if(n)throw n;const s=r;if(s?.id&&s.status==="active"){try{sessionStorage.setItem(Oy,s.id)}catch{}this.startTimers()}}catch{this.stats.errors+=1}finally{this.starting=!1}}async endSession(t="logout"){const r=this.serverSessionId;if(this.stopTimers(),!!r)try{await this.flush(!0),await J.rpc("access_end_session",{p_session_id:r,p_reason:t})}catch{this.stats.errors+=1}finally{this.clearLocalSession()}}async logFailedLogin(t,r="web"){try{await J.rpc("access_log_failed_login",{p_email:t,p_source:r})}catch{this.stats.errors+=1}}logEvent(t){try{this.queue.push({...t,metadata:fee(t.metadata),session_id:this.serverSessionId??void 0,occurred_at:new Date().toISOString()}),this.queue.length>=HB&&this.flush()}catch{this.stats.errors+=1}}logPageView(t,r){this.currentRoute=t;
1105const n=Date.now();this.lastPageView&&this.lastPageView.route===t&&n-this.lastPageView.at<cee||(this.lastPageView={route:t,at:n},this.logEvent({event_type:"page_view",event_category:"navigation",route:t,page_name:r??document.title}))}markActivity=()=>{this.lastActivityAt=Date.now()};registerSessionInvalidHandler(t){this.onSessionInvalid=t}bindDomListeners(){if(this.listenersBound||typeof window>"u")return;this.listenersBound=!0;const t={passive:!0};window.addEventListener("click",this.markActivity,t),window.addEventListener("keydown",this.markActivity,t),window.addEventListener("scroll",this.markActivity,t),window.addEventListener("pagehide",()=>{this.flush(!0)}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush(!0)})}startTimers(){this.flushTimer||(this.flushTimer=setInterval(()=>void this.flush(),lee)),this.activityTimer||(this.activityTimer=setInterval(()=>{Date.now()-this.lastActivityAt<$B&&document.visibilityState==="visible"&&(this.pendingActiveSeconds+=zB/1e3)},zB)),this.heartbeatTimer||(this.heartbeatTimer=setInterval(()=>void this.heartbeat(),uee))}stopTimers(){this.flushTimer&&clearInterval(this.flushTimer),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.activityTimer&&clearInterval(this.activityTimer),this.flushTimer=null,this.heartbeatTimer=null,this.activityTimer=null}clearLocalSession(){try{sessionStorage.removeItem(Oy),sessionStorage.removeItem(My)}catch{}}async heartbeat(){const t=this.serverSessionId;if(!t||document.visibilityState==="hidden"&&Date.now()-this.lastActivityAt>$B)return;const r=Math.round(this.pendingActiveSeconds);this.pendingActiveSeconds=0;try{const{data:n,error:s}=await J.rpc("access_heartbeat",{p_session_id:t,p_route:this.currentRoute,p_active_seconds:r});if(s)throw s;const o=n?.status;o&&o!=="active"&&(this.stopTimers(),this.clearLocalSession(),(o==="revoked"||o==="invalidated")&&this.onSessionInvalid?.())}catch{this.stats.errors+=1,this.pendingActiveSeconds+=r}}async flush(t=!1){if(this.flushing||this.queue.length===0)return;this.flushing=!0;const r=this.queue.splice(0,HB);try{if(t){const{data:n}=await J.auth.getSession(),s=n.session?.access_token;if(!s)return;fetch("https://nobmaxndasqwzxzotkzj.supabase.co/rest/v1/rpc/access_log_events",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5vYm1heG5kYXNxd3p4em90a3pqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTkzODQ2NDQsImV4cCI6MjA3NDk2MDY0NH0.xxkEsj4nmMt2C8jQloqRcI_prWrutqcvCad5MQIQFIQ",Authorization:`Bearer ${s}`},body:JSON.stringify({p_events:r})})}else{const{error:n}=await J.rpc("access_log_events",{p_events:r});if(n)throw n}this.stats.sent+=r.length}catch{this.stats.errors+=1,this.queue.length<100&&this.queue.unshift(...r)}finally{this.flushing=!1}}}const Hf=new mee,hee=Object.freeze(Object.defineProperty({__proto__:null,accessAudit:Hf},Symbol.toStringTag,{value:"Module"})),pee=()=>{const{user:e}=Zn(),t=fn(),r=A.useRef(null);A.useEffect(()=>{Hf.bindDomListeners(),Hf.registerSessionInvalidHandler(()=>{J.auth.signOut().finally(()=>{window.location.href="/"})})},[]),A.useEffect(()=>{if(!e){r.current=null;return}r.current!==e.id&&(r.current=e.id,Hf.ensureSession("password"))},[e]),A.useEffect(()=>{e&&Hf.logPageView(t.pathname)},[t.pathname,e])},gee=()=>{A.useEffect(()=>{(async()=>{try{const{data:n}=await J.from("page_config").select("theme_mode").eq("page_name","homepage").single(),s=n?.theme_mode||"auto";localStorage.setItem("app-theme",s),Uy(s)}catch(n){console.error("Erro ao carregar tema:",n),Uy("dark")}})();const t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{localStorage.getItem("app-theme")==="auto"&&Uy("auto")};return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[])},Uy=e=>{if(e==="dark")document.documentElement.classList.add("dark");else if(e==="light")document.documentElement.classList.remove("dark");else{const t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=window.matchMedia("(prefers-color-scheme: dark)").media!=="not all";t||!r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}},Qy="_visitor_lead_linked";function xee(){A.useEffect(()=>{try{if(sessionStorage.getItem(Qy))return;const e=new URLSearchParams(window.location.search),t=e.get("email")||e.get("ltid_email");if(!t)return;const r=vL();if(!r)return;const n=e.get("utm_source"),s=e.get("utm_medium");let o;n&&(o=s?`${n}/${s}`:n),sessionStorage.setItem(Qy,"1"),J.functions.invoke("link-visitor-lead",{body:{email:t.trim(),tracking_uuid:r,source:o}}).then(({error:i})=>{i&&(console.warn("[VisitorLeadLinker] Failed to link:",i.message),sessionStorage.removeItem(Qy))})}catch{}},[])}typeof window<"u"&&!window.dataLayer&&(window.dataLayer=[]);const vee="AW-11189559906/XqWDCPbbrv4bEOLEzNcp";function yee(e){try{if(typeof window>"u")return;const t={send_to:vee};e&&(t.transaction_id=e),typeof window.gtag=="function"?window.gtag("event","conversion",t):(window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({event:"conversion",...t}))}catch(t){console.warn("[gtag] conversion push failed:",t)}}function Ju(e,t={}){try{if(typeof window>"u")return;window.dataLayer||(window.dataLayer=[]);const r={event:e,...t};window.dataLayer.push(r),e==="generate_lead"&&yee(typeof t.event_id=="string"?t.event_id:void 0)}catch(r){console.warn("[dataLayer] push failed:",r)}}function bee(e,t){Ju("page_view",{page_path:window.location.pathname,page_title:document.title,page_location:window.location.href})}const yL=A.createContext(void 0),wee=({children:e})=>{const[t,r]=A.useState(!1),{data:n,isLoading:s,error:o,refetch:i}=jt({queryKey:["black-friday-global"],queryFn:async()=>{try{const{data:f,error:h}=await J.from("black_friday_config").select("*").single();if(h)return console.error("â Error fetching BF config:",h),{config:null,items:[]};if(!f||!f.is_enabled)return{config:{isEnabled:!1,startDate:f?.start_date||null,endD
1105ate:f?.end_date||null,showCourseLabels:f?.show_course_labels??!0},items:[]};const{data:m,error:g}=await J.from("black_friday_items").select("*").eq("is_active",!0).order("discount_percentage",{ascending:!1}).order("display_order",{ascending:!0});if(g)return console.error("â Error fetching BF items:",g),{config:null,items:[]};if(!m||m.length===0)return{config:{isEnabled:f.is_enabled,startDate:f.start_date,endDate:f.end_date,showCourseLabels:f.show_course_labels??!0},items:[]};const p=m.filter(I=>I.item_type==="course").map(I=>I.item_id),x=m.filter(I=>I.item_type==="formation").map(I=>I.item_id);let y=[];if(p.length>0){const{data:I}=await J.from("courses").select("id, title, slug, thumbnail_url, price_cash, seo_description, format, category_id").in("id",p);y=I||[]}let b=[];if(p.length>0){const{data:I}=await J.from("cohorts").select("course_id, start_date").in("course_id",p).gte("start_date",new Date().toISOString()).order("start_date",{ascending:!0});b=I||[]}let j=[];if(x.length>0){const{data:I}=await J.from("formations").select(` 1106 id, 1107 name, 1108 slug, 1109 thumbnail_url, 1110 description, 1111 formation_courses( 1112 courses(price_cash, category_id) 1113 ) 1114 `).in("id",x);j=I||[]}const C=new Map(y.map(I=>[I.id,I])),T=new Map;b.forEach(I=>{T.has(I.course_id)||T.set(I.course_id,[]),T.get(I.course_id).push(I)});const L=new Map(j.map(I=>[I.id,I])),P=m.map(I=>{let E=0,O=null;if(I.item_type==="course"){const k=C.get(I.item_id);if(!k)return null;E=k.price_cash||0;const H=(T.get(I.item_id)||[])[0]||null;O={...k,next_cohort_start:H?.start_date||null}}else if(I.item_type==="formation"){const k=L.get(I.item_id);if(!k)return null;E=k.formation_courses?.reduce((H,U)=>H+(Number(U.courses?.price_cash)||0),0)||0;const D=k.formation_courses?.[0]?.courses?.category_id||null;O={id:k.id,name:k.name,slug:k.slug,thumbnail_url:k.thumbnail_url,description:k.description,price_cash:E,category_id:D}}return{id:I.id,itemType:I.item_type,itemId:I.item_id,discountPercentage:I.discount_percentage||0,specialPrice:I.special_price,badgeText:I.badge_text||"BLACK FRIDAY",badgeColor:I.badge_color||"gold",stockLimit:I.stock_limit,stockUsed:I.stock_used,originalPrice:E,details:O}}).filter(Boolean);return{config:{isEnabled:f.is_enabled,startDate:f.start_date,endDate:f.end_date,showCourseLabels:f.show_course_labels??!0},items:P}}catch(f){return console.error("BlackFriday Context Error:",f),{config:null,items:[]}}},staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnMount:!1,refetchOnWindowFocus:!1,enabled:!0});A.useEffect(()=>{if(s){const f=setTimeout(()=>{console.warn("BlackFriday Context is taking too long to load, continuing..."),r(!0)},5e3);return()=>clearTimeout(f)}},[s]);const l=s&&!t,c=A.useMemo(()=>{const f=new Map;return n?.items&&n.items.forEach(h=>{const m=`${h.itemType}-${h.itemId}`;f.set(m,h)}),f},[n]),u=A.useCallback((f,h)=>{if(!n?.config)return null;const m=f?`course-${f}`:h?`formation-${h}`:null;return m&&c.get(m)||null},[n?.config,c]),d={config:n?.config||null,items:c,isLoading:l,isReady:!l&&c.size>0,isBlackFridayActive:!!n?.config?.isEnabled,showCourseLabels:n?.config?.showCourseLabels??!0,getItemPrice:u,refresh:()=>i()};return a.jsx(yL.Provider,{value:d,children:e})},_ee=()=>{const e=A.useContext(yL);if(e===void 0)throw new Error("useBlackFridayContext must be used within BlackFridayProvider");return e},bL=A.createContext({clienteId:null,clienteNome:null,setClienteId:()=>{},setClienteNome:()=>{}}),hUe=()=>A.useContext(bL);function Cee({children:e}){const[t,r]=A.useState(null),[n,s]=A.useState(null),o=A.useMemo(()=>({clienteId:t,clienteNome:n,setClienteId:r,setClienteNome:s}),[t,n]);return a.jsx(bL.Provider,{value:o,children:e})}const qB={rag:{idle_red_days:7,idle_yellow_min_days:4,idle_yellow_max_days:7,proposal_expiring_days:1,red_priority_levels:["urgente","critica","critico"],weights:{vermelho:0,amarelo:1,verde:2}},alerts:{acao_vencida:{enabled:!0},promessa_vencida:{enabled:!0},silencio:{enabled:!0,critical_days:7,warn_days:3},proposta_fria:{enabled:!0,days:10},proposta_validade:{enabled:!0,expiring_days:1},sem_proxima_acao:{enabled:!0},sem_responsavel:{enabled:!0}},durations:{telefone:5,phone:5,ligacao:5,whatsapp:5,email:5,reuniao:45,video:45},presets:[{key:"1",label:"Hoje +2h",type:"hours",amount:2},{key:"2",label:"Amanhã 9h",type:"days",amount:1,hour:9},{key:"3",label:"3 dias",type:"days",amount:3,hour:9},{key:"4",label:"Próxima semana",type:"days",amount:7,hour:9}],working_hours:{timezone:"America/Sao_Paulo",start_hour:8,end_hour:20,weekdays:[1,2,3,4,5]},escalation:{escalate_to_role:"admin",max_recurrence:3,email_enabled:!0},sentinel:{enabled:!0,silence_days:7,digest_hour:8,proposal_no_next_action:!0,meeting_without_outcome_hours:24}},wL=["followup-engine-config"];function jee(){const e=jt({queryKey:wL,staleTime:3e5,queryFn:async()=>{const{data:o,error:i}=await J.from("followup_engine_config").select("key, value, description, updated_at, updated_by");if(i)throw i;return o??[]}}),t=e.data??[],r=A.useMemo(()=>{const o=new Map(t.map(l=>[l.key,l.value])),i=l=>{const c=o.get(l),u=qB[l];if(c==null)return u;if(Array.isArray(u))return Array.isArray(c)&&c.length?c:u;if(typeof c!="object")return u;const d={...u};for(const[f,h]of Object.entries(c)){const m=u[f];d[f]=m&&typeof m=="object"&&!Array.isArray(m)&&h&&typeof h=="object"&&!Array.isArray(h)?{...m,...h}:h}return d};return{rag:i("rag"),alerts:i("alerts"),durations:i("durations"),presets:i("presets"),working_hours:i("working_hours"),escalation:i("escalation"),sentinel:i("sentinel")}},[t]),n=A.useMemo(()=>{const o=new Set;for(const i of t){const l=qB[i.key];l&&JSON.stringify(i.value)!==JSON.stringify(l)&&o.add(i.key)}return o},[t]),s=A.useMemo(()=>new Map(t.map(o=>[o.key,o])),[t]);return{rows:t,config:r,customized:n,metaByKey:s,isLoading:e.isLoading}}function pUe(){const e=vn();return Dr({mutationFn:async({key:t,value:r})=>{const{error:n}=await J.from("followup_engine_config").upsert({key:t,value:r},{onConflict:"key"});if(n)throw n},onSuccess:()=>
1114{e.invalidateQueries({queryKey:wL}),et.success("Configuração do motor salva")},onError:t=>et.error("Erro ao salvar: "+t.message)})}var Vy="focusScope.autoFocusOnMount",Hy="focusScope.autoFocusOnUnmount",KB={bubbles:!1,cancelable:!0},Eee="FocusScope",Ch=A.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[l,c]=A.useState(null),u=Bn(s),d=Bn(o),f=A.useRef(null),h=er(t,p=>c(p)),m=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(n){let p=function(j){if(m.paused||!l)return;const C=j.target;l.contains(C)?f.current=C:Wl(f.current,{select:!0})},x=function(j){if(m.paused||!l)return;const C=j.relatedTarget;C!==null&&(l.contains(C)||Wl(f.current,{select:!0}))},y=function(j){if(document.activeElement===document.body)for(const T of j)T.removedNodes.length>0&&Wl(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const b=new MutationObserver(y);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),b.disconnect()}}},[n,l,m.paused]),A.useEffect(()=>{if(l){WB.add(m);const p=document.activeElement;if(!l.contains(p)){const y=new CustomEvent(Vy,KB);l.addEventListener(Vy,u),l.dispatchEvent(y),y.defaultPrevented||(Bee(Fee(_L(l)),{select:!0}),document.activeElement===p&&Wl(l))}return()=>{l.removeEventListener(Vy,u),setTimeout(()=>{const y=new CustomEvent(Hy,KB);l.addEventListener(Hy,d),l.dispatchEvent(y),y.defaultPrevented||Wl(p??document.body,{select:!0}),l.removeEventListener(Hy,d),WB.remove(m)},0)}}},[l,u,d,m]);const g=A.useCallback(p=>{if(!r&&!n||m.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(x&&y){const b=p.currentTarget,[j,C]=Nee(b);j&&C?!p.shiftKey&&y===C?(p.preventDefault(),r&&Wl(j,{select:!0})):p.shiftKey&&y===j&&(p.preventDefault(),r&&Wl(C,{select:!0})):y===b&&p.preventDefault()}},[r,n,m.paused]);return a.jsx(_t.div,{tabIndex:-1,...i,ref:h,onKeyDown:g})});Ch.displayName=Eee;function Bee(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Wl(n,{select:t}),document.activeElement!==r)return}function Nee(e){const t=_L(e),r=GB(t,e),n=GB(t.reverse(),e);return[r,n]}function _L(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function GB(e,t){for(const r of e)if(!See(r,{upTo:t}))return r}function See(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kee(e){return e instanceof HTMLInputElement&&"select"in e}function Wl(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&kee(e)&&t&&e.select()}}var WB=Iee();function Iee(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=YB(e,t),e.unshift(t)},remove(t){e=YB(e,t),e[0]?.resume()}}}function YB(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Fee(e){return e.filter(t=>t.tagName!=="A")}var zy=0;function zx(){A.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??XB()),document.body.insertAdjacentElement("beforeend",e[1]??XB()),zy++,()=>{zy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zy--}},[])}function XB(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wi=function(){return wi=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},wi.apply(this,arguments)};function CL(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function Tee(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;
1114n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Jg="right-scroll-bar-position",e0="width-before-scroll-bar",Pee="with-scroll-bars-hidden",Lee="--removed-body-scroll-bar-size";function $y(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Dee(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var Ree=typeof window<"u"?A.useLayoutEffect:A.useEffect,ZB=new WeakMap;function Mee(e,t){var r=Dee(null,function(n){return e.forEach(function(s){return $y(s,n)})});return Ree(function(){var n=ZB.get(r);if(n){var s=new Set(n),o=new Set(e),i=r.current;s.forEach(function(l){o.has(l)||$y(l,null)}),o.forEach(function(l){s.has(l)||$y(l,i)})}ZB.set(r,e)},[e]),r}function Oee(e){return e}function Uee(e,t){t===void 0&&(t=Oee);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(o),i=r}var c=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),r}}}};return s}function Qee(e){e===void 0&&(e={});var t=Uee(null);return t.options=wi({async:!0,ssr:!1},e),t}var jL=function(e){var t=e.sideCar,r=CL(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return A.createElement(n,wi({},r))};jL.isSideCarExport=!0;function Vee(e,t){return e.useMedium(t),jL}var EL=Qee(),qy=function(){},$x=A.forwardRef(function(e,t){var r=A.useRef(null),n=A.useState({onScrollCapture:qy,onWheelCapture:qy,onTouchMoveCapture:qy}),s=n[0],o=n[1],i=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,g=e.noIsolation,p=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,j=e.gapMode,C=CL(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,L=Mee([r,t]),P=wi(wi({},C),s);return A.createElement(A.Fragment,null,d&&A.createElement(T,{sideCar:EL,removeScrollBar:u,shards:f,noRelative:m,noIsolation:g,inert:p,setCallbacks:o,allowPinchZoom:!!x,lockRef:r,gapMode:j}),i?A.cloneElement(A.Children.only(l),wi(wi({},P),{ref:L})):A.createElement(b,wi({},P,{className:c,ref:L}),l))});$x.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$x.classNames={fullWidth:e0,zeroRight:Jg};var Hee=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hee();return t&&e.setAttribute("nonce",t),e}function $ee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kee=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zee())&&($ee(t,r),qee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gee=function(){var e=Kee();return function(t,r){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},BL=function(){var e=Gee(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},Wee={left:0,top:0,right:0,gap:0},Ky=function(e){return parseInt(e||"",10)||0},Yee=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ky(r),Ky(n),Ky(s)]},Xee=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wee;var t=Yee(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Zee=BL(),sA="data-scroll-locked",Jee=function(e,t,r,n){var s=e.left,o=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),` 1115 .`.concat(Pee,` { 1116 overflow: hidden `).concat(n,`; 1117 padding-right: `).concat(l,"px ").concat(n,`; 1118 } 1119 body[`).concat(sA,`] { 1120 overflow: hidden `).concat(n,`; 1121 overscroll-behavior: contain; 1122 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 1123 padding-left: `.concat(s,`px; 1124 padding-top: `).concat(o,`px; 1125 padding-right: `).concat(i,`px; 1126 margin-left:0; 1127 margin-top:0; 1128 margin-right: `).concat(l,"px ").concat(n,`; 1129 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
1129")].filter(Boolean).join(""),` 1130 } 1131 1132 .`).concat(Jg,` { 1133 right: `).concat(l,"px ").concat(n,`; 1134 } 1135 1136 .`).concat(e0,` { 1137 margin-right: `).concat(l,"px ").concat(n,`; 1138 } 1139 1140 .`).concat(Jg," .").concat(Jg,` { 1141 right: 0 `).concat(n,`; 1142 } 1143 1144 .`).concat(e0," .").concat(e0,` { 1145 margin-right: 0 `).concat(n,`; 1146 } 1147 1148 body[`).concat(sA,`] { 1149 `).concat(Lee,": ").concat(l,`px; 1150 } 1151`)},JB=function(){var e=parseInt(document.body.getAttribute(sA)||"0",10);return isFinite(e)?e:0},ete=function(){A.useEffect(function(){return document.body.setAttribute(sA,(JB()+1).toString()),function(){var e=JB()-1;e<=0?document.body.removeAttribute(sA):document.body.setAttribute(sA,e.toString())}},[])},tte=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;ete();var o=A.useMemo(function(){return Xee(s)},[s]);return A.createElement(Zee,{styles:Jee(o,!t,s,r?"":"!important")})},xw=!1;if(typeof window<"u")try{var Mp=Object.defineProperty({},"passive",{get:function(){return xw=!0,!0}});window.addEventListener("test",Mp,Mp),window.removeEventListener("test",Mp,Mp)}catch{xw=!1}var Cd=xw?{passive:!1}:!1,rte=function(e){return e.tagName==="TEXTAREA"},NL=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!rte(e)&&r[t]==="visible")},nte=function(e){return NL(e,"overflowY")},ate=function(e){return NL(e,"overflowX")},eN=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=SL(e,n);if(s){var o=kL(e,n),i=o[1],l=o[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ste=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ote=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},SL=function(e,t){return e==="v"?nte(t):ate(t)},kL=function(e,t){return e==="v"?ste(t):ote(t)},ite=function(e,t){return e==="h"&&t==="rtl"?-1:1},lte=function(e,t,r,n,s){var o=ite(e,window.getComputedStyle(t).direction),i=o*n,l=r.target,c=t.contains(l),u=!1,d=i>0,f=0,h=0;do{if(!l)break;var m=kL(e,l),g=m[0],p=m[1],x=m[2],y=p-x-o*g;(g||y)&&SL(e,l)&&(f+=y,h+=g);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(u=!0),u},Op=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tN=function(e){return[e.deltaX,e.deltaY]},rN=function(e){return e&&"current"in e?e.current:e},cte=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ute=function(e){return` 1152 .block-interactivity-`.concat(e,` {pointer-events: none;} 1153 .allow-interactivity-`).concat(e,` {pointer-events: all;} 1154`)},dte=0,jd=[];function Ate(e){var t=A.useRef([]),r=A.useRef([0,0]),n=A.useRef(),s=A.useState(dte++)[0],o=A.useState(BL)[0],i=A.useRef(e);A.useEffect(function(){i.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Tee([e.lockRef.current],(e.shards||[]).map(rN),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=A.useCallback(function(p,x){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Op(p),b=r.current,j="deltaX"in p?p.deltaX:b[0]-y[0],C="deltaY"in p?p.deltaY:b[1]-y[1],T,L=p.target,P=Math.abs(j)>Math.abs(C)?"h":"v";if("touches"in p&&P==="h"&&L.type==="range")return!1;var I=eN(P,L);if(!I)return!0;if(I?T=P:(T=P==="v"?"h":"v",I=eN(P,L)),!I)return!1;if(!n.current&&"changedTouches"in p&&(j||C)&&(n.current=T),!T)return!0;var E=n.current||T;return lte(E,x,p,E==="h"?j:C)},[]),c=A.useCallback(function(p){var x=p;if(!(!jd.length||jd[jd.length-1]!==o)){var y="deltaY"in x?tN(x):Op(x),b=t.current.filter(function(T){return T.name===x.type&&(T.target===x.target||x.target===T.shadowParent)&&cte(T.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}
vendor: 4,354 bytes, line 1154
1154if(!b){var j=(i.current.shards||[]).map(rN).filter(Boolean).filter(function(T){return T.contains(x.target)}),C=j.length>0?l(x,j[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(p,x,y,b){var j={name:p,delta:x,target:y,should:b,shadowParent:fte(y)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(C){return C!==j})},1)},[]),d=A.useCallback(function(p){r.current=Op(p),n.current=void 0},[]),f=A.useCallback(function(p){u(p.type,tN(p),p.target,l(p,e.lockRef.current))},[]),h=A.useCallback(function(p){u(p.type,Op(p),p.target,l(p,e.lockRef.current))},[]);A.useEffect(function(){return jd.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Cd),document.addEventListener("touchmove",c,Cd),document.addEventListener("touchstart",d,Cd),function(){jd=jd.filter(function(p){return p!==o}),document.removeEventListener("wheel",c,Cd),document.removeEventListener("touchmove",c,Cd),document.removeEventListener("touchstart",d,Cd)}},[]);var m=e.removeScrollBar,g=e.inert;return A.createElement(A.Fragment,null,g?A.createElement(o,{styles:ute(s)}):null,m?A.createElement(tte,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fte(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mte=Vee(EL,Ate);var jh=A.forwardRef(function(e,t){return A.createElement($x,wi({},e,{ref:t,sideCar:mte}))});jh.classNames=$x.classNames;var hte=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ed=new WeakMap,Up=new WeakMap,Qp={},Gy=0,IL=function(e){return e&&(e.host||IL(e.parentNode))},pte=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=IL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},gte=function(e,t,r,n){var s=pte(t,Array.isArray(e)?e:[e]);Qp[r]||(Qp[r]=new WeakMap);var o=Qp[r],i=[],l=new Set,c=new Set(s),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};s.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var m=h.getAttribute(n),g=m!==null&&m!=="false",p=(Ed.get(h)||0)+1,x=(o.get(h)||0)+1;Ed.set(h,p),o.set(h,x),i.push(h),p===1&&g&&Up.set(h,!0),x===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),l.clear(),Gy++,function(){i.forEach(function(f){var h=Ed.get(f)-1,m=o.get(f)-1;Ed.set(f,h),o.set(f,m),h||(Up.has(f)||f.removeAttribute(n),Up.delete(f)),m||f.removeAttribute(r)}),Gy--,Gy||(Ed=new WeakMap,Ed=new WeakMap,Up=new WeakMap,Qp={})}},qx=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=hte(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),gte(n,s,r,"aria-hidden")):function(){return null}},Kx="Dialog",[FL,TL]=Ha(Kx),[xte,ai]=FL(Kx),PL=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,l=A.useRef(null),c=A.useRef(null),[u,d]=Io({prop:n,defaultProp:s??!1,onChange:o,caller:Kx});return a.jsx(xte,{scope:t,triggerRef:l,contentRef:c,contentId:la(),titleId:la(),descriptionId:la(),open:u,onOpenChange:d,onOpenToggle:A.useCallback(()=>d(f=>!f),[d]),modal:i,children:r})};PL.displayName=Kx;var LL="DialogTrigger",DL=A.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=ai(LL,r),o=er(t,s.triggerRef);return a.jsx(_t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":A5(s.open),...n,ref:o,onClick:At(e.onClick,s.onOpenToggle)})});DL.displayName=LL;var u5="DialogPortal",[vte,RL]=FL(u5,{forceMount:void 0}),ML=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=ai(u5,t);return a.jsx(vte,{scope:t,forceMount:r,children:A.Children.map(n,i=>a.jsx(Na,{present:r||o.open,children:a.jsx(FA,{asChild:!0,container:s,children:i})}))})};ML.displayName=u5;var F0="DialogOverlay",OL=A.forwardRef((e,t)=>{const r=RL(F0,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=ai(F0,e.__scopeDialog);return o.modal?a.jsx(Na,{present:n||o.open,children:a.jsx(bte,{...s,ref:t})}):null});OL.displayName=F0;var yte=gc("DialogOverlay.RemoveScroll"),bte=A.forwardRef((e,t)=>
1154{const{__scopeDialog:r,...n}=e,s=ai(F0,r);return a.jsx(jh,{as:yte,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(_t.div,{"data-state":A5(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Uu="DialogContent",UL=A.forwardRef((e,t)=>{const r=RL(Uu,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=ai(Uu,e.__scopeDialog);return a.jsx(Na,{present:n||o.open,children:o.modal?a.jsx(wte,{...s,ref:t}):a.jsx(_te,{...s,ref:t})})});UL.displayName=Uu;var wte=A.forwardRef((e,t)=>{const r=ai(Uu,e.__scopeDialog),n=A.useRef(null),s=er(t,r.contentRef,n);return A.useEffect(()=>{const o=n.current;if(o)return qx(o)},[]),a.jsx(QL,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:At(e.onCloseAutoFocus,o=>{o.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:At(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:At(e.onFocusOutside,o=>o.preventDefault())})}),_te=A.forwardRef((e,t)=>{const r=ai(Uu,e.__scopeDialog),n=A.useRef(!1),s=A.useRef(!1);return a.jsx(QL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),QL=A.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,l=ai(Uu,r),c=A.useRef(null),u=er(t,c);return zx(),a.jsxs(a.Fragment,{children:[a.jsx(Ch,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:a.jsx(Yu,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A5(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(jte,{titleId:l.titleId}),a.jsx(Bte,{contentRef:c,descriptionId:l.descriptionId})]})]})}),d5="DialogTitle",VL=A.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=ai(d5,r);return a.jsx(_t.h2,{id:s.titleId,...n,ref:t})});VL.displayName=d5;var HL="DialogDescription",zL=A.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=ai(HL,r);return a.jsx(_t.p,{id:s.descriptionId,...n,ref:t})});zL.displayName=HL;var $L="DialogClose",qL=A.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=ai($L,r);return a.jsx(_t.button,{type:"button",...n,ref:t,onClick:At(e.onClick,()=>s.onOpenChange(!1))})});qL.displayName=$L;function A5(e){return e?"open":"closed"}var KL="DialogTitleWarning",[Cte,GL]=hH(KL,{contentName:Uu,titleName:d5,docsSlug:"dialog"}),jte=({titleId:e})=>{const t=GL(KL),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 1155 1156If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 1157 1158For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return A.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ete="DialogDescriptionWarning",Bte=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${GL(Ete).contentName}}.`;return A.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Eh=PL,f5=DL,Bh=ML,ed=OL,td=UL,VA=VL,HA=zL,Nh=qL;const Qa=Eh,gUe=f5,Nte=Bh,WL=A.forwardRef(({className:e,...t},r)=>a.jsx(ed,{ref:r,className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));WL.displayName=ed.displayName;const Ba=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(Nte,{children:[a.jsx(WL,{}),a.jsxs(td,{"aria-describedby":void 0,ref:n,className:je("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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:rou
1158nded-lg max-h-[90vh] overflow-y-auto",e),...r,children:[t,a.jsxs(Nh,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none z-10",children:[a.jsx(Ua,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ba.displayName=td.displayName;const Ks=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ks.displayName="DialogHeader";const YL=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});YL.displayName="DialogFooter";const Va=A.forwardRef(({className:e,...t},r)=>a.jsx(VA,{ref:r,className:je("text-lg font-semibold leading-none tracking-tight",e),...t}));Va.displayName=VA.displayName;const Po=A.forwardRef(({className:e,...t},r)=>a.jsx(HA,{ref:r,className:je("text-sm text-muted-foreground",e),...t}));Po.displayName=HA.displayName;var Ste=A.createContext(void 0);function Gx(e){const t=A.useContext(Ste);return e||t||"ltr"}function vw(e,[t,r]){return Math.min(r,Math.max(t,e))}function kte(e,t){return A.useReducer((r,n)=>t[r][n]??r,e)}var m5="ScrollArea",[XL]=Ha(m5),[Ite,Lo]=XL(m5),ZL=A.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:s,scrollHideDelay:o=600,...i}=e,[l,c]=A.useState(null),[u,d]=A.useState(null),[f,h]=A.useState(null),[m,g]=A.useState(null),[p,x]=A.useState(null),[y,b]=A.useState(0),[j,C]=A.useState(0),[T,L]=A.useState(!1),[P,I]=A.useState(!1),E=er(t,k=>c(k)),O=Gx(s);return a.jsx(Ite,{scope:r,type:n,dir:O,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:f,onContentChange:h,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:T,onScrollbarXEnabledChange:L,scrollbarY:p,onScrollbarYChange:x,scrollbarYEnabled:P,onScrollbarYEnabledChange:I,onCornerWidthChange:b,onCornerHeightChange:C,children:a.jsx(_t.div,{dir:O,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":j+"px",...e.style}})})});ZL.displayName=m5;var JL="ScrollAreaViewport",eD=A.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:s,...o}=e,i=Lo(JL,r),l=A.useRef(null),c=er(t,l,i.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),a.jsx(_t.div,{"data-radix-scroll-area-viewport":"",...o,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});eD.displayName=JL;var Li="ScrollAreaScrollbar",h5=A.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Lo(Li,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=s,l=e.orientation==="horizontal";return A.useEffect(()=>(l?o(!0):i(!0),()=>{l?o(!1):i(!1)}),[l,o,i]),s.type==="hover"?a.jsx(Fte,{...n,ref:t,forceMount:r}):s.type==="scroll"?a.jsx(Tte,{...n,ref:t,forceMount:r}):s.type==="auto"?a.jsx(tD,{...n,ref:t,forceMount:r}):s.type==="always"?a.jsx(p5,{...n,ref:t}):null});h5.displayName=Li;var Fte=A.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Lo(Li,e.__scopeScrollArea),[o,i]=A.useState(!1);return A.useEffect(()=>{const l=s.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),i(!0)},d=()=>{c=window.setTimeout(()=>i(!1),s.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[s.scrollArea,s.scrollHideDelay]),a.jsx(Na,{present:r||o,children:a.jsx(tD,{"data-state":o?"visible":"hidden",...n,ref:t})})}),Tte=A.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=Lo(Li,e.__scopeScrollArea),o=e.orientation==="horizontal",i=Yx(()=>c("SCROLL_END"),100),[l,c]=kte("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return A.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,s.scrollHideDelay,c]),A.useEffect(()=>{const u=s.viewport,d=o?"scrollLeft":"scrollTop";if(u){let f=u[d];const h=()=>{const m=u[d];f!==m&&(c("SCROLL"),i()),f=m};return u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[s.viewport,o,c,i]),a.jsx(Na,{present:r||l!=="hidden",children:a.jsx(p5,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:At(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:At(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),tD=A.forwardRef((e,t)=>
1158{const r=Lo(Li,e.__scopeScrollArea),{forceMount:n,...s}=e,[o,i]=A.useState(!1),l=e.orientation==="horizontal",c=Yx(()=>{if(r.viewport){const u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:d)}},10);return wA(r.viewport,c),wA(r.content,c),a.jsx(Na,{present:n||o,children:a.jsx(p5,{"data-state":o?"visible":"hidden",...s,ref:t})})}),p5=A.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,s=Lo(Li,e.__scopeScrollArea),o=A.useRef(null),i=A.useRef(0),[l,c]=A.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=oD(l.viewport,l.content),d={...n,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:h=>o.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function f(h,m){return Ote(h,i.current,l,m)}return r==="horizontal"?a.jsx(Pte,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const h=s.viewport.scrollLeft,m=nN(h,l,s.dir);o.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollLeft=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollLeft=f(h,s.dir))}}):r==="vertical"?a.jsx(Lte,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const h=s.viewport.scrollTop,m=nN(h,l);o.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollTop=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollTop=f(h))}}):null}),Pte=A.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...s}=e,o=Lo(Li,e.__scopeScrollArea),[i,l]=A.useState(),c=A.useRef(null),u=er(t,c,o.onScrollbarXChange);return A.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(nD,{"data-orientation":"horizontal",...s,ref:u,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wx(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(o.viewport){const h=o.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),lD(h,f)&&d.preventDefault()}},onResize:()=>{c.current&&o.viewport&&i&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:P0(i.paddingLeft),paddingEnd:P0(i.paddingRight)}})}})}),Lte=A.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...s}=e,o=Lo(Li,e.__scopeScrollArea),[i,l]=A.useState(),c=A.useRef(null),u=er(t,c,o.onScrollbarYChange);return A.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),a.jsx(nD,{"data-orientation":"vertical",...s,ref:u,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wx(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(o.viewport){const h=o.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),lD(h,f)&&d.preventDefault()}},onResize:()=>{c.current&&o.viewport&&i&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:P0(i.paddingTop),paddingEnd:P0(i.paddingBottom)}})}})}),[Dte,rD]=XL(Li),nD=A.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:s,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:f,...h}=e,m=Lo(Li,r),[g,p]=A.useState(null),x=er(t,E=>p(E)),y=A.useRef(null),b=A.useRef(""),j=m.viewport,C=n.content-n.viewport,T=Bn(d),L=Bn(c),P=Yx(f,10);function I(E){if(y.current){const O=E.clientX-y.current.left,k=E.clientY-y.current.top;u({x:O,y:k})}}return A.useEffect(()=>{const E=O=>{const k=O.target;g?.contains(k)&&T(O,C)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[j,g,C,T]),A.useEffect(L,[n,L]),wA(g,P),wA(m.content,P),a.jsx(Dte,{scope:r,scrollbar:g,hasThumb:s,onThumbChange:Bn(o),onThumbPointerUp:Bn(i),onThumbPositionChange:L,onThumbPointerDown:Bn(l),children:a.jsx(_t.div,{...h,ref:x,style:{position:"absolute",...h.style},onPointerDown:At(e.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),y.current=g.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),I(E))}),onPointerMove:At(e.onPointerMove,I),onPointerUp:At(e.onPointerUp,E=>{const O=E.target;O.hasPointerCapture(E.pointerId)&&O.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=b.current,m.viewport&&(m.viewport.style.scrollBehavior=""),y.current=null})})})}),T0="ScrollAreaThumb",aD=A.forwardRef((e,t)=>
1158{const{forceMount:r,...n}=e,s=rD(T0,e.__scopeScrollArea);return a.jsx(Na,{present:r||s.hasThumb,children:a.jsx(Rte,{ref:t,...n})})}),Rte=A.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...s}=e,o=Lo(T0,r),i=rD(T0,r),{onThumbPositionChange:l}=i,c=er(t,f=>i.onThumbChange(f)),u=A.useRef(void 0),d=Yx(()=>{u.current&&(u.current(),u.current=void 0)},100);return A.useEffect(()=>{const f=o.viewport;if(f){const h=()=>{if(d(),!u.current){const m=Ute(f,l);u.current=m,l()}};return l(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[o.viewport,d,l]),a.jsx(_t.div,{"data-state":i.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:At(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),g=f.clientX-m.left,p=f.clientY-m.top;i.onThumbPointerDown({x:g,y:p})}),onPointerUp:At(e.onPointerUp,i.onThumbPointerUp)})});aD.displayName=T0;var g5="ScrollAreaCorner",sD=A.forwardRef((e,t)=>{const r=Lo(g5,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?a.jsx(Mte,{...e,ref:t}):null});sD.displayName=g5;var Mte=A.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,s=Lo(g5,r),[o,i]=A.useState(0),[l,c]=A.useState(0),u=!!(o&&l);return wA(s.scrollbarX,()=>{const d=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(d),c(d)}),wA(s.scrollbarY,()=>{const d=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(d),i(d)}),u?a.jsx(_t.div,{...n,ref:t,style:{width:o,height:l,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function P0(e){return e?parseInt(e,10):0}function oD(e,t){const r=e/t;return isNaN(r)?0:r}function Wx(e){const t=oD(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Ote(e,t,r,n="ltr"){const s=Wx(r),o=s/2,i=t||o,l=s-i,c=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,d=r.content-r.viewport,f=n==="ltr"?[0,d]:[d*-1,0];return iD([c,u],f)(e)}function nN(e,t,r="ltr"){const n=Wx(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-s,i=t.content-t.viewport,l=o-n,c=r==="ltr"?[0,i]:[i*-1,0],u=vw(e,c);return iD([0,i],[0,l])(u)}function iD(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function lD(e,t){return e>0&&e<t}var Ute=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function s(){const o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,l=r.top!==o.top;(i||l)&&t(),r=o,n=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(n)};function Yx(e,t){const r=Bn(e),n=A.useRef(0);return A.useEffect(()=>()=>window.clearTimeout(n.current),[]),A.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function wA(e,t){const r=Bn(t);On(()=>{let n=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(n),s.unobserve(e)}}},[e,r])}var cD=ZL,Qte=eD,Vte=sD;const Xx=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(cD,{ref:n,className:je("relative overflow-hidden",e),...r,children:[a.jsx(Qte,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(uD,{}),a.jsx(Vte,{})]}));Xx.displayName=cD.displayName;const uD=A.forwardRef(({className:e,orientation:t="vertical",...r},n)=>a.jsx(h5,{ref:n,orientation:t,className:je("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(aD,{className:"relative flex-1 rounded-full bg-border"})}));uD.displayName=h5.displayName;const Vm=gh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors 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",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-11 px-4 py-3 md:h-10 md:px-4 md:py-2",sm:"h-10 px-3 py-2 md:h-9 md:px-3",lg:"h-14 px-8 py-4 md:h-11 md:px-8",icon:"h-11 w-11 md:h-10 md:w-10"}},defaultVariants:{variant:"default",size:"default"}}),Oe=A.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?w2:"button";return a.jsx(i,{className:je(Vm({variant:t,size:r,className:e})),ref:o,...s})});Oe.displayName="Button";const Jt=A.forwardRef(({className:e,type:t,...r},n)=>
1158a.jsx("input",{type:t,className:je("flex h-8 md:h-11 w-full rounded-md border border-input bg-background px-2.5 py-1 md:px-4 md:py-2.5 text-xs md:text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:shadow-[0_0_12px_hsl(var(--primary)/0.12)] disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200",e),ref:n,...r}));Jt.displayName="Input";var Hte="Label",dD=A.forwardRef((e,t)=>a.jsx(_t.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));dD.displayName=Hte;var AD=dD;const zte=gh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$t=A.forwardRef(({className:e,...t},r)=>a.jsx(AD,{ref:r,className:je(zte(),e),...t}));$t.displayName=AD.displayName;const hl=A.forwardRef(({className:e,...t},r)=>a.jsx("textarea",{className:je("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1158ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));hl.displayName="Textarea";var fD={exports:{}},mD={};/** 1159 * @license React 1160 * use-sync-external-store-shim.production.js 1161 * 1162 * Copyright (c) Meta Platforms, Inc. and affiliates. 1163 * 1164 * This source code is licensed under the MIT license found in the 1165 * LICENSE file in the root directory of this source tree. 1166 */var _A=A;function $te(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qte=typeof Object.is=="function"?Object.is:$te,Kte=_A.useState,Gte=_A.useEffect,Wte=_A.useLayoutEffect,Yte=_A.useDebugValue;function Xte(e,t){var r=t(),n=Kte({inst:{value:r,getSnapshot:t}}),s=n[0].inst,o=n[1];return Wte(function(){s.value=r,s.getSnapshot=t,Wy(s)&&o({inst:s})},[e,r,t]),Gte(function(){return Wy(s)&&o({inst:s}),e(function(){Wy(s)&&o({inst:s})})},[e]),Yte(r),r}function Wy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!qte(e,r)}catch{return!0}}function Zte(e,t){return t()}var Jte=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zte:Xte;mD.useSyncExternalStore=_A.useSyncExternalStore!==void 0?_A.useSyncExternalStore:Jte;fD.exports=mD;var ere=fD.exports;function tre(){return ere.useSyncExternalStore(rre,()=>!0,()=>!1)}function rre(){return()=>{}}var x5="Avatar",[nre]=Ha(x5),[are,hD]=nre(x5),pD=A.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[s,o]=A.useState("idle");return a.jsx(are,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:a.jsx(_t.span,{...n,ref:t})})});pD.displayName=x5;var gD="AvatarImage",xD=A.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...o}=e,i=hD(gD,r),l=sre(n,o),c=Bn(u=>{s(u),i.onImageLoadingStatusChange(u)});return On(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?a.jsx(_t.img,{...o,ref:t,src:n}):null});xD.displayName=gD;var vD="AvatarFallback",yD=A.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...s}=e,o=hD(vD,r),[i,l]=A.useState(n===void 0);return A.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(c)}},[n]),i&&o.imageLoadingStatus!=="loaded"?a.jsx(_t.span,{...s,ref:t}):null});yD.displayName=vD;function aN(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function sre(e,{referrerPolicy:t,crossOrigin:r}){const n=tre(),s=A.useRef(null),o=n?(s.current||(s.current=new window.Image),s.current):null,[i,l]=A.useState(()=>aN(o,e));return On(()=>{l(aN(o,e))},[o,e]),On(()=>{const c=f=>()=>{l(f)};if(!o)return;const u=c("loaded"),d=c("error");return o.addEventListener("load",u),o.addEventListener("error",d),t&&(o.referrerPolicy=t),typeof r=="string"&&(o.crossOrigin=r),()=>{o.removeEventListener("load",u),o.removeEventListener("error",d)}},[o,r,t]),i}var bD=pD,wD=xD,_D=yD;const zA=A.forwardRef(({className:e,...t},r)=>a.jsx(bD,{ref:r,className:je("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));zA.displayName=bD.displayName;const Sh=A.forwardRef(({className:e,...t},r)=>a.jsx(wD,{ref:r,className:je("aspect-square h-full w-full",e),...t}));Sh.displayName=wD.displayName;const $A=A.forwardRef(({className:e,...t},r)=>a.jsx(_D,{ref:r,className:je("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));$A.displayName=_D.displayName;const ore=gh("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),Vt=A.forwardRef(({className:e,variant:t,...r},n)=>a.jsx("div",{ref:n,className:je(ore({variant:t}),e),...r}));Vt.displayName="Badge";function v5(e){const t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ire=[" ","Enter","ArrowUp","ArrowDown"],lre=[" ","Enter"],Qu="Select",[Zx,Jx,cre]=yx(Qu),[qA]=Ha(Qu,[cre,Sc]),ev=Sc(),[ure,kc]=qA(Qu),[dre,Are]=qA(Qu),CD=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:s,onOpenChange:o,value:i,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:g}=e,p=ev(t),[x,y]=A.useState(null),[b,j]=A.useState(null),[C,T]=A.useState(!1),L=Gx(u),[P,I]=Io({prop:n,defaultProp:s??!1,onChange:o,caller:Qu}),[E,O]=Io({prop:i,defaultProp:l,onChange:c,caller:Qu}),k=A.useRef(null),D=x?g||!!x.closest("form"):!0,[H,U]=A.useState(new Set),ee=Array.from(H).map(ae=>ae.props.value).join(";");return a.jsx(wh,{...p,children:a.jsxs(ure,{required:m,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:j,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:la(),value:E,onValueChange:O,open:P,onOpenChange:I,dir:L,triggerPointerDownPosRef:k,disabled:h,children:[a.jsx(Zx.Provider,{scope:t,children:a.jsx(dre,{scope:e.__scopeSelect,onNativeOptionAdd:A.useCallback(ae=>{U(V=>new Set(V).add(ae))},[]),onNativeOptionRemove:A.useCallback(ae=>{U(V=>{const q=new Set(V);return q.delete(ae),q})},[]),children:r})}),D?a.jsxs(WD,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:E,onChange:ae=>O(ae.target.value),disabled:h,form:g,children:[E===void 0?a.jsx("option",{value:""}):null,Array.from(H)]},ee):null]})})};CD.displayName=Qu;var jD="SelectTrigger",ED=A.forwardRef((e,t)=>
1166{const{__scopeSelect:r,disabled:n=!1,...s}=e,o=ev(r),i=kc(jD,r),l=i.disabled||n,c=er(t,i.onTriggerChange),u=Jx(r),d=A.useRef("touch"),[f,h,m]=XD(p=>{const x=u().filter(j=>!j.disabled),y=x.find(j=>j.value===i.value),b=ZD(x,p,y);b!==void 0&&i.onValueChange(b.value)}),g=p=>{l||(i.onOpenChange(!0),m()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return a.jsx(_h,{asChild:!0,...o,children:a.jsx(_t.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":YD(i.value)?"":void 0,...s,ref:c,onClick:At(s.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&g(p)}),onPointerDown:At(s.onPointerDown,p=>{d.current=p.pointerType;const x=p.target;x.hasPointerCapture(p.pointerId)&&x.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(g(p),p.preventDefault())}),onKeyDown:At(s.onKeyDown,p=>{const x=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(x&&p.key===" ")&&ire.includes(p.key)&&(g(),p.preventDefault())})})})});ED.displayName=jD;var BD="SelectValue",ND=A.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,children:o,placeholder:i="",...l}=e,c=kc(BD,r),{onValueNodeHasChildrenChange:u}=c,d=o!==void 0,f=er(t,c.onValueNodeChange);return On(()=>{u(d)},[u,d]),a.jsx(_t.span,{...l,ref:f,style:{pointerEvents:"none"},children:YD(c.value)?a.jsx(a.Fragment,{children:i}):o})});ND.displayName=BD;var fre="SelectIcon",SD=A.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...s}=e;return a.jsx(_t.span,{"aria-hidden":!0,...s,ref:t,children:n||"â¼"})});SD.displayName=fre;var mre="SelectPortal",kD=e=>a.jsx(FA,{asChild:!0,...e});kD.displayName=mre;var Vu="SelectContent",ID=A.forwardRef((e,t)=>{const r=kc(Vu,e.__scopeSelect),[n,s]=A.useState();if(On(()=>{s(new DocumentFragment)},[]),!r.open){const o=n;return o?IA.createPortal(a.jsx(FD,{scope:e.__scopeSelect,children:a.jsx(Zx.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),o):null}return a.jsx(TD,{...e,ref:t})});ID.displayName=Vu;var Ko=10,[FD,Ic]=qA(Vu),hre="SelectContentImpl",pre=gc("SelectContent.RemoveScroll"),TD=A.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:x,...y}=e,b=kc(Vu,r),[j,C]=A.useState(null),[T,L]=A.useState(null),P=er(t,X=>C(X)),[I,E]=A.useState(null),[O,k]=A.useState(null),D=Jx(r),[H,U]=A.useState(!1),ee=A.useRef(!1);A.useEffect(()=>{if(j)return qx(j)},[j]),zx();const ae=A.useCallback(X=>{const[te,...fe]=D().map(xe=>xe.ref.current),[pe]=fe.slice(-1),_e=document.activeElement;for(const xe of X)if(xe===_e||(xe?.scrollIntoView({block:"nearest"}),xe===te&&T&&(T.scrollTop=0),xe===pe&&T&&(T.scrollTop=T.scrollHeight),xe?.focus(),document.activeElement!==_e))return},[D,T]),V=A.useCallback(()=>ae([I,j]),[ae,I,j]);A.useEffect(()=>{H&&V()},[H,V]);const{onOpenChange:q,triggerPointerDownPosRef:G}=b;A.useEffect(()=>{if(j){let X={x:0,y:0};const te=pe=>{X={x:Math.abs(Math.round(pe.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(pe.pageY)-(G.current?.y??0))}},fe=pe=>{X.x<=10&&X.y<=10?pe.preventDefault():j.contains(pe.target)||q(!1),document.removeEventListener("pointermove",te),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",fe,{capture:!0})}}},[j,q,G]),A.useEffect(()=>{const X=()=>q(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[q]);const[Ae,se]=XD(X=>{const te=D().filter(_e=>!_e.disabled),fe=te.find(_e=>_e.ref.current===document.activeElement),pe=ZD(te,X,fe);pe&&setTimeout(()=>pe.ref.current.focus())}),S=A.useCallback((X,te,fe)=>{const pe=!ee.current&&!fe;(b.value!==void 0&&b.value===te||pe)&&(E(X),pe&&(ee.current=!0))},[b.value]),Q=A.useCallback(()=>j?.focus(),[j]),z=A.useCallback((X,te,fe)=>{const pe=!ee.current&&!fe;(b.value!==void 0&&b.value===te||pe)&&k(X)},[b.value]),W=n==="popper"?yw:PD,ne=W===yw?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:x}:{};return a.jsx(FD,{scope:r,content:j,viewport:T,onViewportChange:L,itemRefCallback:S,selectedItem:I,onItemLeave:Q,itemTextRefCallback:z,focusSelectedItem:V,selectedItemText:O,position:n,isPositioned:H,searchRef:Ae,children:a.jsx(jh,{as:pre,allowPinchZoom:!0,children:a.jsx(Ch,{asChild:!0,trapped:b.o
1166pen,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:At(s,X=>{b.trigger?.focus({preventScroll:!0}),X.preventDefault()}),children:a.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:a.jsx(W,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:X=>X.preventDefault(),...y,...ne,onPlaced:()=>U(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:At(y.onKeyDown,X=>{const te=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!te&&X.key.length===1&&se(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let pe=D().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(X.key)&&(pe=pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const _e=X.target,xe=pe.indexOf(_e);pe=pe.slice(xe+1)}setTimeout(()=>ae(pe)),X.preventDefault()}})})})})})})});TD.displayName=hre;var gre="SelectItemAlignedPosition",PD=A.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...s}=e,o=kc(Vu,r),i=Ic(Vu,r),[l,c]=A.useState(null),[u,d]=A.useState(null),f=er(t,P=>d(P)),h=Jx(r),m=A.useRef(!1),g=A.useRef(!0),{viewport:p,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=i,j=A.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&p&&x&&y){const P=o.trigger.getBoundingClientRect(),I=u.getBoundingClientRect(),E=o.valueNode.getBoundingClientRect(),O=y.getBoundingClientRect();if(o.dir!=="rtl"){const _e=O.left-I.left,xe=E.left-_e,Be=P.left-xe,He=P.width+Be,R=Math.max(He,I.width),be=window.innerWidth-Ko,tt=vw(xe,[Ko,Math.max(Ko,be-R)]);l.style.minWidth=He+"px",l.style.left=tt+"px"}else{const _e=I.right-O.right,xe=window.innerWidth-E.right-_e,Be=window.innerWidth-P.right-xe,He=P.width+Be,R=Math.max(He,I.width),be=window.innerWidth-Ko,tt=vw(xe,[Ko,Math.max(Ko,be-R)]);l.style.minWidth=He+"px",l.style.right=tt+"px"}const k=h(),D=window.innerHeight-Ko*2,H=p.scrollHeight,U=window.getComputedStyle(u),ee=parseInt(U.borderTopWidth,10),ae=parseInt(U.paddingTop,10),V=parseInt(U.borderBottomWidth,10),q=parseInt(U.paddingBottom,10),G=ee+ae+H+q+V,Ae=Math.min(x.offsetHeight*5,G),se=window.getComputedStyle(p),S=parseInt(se.paddingTop,10),Q=parseInt(se.paddingBottom,10),z=P.top+P.height/2-Ko,W=D-z,ne=x.offsetHeight/2,X=x.offsetTop+ne,te=ee+ae+X,fe=G-te;if(te<=z){const _e=k.length>0&&x===k[k.length-1].ref.current;l.style.bottom="0px";const xe=u.clientHeight-p.offsetTop-p.offsetHeight,Be=Math.max(W,ne+(_e?Q:0)+xe+V),He=te+Be;l.style.height=He+"px"}else{const _e=k.length>0&&x===k[0].ref.current;l.style.top="0px";const Be=Math.max(z,ee+p.offsetTop+(_e?S:0)+ne)+fe;l.style.height=Be+"px",p.scrollTop=te-z+p.offsetTop}l.style.margin=`${Ko}px 0`,l.style.minHeight=Ae+"px",l.style.maxHeight=D+"px",n?.(),requestAnimationFrame(()=>m.current=!0)}},[h,o.trigger,o.valueNode,l,u,p,x,y,o.dir,n]);On(()=>j(),[j]);const[C,T]=A.useState();On(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const L=A.useCallback(P=>{P&&g.current===!0&&(j(),b?.(),g.current=!1)},[j,b]);return a.jsx(vre,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:a.jsx(_t.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});PD.displayName=gre;var xre="SelectPopperPosition",yw=A.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=Ko,...o}=e,i=ev(r);return a.jsx(Lx,{...i,...o,ref:t,align:n,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});yw.displayName=xre;var[vre,y5]=qA(Vu,{}),bw="SelectViewport",LD=A.forwardRef((e,t)=>
1166{const{__scopeSelect:r,nonce:n,...s}=e,o=Ic(bw,r),i=y5(bw,r),l=er(t,o.onViewportChange),c=A.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),a.jsx(Zx.Slot,{scope:r,children:a.jsx(_t.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:At(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h?.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const g=window.innerHeight-Ko*2,p=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(p,x);if(y<g){const b=y+m,j=Math.min(g,b),C=b-j;f.style.height=j+"px",f.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});LD.displayName=bw;var DD="SelectGroup",[yre,bre]=qA(DD),RD=A.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=la();return a.jsx(yre,{scope:r,id:s,children:a.jsx(_t.div,{role:"group","aria-labelledby":s,...n,ref:t})})});RD.displayName=DD;var MD="SelectLabel",OD=A.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=bre(MD,r);return a.jsx(_t.div,{id:s.id,...n,ref:t})});OD.displayName=MD;var L0="SelectItem",[wre,UD]=qA(L0),QD=A.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:o,...i}=e,l=kc(L0,r),c=Ic(L0,r),u=l.value===n,[d,f]=A.useState(o??""),[h,m]=A.useState(!1),g=er(t,b=>c.itemRefCallback?.(b,n,s)),p=la(),x=A.useRef("touch"),y=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(wre,{scope:r,value:n,disabled:s,textId:p,isSelected:u,onItemTextChange:A.useCallback(b=>{f(j=>j||(b?.textContent??"").trim())},[]),children:a.jsx(Zx.ItemSlot,{scope:r,value:n,disabled:s,textValue:d,children:a.jsx(_t.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...i,ref:g,onFocus:At(i.onFocus,()=>m(!0)),onBlur:At(i.onBlur,()=>m(!1)),onClick:At(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:At(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:At(i.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:At(i.onPointerMove,b=>{x.current=b.pointerType,s?c.onItemLeave?.():x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:At(i.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:At(i.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(lre.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});QD.displayName=L0;var zf="SelectItemText",VD=A.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:s,...o}=e,i=kc(zf,r),l=Ic(zf,r),c=UD(zf,r),u=Are(zf,r),[d,f]=A.useState(null),h=er(t,y=>f(y),c.onItemTextChange,y=>l.itemTextRefCallback?.(y,c.value,c.disabled)),m=d?.textContent,g=A.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:x}=u;return On(()=>(p(g),()=>x(g)),[p,x,g]),a.jsxs(a.Fragment,{children:[a.jsx(_t.span,{id:c.textId,...o,ref:h}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?IA.createPortal(o.children,i.valueNode):null]})});VD.displayName=zf;var HD="SelectItemIndicator",zD=A.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return UD(HD,r).isSelected?a.jsx(_t.span,{"aria-hidden":!0,...n,ref:t}):null});zD.displayName=HD;var ww="SelectScrollUpButton",$D=A.forwardRef((e,t)=>{const r=Ic(ww,e.__scopeSelect),n=y5(ww,e.__scopeSelect),[s,o]=A.useState(!1),i=er(t,n.onScrollButtonChange);return On(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;o(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(KD,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});$D.displayName=ww;var _w="SelectScrollDownButton",qD=A.forwardRef((e,t)=>
1166{const r=Ic(_w,e.__scopeSelect),n=y5(_w,e.__scopeSelect),[s,o]=A.useState(!1),i=er(t,n.onScrollButtonChange);return On(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;o(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?a.jsx(KD,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});qD.displayName=_w;var KD=A.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=e,o=Ic("SelectScrollButton",r),i=A.useRef(null),l=Jx(r),c=A.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return A.useEffect(()=>()=>c(),[c]),On(()=>{l().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),a.jsx(_t.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:At(s.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:At(s.onPointerMove,()=>{o.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:At(s.onPointerLeave,()=>{c()})})}),_re="SelectSeparator",GD=A.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return a.jsx(_t.div,{"aria-hidden":!0,...n,ref:t})});GD.displayName=_re;var Cw="SelectArrow",Cre=A.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,s=ev(r),o=kc(Cw,r),i=Ic(Cw,r);return o.open&&i.position==="popper"?a.jsx(Dx,{...s,...n,ref:t}):null});Cre.displayName=Cw;var jre="SelectBubbleInput",WD=A.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const s=A.useRef(null),o=er(n,s),i=v5(t);return A.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[i,t]),a.jsx(_t.select,{...r,style:{...OF,...r.style},ref:o,defaultValue:t})});WD.displayName=jre;function YD(e){return e===""||e===void 0}function XD(e){const t=Bn(e),r=A.useRef(""),n=A.useRef(0),s=A.useCallback(i=>{const l=r.current+i;t(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),o=A.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,o]}function ZD(e,t,r){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=Ere(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==r));const c=i.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function Ere(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Bre=CD,JD=ED,Nre=ND,Sre=SD,kre=kD,eR=ID,Ire=LD,Fre=RD,tR=OD,rR=QD,Tre=VD,Pre=zD,nR=$D,aR=qD,sR=GD;const br=Bre,xUe=Fre,wr=Nre,pr=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(JD,{ref:n,className:je("flex h-8 md:h-11 w-full items-center justify-between rounded-md border border-input bg-background px-2.5 py-1 md:px-4 md:py-2.5 text-xs md:text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1 focus:shadow-[0_0_12px_hsl(var(--primary)/0.12)] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-all duration-200",e),...r,children:[t,a.jsx(Sre,{asChild:!0,children:a.jsx(rs,{className:"h-4 w-4 opacity-50"})})]}));pr.displayName=JD.displayName;const oR=A.forwardRef(({className:e,...t},r)=>a.jsx(nR,{ref:r,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(cT,{className:"h-4 w-4"})}));oR.displayName=nR.displayName;const iR=A.forwardRef(({className:e,...t},r)=>a.jsx(aR,{ref:r,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(rs,{className:"h-4 w-4"})}));iR.displayName=aR.displayName;const gr=A.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>a.jsx(kre,{children:a.jsxs(eR,{ref:s,className:je("relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1166de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(oR,{}),a.jsx(Ire,{className:je("p-1 bg-popover",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(iR,{})]})}));gr.displayName=eR.displayName;const Lre=A.forwardRef(({className:e,...t},r)=>a.jsx(tR,{ref:r,className:je("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Lre.displayName=tR.displayName;const yt=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(rR,{ref:n,className:je("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Pre,{children:a.jsx($s,{className:"h-4 w-4"})})}),a.jsx(Tre,{children:t})]}));yt.displayName=rR.displayName;const Dre=A.forwardRef(({className:e,...t},r)=>a.jsx(sR,{ref:r,className:je("-mx-1 my-1 h-px bg-muted",e),...t}));Dre.displayName=sR.displayName;const Rre=["sdr","closer","gestor"];function b5(e){return jt({queryKey:["unified-internal-users",e?.includeInactive??!1],queryFn:async()=>{const t=J.from("sales_team").select("id, user_id, name, email, foto_url, phone, role, is_active, is_internal_employee, created_at").order("name");e?.includeInactive||t.eq("is_active",!0);const{data:r,error:n}=await t;if(n)throw n;if(!r||r.length===0)return[];const s=r.map(m=>m.id),{data:o,error:i}=await J.from("employee_payroll_data").select(` 1167 id, sales_team_id, cargo, tipo_contrato, data_admissao, is_active, 1168 position_id, department_id, 1169 position:position_id (id, name), 1170 department:department_id (id, nome, cor) 1171 `).in("sales_team_id",s);if(i)throw i;const l=r.filter(m=>m.user_id).map(m=>m.user_id);let c=new Map;if(l.length>0){const{data:m,error:g}=await J.from("user_roles").select("user_id, role").in("user_id",l);if(!g&&m)for(const p of m){const x=c.get(p.user_id)||[];x.push(p.role),c.set(p.user_id,x)}}let u=new Map;if(l.length>0){const{data:m}=await J.from("unified_permissions").select("user_id, department_id, department:department_id(id, nome, cor)").in("user_id",l);m?.forEach(g=>{g.user_id&&g.department_id&&u.set(g.user_id,{id:g.department_id,nome:g.department?.nome??null,cor:g.department?.cor??null})})}let d=new Map;if(l.length>0){const{data:m}=await J.from("employees").select("user_id, department_id, position_id, department:department_id(id, nome, cor), position:position_id(id, name)").in("user_id",l).eq("is_active",!0);m?.forEach(g=>{g.user_id&&g.department_id&&d.set(g.user_id,{id:g.department_id,nome:g.department?.nome??null,cor:g.department?.cor??null,position_id:g.position_id??null,position_name:g.position?.name??null})})}const f=new Map;if(o)for(const m of o)m.sales_team_id&&f.set(m.sales_team_id,m);return r.map(m=>{const g=f.get(m.id),p=g?.department,x=g?.position,y=m.user_id?c.get(m.user_id)||[]:[],b=m.user_id?u.get(m.user_id):void 0,j=m.user_id?d.get(m.user_id):void 0,C=j?.id??b?.id??g?.department_id??null,T=j?.nome??b?.nome??p?.nome??null,L=j?.cor??b?.cor??p?.cor??null,P=j?.position_id??g?.position_id??null,I=j?.position_name??x?.name??null;return{sales_team_id:m.id,user_id:m.user_id,name:m.name,email:m.email,foto_url:m.foto_url,phone:m.phone,is_active:m.is_active,sales_role:m.role,payroll_id:g?.id||null,position_id:P,position_name:I,department_id:C,department_name:T,department_cor:L,cargo:g?.cargo||null,tipo_contrato:g?.tipo_contrato||null,data_admissao:g?.data_admissao||null,app_roles:y,has_payroll:!!g,has_auth_account:!!m.user_id,is_commercial:Rre.includes(m.role||"")}})},enabled:e?.enabled??!0,staleTime:5*60*1e3})}function vUe(e){const t=b5(e);return{...t,data:t.data?.filter(r=>r.is_commercial)||[]}}function w5(e){const t=b5(e);return{...t,data:t.data?.map(Mre)||[]}}function Mre(e){return{id:e.sales_team_id,name:e.name,foto_url:e.foto_url,role:e.sales_role,email:e.email,user_id:e.user_id}}const Yy=new Map;async function lR(e){if(!e)return null;if(Yy.has(e))return Yy.get(e)??null;const{data:t}=await J.from("sales_team").select("id").eq("user_id",e).maybeSingle(),r=t?.id??null;return Yy.set(e,r),r}async function cR(e){const t={lead_id:e.leadId,vendedor_id:e.vendedorId??null,channel:e.channel,title:e.title,de
1171scription:e.description??null,scheduled_at:e.scheduledAt,status:"pending",contact_objective:e.objective??null,priority_level:e.priority??null},{data:r,error:n}=await J.from("lead_follow_ups").insert(t).select("id").maybeSingle();if(n)throw n;return r}async function uR(e){const t={};e.channel!==void 0&&(t.channel=e.channel),e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.scheduledAt!==void 0&&(t.scheduled_at=e.scheduledAt),e.vendedorId!==void 0&&(t.vendedor_id=e.vendedorId),e.objective!==void 0&&(t.contact_objective=e.objective),e.priority!==void 0&&(t.priority_level=e.priority);const{error:r}=await J.from("lead_follow_ups").update(t).eq("id",e.id);if(r)throw r}async function Ore(e){const t={lead_id:e.leadId,assigned_to:e.assignedTo,created_by:e.createdBy,title:e.title,description:e.description??null,reminder_at:e.reminderAt,reminder_type:e.type??"followup",status:"pending"},{error:r}=await J.from("lead_reminders").insert([t]);if(r)throw r}async function Ure(e){const{error:t}=await J.from("lead_reminders").update({status:"completed",completed_at:new Date().toISOString()}).eq("id",e);if(t)throw t}async function Qre(e){const{error:t}=await J.from("lead_reminders").update({status:"cancelled"}).eq("id",e);if(t)throw t}async function Vre(e,t="Cancelado"){const{error:r}=await J.from("lead_follow_ups").update({status:"skipped",outcome_notes:t}).eq("lead_id",e).eq("status","pending").gte("scheduled_at",new Date().toISOString());if(r)throw r}async function Hre({id:e,outcome:t,outcomeNotes:r}){const n={status:"completed",completed_at:new Date().toISOString(),outcome:t??"concluido"};r&&(n.outcome_notes=r);const{error:s}=await J.from("lead_follow_ups").update(n).eq("id",e);if(s)throw s}async function zre(e,t){const{error:r}=await J.from("lead_follow_ups").update({status:"skipped",outcome:"skipped",outcome_notes:t??"Pulado"}).eq("id",e);if(r)throw r}async function $re({id:e,newDate:t,reason:r}){const{error:n}=await J.from("lead_follow_ups").update({status:"pending",scheduled_at:t,...r?{description:r}:{}}).eq("id",e);if(n)throw n}const dR=[["unified-follow-ups"],["unified-follow-ups-kpis"],["lead-follow-ups"],["comercial-agendamentos-proximos"],["agendamentos-historico"],["agendamentos-metricas"],["post-attendance-pending"]];function AR(e){for(const t of dR)e.invalidateQueries({queryKey:t})}const yUe=Object.freeze(Object.defineProperty({__proto__:null,FOLLOWUP_INVALIDATION_KEYS:dR,cancelLeadReminder:Qre,completeLeadFollowUp:Hre,completeLeadReminder:Ure,createLeadFollowUp:cR,createLeadReminder:Ore,invalidateFollowUps:AR,rescheduleLeadFollowUp:$re,resolveVendedorId:lR,skipLeadFollowUp:zre,skipPendingLeadFollowUpsForLead:Vre,updateLeadFollowUp:uR},Symbol.toStringTag,{value:"Module"})),jw="https://www.trainning.com.br",qre="Trainning Education",Kre="https://storage.googleapis.com/gpt-engineer-file-uploads/If1AaaNbi3UJVWtLkQhhilm9M5z2/social-images/social-1764087318825-logo_alta-2608-BG-Alpha%20(1).png",Gre="https://storage.googleapis.com/gpt-engineer-file-uploads/If1AaaNbi3UJVWtLkQhhilm9M5z2/uploads/1764087343546-logo_alta-2608-BG-Alpha%20(1).png";function fR(e="/"){return e?/^https?:\/\//i.test(e)?e:`${jw}${e.startsWith("/")?e:`/${e}`}`:jw}const zt="America/Sao_Paulo";function Di(e=zt){const t=new Date;return new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).format(t)}function Wre(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),s=n.find(i=>i.type==="year")?.value,o=n.find(i=>i.type==="month")?.value;return`${s}-${o}-01`}function Yre(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),s=parseInt(n.find(l=>l.type==="year")?.value||"2024"),o=parseInt(n.find(l=>l.type==="month")?.value||"1"),i=new Date(s,o,0).getDate();return`${s}-${String(o).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Xre(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit"}).formatToParts(t);let s=parseInt(n.find(i=>i.type==="year")?.value||"2024"),o=parseInt(n.find(i=>i.type==="month")?.value||"1");return o-=1,o===0&&(o=12,s-=1),`${s}
1171-${String(o).padStart(2,"0")}-01`}function Zre(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit"}).formatToParts(t);let s=parseInt(n.find(l=>l.type==="year")?.value||"2024"),o=parseInt(n.find(l=>l.type==="month")?.value||"1");o-=1,o===0&&(o=12,s-=1);const i=new Date(s,o,0).getDate();return`${s}-${String(o).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Jre(e=zt){const t=new Date;return`${new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric"}).formatToParts(t).find(o=>o.type==="year")?.value}-01-01`}function ene(e=zt){const t=new Date;return`${new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric"}).formatToParts(t).find(o=>o.type==="year")?.value}-12-31`}function tne(e,t=zt){if(!e)return"-";try{if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(e)){const[n,s,o]=e.split("-").map(Number);return`${String(o).padStart(2,"0")}/${String(s).padStart(2,"0")}/${n}`}const r=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{timeZone:t,day:"2-digit",month:"2-digit",year:"numeric"}).format(r)}catch{return"-"}}function bUe(e,t=zt){if(!e)return"-";try{const r=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{timeZone:t,day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)}catch{return"-"}}function rne(e,t=zt){if(!e)return"-";try{const r=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{timeZone:t,hour:"2-digit",minute:"2-digit"}).format(r)}catch{return"-"}}function sN(e,t=zt){if(!e)return"-";try{const r=typeof e=="string"?new Date(e):e;return new Intl.DateTimeFormat("pt-BR",{timeZone:t,day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"}).format(r)}catch{return"-"}}function wUe(e,t=zt){e||(e=new Date);try{const r=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(r),o=s.find(d=>d.type==="year")?.value,i=s.find(d=>d.type==="month")?.value,l=s.find(d=>d.type==="day")?.value,c=s.find(d=>d.type==="hour")?.value,u=s.find(d=>d.type==="minute")?.value;return`${o}-${i}-${l}_${c}-${u}`}catch{return"unknown"}}function nne(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(t),s=parseInt(n.find(d=>d.type==="year")?.value||"2024"),o=parseInt(n.find(d=>d.type==="month")?.value||"1")-1,i=parseInt(n.find(d=>d.type==="day")?.value||"1"),l=parseInt(n.find(d=>d.type==="hour")?.value||"0"),c=parseInt(n.find(d=>d.type==="minute")?.value||"0"),u=parseInt(n.find(d=>d.type==="second")?.value||"0");return new Date(s,o,i,l,c,u)}function KA(e,t){const r=new Date(e+"T12:00:00");return r.setDate(r.getDate()+t),r.toISOString().split("T")[0]}function _Ue(e,t){return KA(e,-t)}function ane(e){if(!e)return null;try{return e.includes("T")?new Date(e):new Date(e+"T12:00:00")}catch{return null}}function CUe(e){if(!e)return!1;const t=Di(zt);return e>t}function jUe(e,t){return!e&&!t?0:e?t?e.localeCompare(t):-1:1}const EUe=[{value:"America/Sao_Paulo",label:"BrasÃlia (GMT-3)",de
1171scription:"SP, RJ, MG, RS, PR, SC, etc."},{value:"America/Manaus",label:"Manaus (GMT-4)",description:"AM, RO, RR, MT, MS"},{value:"America/Rio_Branco",label:"Rio Branco (GMT-5)",description:"AC"},{value:"America/Noronha",label:"Fernando de Noronha (GMT-2)",description:"Ilhas atlânticas"},{value:"America/Fortaleza",label:"Fortaleza (GMT-3)",description:"CE, RN, PB, PE, AL, SE, PI, MA"},{value:"America/Belem",label:"Belém (GMT-3)",description:"PA, AP, TO"},{value:"America/Cuiaba",label:"Cuiabá (GMT-4)",description:"MT, MS"}];function mR(e=zt){const t=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),s=parseInt(n.find(d=>d.type==="year")?.value||"2024"),o=parseInt(n.find(d=>d.type==="month")?.value||"1")-1,i=parseInt(n.find(d=>d.type==="day")?.value||"1"),l=new Date(s,o,i),c=l.getDay(),u=c===0?6:c-1;return l.setDate(i-u),`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`}function sne(e=zt){const t=mR(e);return KA(t,6)}function Ri(e,t=zt){const[r,n,s]=e.split("-").map(Number),o=_5(r,n,s,0,0,t),i=Date.UTC(r,n-1,s,0,0,0,0)+o*60*1e3;return new Date(i).toISOString()}function Mi(e,t=zt){const[r,n,s]=e.split("-").map(Number),o=_5(r,n,s,23,59,t),i=Date.UTC(r,n-1,s,23,59,59,999)+o*60*1e3;return new Date(i).toISOString()}function one(e=zt){const t=Wre(e),r=Yre(e);return{start:Ri(t,e),end:Mi(r,e)}}function BUe(e=zt){const t=mR(e),r=sne(e);return{start:Ri(t,e),end:Mi(r,e)}}function NUe(e=zt){const t=Jre(e),r=ene(e);return{start:Ri(t,e),end:Mi(r,e)}}function ine(e,t,r=zt){return{start:Ri(e,r),end:Mi(t,r)}}function lne(e=zt){const t=Di(e);return{start:Ri(t,e),end:Mi(t,e)}}function SUe(e=zt){const t=Di(e),r=KA(t,-1);return{start:Ri(r,e),end:Mi(r,e)}}function kUe(e=zt){const t=Xre(e),r=Zre(e);return{start:Ri(t,e),end:Mi(r,e)}}function _5(e,t,r,n,s,o){const i=new Date(Date.UTC(e,t-1,r,n,s,0,0)),c=new Intl.DateTimeFormat("en-US",{timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(i),u=parseInt(c.find(y=>y.type==="year")?.value||"0"),d=parseInt(c.find(y=>y.type==="month")?.value||"0")-1,f=parseInt(c.find(y=>y.type==="day")?.value||"0"),h=parseInt(c.find(y=>y.type==="hour")?.value||"0"),m=parseInt(c.find(y=>y.type==="minute")?.value||"0"),g=parseInt(c.find(y=>y.type==="second")?.value||"0"),p=Date.UTC(u,d,f,h,m,g);return(i.getTime()-p)/(60*1e3)}function C5(e,t=zt){if(!e)return"";const[r,n]=e.split("T");return!r||!n?e:hR(r,n,t)}function hR(e,t,r=zt){if(!e||!t)return"";const[n,s,o]=e.split("-").map(Number),i=t.split(":"),l=parseInt(i[0]||"0"),c=parseInt(i[1]||"0"),u=parseInt(i[2]||"0"),d=_5(n,s,o,l,c,r),f=Date.UTC(n,s-1,o,l,c,u,0)+d*60*1e3;return new Date(f).toISOString()}function GA(e,t=zt){if(!e)return"";try{const r=new Date(e),s=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(r),o=s.find(d=>d.type==="year")?.value,i=s.find(d=>d.type==="month")?.value,l=s.find(d=>d.type==="day")?.value;let c=s.find(d=>d.type==="hour")?.value||"00";const u=s.find(d=>d.type==="minute")?.value;return c==="24"&&(c="00"),`${o}-${i}-${l}T${c}:${u}`}catch{return""}}function IUe(e=zt){return GA(new Date().toISOString(),e)}function FUe(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return zt}}function TUe(e){try{return new Intl.DateTimeFormat("pt-BR",{timeZone:e,dateStyle:"short",timeStyle:"medium"}).format(new Date)}catch{return"-"}}function pR(){return new Date().toISOString()}function PUe(e,t=zt){const r=Di(t);return Ri(r,t)}function LUe(e,t=zt){const r=Di(t);return Mi(r,t)}const wu="-",gR=/^\d{4}-\d{2}-\d{2}$/;function kh(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function WA(e,t=zt){return typeof e=="number"?WA(new Date(e),t):tne(e??null,t)}function xR(e,t=zt){return typeof e=="number"?xR(new Date(e),t):rne(e??null,t)}function vR(e,t=zt){const r=WA(e,t),n=xR(e,t);return r===wu||n===wu?wu:`${r} à s ${n}`}function DUe(e,t=zt){const r=kh(typeof e=="number"?new Date(e):e);if(!r)return wu;const n=WA(r,t),s=new Intl.DateTimeFormat("pt-BR",{timeZone:t,hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(r);return`${n} à s ${s}`}function RUe(e,t=zt){return sN(typeof e=="number"?new Date(e):e??null,t)}function MUe(e,t=zt){if(typeof e=="string"&&gR.test(e))return e;const r=kh(typeof e=="number"?new Date(e):e);if(!r)return"";const n=GA(r.toISOString(),t);return n?n.slice(0,10):""}function OUe(e,t=zt){const r=kh(typeof e=="number"?new Date(e):e);return r?GA(r.toISOString(),t):""}function UUe(e,t=zt){const r=kh(e)??new Date;return`Gerado em ${vR(r,t)} â Horário de BrasÃlia`}function tv(e=zt){return Di(e)}const cne=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];function une(e,t){if(typeof e=="string"&&gR.test(e)){const[,i,l]=e.split("-").map(Number);return{day:l,month:i-1}}const r=kh(typeof e=="number"?new Date(e):e);if(!r)return null;const n=WA(r,t);if(n===wu)return null;const[s,o]=n.split("/").map(Number);return{day:s,month:o-1}}function dne(e,t=zt){const r=une(e,t);return r?`${String(r.day).padStart(2,"0")} ${cne[r.month]}`:wu}function Xy(e){if(!e)return"";const t=/^(\d{1,2}):(\d{2})/.exec(e.trim());if(!t)return e.trim();const[,r,n]=t,s=String(Number(r));return n==="00"?`${s}h`:`${s}h${n}`}function yR(e,t){if(!e)return"";
1171if(!t){const s=e.split(/\s*(?:-|â|â|à s|as|a)\s*/i).filter(Boolean);return s.length>=2?yR(s[0],s[1]):Xy(e)}const r=Xy(e),n=Xy(t);return r?n?`${r}â${n}`:r:n}function Ane(e){if(!e)return"";const t=e.trim();if(!t)return"";const r={online:"Online",online_ao_vivo:"Online ao Vivo",ao_vivo:"Online ao Vivo",presencial:"Presencial",hibrido:"HÃbrido",online_ou_presencial:"Online ou Presencial",digital:"Curso Digital",ead:"EAD"},n=t.toLowerCase().replace(/[\s-]+/g,"_");return r[n]?r[n]:n.split("_").map(s=>s==="ou"||s==="ao"||s==="de"?s:s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}function fne(e,t=zt){if(!e)return"";const r=[];if(e.start_date){const o=dne(e.start_date,t);o!==wu&&r.push(o)}const n=yR(e.schedule_time,e.schedule_time_end);n&&r.push(n);const s=Ane(e.format);return s&&r.push(s),r.join(" · ")}const mne=/^\d{4}-\d{2}-\d{2}$/,hne=/^(\d{2})\/(\d{2})\/(\d{4})$/;function QUe(e){if(!e)return null;const t=e.trim();let r,n,s;if(mne.test(t))[r,n,s]=t.split("-").map(Number);else{const i=hne.exec(t);if(!i)return null;s=Number(i[1]),n=Number(i[2]),r=Number(i[3])}const o=new Date(Date.UTC(r,n-1,s));return o.getUTCFullYear()!==r||o.getUTCMonth()!==n-1||o.getUTCDate()!==s?null:`${r}-${String(n).padStart(2,"0")}-${String(s).padStart(2,"0")}`}function VUe(e,t=zt){if(!e)return null;const r=C5(e.trim(),t);return r&&r.endsWith("Z")?r:null}function HUe(e,t,r=zt){return!e||!t?null:hR(e,t,r)||null}function pne(e){if(!e)return null;const t=ane(e.trim());return t&&!Number.isNaN(t.getTime())?t:null}function j5(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function zUe(e,t=zt){if(e==null||e==="")return null;if(typeof e=="string"&&!e.endsWith("Z")&&!/[+-]\d{2}:?\d{2}$/.test(e)){const n=C5(e,t);return n&&n.endsWith("Z")?n:null}const r=j5(e);return r?r.toISOString():null}function $Ue(e,t=zt){const r=j5(e);return r&&GA(r.toISOString(),t)||null}function qUe(e,t=zt){const r=E5(e,t);return Ri(r,t)}function KUe(e,t=zt){const r=E5(e,t);return Mi(r,t)}function E5(e,t=zt){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const r=j5(e??new Date),n=GA((r??new Date).toISOString(),t);return n?n.slice(0,10):Di(t)}function GUe(){return pR()}function WUe(e=zt){return GA(pR(),e)||""}const bR=/^\d{4}-\d{2}-\d{2}$/;function wR(e){if(e==null||e==="")return!1;if(typeof e=="string"&&bR.test(e)){const[r,n,s]=e.split("-").map(Number),o=new Date(Date.UTC(r,n-1,s));return o.getUTCFullYear()===r&&o.getUTCMonth()===n-1&&o.getUTCDate()===s}const t=e instanceof Date?e:new Date(e);return!Number.isNaN(t.getTime())}function _R(e){return typeof e=="string"&&bR.test(e)}function gne(e){return!wR(e)||_R(e)?null:(e instanceof Date?e:new Date(e)).getTime()}function xne(e,t=zt){if(!wR(e))return!1;if(_R(e))return e>Di(t);const r=gne(e);return r!==null&&r>Date.now()}const Zy=new Intl.RelativeTimeFormat("pt-BR",{numeric:"auto"}),Ew=6e4,Bw=60*Ew,Jy=24*Bw;function vne(e,t=zt,r=new Date){if(e==null||e==="")return"-";const n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"-";const s=n.getTime()-r.getTime(),o=Math.abs(s);return o<Ew?"agora":o<Bw?Zy.format(Math.trunc(s/Ew),"minute"):o<Jy?Zy.format(Math.trunc(s/Bw),"hour"):o<7*Jy?Zy.format(Math.trunc(s/Jy),"day"):vR(n,t)}function YUe(e,t=zt){const r=E5(e,t);return{start:Ri(r,t),end:Mi(r,t)}}function oN(e,t=zt){const r=Di(t),n=KA(r,-(Math.max(1,e)-1));return ine(n,r,t)}function yne(){const e=new Date,t=String(e.getFullYear()).slice(-2),r=String(e.getMonth()+1).padStart(2,"0"),n=Date.now().toString(36).slice(-4).toUpperCase(),s=Math.random().toString(36).slice(2,6).toUpperCase();return`PROP-${t}${r}-${n}${s}`}async function CR(){try{const{data:e,error:t}=await J.rpc("gerar_codigo_proposta");if(t)throw t;if(typeof e=="string"&&e.startsWith("PROP-"))return e;throw new Error("invalid code")}catch(e){return console.warn("[proposalCodes] fallback to local code",e),yne()}}const jR=["modalidade","urgencia","numero_participantes","carga_horaria","local_treinamento","prazo_entrega","contato_comercial","cargo_contato","departamento","parcelas","notas_internas","desconto","desconto_percentual","imposto","total_com_imposto","custo_instrutor","custo_material","custo_marketing","custo_impostos","custo_infraestrutura","custo_exames","custo_outros","total_despesas","margem_percentual","resultado_bruto","follow_up_status","proxima_acao_at","next_followup_at","proposal_type_id","instrutor_hora","custos_extras_valor","custos_extras_descricao","viabilidade","texto_introducao","ocultar_total","motivo_perda","motivo_rejeicao","blocos_conteudo","document_template_id"];async function B5(e){if(e.lead_id)return e.lead_id;const t=e.cliente_dados??{},r=c=>
1171typeof c=="string"?c.trim():"",n=r(t.nome)||r(t.name)||r(t.contato)||r(t.contato_comercial),s=(r(t.email)||r(t.mail)).toLowerCase(),o=r(t.whatsapp)||r(t.telefone)||r(t.phone)||r(t.celular),i=o.replace(/\D/g,""),l=r(t.empresa)||r(t.company)||r(t.company_name)||r(t.razao_social);if(s){const{data:c}=await J.from("leads").select("id").ilike("email",s).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(c?.id)return c.id}if(i.length>=10){const c=i.slice(-8),{data:u}=await J.from("leads").select("id, whatsapp").ilike("whatsapp",`%${c}%`).order("created_at",{ascending:!1}).limit(10),d=i.slice(-11),f=(u??[]).find(h=>{const m=String(h.whatsapp??"").replace(/\D/g,"");return m.length>=10&&m.slice(-11)===d});if(f?.id)return f.id}if(n&&(s||i.length>=8)){let c=null;try{const{data:f}=await J.auth.getUser(),h=f?.user?.id??null,m=(f?.user?.email??"").toLowerCase();if(h||m){const{data:g}=await J.from("sales_team").select("id, user_id, email").eq("is_active",!0);c=((g??[]).find(x=>h&&x.user_id===h)??(g??[]).find(x=>m&&(x.email??"").toLowerCase()===m))?.id??null}}catch{}const{data:u,error:d}=await J.from("leads").insert({name:n,email:s||null,whatsapp:o||null,company_name:l||null,source:"auto:proposta",source_system:"manual",lead_type:l?"pj":"pf",vendedor_id:c,assignment_method:c?"proposta_owner":null,assigned_at:c?new Date().toISOString():null}).select("id").single();if(d)throw d;return u.id}throw new Error("Toda proposta precisa de um lead vinculado. Selecione um lead existente ou preencha nome + e-mail/WhatsApp do cliente para o vÃnculo automático.")}function ER(e,t){for(const r of jR)t[r]!==void 0&&(e[r]=t[r]??null)}function bne(e){return e.preco_status==="a_cotar"}function BR(e){if(bne(e))return 0;if(typeof e.valor_final=="number"&&!Number.isNaN(e.valor_final))return e.valor_final;const t=e.desconto_percentual??0,r=e.valor_unitario??0,n=e.quantidade??0;return r*(1-t/100)*n}function NR(e){return e.reduce((t,r)=>t+BR(r),0)}function SR(e,t){return e||(typeof t=="number"&&t>0?KA(tv(),t):null)}function wc(e,t="proposta"){return fR(`/${t}/${e}`)}function kR(e){const t=e.match(/\/(p|proposta)\/([A-Za-z0-9-]+)\/?(?:[?#].*)?$/);return t?wc(t[2],t[1]):e}function wne(e){return e?e.link_visualizacao?kR(e.link_visualizacao):e.public_token?wc(e.public_token,"p"):e.codigo_proposta?wc(e.codigo_proposta,"proposta"):"":""}function IR(e,t){return t.map(r=>({proposta_id:e,curso_id:r.curso_id??null,formation_id:r.formation_id??null,turma_id:r.turma_id??null,quantidade:r.quantidade,valor_unitario:r.valor_unitario,desconto_percentual:r.desconto_percentual??0,valor_final:BR(r),preco_status:r.preco_status??"precificado",observacao:r.observacao??null,formato:r.formato??null,categoria:r.categoria??null,modalidade:r.modalidade??null,data_inicio:r.data_inicio??null,data_fim:r.data_fim??null,carga_horaria:r.carga_horaria??null,instrutor:r.instrutor??null,station_item_id:r.station_item_id??null,opcao_id:r.opcao_id??null,nome:r.nome??null,tipo_produto:r.tipo_produto??null,subscription_plan_id:r.subscription_plan_id??null,team_pass_plan_id:r.team_pass_plan_id??null,is_avulso:r.is_avulso??!1,numero_participantes:r.numero_participantes??null,unidade_comercial:r.unidade_comercial??null,entregaveis:r.entregaveis??null}))}async function FR(e){const{data:t}=await J.auth.getUser(),r=t?.user?.id??null,n=await CR(),s=wc(n),o=NR(e.itens??[]),i=SR(e.validade,e.validade_dias),l=await B5(e),c=e.cliente_id??null,u={codigo_proposta:n,titulo:e.titulo,tipo_proposta:e.tipo_proposta,status:e.status??"rascunho",lead_id:l,cliente_id:c,cliente_dados:e.cliente_dados??null,vendedor_id:e.vendedor_id??null,vendedor_nome:e.vendedor_nome??null,subtotal:o,desconto:0,total:o,validade:i,condicoes_comerciais:e.condicoes_comerciais??null,observacoes:e.observacoes??null,forma_pagamento:e.forma_pagamento??null,vip_config:e.vip_config??null,link_visualizacao:s,created_by:r};ER(u,e);const{data:d,error:f}=await J.from("propostas_comerciais").insert(u).select("id, codigo_proposta, link_visualizacao, total, public_token").single();if(f)throw f;const h=d?.public_token;let m=d.link_visualizacao??s;if(h&&(m=wc(h,"p"),m!==d.link_visualizacao)){const{error:g}=await J.from("propostas_comerciais").update({link_visualizacao:m}).eq("id",d.id);g&&console.warn("Failed to update proposta link_visualizacao:",g)}if(e.itens&&e.itens.length>0){const g=IR(d.id,e.itens),{error:p}=await J.from("proposta_itens").insert(g);if(p)throw p}return await Ih(d.id,{tipo:"criacao",titulo:"Proposta criada",descricao:e.titulo}),await Fh(d.id,"criacao"),J.functions.invoke("sync-proposta-to-kommo",{body:{propostaId:d.id}}).catch(g=>console.warn("[proposta] sync-proposta-to-kommo falhou:",g)),{id:d.id,codigo_proposta:d.codigo_proposta,link_visualizacao:m,total:d.total??o}}async function TR(e,t){const{error:r}=await J.from("proposta_itens").delete().eq("proposta_id",e);if(r)throw r;if(t.length===0)return;const n=IR(e,t),{error:s}=await J.from("proposta_itens").insert(n);if(s)throw s}const _ne={not_authorized:"Sem permissão para alterar o status desta proposta.",not_found:"Proposta não encontrada.",invalid_transition:"Transição de status não permitida.",reason_required:"Informe o motivo â obrigatório para perdida, rejeitada ou cancelada.",reactivation_requires_manager:"Reativar uma proposta finalizada exige papel de gestor (gerente/diretor/admin)."};async function YA(e,t,r={}){const{data:n,error:s}=await J.rpc("transition_proposta_status",{p_proposta_id:e,p_to:t,p_reason:r.reason??null,p_payload:r.payload??{},p_actor_kind:"user"});if(s)throw s;const o=n??{};if(!o.ok){const i=_ne[o.error??""]??"Falha na transição de status.",l=o.error==="invalid_transition"&&o.from?` (${o.from} â ${o.to})`:"";throw new Error(i+l)}return o}function N5(e,t){const r=n=>typeof n=="string"&&n.trim()?n.trim():null;return t==="perdida"?r(e.motivo_perda)??r(e.motivo_rejeicao):r(e.motivo_rejeicao)??r(e.motivo_perda)}async function Cne(e,t){const r={updated_at:new Date().toISOString()};t.titulo!==void 0&&(r.titulo=t.titulo),t.tipo_proposta!==void 0&&(r.tipo_proposta=t.tipo_proposta),t.lead_id!==void 0&&(r.lead_id=t.lead_id),t.cliente_id!==void 0&&(r.cliente_id=t.cliente_id),t.cliente_dados!==void 0&&(r.cliente_dados=t.cliente_dados??null),t.vendedor_id!==void 0&&(r.vendedor_id=t.vendedor_id),t.vendedor_nome!==void 0&&(r.vendedor_nome=t.vendedor_nome),t.condicoes_comerciais!==void 0&&(r.condicoes_comerciais=t.condicoes_comerciais),t.observacoes!==void 0&&(r.observacoes=t.observacoes),t.forma_pagamento!==void 0&&(r.forma_pagamento=t.forma_pagamento),t.vip_config!==void 0&&(r.vip_config=t.vip_config??null);const n=SR(t.validade,t.validade_dias);if((t.validade!==void 0||t.validade_dias!==void 0)&&(r.validade=n),t.itens!==void 0){const o=NR(t.itens);r.subtotal=o,r.total=o}else t.subtotal!==void 0&&(r.subtotal=t.subtotal),t.total!==void 0&&(r.total=t.total);ER(r,t);const{error:s}=await J.from("propostas_comerciais").update(r).eq("id",e);if(s)throw s;t.status!==void 0&&await YA(e,t.status,{reason:N5(t,t.status)}),t.itens!==void 0&&await TR(e,t.itens),await Ih(e,{tipo:"edicao",t
1171itulo:"Proposta editada",descricao:t.status?`Status: ${t.status}`:void 0}),await Fh(e,t.status==="enviada"?"envio":"edicao_pos_envio")}async function jne(e,t,r){if(!t)throw new Error("status é obrigatório");await YA(e,t,{reason:r?.motivo_rejeicao??null}),await Ih(e,{tipo:t==="enviada"?"envio":`status_${t}`,titulo:`Status alterado para ${t}`,descricao:r?.motivo_rejeicao||void 0}),(t==="enviada"||t==="aceita")&&await Fh(e,t==="enviada"?"envio":"aceite")}async function Ih(e,t){try{const{data:r}=await J.auth.getUser();await J.from("proposta_atividades").insert({proposta_id:e,tipo:t.tipo,titulo:t.titulo,descricao:t.descricao??null,status:"concluida",data_conclusao:new Date().toISOString(),prioridade:t.prioridade??"media",created_by:r?.user?.id??null})}catch{}}async function Fh(e,t){try{const[{data:r},{data:n},{data:s},{data:o},{data:i}]=await Promise.all([J.from("propostas_comerciais").select("*").eq("id",e).maybeSingle(),J.from("proposta_itens").select("*").eq("proposta_id",e),J.from("proposta_opcoes").select("*").eq("proposta_id",e),J.from("proposta_versoes").select("numero").eq("proposta_id",e).order("numero",{ascending:!1}).limit(1),J.auth.getUser()]);if(!r)return;const l=Number(o?.[0]?.numero??0)+1;await J.from("proposta_versoes").insert({proposta_id:e,numero:l,motivo:t,situacao:t==="aceite"?"aceita":"gerada",gerado_por:i?.user?.id??null,snapshot:{engine:"repository-v1",motivo:t,gerado_em:new Date().toISOString(),proposta:r,itens:n??[],opcoes:s??[]}})}catch{}}async function Ene(e){const{error:t}=await J.from("proposta_itens").delete().eq("proposta_id",e);if(t)throw t;const{error:r}=await J.from("propostas_comerciais").delete().eq("id",e);if(r)throw r}async function Bne(e){if(e.length===0)return;const{error:t}=await J.from("proposta_itens").delete().in("proposta_id",e);if(t)throw t;const{error:r}=await J.from("propostas_comerciais").delete().in("id",e);if(r)throw r}async function Nne(e){if(e.length===0)return;const t=[];for(const r of e)try{await YA(r,"arquivada")}catch(n){t.push(n instanceof Error?n.message:String(n))}if(t.length>0)throw new Error(`${t.length} de ${e.length} propostas não puderam ser arquivadas: ${t[0]}`)}async function Sne(e,t){if(e.length===0)return;const{status:r,...n}=t;if(Object.keys(n).length>0){const s={...n,updated_at:new Date().toISOString()},{error:o}=await J.from("propostas_comerciais").update(s).in("id",e);if(o)throw o}if(typeof r=="string"&&r){const s=[];for(const o of e)try{await YA(o,r,{reason:N5(t,r)})}catch(i){s.push(i instanceof Error?i.message:String(i))}if(s.length>0)throw new Error(`${s.length} de ${e.length} propostas não mudaram de status: ${s[0]}`)}}async function PR(e,t,r={}){const{status:n,...s}=t;if(typeof n=="string"&&n&&await YA(e,n,{reason:N5(t,n)}),!(Object.keys(s).length>0)&&!r.select)return null;const i={...s,updated_at:new Date().toISOString()};if(r.select){const{data:c,error:u}=await J.from("propostas_comerciais").update(i).eq("id",e).select().single();if(u)throw u;return c}const{error:l}=await J.from("propostas_comerciais").update(i).eq("id",e);if(l)throw l;return null}async function kne(e,t={}){const r=new Date().toISOString(),{data:n}=await J.auth.getUser(),s={updated_at:r,...e};s.created_at||(s.created_at=r),s.created_by||(s.created_by=n?.user?.id??null),s.status||(s.status="rascunho"),s.codigo_proposta||(s.codigo_proposta=await CR()),s.lead_id=await B5({lead_id:s.lead_id??null,cliente_dados:s.cliente_dados});const{data:o,error:i}=await J.from("propostas_comerciais").insert(s).select("id, codigo_proposta, link_visualizacao, public_token").single();if(i)throw i;const l=o;let c=l.link_visualizacao??wc(l.codigo_proposta);if(l.public_token&&(c=wc(l.public_token,"p")),c!==l.link_visualizacao){const{error:u}=await J.from("propostas_comerciais").update({link_visualizacao:c}).eq("id",l.id);u&&console.warn("[createProposalFromRecord] link_visualizacao:",u)}return await Ih(l.id,{tipo:"criacao",titulo:t.atividade??"Proposta criada",descricao:t.motivo??void 0}),await Fh(l.id,t.motivo??"criacao"),{id:l.id,codigo_proposta:l.codigo_proposta,link_visualizacao:c}}async function Ine(e){const{error:t}=await J.from("proposta_itens").delete().eq("id",e);if(t)throw t}async function Fne(e){const{error:t}=await J.from("proposta_itens").delete().eq("proposta_id",e);if(t)throw t}async function Tne(e){const{error:t}=await J.from("proposta_itens").insert(e);if(t)throw t}async function Pne(e,t){const{error:r}=await J.from("proposta_itens").update(t).eq("id",e);if(r)throw r}async function Lne(e){if(e.length===0)return;const{error:t}=await J.from("proposal_sections").insert(e);if(t)throw t}async function Dne(e,t){const r={...t,updated_at:new Date().toISOString()},{error:n}=await J.from("proposal_sections").update(r).eq("id",e);if(n)throw n}async function Rne(e){const{data:t,error:r}=await J.from("propostas_comerciais").select("*").eq("id",e).maybeSingle();if(r)throw r;if(!t)throw new Error("Proposta de origem não encontrada");const{data:n,error:s}=await J.from("proposta_itens").select("*").eq("proposta_id",e);if(s)throw s;const o=t,i=o.titulo||"Proposta",c={titulo:/\(cópia/i.test(i)?i:`${i} (cópia)`,tipo_proposta:o.tipo_proposta,status:"rascunho",lead_id:o.lead_id??null,cliente_id:o.cliente_id??null,cliente_dados:o.cliente_dados??null,vendedor_id:o.vendedor_id??null,vendedor_nome:o.vendedor_nome??null,condicoes_comerciais:o.condicoes_comerciais??null,observacoes:o.observacoes??null,forma_pagamento:o.forma_pagamento??null,vip_config:o.vip_config??null,validade_dias:15,itens:(n??[]).map(d=>
1171({curso_id:d.curso_id??null,formation_id:d.formation_id??null,turma_id:d.turma_id??null,quantidade:d.quantidade??1,valor_unitario:Number(d.valor_unitario??0),desconto_percentual:Number(d.desconto_percentual??0),observacao:d.observacao??null,formato:d.formato??null,categoria:d.categoria??null,modalidade:d.modalidade??null,data_inicio:d.data_inicio??null,data_fim:d.data_fim??null,carga_horaria:d.carga_horaria??null,instrutor:d.instrutor??null}))},u=c;for(const d of jR){const f=o[d];f!=null&&(u[d]=f)}for(const d of["follow_up_status","proxima_acao_at","ultimo_follow_up_at"])delete u[d];return FR(c)}const XUe=Object.freeze(Object.defineProperty({__proto__:null,buildLink:wc,buildPublicProposalUrl:wne,bulkArchiveProposals:Nne,bulkDeleteProposals:Bne,bulkPatchProposals:Sne,createProposal:FR,createProposalFromRecord:kne,deleteProposal:Ene,deleteProposalItem:Ine,deleteProposalItemsByProposta:Fne,duplicateProposal:Rne,ensureLeadForProposal:B5,insertProposalItemRaw:Tne,insertProposalSections:Lne,normalizePublicProposalUrl:kR,patchProposal:PR,recordProposalActivity:Ih,replaceProposalItems:TR,snapshotProposalVersion:Fh,transitionProposalStatus:YA,updateProposal:Cne,updateProposalItemRaw:Pne,updateProposalSection:Dne,updateProposalStatus:jne},Symbol.toStringTag,{value:"Module"})),Mne="f0110000-0000-4000-8000-000000000001";async function LR(e){const{data:t,error:r}=await J.from("propostas_comerciais").select("lead_id, codigo_proposta").eq("id",e.propostaId).maybeSingle();if(r)throw r;const n=t?.lead_id??e.leadId??null;if(!n)throw new Error("Proposta sem lead vinculado â selecione ou busque o lead no formulário antes de registrar o follow-up.");!t?.lead_id&&e.leadId&&await PR(e.propostaId,{lead_id:e.leadId});const s=new Date().toISOString(),o=e.mode==="logged",i=(()=>{const f=(e.channel||"").toLowerCase();return f==="call"||f==="telefone"||f==="phone"?"ligacao":f==="reuniao"||f==="meeting"?"tarefa":["whatsapp","ligacao","email","tarefa","sms"].includes(f)?f:"tarefa"})(),l={lead_id:n,proposta_id:e.propostaId,responsavel_id:e.vendedorId??null,origin:"manual",channel:i,title:e.subject?.trim()||(o?"Toque manual registrado":"Follow-up agendado manualmente"),description:e.proximaAcao??null,message:e.script??null,subject:e.subject??null,scheduled_at:e.scheduledAt,status:o?"sent":"pending",auto_send:!1,outcome:o?e.outcome??null:null,outcome_notes:o?e.outcomeNotes??null:null,sent_at:o?s:null,completed_at:o?s:null},c=e.layers;c&&(o&&(l.contact_happened=c.contactHappened??null,l.contact_fail_reason=c.contactFailReason??null,l.response_layer=c.responseLayer??null,l.impact_layer=c.impactLayer??null,l.contact_objective=c.objective??null,l.contact_quality=c.quality??null,l.contact_duration_min=c.durationMin??null,l.client_promised_at=c.clientPromisedAt??null,l.stage_evolved=c.stageEvolved??null),l.priority_level=c.priority??null);const{data:u,error:d}=await J.from("followup_tasks").insert(l).select().single();if(d)throw d;return u}const ZUe=Object.freeze(Object.defineProperty({__proto__:null,CANONICAL_PROPOSTA_CADENCE_ID:Mne,insertManualProposalFollowUpStep:LR},Symbol.toStringTag,{value:"Module"})),iN=500,JUe=[{value:"aconteceu",label:"Sim, falei com o cliente"},{value:"nao_aconteceu",label:"Não aconteceu"},{value:"caiu",label:"Caiu / interrompido"}],e8e=[{value:"nao_atendeu",label:"Não atendeu"},{value:"numero_errado",label:"Número errado"},{value:"caixa_postal",label:"Caixa postal"},{value:"adiado_pelo_cliente",label:"Adiado pelo cliente"},{value:"sem_resposta_mensagem",label:"Mensagem sem resposta"}],t8e=[{value:"respondeu",label:"Respondeu"},{value:"silencio",label:"Silêncio"},{value:"pediu_prazo",label:"Pediu prazo"}],r8e=[{value:"avancou_etapa",label:"Avançou de etapa"},{value:"manteve",label:"Manteve a posição"},{value:"recuou",label:"Recuou"},{value:"perdeu",label:"Perdeu"}],DR=[{value:"descobrir_necessidade",label:"Descobrir necessidade"},{value:"agendar_reuniao",label:"Agendar reunião"},{value:"fazer_demonstracao",label:"Fazer demonstração"},{value:"enviar_proposta",label:"Enviar proposta"},{value:"negociar_preco",label:"Negociar preço"},{value:"aprovar_orcamento",label:"Aprovar orçamento"},{value:"fechar_venda",label:"Fechar venda"},{value:"cobrar_retorno",label:"Cobrar retorno"},{value:"enviar_contrato",label:"Enviar contrato"}],n8e={...Object.fromEntries(DR.map(e=>[e.value,e.label])),qualificar:"Qualificar",apresentar_solucao:"Apresentar solução",negociar:"Negociar",fechar:"Fechar",reativar:"Reativar",confirmar_reuniao:"Confirmar reunião"},One=[{value:"baixa",label:"Baixa",boost:-10},{value:"normal",label:"Normal",boost:0},{value:"alta",label:"Alta",boost:15},{value:"urgente",label:"Urgente",boost:30}],a8e={telefone:5,phone:5,ligacao:5,reuniao:45,video:45},s8e=[{value:"excelente",label:"Excelente"},{value:"bom",label:"Bom"},{value:"ruim",label:"Ruim"},{value:"sem_sucesso",label:"Sem sucesso"}],o8e=()=>({contactHappened:null,contactFailReason:null,responseLayer:null,impactLayer:null,objective:null,quality:null,durationMin:null,clientPromisedAt:null,stageEvolved:null,proposalStage:null,priority:"normal",summary:""});function i8e(e){return e.contactHappened==="aconteceu"&&e.responseLayer==="respondeu"}function l8e(e,t){const r=(...n)=>{for(const s of n)if(t.includes(s))return s;return t[0]};return e.impactLayer==="perdeu"?r("perdido","sem_interesse","encerrado"):e.contactHappened==="nao_aconteceu"?e.contactFailReason==="numero_errado"?r("contato_invali
1171do","nao_atendeu"):e.contactFailReason==="sem_resposta_mensagem"?r("nao_respondeu","mensagem_enviada"):r("nao_atendeu","nao_respondeu"):e.contactHappened==="caiu"?r("nao_atendeu","contato_realizado"):e.responseLayer==="pediu_prazo"?r("pediu_retorno","contato_realizado"):e.responseLayer==="silencio"?r("nao_respondeu","mensagem_enviada"):e.impactLayer==="avancou_etapa"?r("negociacao_em_andamento","contato_realizado"):e.impactLayer==="recuou"?r("pediu_mais_informacoes","contato_realizado"):r("contato_realizado","mensagem_enviada")}function c8e(e,t){if(e.contactHappened==="nao_aconteceu"){const l=[{key:"objective",label:"Objetivo do contato definido",done:!!e.objective},{key:"reason",label:"Motivo de não ter falado com o cliente",done:!!e.contactFailReason},{key:"next",label:t.nextActionLabel??"Próxima ação com data",done:t.nextActionOk},{key:"owner",label:"Responsável da próxima ação",done:t.nextOwnerOk!==!1}],c=l.find(u=>!u.done);return{ok:!c,checklist:l,blocker:c?c.label:null}}const r=e.contactHappened==="aconteceu"?!!e.responseLayer&&!!e.impactLayer:e.contactHappened==="caiu"?!!e.responseLayer||!!e.contactFailReason:!!e.contactHappened&&!!e.contactFailReason,n=e.responseLayer!=="pediu_prazo"||!!e.clientPromisedAt,s=e.summary.trim().length>=10&&e.summary.trim().length<=iN,o=[{key:"objective",label:"Objetivo do contato definido",done:!!e.objective},{key:"contact",label:"Resultado nas 3 camadas registrado",done:r},{key:"quality",label:"Classificação do contato",done:!!e.quality},{key:"summary",label:`Resumo entre 10 e ${iN} caracteres`,done:s},{key:"stage",label:"Evolução de estágio respondida",done:e.stageEvolved!==null},{key:"promise",label:"Promessa do cliente com data",done:n},{key:"next",label:t.nextActionLabel??"Próxima ação com data e responsável",done:t.nextActionOk},{key:"owner",label:"Responsável da próxima ação",done:t.nextOwnerOk!==!1},{key:"priority",label:"Prioridade definida",done:!!e.priority},{key:"proposal_stage",label:"Novo estágio da proposta",done:!t.proposalStageRequired||!!e.proposalStage}],i=o.find(l=>!l.done);return{ok:!i,checklist:o,blocker:i?i.label:null}}function u8e(e){return{contact_happened:e.contactHappened,contact_fail_reason:e.contactFailReason,response_layer:e.responseLayer,impact_layer:e.impactLayer,contact_objective:e.objective,contact_quality:e.quality,contact_duration_min:e.durationMin,client_promised_at:e.clientPromisedAt,stage_evolved:e.stageEvolved,priority_level:e.priority}}function RR(e){return(e??(typeof window<"u"?window.location.pathname:"")).startsWith("/comercial")?"comercial":"admin"}function Une(e={}){const r=`/${e.portal??RR(e.pathname)}/follow-up`;if(e.itemId){const o=new URLSearchParams;e.tab&&o.set("tab",e.tab);const i=o.toString();return`${r}/${e.itemId}${i?`?${i}`:""}`}const n=new URLSearchParams;e.propostaId&&n.set("proposta",e.propostaId),e.leadId&&n.set("lead",e.leadId),e.tab&&n.set("tab",e.tab);const s=n.toString();return s?`${r}?${s}`:r}function d8e(e,t){t?.pathname;const r=t?.focus?`?focus=${encodeURIComponent(t.focus)}`:"";return`/admin/leads/${e}/edit${r}`}function A8e(e,t){return`/${RR(t?.pathname)}/propostas/${e}`}function f8e(e){return`/admin/propostas?novo=1&leadId=${encodeURIComponent(e)}`}class S5 extends Error{errorCode;requestId;retryable;field;httpStatus;platformFailure;constructor(t,r){super(t.message),this.name="EdgeFunctionCallError",this.errorCode=t.errorCode,this.requestId=t.requestId,this.retryable=t.retryable,this.field=t.field,this.httpStatus=t.httpStatus,this.platformFailure=r}toDisplayString(){return this.platformFailure?IF(this.platformFailure):this.requestId?`${this.message} (diagnóstico: ${this.requestId.slice(0,8).toUpperCase()})`:this.message}}async function MR(e,t){let r;try{r=await J.functions.invoke(e,t?{body:t}:void 0)}catch(s){r={data:null,error:s}}if(!r.error&&!J9(r.data))return r.data;const n=await eH(r.error,e,r.data);throw new S5(n,n)}function D0(e,t="Não foi possÃvel confirmar a conclusão da operação."){const r=Z9(e);return r?IF(r):e instanceof S5?e.toDisplayString():t}const m8e=Object.freeze(Object.defineProperty({__proto__:null,EdgeFunctionCallError:S5,describeEdgeError:D0,invokeEdgeFunction:MR},Symbol.toStringTag,{value:"Module"}));var Wt=function(){return Wt=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Wt.apply(this,arguments)};function Qne(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function OR(e,t,r){for(var n=0,s=t.length,o;n<s;
1171n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Th(e){return e.mode==="multiple"}function Ph(e){return e.mode==="range"}function rv(e){return e.mode==="single"}var Vne={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Hne(e,t){return Kt(e,"LLLL y",t)}function zne(e,t){return Kt(e,"d",t)}function $ne(e,t){return Kt(e,"LLLL",t)}function qne(e){return"".concat(e)}function Kne(e,t){return Kt(e,"cccccc",t)}function Gne(e,t){return Kt(e,"yyyy",t)}var Wne=Object.freeze({__proto__:null,formatCaption:Hne,formatDay:zne,formatMonthCaption:$ne,formatWeekNumber:qne,formatWeekdayName:Kne,formatYearCaption:Gne}),Yne=function(e,t,r){return Kt(e,"do MMMM (EEEE)",r)},Xne=function(){return"Month: "},Zne=function(){return"Go to next month"},Jne=function(){return"Go to previous month"},eae=function(e,t){return Kt(e,"cccc",t)},tae=function(e){return"Week n. ".concat(e)},rae=function(){return"Year: "},nae=Object.freeze({__proto__:null,labelDay:Yne,labelMonthDropdown:Xne,labelNext:Zne,labelPrevious:Jne,labelWeekNumber:tae,labelWeekday:eae,labelYearDropdown:rae});function aae(){var e="buttons",t=Vne,r=R2,n={},s={},o=1,i={},l=new Date;return{captionLayout:e,classNames:t,formatters:Wne,labels:nae,locale:r,modifiersClassNames:n,modifiers:s,numberOfMonths:o,styles:i,today:l,mode:"default"}}function sae(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,s=e.toMonth,o=e.fromDate,i=e.toDate;return n?o=Hs(n):t&&(o=new Date(t,0,1)),s?i=kx(s):r&&(i=new Date(r,11,31)),{fromDate:o?ml(o):void 0,toDate:i?ml(i):void 0}}var UR=A.createContext(void 0);function oae(e){var t,r=e.initialProps,n=aae(),s=sae(r),o=s.fromDate,i=s.toDate,l=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;l!=="buttons"&&(!o||!i)&&(l="buttons");var c;(rv(r)||Th(r)||Ph(r))&&(c=r.onSelect);var u=Wt(Wt(Wt({},n),r),{captionLayout:l,classNames:Wt(Wt({},n.classNames),r.classNames),components:Wt({},r.components),formatters:Wt(Wt({},n.formatters),r.formatters),fromDate:o,labels:Wt(Wt({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:Wt(Wt({},n.modifiers),r.modifiers),modifiersClassNames:Wt(Wt({},n.modifiersClassNames),r.modifiersClassNames),onSelect:c,styles:Wt(Wt({},n.styles),r.styles),toDate:i});return a.jsx(UR.Provider,{value:u,children:e.children})}function nn(){var e=A.useContext(UR);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function QR(e){var t=nn(),r=t.locale,n=t.classNames,s=t.styles,o=t.formatters.formatCaption;return a.jsx("div",{className:n.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:r})})}function iae(e){return a.jsx("svg",Wt({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:a.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
117178175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function VR(e){var t,r,n=e.onChange,s=e.value,o=e.children,i=e.caption,l=e.className,c=e.style,u=nn(),d=(r=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:iae;return a.jsxs("div",{className:l,style:c,children:[a.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),a.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:n,children:o}),a.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[i,a.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function lae(e){var t,r=nn(),n=r.fromDate,s=r.toDate,o=r.styles,i=r.locale,l=r.formatters.formatMonthCaption,c=r.classNames,u=r.components,d=r.labels.labelMonthDropdown;if(!n)return a.jsx(a.Fragment,{});if(!s)return a.jsx(a.Fragment,{});var f=[];if(uG(n,s))for(var h=Hs(n),m=n.getMonth();m<=s.getMonth();m++)f.push(jy(h,m));else for(var h=Hs(new Date),m=0;m<=11;m++)f.push(jy(h,m));var g=function(x){var y=Number(x.target.value),b=jy(Hs(e.displayMonth),y);e.onChange(b)},p=(t=u?.Dropdown)!==null&&t!==void 0?t:VR;return a.jsx(p,{name:"months","aria-label":d(),className:c.dropdown_month,style:o.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:i}),children:f.map(function(x){return a.jsx("option",{value:x.getMonth(),children:l(x,{locale:i})},x.getMonth())})})}
1171function cae(e){var t,r=e.displayMonth,n=nn(),s=n.fromDate,o=n.toDate,i=n.locale,l=n.styles,c=n.classNames,u=n.components,d=n.formatters.formatYearCaption,f=n.labels.labelYearDropdown,h=[];if(!s)return a.jsx(a.Fragment,{});if(!o)return a.jsx(a.Fragment,{});for(var m=s.getFullYear(),g=o.getFullYear(),p=m;p<=g;p++)h.push(JE(VT(new Date),p));var x=function(b){var j=JE(Hs(r),Number(b.target.value));e.onChange(j)},y=(t=u?.Dropdown)!==null&&t!==void 0?t:VR;return a.jsx(y,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:x,value:r.getFullYear(),caption:d(r,{locale:i}),children:h.map(function(b){return a.jsx("option",{value:b.getFullYear(),children:d(b,{locale:i})},b.getFullYear())})})}function uae(e,t){var r=A.useState(e),n=r[0],s=r[1],o=t===void 0?n:t;return[o,s]}function dae(e){var t=e.month,r=e.defaultMonth,n=e.today,s=t||r||n||new Date,o=e.toDate,i=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(o&&gA(o,s)<0){var u=-1*(c-1);s=Fo(o,u)}return i&&gA(s,i)<0&&(s=i),Hs(s)}function Aae(){var e=nn(),t=dae(e),r=uae(t,e.month),n=r[0],s=r[1],o=function(i){var l;if(!e.disableNavigation){var c=Hs(i);s(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[n,o]}function fae(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,s=Hs(e),o=Hs(Fo(s,n)),i=gA(o,s),l=[],c=0;c<i;c++){var u=Fo(s,c);l.push(u)}return r&&(l=l.reverse()),l}function mae(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,s=t.numberOfMonths,o=s===void 0?1:s,i=n?o:1,l=Hs(e);if(!r)return Fo(l,i);var c=gA(r,e);if(!(c<o))return Fo(l,i)}}function hae(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,s=t.numberOfMonths,o=s===void 0?1:s,i=n?o:1,l=Hs(e);if(!r)return Fo(l,-i);var c=gA(l,r);if(!(c<=0))return Fo(l,-i)}}var HR=A.createContext(void 0);function pae(e){var t=nn(),r=Aae(),n=r[0],s=r[1],o=fae(n,t),i=mae(n,t),l=hae(n,t),c=function(f){return o.some(function(h){return H2(f,h)})},u=function(f,h){c(f)||(h&&rc(f,h)?s(Fo(f,1+t.numberOfMonths*-1)):s(f))},d={currentMonth:n,displayMonths:o,goToMonth:s,goToDate:u,previousMonth:l,nextMonth:i,isDateDisplayed:c};return a.jsx(HR.Provider,{value:d,children:e.children})}function Lh(){var e=A.useContext(HR);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function lN(e){var t,r=nn(),n=r.classNames,s=r.styles,o=r.components,i=Lh().goToMonth,l=function(d){i(Fo(d,e.displayIndex?-e.dis
1171playIndex:0))},c=(t=o?.CaptionLabel)!==null&&t!==void 0?t:QR,u=a.jsx(c,{id:e.id,displayMonth:e.displayMonth});return a.jsxs("div",{className:n.caption_dropdowns,style:s.caption_dropdowns,children:[a.jsx("div",{className:n.vhidden,children:u}),a.jsx(lae,{onChange:l,displayMonth:e.displayMonth}),a.jsx(cae,{onChange:l,displayMonth:e.displayMonth})]})}function gae(e){return a.jsx("svg",Wt({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function xae(e){return a.jsx("svg",Wt({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var R0=A.forwardRef(function(e,t){var r=nn(),n=r.classNames,s=r.styles,o=[n.button_reset,n.button];e.className&&o.push(e.className);var i=o.join(" "),l=Wt(Wt({},s.button_reset),s.button);return e.style&&Object.assign(l,e.style),a.jsx("button",Wt({},e,{ref:t,type:"button",className:i,style:l}))});function vae(e){var t,r,n=nn(),s=n.dir,o=n.locale,i=n.classNames,l=n.styles,c=n.labels,u=c.labelPrevious,d=c.labelNext,f=n.components;if(!e.nextMonth&&!e.previousMonth)return a.jsx(a.Fragment,{});var h=u(e.previousMonth,{locale:o}),m=[i.nav_button,i.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:o}),p=[i.nav_button,i.nav_button_next].join(" "),x=(t=f?.IconRight)!==null&&t!==void 0?t:xae,y=(r=f?.IconLeft)!==null&&r!==void 0?r:gae;return a.jsxs("div",{className:i.nav,style:l.nav,children:[!e.hidePrevious&&a.jsx(R0,{name:"previous-month","aria-label":h,className:m,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?a.jsx(x,{className:i.nav_icon,style:l.nav_icon}):a.jsx(y,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&a.jsx(R0,{name:"next-month","aria-label":g,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?a.jsx(y,{className:i.nav_icon,style:l.nav_icon}):a.jsx(x,{className:i.nav_icon,style:l.nav_icon})})]})}function cN(e){var t=nn().numberOfMonths,r=Lh(),n=r.previousMonth,s=r.nextMonth,o=r.goToMonth,i=r.displayMonths,l=i.findIndex(function(g){return H2(e.displayMonth,g)}),c=l===0,u=l===i.length-1,d=t>1&&(c||!u),f=t>1&&(u||!c),h=function(){n&&o(n)},m=function(){s&&o(s)};return a.jsx(vae,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:s,previousMonth:n,onPreviousClick:h,onNextClick:m})}function yae(e){var t,r=nn(),n=r.classNames,s=r.disableNavigation,o=r.styles,i=r.captionLayout,l=r.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:QR,u;return s?u=a.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=a.jsx(lN,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=a.jsxs(a.Fragment,{children:[a.jsx(lN,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),a.jsx(cN,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=a.jsxs(a.Fragment,{children:[a.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(cN,{displayMonth:e.displayMonth,id:e.id})]}),a.jsx("div",{className:n.caption,style:o.caption,children:u})}function bae(e){var t=nn(),r=t.footer,n=t.styles,s=t.classNames.tfoot;return r?a.jsx("tfoot",{className:s,style:n.tfoot,children:a.jsx("tr",{children:a.jsx("td",{colSpan:8,children:r})})}):a.jsx(a.Fragment,{})}function wae(e,t,r){for(var n=r?Du(new Date):ki(new Date,{locale:e,weekStartsOn:t}),s=[],o=0;o<7;o++){var i=Ea(n,o);s.push(i)}return s}function _ae(){var e=nn(),t=e.classNames,r=e.styles,n=e.showWeekNumber,s=e.locale,o=e.weekStartsOn,i=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=wae(s,o,i);return a.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&a.jsx("td",{style:r.head_cell,className:t.head_cell}),u.map(function(d,f){return a.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":c(d,{locale:s}),children:l(d,{locale:s})},f)})]})}function Cae(){var e,t=nn(),r=t.classNames,n=t.styles,s=t.components,o=(e=s?.HeadRow)!==null&&e!==void 0?e:_ae;return a.jsx("thead",{style:n.head,className:r.head,children:a.jsx(o,{})})}function jae(e){var t=nn(),r=t.locale,n=t.formatters.formatDay;return a.jsx(a.Fragment,{children:n(e.date,{locale:r})})}var k5=A.createContext(void 0);function Eae(e){if(!Th(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return a.jsx(k5.Provider,{value:t,children:e.children})}return a.jsx(Bae,{initialProps:e.initialProps,children:e.children})}function Bae(e){var t=e.initialProps,r=e.children,n=t.selected,s=t.min,o=t.max,i=function(u,d,f){var h,m;(h=t.onDayClick)===null||h===void 0||h.call(t,u,d,f);var g=!!(d.selected&&s&&n?.length===s);if(!g){var p=!!(!d.selected&&o&&n?.length===o);if(!p){var x=n?OR([],n):[];if(d.selected){var y=x.findIndex(function(b){return Qs(u,b)});x.splice(y,1)}else x.push(u);(m=t.onSelect)===null||m===void 0||m.call(t,x,u,d,f)}}},l={disabled:[]};n&&l.disabled.push(function(u){var d=o&&n.length>o-1,f=n.some(function(h){return Qs(h,u)});return!!(d&&!f)});
1171var c={selected:n,onDayClick:i,modifiers:l};return a.jsx(k5.Provider,{value:c,children:r})}function I5(){var e=A.useContext(k5);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Nae(e,t){var r=t||{},n=r.from,s=r.to;return n&&s?Qs(s,e)&&Qs(n,e)?void 0:Qs(s,e)?{from:s,to:void 0}:Qs(n,e)?void 0:bu(n,e)?{from:e,to:s}:{from:n,to:e}:s?bu(e,s)?{from:s,to:e}:{from:e,to:s}:n?rc(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var F5=A.createContext(void 0);function Sae(e){if(!Ph(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return a.jsx(F5.Provider,{value:t,children:e.children})}return a.jsx(kae,{initialProps:e.initialProps,children:e.children})}function kae(e){var t=e.initialProps,r=e.children,n=t.selected,s=n||{},o=s.from,i=s.to,l=t.min,c=t.max,u=function(m,g,p){var x,y;(x=t.onDayClick)===null||x===void 0||x.call(t,m,g,p);var b=Nae(m,n);(y=t.onSelect)===null||y===void 0||y.call(t,b,m,g,p)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(d.range_start=[o],i?(d.range_end=[i],Qs(o,i)||(d.range_middle=[{after:o,before:i}])):d.range_end=[o]):i&&(d.range_start=[i],d.range_end=[i]),l&&(o&&!i&&d.disabled.push({after:_y(o,l-1),before:Ea(o,l-1)}),o&&i&&d.disabled.push({after:o,before:Ea(o,l-1)}),!o&&i&&d.disabled.push({after:_y(i,l-1),before:Ea(i,l-1)})),c){if(o&&!i&&(d.disabled.push({before:Ea(o,-c+1)}),d.disabled.push({after:Ea(o,c-1)})),o&&i){var f=Ci(i,o)+1,h=c-f;d.disabled.push({before:_y(o,h)}),d.disabled.push({after:Ea(i,h)})}!o&&i&&(d.disabled.push({before:Ea(i,-c+1)}),d.disabled.push({after:Ea(i,c-1)}))}return a.jsx(F5.Provider,{value:{selected:n,onDayClick:u,modifiers:d},children:r})}function T5(){var e=A.useContext(F5);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function t0(e){return Array.isArray(e)?OR([],e):e!==void 0?[e]:[]}function Iae(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],s=r[1];t[n]=t0(s)}),t}var ri;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ri||(ri={}));var Fae=ri.Selected,el=ri.Disabled,Tae=ri.Hidden,Pae=ri.Today,e1=ri.RangeEnd,t1=ri.RangeMiddle,r1=ri.RangeStart,Lae=ri.Outside;function Dae(e,t,r){var n,s=(n={},n[Fae]=t0(e.selected),n[el]=t0(e.disabled),n[Tae]=t0(e.hidden),n[Pae]=[e.today],n[e1]=[],n[t1]=[],n[r1]=[],n[Lae]=[],n);return e.fromDate&&s[el].push({before:e.fromDate}),e.toDate&&s[el].push({after:e.toDate}),Th(e)?s[el]=s[el].concat(t.modifiers[el]):Ph(e)&&(s[el]=s[el].concat(r.modifiers[el]),s[r1]=r.modifiers[r1],s[t1]=r.modifiers[t1],s[e1]=r.modifiers[e1]),s}var zR=A.createContext(void 0);function Rae(e){var t=nn(),r=I5(),n=T5(),s=Dae(t,r,n),o=Iae(t.modifiers),i=Wt(Wt({},s),o);return a.jsx(zR.Provider,{value:i,children:e.children})}function $R(){var e=A.useContext(zR);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Mae(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Oae(e){return!!(e&&typeof e=="object"&&"from"in e)}function Uae(e){return!!(e&&typeof e=="object"&&"after"in e)}function Qae(e){return!!(e&&typeof e=="object"&&"before"in e)}function Vae(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Hae(e,t){var r,n=t.from,s=t.to;if(n&&s){var o=Ci(s,n)<0;o&&(r=[s,n],n=r[0],s=r[1]);var i=Ci(e,n)>=0&&Ci(s,e)>=0;return i}return s?Qs(s,e):n?Qs(n,e):!1}function zae(e){return Q2(e)}function $ae(e){return Array.isArray(e)&&e.every(Q2)}function qae(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(zae(r))return Qs(e,r);if($ae(r))return r.includes(e);if(Oae(r))return Hae(e,r);if(Vae(r))return r.dayOfWeek.includes(e.getDay());if(Mae(r)){var n=Ci(r.before,e),s=Ci(r.after,e),o=n>0,i=s<0,l=bu(r.before,r.after);return l?i&&o:o||i}return Uae(r)?Ci(e,r.after)>0:Qae(r)?Ci(r.before,e)>0:typeof r=="function"?r(e):!1})}function P5(e,t,r){var n=Object.keys(t).reduce(function(o,i){var l=t[i];return qae(e,l)&&o.push(i),o},[]),s={};
1171return n.forEach(function(o){return s[o]=!0}),r&&!H2(e,r)&&(s.outside=!0),s}function Kae(e,t){for(var r=Hs(e[0]),n=kx(e[e.length-1]),s,o,i=r;i<=n;){var l=P5(i,t),c=!l.disabled&&!l.hidden;if(!c){i=Ea(i,1);continue}if(l.selected)return i;l.today&&!o&&(o=i),s||(s=i),i=Ea(i,1)}return o||s}var Gae=365;function qR(e,t){var r=t.moveBy,n=t.direction,s=t.context,o=t.modifiers,i=t.retry,l=i===void 0?{count:0,lastFocused:e}:i,c=s.weekStartsOn,u=s.fromDate,d=s.toDate,f=s.locale,h={day:Ea,week:Yb,month:Fo,year:KK,startOfWeek:function(x){return s.ISOWeek?Du(x):ki(x,{locale:f,weekStartsOn:c})},endOfWeek:function(x){return s.ISOWeek?YT(x):V2(x,{locale:f,weekStartsOn:c})}},m=h[r](e,n==="after"?1:-1);n==="before"&&u?m=GK([u,m]):n==="after"&&d&&(m=WK([d,m]));var g=!0;if(o){var p=P5(m,o);g=!p.disabled&&!p.hidden}return g?m:l.count>Gae?l.lastFocused:qR(m,{moveBy:r,direction:n,context:s,modifiers:o,retry:Wt(Wt({},l),{count:l.count+1})})}var KR=A.createContext(void 0);function Wae(e){var t=Lh(),r=$R(),n=A.useState(),s=n[0],o=n[1],i=A.useState(),l=i[0],c=i[1],u=Kae(t.displayMonths,r),d=s??(l&&t.isDateDisplayed(l))?l:u,f=function(){c(s),o(void 0)},h=function(x){o(x)},m=nn(),g=function(x,y){if(s){var b=qR(s,{moveBy:x,direction:y,context:m,modifiers:r});Qs(s,b)||(t.goToDate(b,s),h(b))}},p={focusedDay:s,focusTarget:d,blur:f,focus:h,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return a.jsx(KR.Provider,{value:p,children:e.children})}function L5(){var e=A.useContext(KR);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Yae(e,t){var r=$R(),n=P5(e,r,t);return n}var D5=A.createContext(void 0);function Xae(e){if(!rv(e.initialProps)){var t={selected:void 0};return a.jsx(D5.Provider,{value:t,children:e.children})}return a.jsx(Zae,{initialProps:e.initialProps,children:e.children})}function Zae(e){var t=e.initialProps,r=e.children,n=function(o,i,l){var c,u,d;if((c=t.onDayClick)===null||c===void 0||c.call(t,o,i,l),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,o,i,l);return}(d=t.onSelect)===null||d===void 0||d.call(t,o,o,i,l)},s={selected:t.selected,onDayClick:n};return a.jsx(D5.Provider,{value:s,children:r})}function GR(){var e=A.useContext(D5);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Jae(e,t){var r=nn(),n=GR(),s=I5(),o=T5(),i=L5(),l=i.focusDayAfter,c=i.focusDayBefore,u=i.focusWeekAfter,d=i.focusWeekBefore,f=i.blur,h=i.focus,m=i.focusMonthBefore,g=i.focusMonthAfter,p=i.focusYearBefore,x=i.focusYearAfter,y=i.focusStartOfWeek,b=i.focusEndOfWeek,j=function(V){var q,G,Ae,se;rv(r)?(q=n.onDayClick)===null||q===void 0||q.call(n,e,t,V):Th(r)?(G=s.onDayClick)===null||G===void 0||G.call(s,e,t,V):Ph(r)?(Ae=o.onDayClick)===null||Ae===void 0||Ae.call(o,e,t,V):(se=r.onDayClick)===null||se===void 0||se.call(r,e,t,V)},C=function(V){var q;h(e),(q=r.onDayFocus)===null||q===void 0||q.call(r,e,t,V)},T=function(V){var q;f(),(q=r.onDayBlur)===null||q===void 0||q.call(r,e,t,V)},L=function(V){var q;(q=r.onDayMouseEnter)===null||q===void 0||q.call(r,e,t,V)},P=function(V){var q;(q=r.onDayMouseLeave)===null||q===void 0||q.call(r,e,t,V)},I=function(V){var q;(q=r.onDayPointerEnter)===null||q===void 0||q.call(r,e,t,V)},E=function(V){var q;(q=r.onDayPointerLeave)===null||q===void 0||q.call(r,e,t,V)},O=function(V){var q;(q=r.onDayTouchCancel)===null||q===void 0||q.call(r,e,t,V)},k=function(V){var q;(q=r.onDayTouchEnd)===null||q===void 0||q.call(r,e,t,V)},D=function(V){var q;(q=r.onDayTouchMove)===null||q===void 0||q.call(r,e,t,V)},H=function(V){var q;(q=r.onDayTouchStart)===null||q===void 0||q.call(r,e,t,V)},U=function(V){var q;(q=r.onDayKeyUp)===null||q===void 0||q.call(r,e,t,V)},ee=function(V){var q;switch(V.key){case"ArrowLeft":V.preventDefault(),V.stopPropagation(),r.dir==="rtl"?l(
1171):c();break;case"ArrowRight":V.preventDefault(),V.stopPropagation(),r.dir==="rtl"?c():l();break;case"ArrowDown":V.preventDefault(),V.stopPropagation(),u();break;case"ArrowUp":V.preventDefault(),V.stopPropagation(),d();break;case"PageUp":V.preventDefault(),V.stopPropagation(),V.shiftKey?p():m();break;case"PageDown":V.preventDefault(),V.stopPropagation(),V.shiftKey?x():g();break;case"Home":V.preventDefault(),V.stopPropagation(),y();break;case"End":V.preventDefault(),V.stopPropagation(),b();break}(q=r.onDayKeyDown)===null||q===void 0||q.call(r,e,t,V)},ae={onClick:j,onFocus:C,onBlur:T,onKeyDown:ee,onKeyUp:U,onMouseEnter:L,onMouseLeave:P,onPointerEnter:I,onPointerLeave:E,onTouchCancel:O,onTouchEnd:k,onTouchMove:D,onTouchStart:H};return ae}function ese(){var e=nn(),t=GR(),r=I5(),n=T5(),s=rv(e)?t.selected:Th(e)?r.selected:Ph(e)?n.selected:void 0;return s}function tse(e){return Object.values(ri).includes(e)}function rse(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var s=e.modifiersClassNames[n];if(s)r.push(s);else if(tse(n)){var o=e.classNames["day_".concat(n)];o&&r.push(o)}}),r}function nse(e,t){var r=Wt({},e.styles.day);return Object.keys(t).forEach(function(n){var s;r=Wt(Wt({},r),(s=e.modifiersStyles)===null||s===void 0?void 0:s[n])}),r}function ase(e,t,r){var n,s,o,i=nn(),l=L5(),c=Yae(e,t),u=Jae(e,c),d=ese(),f=!!(i.onDayClick||i.mode!=="default");A.useEffect(function(){var L;c.outside||l.focusedDay&&f&&Qs(l.focusedDay,e)&&((L=r.current)===null||L===void 0||L.focus())},[l.focusedDay,e,r,f,c.outside]);var h=rse(i,c).join(" "),m=nse(i,c),g=!!(c.outside&&!i.showOutsideDays||c.hidden),p=(o=(s=i.components)===null||s===void 0?void 0:s.DayContent)!==null&&o!==void 0?o:jae,x=a.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),y={style:m,className:h,children:x,role:"gridcell"},b=l.focusTarget&&Qs(l.focusTarget,e)&&!c.outside,j=l.focusedDay&&Qs(l.focusedDay,e),C=Wt(Wt(Wt({},y),(n={disabled:c.disabled,role:"gridcell"},n["aria-selected"]=c.selected,n.tabIndex=j||b?0:-1,n)),u),T={isButton:f,isHidden:g,activeModifiers:c,selectedDays:d,buttonProps:C,divProps:y};return T}function sse(e){var t=A.useRef(null),r=ase(e.date,e.displayMonth,t);return r.isHidden?a.jsx("div",{role:"gridcell"}):r.isButton?a.jsx(R0,Wt({name:"day",ref:t},r.buttonProps)):a.jsx("div",Wt({},r.divProps))}function ose(e){var t=e.number,r=e.dates,n=nn(),s=n.onWeekNumberClick,o=n.styles,i=n.classNames,l=n.locale,c=n.labels.labelWeekNumber,u=n.formatters.formatWeekNumber,d=u(Number(t),{locale:l});if(!s)return a.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:d});var f=c(Number(t),{locale:l}),h=function(m){s(t,r,m)};return a.jsx(R0,{name:"week-number","aria-label":f,className:i.weeknumber,style:o.weeknumber,onClick:h,children:d})}function ise(e){var t,r,n=nn(),s=n.styles,o=n.classNames,i=n.showWeekNumber,l=n.components,c=(t=l?.Day)!==null&&t!==void 0?t:sse,u=(r=l?.WeekNumber)!==null&&r!==void 0?r:ose,d;return i&&(d=a.jsx("td",{className:o.cell,style:s.cell,children:a.jsx(u,{number:e.weekNumber,dates:e.dates})})),a.jsxs("tr",{className:o.row,style:s.row,children:[d,e.dates.map(function(f){return a.jsx("td",{className:o.cell,style:s.cell,role:"presentation",children:a.jsx(c,{displayMonth:e.displayMonth,date:f})},iG(f))})]})}function uN(e,t,r){for(var n=r?.ISOWeek?YT(t):V2(t,r),s=r?.ISOWeek?Du(e):ki(e,r),o=Ci(n,s),i=[],l=0;l<=o;l++)i.push(Ea(s,l));var c=i.reduce(function(u,d){var f=r?.ISOWeek?zT(d):qT(d,r),h=u.find(function(m){return m.weekNumber===f});return h?(h.dates.push(d),u):(u.push({weekNumber:f,dates:[d]}),u)},[]);return c}function lse(e,t){var r=uN(Hs(e),kx(e),t);if(t?.useFixedWeeks){var n=cG(e,t);if(n<6){var s=r[r.length-1],o=s.dates[s.dates.length-1],i=Yb(o,6-n),l=uN(Yb(o,1),i,t);r.push.apply(r,l)}}return r}function cse(e){var t,r,n,s=nn(),o=s.locale,i=s.classNames,l=s.styles,c=s.hideHead,u=s.fixedWeeks,d=s.components,f=s.weekStartsOn,h=s.firstWeekContainsDate,m=s.ISOWeek,g=lse(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:m,locale:o,weekStartsOn:f,firstWeekContainsDate:h}),p=(t=d?.Head)!==null&&t!==void 0?t:Cae,x=(r=d?.Row)!==null&&r!==void 0?r:ise,y=(n=d?.Footer)!==null&&n!==void 0?n:bae;return a.jsxs("table",{id:e.id,className:i.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&a.jsx(p,{}),a.jsx("tbody",{className:i.tbody,style:l.tbody,children:g.map(function(b){return a.jsx(x,{displayMonth:e.displayMonth,dates:b.dates,weekNumber:b.weekNumber},b.weekNumber)})}),a.jsx(y,{displayMonth:e.displayMonth})]})}function use(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var dse=use()?A.useLayoutEffect:A.useEffect,n1=!1,Ase=0;function dN(){return"react-day-picker-".concat(++Ase)}function fse(e){var t,r=e??(n1?dN():null),n=A.useState(r),s=n[0],o=n[1];return dse(function(){s===null&&o(dN())},[]),A.useEffect(function(){n1===!1&&(n1=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function mse(e){var t,r,n=nn(),s=n.dir,o=n.classNames,i=n.styles,l=n.components,c=Lh().displayMonths,u=fse(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[o.month],h=i.month,m=e.displayIndex===0,g=e.dis
1171playIndex===c.length-1,p=!m&&!g;s==="rtl"&&(t=[m,g],g=t[0],m=t[1]),m&&(f.push(o.caption_start),h=Wt(Wt({},h),i.caption_start)),g&&(f.push(o.caption_end),h=Wt(Wt({},h),i.caption_end)),p&&(f.push(o.caption_between),h=Wt(Wt({},h),i.caption_between));var x=(r=l?.Caption)!==null&&r!==void 0?r:yae;return a.jsxs("div",{className:f.join(" "),style:h,children:[a.jsx(x,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(cse,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function hse(e){var t=nn(),r=t.classNames,n=t.styles;return a.jsx("div",{className:r.months,style:n.months,children:e.children})}function pse(e){var t,r,n=e.initialProps,s=nn(),o=L5(),i=Lh(),l=A.useState(!1),c=l[0],u=l[1];A.useEffect(function(){s.initialFocus&&o.focusTarget&&(c||(o.focus(o.focusTarget),u(!0)))},[s.initialFocus,c,o.focus,o.focusTarget,o]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var f=Wt(Wt({},s.styles.root),s.style),h=Object.keys(n).filter(function(g){return g.startsWith("data-")}).reduce(function(g,p){var x;return Wt(Wt({},g),(x={},x[p]=n[p],x))},{}),m=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:hse;return a.jsx("div",Wt({className:d.join(" "),style:f,dir:s.dir,id:s.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:a.jsx(m,{children:i.displayMonths.map(function(g,p){return a.jsx(mse,{displayIndex:p,displayMonth:g},p)})})}))}function gse(e){var t=e.children,r=Qne(e,["children"]);return a.jsx(oae,{initialProps:r,children:a.jsx(pae,{children:a.jsx(Xae,{initialProps:r,children:a.jsx(Eae,{initialProps:r,children:a.jsx(Sae,{initialProps:r,children:a.jsx(Rae,{children:a.jsx(Wae,{children:t})})})})})})})}function xse(e){return a.jsx(gse,Wt({},e,{children:a.jsx(pse,{initialProps:e})}))}function CA({className:e,classNames:t,showOutsideDays:r=!0,...n}){return a.jsx(xse,{showOutsideDays:r,className:je("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-2",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:je(Vm({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full",cell:"h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20",day:je(Vm({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground rounded-md",day_today:"bg-accent/50 text-accent-foreground font-semibold",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>a.jsx(Jd,{className:"h-4 w-4"}),IconRight:({...s})=>a.jsx(Vs,{className:"h-4 w-4"})},...n})}CA.displayName="Calendar";var nv="Checkbox",[vse]=Ha(nv),[yse,R5]=vse(nv);function bse(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:s,disabled:o,form:i,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[h,m]=Io({prop:r,defaultProp:s??!1,onChange:c,caller:nv}),[g,p]=A.useState(null),[x,y]=A.useState(null),b=A.useRef(!1),j=g?!!i||!!g.closest("form"):!0,C={checked:h,disabled:o,setChecked:m,control:g,setControl:p,name:l,form:i,value:d,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:Ac(s)?!1:s,isFormControl:j,bubbleInput:x,setBubbleInput:y};return a.jsx(yse,{scope:t,...C,children:wse(f)?f(C):n})}var WR="CheckboxTrigger",YR=A.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},s)=>{const{control:o,value:i,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:g}=R5(WR,e),p=er(s,d),x=A.useRef(c);return A.useEffect(()=>{const y=o?.form;if(y){const b=()=>f(x.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[o,f]),a.jsx(_t.button,{type:"button",role:"checkbox","aria-checked":Ac(c)?"mixed":c,"aria-required":u,"data-state":t6(c),"data-disabled":l?"":void 0,disabled:l,value:i,...n,ref:p,onKeyDown:At(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:At(r,y=>{f(b=>Ac(b)?!0:!b),g&&m&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});YR.displayName=WR;var M5=A.forwardRef((e,t)=>
1171{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return a.jsx(bse,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:l,required:i,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:h})=>a.jsxs(a.Fragment,{children:[a.jsx(YR,{...f,ref:t,__scopeCheckbox:r}),h&&a.jsx(e6,{__scopeCheckbox:r})]})})});M5.displayName=nv;var XR="CheckboxIndicator",ZR=A.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...s}=e,o=R5(XR,r);return a.jsx(Na,{present:n||Ac(o.checked)||o.checked===!0,children:a.jsx(_t.span,{"data-state":t6(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});ZR.displayName=XR;var JR="CheckboxBubbleInput",e6=A.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:i,required:l,disabled:c,name:u,value:d,form:f,bubbleInput:h,setBubbleInput:m}=R5(JR,e),g=er(r,m),p=v5(o),x=Z2(n);A.useEffect(()=>{const b=h;if(!b)return;const j=window.HTMLInputElement.prototype,T=Object.getOwnPropertyDescriptor(j,"checked").set,L=!s.current;if(p!==o&&T){const P=new Event("click",{bubbles:L});b.indeterminate=Ac(o),T.call(b,Ac(o)?!1:o),b.dispatchEvent(P)}},[h,p,o,s]);const y=A.useRef(Ac(o)?!1:o);return a.jsx(_t.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:l,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:g,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});e6.displayName=JR;function wse(e){return typeof e=="function"}function Ac(e){return e==="indeterminate"}function t6(e){return Ac(e)?"indeterminate":e?"checked":"unchecked"}const Nw=A.forwardRef(({className:e,...t},r)=>a.jsx(M5,{ref:r,className:je("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(ZR,{className:je("flex items-center justify-center text-current"),children:a.jsx($s,{className:"h-4 w-4"})})}));Nw.displayName=M5.displayName;var av="Switch",[_se]=Ha(av),[Cse,jse]=_se(av),r6=A.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:o,required:i,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[h,m]=A.useState(null),g=er(t,j=>m(j)),p=A.useRef(!1),x=h?d||!!h.closest("form"):!0,[y,b]=Io({prop:s,defaultProp:o??!1,onChange:u,caller:av});return a.jsxs(Cse,{scope:r,checked:y,disabled:l,children:[a.jsx(_t.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":o6(y),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:g,onClick:At(e.onClick,j=>{b(C=>!C),x&&(p.current=j.isPropagationStopped(),p.current||j.stopPropagation())})}),x&&a.jsx(s6,{control:h,bubbles:!p.current,name:n,value:c,checked:y,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});r6.displayName=av;var n6="SwitchThumb",a6=A.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,s=jse(n6,r);return a.jsx(_t.span,{"data-state":o6(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:t})});a6.displayName=n6;var Ese="SwitchBubbleInput",s6=A.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...s},o)=>{const i=A.useRef(null),l=er(i,o),c=v5(r),u=Z2(t);return A.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==r&&m){const g=new Event("click",{bubbles:n});m.call(d,r),d.dispatchEvent(g)}},[c,r,n]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});s6.displayName=Ese;function o6(e){return e?"checked":"unchecked"}var i6=r6,Bse=a6;const Al=A.forwardRef(({className:e,...t},r)=>a.jsx(i6,{className:je("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:a.jsx(Bse,{className:je("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}
1171));Al.displayName=i6.displayName;const l6=()=>{const e=vn(),{data:t,isLoading:r,error:n}=jt({queryKey:["scheduling-calendars"],queryFn:async()=>{const{data:l,error:c}=await J.from("scheduling_calendars").select("*").order("name");if(c)throw c;return l}}),s=Dr({mutationFn:async l=>{const{data:c,error:u}=await J.from("scheduling_calendars").insert(l).select().single();if(u)throw u;return c},onSuccess:()=>{e.invalidateQueries({queryKey:["scheduling-calendars"]}),et.success("Calendário criado com sucesso!")},onError:l=>{et.error(`Erro ao criar calendário: ${l.message}`)}}),o=Dr({mutationFn:async({id:l,...c})=>{const{data:u,error:d}=await J.from("scheduling_calendars").update(c).eq("id",l).select().single();if(d)throw d;return u},onSuccess:()=>{e.invalidateQueries({queryKey:["scheduling-calendars"]}),et.success("Calendário atualizado com sucesso!")},onError:l=>{et.error(`Erro ao atualizar calendário: ${l.message}`)}}),i=Dr({mutationFn:async l=>{const{error:c}=await J.from("scheduling_calendars").delete().eq("id",l);if(c)throw c},onSuccess:()=>{e.invalidateQueries({queryKey:["scheduling-calendars"]}),et.success("Calendário excluÃdo com sucesso!")},onError:l=>{et.error(`Erro ao excluir calendário: ${l.message}`)}});return{calendars:t,isLoading:r,error:n,createCalendar:s,updateCalendar:o,deleteCalendar:i}},Nse=e=>jt({queryKey:["scheduling-calendar",e],queryFn:async()=>{if(!e)return null;const{data:t,error:r}=await J.from("scheduling_calendars").select("*").eq("id",e).single();if(r)throw r;return t},enabled:!!e}),h8e=e=>jt({queryKey:["scheduling-calendar-slug",e],queryFn:async()=>{if(!e)return null;const{data:t,error:r}=await J.from("scheduling_calendars").select("*").eq("slug",e).eq("is_active",!0).single();if(r)throw r;return t},enabled:!!e});function Sse(e,t,r){if(r)return{start:Pp(`${e}T${t.opening_time}`,r),end:Pp(`${e}T${t.closing_time}`,r),dayStart:Pp(`${e}T00:00:00`,r),dayEnd:Pp(`${e}T23:59:59.999`,r)};const n=Ir(e),[s,o]=t.opening_time.split(":").map(Number),[i,l]=t.closing_time.split(":").map(Number);return{start:rA(ml(n),s*60+o),end:rA(ml(n),i*60+l),dayStart:ml(n),dayEnd:WT(n)}}const O5=({calendarId:e,date:t,serviceId:r,duration:n,includePastSlots:s=!1,timeZone:o})=>jt({queryKey:["available-slots",e,t,r,n,s,o],queryFn:async()=>{const{data:i,error:l}=await J.from("scheduling_calendars").select("*").eq("id",e).single();if(l)throw l;if(!i)throw new Error("Calendário não encontrado");let c=n||i.default_duration_minutes;if(r&&!n){const{data:T}=await J.from("scheduling_services").select("duration_minutes").eq("id",r).single();T&&(c=T.duration_minutes)}const u=i.opening_hours||[],d=o?new Date(`${t}T12:00:00Z`).getUTCDay():Ir(t).getDay(),f=u.find(T=>T.week_day===d);if(!f)return[];const h=Sse(t,f,o),m=qK(o?new Date:nne(),i.minimum_notice_hours);if(!Number.isFinite(h.start.getTime())||!Number.isFinite(h.end.getTime())||!c||c<=0||!i.slot_interval_minutes||i.slot_interval_minutes<=0)throw new Error("Configuração de horários inválida");const[g,p]=await Promise.all([J.from("scheduling_appointments").select("start_datetime, end_datetime").eq("calendar_id",e).neq("status","CANCELED").gte("start_datetime",h.dayStart.toISOString()).lte("start_datetime",h.dayEnd.toISOString()),J.from("scheduling_blocked_times").select("start_datetime, end_datetime").eq("calendar_id",e).lte("start_datetime",h.dayEnd.toISOString()).gte("end_datetime",h.dayStart.toISOString())]);if(g.error)throw g.error;if(p.error)throw p.error;const x=g.data||[],y=p.data||[],b=i.num_attendants||1,j=i.buffer_minutes||0,C=[];for(let T=h.start;rc(T,h.end);T=rA(T,i.slot_interval_minutes)){const L=rA(T,c);if(bu(L,h.end))break;const P=rc(T,m),I=x.filter(H=>Ir(H.start_datetime).getTime()===T.getTime()).length,E=b-I,O=x.some(H=>{const U=Ir(H.start_datetime),ee=rA(Ir(H.end_datetime),j);return U.getTime()===T.getTime()?!1:rc(T,ee)&&bu(L,U)}),k=y.some(H=>{const U=Ir(H.start_datetime),ee=Ir(H.end_datetime);return rc(T,ee)&&bu(L,U)||T.getTime()===U.getTime()}),D=P?"past":k?"blocked":O||E<=0?"booked":void 0;(!P||s)&&C.push({start:T.toISOString(),end:L.toISOString(),available:!P&&!O&&!k&&E>0,spotsAvailable:Math.max(0,E),unavailableReason:D})}return C},enabled:!!e&&!!t}),U5=(e,t,r)=>jt({queryKey:["available-dates",e,t,r],queryFn:async()=>{const{data:n,error:s}=await J.from("scheduling_calendars").select("opening_hours, start_date, end_date").eq("id",e).single();if(s)throw s;if(!n)return[];const o=n.opening_hours||[],i=new Set(o.map(d=>d.week_day)),l=[];let c=Ir(t);const u=Ir(r);for(;rc(c,u)||c.getTime()===u.getTime();){const d=c.getDay();i.has(d)&&(!n.start_date||!rc(c,Ir(n.start_date)))&&(!n.end_date||!bu(c,Ir(n.end_date)))&&l.push(Kt(c,"yyyy-MM-dd")),c=rA(c,24*60)}return l},enabled:!!e&&!!t&&!!r});function c6(e){return jt({queryKey:["product-search",e],queryFn:async()=>
1171{if(!e)return[];switch(e){case"curso":{const{data:t,error:r}=await J.from("courses").select("id, title").eq("approval_status","approved").order("title");if(r)throw r;return(t||[]).map(n=>({id:n.id,name:n.title}))}case"formacao":{const{data:t,error:r}=await J.from("formations").select("id, name").eq("is_active",!0).order("name");if(r)throw r;return(t||[]).map(n=>({id:n.id,name:n.name}))}case"assinatura":{const{data:t,error:r}=await J.from("subscription_plans").select("id, name").eq("is_active",!0).order("name");if(r)throw r;return(t||[]).map(n=>({id:n.id,name:n.name}))}case"servico":{const{data:t,error:r}=await J.from("scheduling_services").select("id, name").eq("is_active",!0).order("name");if(r)throw r;return(t||[]).map(n=>({id:n.id,name:n.name}))}default:return[]}},enabled:!!e,staleTime:5*60*1e3})}const Q5=A.createContext({});function V5(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const H5=typeof window<"u",u6=H5?A.useLayoutEffect:A.useEffect,sv=A.createContext(null);function z5(e,t){e.indexOf(t)===-1&&e.push(t)}function $5(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Fi=(e,t,r)=>r>t?t:r<e?e:r;let q5=()=>{};const wl={},d6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function A6(e){return typeof e=="object"&&e!==null}const f6=e=>/^0[^.\s]+$/u.test(e);function K5(e){let t;return()=>(t===void 0&&(t=e()),t)}const So=e=>e,kse=(e,t)=>r=>t(e(r)),Dh=(...e)=>e.reduce(kse),Hm=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class G5{constructor(){this.subscriptions=[]}add(t){return z5(this.subscriptions,t),()=>$5(this.subscriptions,t)}notify(t,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,n);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pl=e=>e*1e3,Eo=e=>e/1e3;function m6(e,t){return t?e*(1e3/t):0}const h6=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Ise=1e-7,Fse=12;function Tse(e,t,r,n,s){let o,i,l=0;do i=t+(r-t)/2,o=h6(i,n,s)-e,o>0?r=i:t=i;while(Math.abs(o)>Ise&&++l<Fse);return i}function Rh(e,t,r,n){if(e===t&&r===n)return So;const s=o=>Tse(o,0,1,e,r);return o=>o===0||o===1?o:h6(s(o),t,n)}const p6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g6=e=>t=>1-e(1-t),x6=Rh(.33,1.53,.69,.99),W5=g6(x6),v6=p6(W5),y6=e=>(e*=2)<1?.5*W5(e):.5*(2-Math.pow(2,-10*(e-1))),Y5=e=>1-Math.sin(Math.acos(e)),b6=g6(Y5),w6=p6(Y5),Pse=Rh(.42,0,1,1),Lse=Rh(0,0,.58,1),_6=Rh(.42,0,.58,1),Dse=e=>Array.isArray(e)&&typeof e[0]!="number",C6=e=>Array.isArray(e)&&typeof e[0]=="number",Rse={linear:So,easeIn:Pse,easeInOut:_6,easeOut:Lse,circIn:Y5,circInOut:w6,circOut:b6,backIn:W5,backInOut:v6,backOut:x6,anticipate:y6},Mse=e=>typeof e=="string",AN=e=>{if(C6(e)){q5(e.length===4);const[t,r,n,s]=e;return Rh(t,r,n,s)}else if(Mse(e))return Rse[e];return e},Vp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ose(e,t){let r=new Set,n=new Set,s=!1,o=!1;const i=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,h=!1)=>{const g=h&&s?r:n;return f&&i.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),i.delete(d)},process:d=>{if(l=d,s){o=!0;return}s=!0,[r,n]=[n,r],r.forEach(c),r.clear(),s=!1,o&&(o=!1,u.process(d))}};return u}const Use=40;function j6(e,t){let r=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=Vp.reduce((j,C)=>(j[C]=Ose(o),j),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:g}=i,p=()=>{const j=wl.useManualTiming?s.timestamp:performance.now();r=!1,wl.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(j-s.timestamp,Use),1)),s.timestamp=j,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),m.process(s),g.process(s),s.isProcessing=!1,r&&t&&(n=!1,e(p))},x=()=>{r=!0,n=!0,s.isProcessing||e(p)};return{schedule:Vp.reduce((j,C)=>{const T=i[C];return j[C]=(L,P=!1,I=!1)=>(r||x(),T.schedule(L,P,I)),j},{}),cancel:j=>{for(let C=0;C<Vp.length;C++)i[Vp[C]].cancel(j)},state:s,steps:i}}const{schedule:An,cancel:_c,state:Pa,steps:a1}=j6(typeof requestAnimationFrame<"u"?requestAnimationFrame:So,!0);let r0;function Qse(){r0=void 0}const js={now:()=>(r0===void 0&&js.set(Pa.isProcessing||wl.useManualTiming?Pa.timestamp:performance.now()),r0),set
vendor: 10,405 bytes, line 1171
1171:e=>{r0=e,queueMicrotask(Qse)}},E6=e=>t=>typeof t=="string"&&t.startsWith(e),B6=E6("--"),Vse=E6("var(--"),X5=e=>Vse(e)?Hse.test(e.split("/*")[0].trim()):!1,Hse=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function fN(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const XA={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zm={...XA,transform:e=>Fi(0,1,e)},Hp={...XA,default:1},cm=e=>Math.round(e*1e5)/1e5,Z5=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zse(e){return e==null}const $se=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,J5=(e,t)=>r=>!!(typeof r=="string"&&$se.test(r)&&r.startsWith(e)||t&&!zse(r)&&Object.prototype.hasOwnProperty.call(r,t)),N6=(e,t,r)=>n=>{if(typeof n!="string")return n;const[s,o,i,l]=n.match(Z5);return{[e]:parseFloat(s),[t]:parseFloat(o),[r]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},qse=e=>Fi(0,255,e),s1={...XA,transform:e=>Math.round(qse(e))},mu={test:J5("rgb","red"),parse:N6("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+s1.transform(e)+", "+s1.transform(t)+", "+s1.transform(r)+", "+cm(zm.transform(n))+")"};function Kse(e){let t="",r="",n="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Sw={test:J5("#"),parse:Kse,transform:mu.transform},Mh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yl=Mh("deg"),Si=Mh("%"),Et=Mh("px"),Gse=Mh("vh"),Wse=Mh("vw"),mN={...Si,parse:e=>Si.parse(e)/100,transform:e=>Si.transform(e*100)},Kd={test:J5("hsl","hue"),parse:N6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Si.transform(cm(t))+", "+Si.transform(cm(r))+", "+cm(zm.transform(n))+")"},oa={test:e=>mu.test(e)||Sw.test(e)||Kd.test(e),parse:e=>mu.test(e)?mu.parse(e):Kd.test(e)?Kd.parse(e):Sw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mu.transform(e):Kd.transform(e),getAnimatableNone:e=>{const t=oa.parse(e);return t.alpha=0,oa.transform(t)}},Yse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xse(e){return isNaN(e)&&typeof e=="string"&&(e.match(Z5)?.length||0)+(e.match(Yse)?.length||0)>0}const S6="number",k6="color",Zse="var",Jse="var(",hN="${}",eoe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $m(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},s=[];let o=0;const l=t.replace(eoe,c=>(oa.test(c)?(n.color.push(o),s.push(k6),r.push(oa.parse(c))):c.startsWith(Jse)?(n.var.push(o),s.push(Zse),r.push(c)):(n.number.push(o),s.push(S6),r.push(parseFloat(c))),++o,hN)).split(hN);return{values:r,split:l,indexes:n,types:s}}function I6(e){return $m(e).values}function F6(e){const{split:t,types:r}=$m(e),n=t.length;return s=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],s[i]!==void 0){const l=r[i];l===S6?o+=cm(s[i]):l===k6?o+=oa.transform(s[i]):o+=s[i]}return o}}const toe=e=>typeof e=="number"?0:oa.test(e)?oa.getAnimatableNone(e):e;function roe(e){const t=I6(e);return F6(e)(t.map(toe))}const Cc={test:Xse,parse:I6,createTransformer:F6,getAnimatableNone:roe};function o1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function noe({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let s=0,o=0,i=0;if(!t)s=o=i=r;else{const l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;s=o1(c,l,e+1/3),o=o1(c,l,e),i=o1(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:n}}function M0(e,t){return r=>r>0?t:e}const Nn=(e,t,r)=>e+(t-e)*r,i1=(e,t,r)=>{const n=e*e,s=r*(t*t-n)+n;return s<0?0:Math.sqrt(s)},aoe=[Sw,mu,Kd],soe=e=>aoe.find(t=>t.test(e));function pN(e){const t=soe(e);if(!t)return!1;let r=t.parse(e);return t===Kd&&(r=noe(r)),r}const gN=(e,t)=>{const r=pN(e),n=pN(t);if(!r||!n)return M0(e,t);const s={...r};return o=>(s.red=i1(r.red,n.red,o),s.green=i1(r.green,n.green,o),s.blue=i1(r.blue,n.blue,o),s.alpha=Nn(r.alpha,n.alpha,o),mu.transform(s))},kw=new Set(["none","hidden"]);function ooe(e,t){return kw.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function ioe(e,t){return r=>Nn(e,t,r)}function eC(e){return typeof e=="number"?ioe:typeof e=="string"?X5(e)?M0:oa.test(e)?gN:uoe:Array.isArray(e)?T6:typeof e=="object"?oa.test(e)?gN:loe:M0}function T6(e,t){const r=[...e],n=r.length,s=e.map((o,i)=>eC(o)(o,t[i]));return o=>{for(let i=0;i<n;i++)r[i]=s[i](o);return r}}function loe(e,t){const r={...e,...t},n={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(n[s]=eC(e[s])(e[s],t[s]));return s=>{for(const o in n)r[o]=n[o](s);return r}}function coe(e,t){const r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],i=e.indexes[o][n[o]],l=e.values[i]??0;r[s]=l,n[o]++}return r}const uoe=(e,t)=>{const r=Cc.createTransformer(t),n=$m(e),s=$m(t);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?kw.has(e)&&!s.values.length||kw.has(t)&&!n.values.length?ooe(e,t):Dh(T6(coe(n,s),s.values),r):M0(e,t)};function P6(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Nn(e,t,r):eC(e)(e,t)}const doe=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>An.update(t,r),stop:()=>_c(t),now:()=>Pa.isProcessing?Pa.timestamp:js.now()}},L6=(e,t,r=10)=>{let n="";const s=Math.max(Math.round(t/r),2);for(let o=0;o<s;o++)n+=Math.round(e(o/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},O0=2e4;function tC(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<O0;)t+=r,n=e.next(t);return t>=O0?1/0:t}function Aoe(e,t=100,r){const n=r({...e,keyframes:[0,t]}),s=Math.min(tC(n),O0);return{type:"keyframes",ease:o=>n.next(s*o).value/t,duration:Eo(s)}}const foe=5;function D6(e,t,r){const n=Math.max(t-foe,0);return m6(r-e(n),t-n)}const Rn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},l1=.001;function moe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:r=Rn.velocity,mass:n=Rn.mass}){let s,o,i=1-t;i=Fi(Rn.minDamping,Rn.maxDamping,i),e=Fi(Rn.minDuration,Rn.maxDuration,Eo(e)),i<1?(s=u=>{const d=u*i,f=d*e,h=d-r,m=Iw(u,i),g=Math.exp(-f);return l1-h/m*g},o=u=>{const f=u*i*e,h=f*r+r,m=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-f),p=Iw(Math.pow(u,2),i);return(-s(u)+l1>0?-1:1)*((h-m)*g)/p}):(s=u=>{const d=Math.exp(-u*e),f=(u-r)*e+1;return-l1+d*f},o=u=>{const d=Math.exp(-u*e),f=(r-u)*(e*e);return d*f});const l=5/e,c=poe(s,o,l);if(e=pl(e),isNaN(c))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const u=Math.pow(c,2)*n;return{stiffness:u,damping:i*2*Math.sqrt(n*u),duration:e}}}const hoe=12;function poe(e,t,r){let n=r;for(let s=1;s<hoe;s++)n=n-e(n)/t(n);return n}function Iw(e,t){return e*Math.sqrt(1-t*t)}const goe=["duration","bounce"],xoe=["stiffness","damping","mass"];function xN(e,t){return t.some(r=>e[r]!==void 0)}function voe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!xN(e,xoe)&&xN(e,goe))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),s=n*n,o=2*Fi(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Rn.mass,stiffness:s,damping:o}}else{const r=moe(e);t={...t,...r,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function U0(e=Rn.visualDuration,t=Rn.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:s}=r;const o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=voe({...r,velocity:-Eo(r.velocity||0)}),g=h||0,p=u/(2*Math.sqrt(c*d)),x=i-o,y=Eo(Math.sqrt(c/d)),b=Math.abs(x)<5;n||(n=b?Rn.restSpeed.granular:Rn.restSpeed.default),s||(s=b?Rn.restDelta.granular:Rn.restDelta.default);let j;if(p<1){const T=Iw(y,p);j=L=>{const P=Math.exp(-p*y*L);return i-P*((g+p*y*x)/T*Math.sin(T*L)+x*Math.cos(T*L))}}else if(p===1)j=T=>i-Math.exp(-y*T)*(x+(g+y*x)*T);else{const T=y*Math.sqrt(p*p-1);j=L=>{const P=Math.exp(-p*y*L),I=Math.min(T*L,300);return i-P*((g+p*y*x)*Math.sinh(I)+T*x*Math.cosh(I))/T}}const C={calculatedDuration:m&&f||null,next:T=>{const L=j(T);if(m)l.done=T>=f;else{let P=T===0?g:0;p<1&&(P=T===0?pl(g):D6(j,T,L));const I=Math.abs(P)<=n,E=Math.abs(i-L)<=s;l.done=I&&E}return l.value=l.done?i:L,l},toString:()=>{const T=Math.min(tC(C),O0),L=L6(P=>C.next(T*P).value,T,30);return T+"ms "+L},toTransition:()=>{}};return C}U0.applyToOptions=e=>{const t=Aoe(e,100,U0);return e.ease=t.ease,e.duration=pl(t.duration),e.type="keyframes",e};function Fw({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=I=>l!==void 0&&I<l||c!==void 0&&I>c,g=I=>l===void 0?c:c===void 0||Math.abs(l-I)<Math.abs(c-I)?l:c;let p=r*t;const x=f+p,y=i===void 0?x:i(x);y!==x&&(p=y-f);const b=I=>-p*Math.exp(-I/n),j=I=>y+b(I),C=I=>{const E=b(I),O=j(I);h.done=Math.abs(E)<=u,h.value=h.done?y:O};let T,L;const P=I=>{m(h.value)&&(T=I,L=U0({keyframes:[h.value,g(h.value)],velocity:D6(j,I,h.value),damping:s,stiffness:o,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:I=>{let E=!1;return!L&&T===void 0&&(E=!0,C(I),P(I)),T!==void 0&&I>=T?L.next(I-T):(!E&&C(I),h)}}}function yoe(e,t,r){const n=[],s=r||wl.mix||P6,o=e.length-1;for(let i=0;i<o;i++){let l=s(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||So:t;l=Dh(c,l)}n.push(l)}return n}function boe(e,t,{clamp:r=!0,ease:n,mixer:s}={}){const o=e.length;if(q5(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=yoe(t,n,s),c=l.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(c>1)for(;
1171f<e.length-2&&!(d<e[f+1]);f++);const h=Hm(e[f],e[f+1],d);return l[f](h)};return r?d=>u(Fi(e[0],e[o-1],d)):u}function woe(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const s=Hm(0,t,n);e.push(Nn(r,1,s))}}function _oe(e){const t=[0];return woe(t,e.length-1),t}function Coe(e,t){return e.map(r=>r*t)}function joe(e,t){return e.map(()=>t||_6).splice(0,e.length-1)}function um({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const s=Dse(n)?n.map(AN):AN(n),o={done:!1,value:t[0]},i=Coe(r&&r.length===t.length?r:_oe(t),e),l=boe(i,t,{ease:Array.isArray(s)?s:joe(t,s)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const Eoe=e=>e!==null;function rC(e,{repeat:t,repeatType:r="loop"},n,s=1){const o=e.filter(Eoe),l=s<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!l||n===void 0?o[l]:n}const Boe={decay:Fw,inertia:Fw,tween:um,keyframes:um,spring:U0};function R6(e){typeof e.type=="string"&&(e.type=Boe[e.type])}class nC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const Noe=e=>e/100;class aC extends nC{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==js.now()&&this.tick(js.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;R6(t);const{type:r=um,repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:i=0}=t;let{keyframes:l}=t;const c=r||um;c!==um&&typeof l[0]!="number"&&(this.mixKeyframes=Dh(Noe,P6(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});o==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=tC(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:s,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:g,onUpdate:p,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let j=this.currentTime,C=n;if(f){const I=Math.min(this.currentTime,s)/l;let E=Math.floor(I),O=I%1;!O&&I>=1&&(O=1),O===1&&E--,E=Math.min(E,f+1),!!(E%2)&&(h==="reverse"?(O=1-O,m&&(O-=m/l)):h==="mirror"&&(C=i)),j=Fi(0,1,O)*l}const T=b?{done:!1,value:d[0]}:C.next(j);o&&(T.value=o(T.value));let{done:L}=T;!b&&c!==null&&(L=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return P&&g!==Fw&&(T.value=rC(d,this.options,x,this.speed)),p&&p(T.value),P&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return Eo(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Eo(t)}get time(){return Eo(this.currentTime)}set time(t){t=pl(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(js.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Eo(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=doe,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(js.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Soe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hu=e=>e*180/Math.PI,Tw=e=>{const t=hu(Math.atan2(e[1],e[0]));return Pw(t)},koe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Tw,rotateZ:Tw,skewX:e=>hu(Math.atan(e[1])),skewY:e=>hu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Pw=e=>(e=e%360,e<0&&(e+=360),e),vN=Tw,yN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bN=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ioe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yN,scaleY:bN,scale:e=>(yN(e)+bN(e))/2,rotateX:e=>Pw(hu(Math.atan2(e[6],e[5]))),rotateY:e=>Pw(hu(Math.atan2(-e[2],e[0]))),rotateZ:vN,rotate:vN,skewX:e=>hu(Math.atan(e[4])),skewY:e=>hu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lw(e){return e.includes("scale")?1:0}function Dw(e,t){if(!e||e==="none")return Lw(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(r)n=Ioe,s=r;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=koe,s=l}if(!s)return Lw(t);const o=n[t],i=s[1].split(",").map(Toe);return typeof o=="function"?o(i):i[o]}const Foe=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Dw(r,t)};function Toe(e){return parseFloat(e.trim())}const ZA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],JA=new Set(ZA),wN=e=>e===XA||e===Et,Poe=new Set(["x","y","z"]),Loe=ZA.filter(e=>!Poe.has(e));function Doe(e){const t=[];return Loe.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const ac={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Dw(t,"x"),y:(e,{transform:t})=>Dw(t,"y")};ac.translateX=ac.x;ac.translateY=ac.y;const _u=new Set;let Rw=!1,Mw=!1,Ow=!1;function M6(){if(Mw){const e=Array.from(_u).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const s=Doe(n);s.length&&(r.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>
1171{n.render();const s=r.get(n);s&&s.forEach(([o,i])=>{n.getValue(o)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Mw=!1,Rw=!1,_u.forEach(e=>e.complete(Ow)),_u.clear()}function O6(){_u.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mw=!0)})}function Roe(){Ow=!0,O6(),M6(),Ow=!1}class sC{constructor(t,r,n,s,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=s,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(_u.add(this),Rw||(Rw=!0,An.read(O6),An.resolveKeyframes(M6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:s}=this;if(t[0]===null){const o=s?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&r){const l=n.readValue(r,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),s&&o===void 0&&s.set(t[0])}Soe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),_u.delete(this)}cancel(){this.state==="scheduled"&&(_u.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Moe=e=>e.startsWith("--");function Ooe(e,t,r){Moe(t)?e.style.setProperty(t,r):e.style[t]=r}const Uoe=K5(()=>window.ScrollTimeline!==void 0),Qoe={};function Voe(e,t){const r=K5(e);return()=>Qoe[t]??r()}const U6=Voe(()=>{try{document.createElement("div").animate({opacity:0}
1171,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$f=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,_N={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$f([0,.65,.55,1]),circOut:$f([.55,0,1,.45]),backIn:$f([.31,.01,.66,-.59]),backOut:$f([.33,1.53,.69,.99])};function Q6(e,t){if(e)return typeof e=="function"?U6()?L6(e,t):"ease-out":C6(e)?$f(e):Array.isArray(e)?e.map(r=>Q6(r,t)||_N.easeOut):_N[e]}function Hoe(e,t,r,{delay:n=0,duration:s=300,repeat:o=0,repeatType:i="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:r};c&&(d.offset=c);const f=Q6(l,s);Array.isArray(f)&&(d.easing=f);const h={delay:n,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function V6(e){return typeof e=="function"&&"applyToOptions"in e}function zoe({type:e,...t}){return V6(e)&&U6()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class $oe extends nC{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:s,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,q5(typeof t.type!="string");const u=zoe(t);this.animation=Hoe(r,n,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const d=rC(s,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ooe(r,n,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Eo(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Eo(t)}get time(){return Eo(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pl(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Uoe()?(this.animation.timeline=t,So):r(this)}}const H6={anticipate:y6,backInOut:v6,circInOut:w6};function qoe(e){return e in H6}function Koe(e){typeof e.ease=="string"&&qoe(e.ease)&&(e.ease=H6[e.ease])}const c1=10;class Goe extends $oe{constructor(t){Koe(t),R6(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:s,element:o,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const l=new aC({...i,autoplay:!1}),c=Math.max(c1,js.now()-this.startTime),u=Fi(0,c1,c-c1);r.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const CN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cc.test(e)||e==="0")&&!e.startsWith("url("));function Woe(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Yoe(e,t,r,n){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],i=CN(s,t),l=CN(o,t);return!i||!l?!1:Woe(e)||(r==="spring"||V6(r))&&n}function Uw(e){e.duration=0,e.type="keyframes"}const Xoe=new Set(["opacity","clipPath","filter","transform"]),Zoe=K5(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Joe(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:s,damping:o,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Zoe()&&r&&Xoe.has(r)&&(r!=="transform"||!u)&&!c&&!n&&s!=="mirror"&&o!==0&&i!=="inertia"}const eie=40;class tie extends nC{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:i="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=js.now();const h={autoplay:t,delay:r,type:n,repeat:s,repeatDelay:o,repeatType:i,name:c,motionValue:u,element:d,...f},m=d?.KeyframeResolver||sC;this.keyframeResolver=new m(l,(g,p,x)=>this.onKeyframesResolved(g,p,h,!x),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,s){this.keyframeResolver=void 0;const{name:o,type:i,velocity:l,delay:c,isHandoff:u,onUpdate:d}=n;this.resolvedAt=js.now(),Yoe(t,o,i,l)||((wl.instantAnimations||!c)&&d?.(rC(t,n,r)),t[0]=t[t.length-1],Uw(n),n.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>eie?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},m=!u&&Joe(h)?new Goe({...h,element:h.motionValue.owner.current}):new aC(h);m.finished.then(()=>this.notifyFinished()).catch(So),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Roe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const rie=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nie(e){const t=rie.exec(e);if(!t)return[,];const[,r,n,s]=t;return[`--${r??n}`,s]}function z6(e,t,r=1){const[n,s]=nie(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const i=o.trim();return d6(i)?parseFloat(i):i}return X5(s)?z6(s,t,r+1):s}function oC(e,t){return e?.[t]??e?.default??e}const $6=new Set(["width","height","top","left","right","bottom",...ZA]),aie={test:e=>e==="auto",parse:e=>e},q6=e=>t=>t.test(e),K6=[XA,Et,Si,Yl,Wse,Gse,aie],jN=e=>K6.find(q6(e));function sie(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||f6(e):!0}const oie=new Set(["brightness","contrast","saturate","opacity"]);function iie(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Z5)||[];if(!n)return e;const s=r.replace(n,"");let o=oie.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+s+")"}const lie=/\b([a-z-]*)\(.*?\)/gu,Qw={...Cc,getAnimatableNone:e=>{const t=e.match(lie);return t?t.map(iie).join(" "):e}},EN={...XA,transform:Math.round},cie={rotate:Yl,rotateX:Yl,rotateY:Yl,rotateZ:Yl,scale:Hp,scaleX:Hp,scaleY:Hp,scaleZ:Hp,skew:Yl,skewX:Yl,skewY:Yl,distance:Et,translateX:Et,translateY:Et,translateZ:Et,x:Et,y:Et,z:Et,perspective:Et,transformPerspective:Et,opacity:zm,originX:mN,originY:mN,originZ:Et},iC={borderWidth:Et,borderTopWidth:Et,borderRightWidth:Et,borderBottomWidth:Et,borderLeftWidth:Et,borderRadius:Et,radius:Et,borderTopLeftRadius:Et,borderTopRightRadius:Et,borderBottomRightRadius:Et,borderBottomLeftRadius:Et,width:Et,maxWidth:Et,height:Et,maxHeight:Et,top:Et,right:Et,bottom:Et,left:Et,inset:Et,insetBlock:Et,insetBlockStart:Et,insetBlockEnd:Et,insetInline:Et,insetInlineStart:Et,insetInlineEnd:Et,padding:Et,paddingTop:Et,paddingRight:Et,paddingBottom:Et,paddingLeft:Et,paddingBlock:Et,paddingBlockStart:Et,paddingBlockEnd:Et,paddingInline:Et,paddingInlineStart:Et,paddingInlineEnd:Et,margin:Et,marginTop:Et,marginRight:Et,marginBottom:Et,marginLeft:Et,marginBlock:Et,marginBlockStart:Et,marginBlockEnd:Et,marginInline:Et,marginInlineStart:Et,marginInlineEnd:Et,backgroundPositionX:Et,backgroundPositionY:Et,...cie,zIndex:EN,fillOpacity:zm,strokeOpacity:zm,numOctaves:EN},uie={...iC,color:oa,backgroundColor:oa,outlineColor:oa,fill:oa,stroke:oa,borderColor:oa,borderTopColor:oa,borderRightColor:oa,borderBottomColor:oa,borderLeftColor:oa,filter:Qw,WebkitFilter:Qw},G6=e=>uie[e];function W6(e,t){let r=G6(e);return r!==Qw&&(r=Cc),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
1171const die=new Set(["auto","none","0"]);function Aie(e,t,r){let n=0,s;for(;n<e.length&&!s;){const o=e[n];typeof o=="string"&&!die.has(o)&&$m(o).values.length&&(s=e[n]),n++}if(s&&r)for(const o of t)e[o]=W6(r,s)}class fie extends sC{constructor(t,r,n,s,o){super(t,r,n,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),X5(f))){const h=z6(f,r.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!$6.has(n)||t.length!==2)return;const[s,o]=t,i=jN(s),l=jN(o),c=fN(s),u=fN(o);if(c!==u&&ac[n]){this.needsMeasurement=!0;return}if(i!==l)if(wN(i)&&wN(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else ac[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let s=0;s<t.length;s++)(t[s]===null||sie(t[s]))&&n.push(s);n.length&&Aie(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ac[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&t.getValue(n,s).jump(s,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=ac[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
1171h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Y6(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const X6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Z6(e){return A6(e)&&"offsetHeight"in e}const BN=30,mie=e=>!isNaN(parseFloat(e));class hie{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const s=js.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=js.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mie(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new G5);const n=this.events[t].add(r);return t==="change"?()=>{n(),An.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=js.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>BN)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,BN);return m6(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jA(e,t){return new hie(e,t)}const{schedule:lC}=j6(queueMicrotask,!1),Go={x:!1,y:!1};function J6(){return Go.x||Go.y}function pie(e){return e==="x"||e==="y"?Go[e]?null:(Go[e]=!0,()=>{Go[e]=!1}):Go.x||Go.y?null:(Go.x=Go.y=!0,()=>{Go.x=Go.y=!1})}function eM(e,t){const r=Y6(e),n=new AbortController,s={passive:!0,...t,signal:n.signal};return[r,s,()=>n.abort()]}function NN(e){return!(e.pointerType==="touch"||J6())}function gie(e,t,r={}){const[n,s,o]=eM(e,r),i=l=>{if(!NN(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{NN(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return n.forEach(l=>{l.addEventListener("pointerenter",i,s)}),o}const tM=(e,t)=>t?e===t?!0:tM(e,t.parentElement):!1,cC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xie=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rM(e){return xie.has(e.tagName)||e.isContentEditable===!0}const n0=new WeakSet;function SN(e){return t=>{t.key==="Enter"&&e(t)}}function u1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vie=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=SN(()=>{if(n0.has(r))return;u1(r,"down");const s=SN(()=>{u1(r,"up")}),o=()=>u1(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function kN(e){return cC(e)&&!J6()}function yie(e,t,r={}){const[n,s,o]=eM(e,r),i=l=>{const c=l.currentTarget;if(!kN(l))return;n0.add(c);const u=t(c,l),d=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),n0.has(c)&&n0.delete(c),kN(m)&&typeof u=="function"&&u(m,{success:g})},f=m=>{d(m,c===window||c===document||r.useGlobalTarget||tM(c,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};
1171return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",i,s),Z6(l)&&(l.addEventListener("focus",u=>vie(u,s)),!rM(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function nM(e){return A6(e)&&"ownerSVGElement"in e}function bie(e){return nM(e)&&e.tagName==="svg"}const is=e=>!!(e&&e.getVelocity),wie=[...K6,oa,Cc],_ie=e=>wie.find(q6(e)),uC=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function IN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cie(...e){return t=>{let r=!1;const n=e.map(s=>{const o=IN(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():IN(e[s],null)}}}}function jie(...e){return A.useCallback(Cie(...e),e)}class Eie extends A.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,s=Z6(n)&&n.offsetWidth||0,o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft,o.right=s-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Bie({children:e,isPresent:t,anchorX:r,root:n}){const s=A.useId(),o=A.useRef(null),i=A.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=A.useContext(uC),c=e.props?.ref??e?.ref,u=jie(o,c);return A.useInsertionEffect(()=>{const{width:d,height:f,top:h,left:m,right:g}=i.current;if(t||!o.current||!d||!f)return;const p=r==="left"?`left: ${m}`:`right: ${g}`;o.current.dataset.motionPopId=s;const x=document.createElement("style");l&&(x.nonce=l);const y=n??document.head;return y.appendChild(x),x.sheet&&x.sheet.insertRule(` 1172 [data-motion-pop-id="${s}"] { 1173 position: absolute !important; 1174 width: ${d}px !important; 1175 height: ${f}px !important; 1176 ${p}px !important; 1177 top: ${h}px !important; 1178 } 1179 `),()=>{y.contains(x)&&y.removeChild(x)}},[t]),a.jsx(Eie,{isPresent:t,childRef:o,sizeRef:i,children:A.cloneElement(e,{ref:u})})}const Nie=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:o,mode:i,anchorX:l,root:c})=>{const u=V5(Sie),d=A.useId();let f=!0,h=A.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:s,onExitComplete:m=>{u.set(m,!0);for(const g of u.values())if(!g)return;n&&n()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[r,u,n]);return o&&f&&(h={...h}),A.useMemo(()=>{u.forEach((m,g)=>u.set(g,!1))},[r]),A.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),i==="popLayout"&&(e=a.jsx(Bie,{isPresent:r,anchorX:l,root:c,children:e})),a.jsx(sv.Provider,{value:h,children:e})};function Sie(){return new Map}function aM(e=!0){const t=A.useContext(sv);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:s}=t,o=A.useId();A.useEffect(()=>{if(e)return s(o)},[e]);const i=A.useCallback(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,i]:[!0]}const zp=e=>e.key||"";function FN(e){const t=[];return A.Children.forEach(e,r=>{A.isValidElement(r)&&t.push(r)}),t}const Vw=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:o="sync",propagate:i=!1,anchorX:l="left",root:c})=>{const[u,d]=aM(i),f=A.useMemo(()=>FN(e),[e]),h=i&&!u?[]:f.map(zp),m=A.useRef(!0),g=A.useRef(f),p=V5(()=>new Map),x=A.useRef(new Set),[y,b]=A.useState(f),[j,C]=A.useState(f);u6(()=>{m.current=!1,g.current=f;for(let P=0;P<j.length;P++){const I=zp(j[P]);h.includes(I)?(p.delete(I),x.current.delete(I)):p.get(I)!==!0&&p.set(I,!1)}},[j,h.length,h.join("-")]);const T=[];if(f!==y){let P=[...f];for(let I=0;I<j.length;I++){const E=j[I],O=zp(E);h.includes(O)||(P.splice(I,0,E),T.push(E))}return o==="wait"&&T.length&&(P=T),C(FN(P)),b(f),null}const{forceRender:L}=A.useContext(Q5);return a.jsx(a.Fragment,{children:j.map(P=>{const I=zp(P),E=i&&!u?!1:f===j||h.includes(I),O=()=>{if(x.current.has(I))return;if(x.current.add(I),p.has(I))p.set(I,!0);else return;let k=!0;p.forEach(D=>{D||(k=!1)}),k&&(L?.(),C(g.current),i&&d?.(),n&&n())};return a.jsx(Nie,{isPresent:E,initial:!m.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,root:c,onExitComplete:E?void 0:O,anchorX:l,children:P},I)})})},sM=A.createContext({strict:!1}),TN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},EA={};for(const e in TN)EA[e]={isEnabled:t=>TN[e].some(r=>!!t[r])};function kie(e){for(const t in e)EA[t]={...EA[t],...e[t]}}const Iie=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Q0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Iie.has(e)}let oM=e=>!Q0(e);function Fie(e){typeof e=="function"&&(oM=t=>t.startsWith("on")?!Q0(t):e(t))}try{Fie(require("@emotion/is-prop-valid").default)}catch{}function Tie(e,t,r){const n={};for(const s in e)s==="values"&&typeof e.values=="object"||(oM(s)||r===!0&&Q0(s)||!t&&!Q0(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}const ov=A.createContext({});function iv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qm(e){return typeof e=="string"||Array.isArray(e)}const dC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],AC=["initial",...dC];function lv(e){return iv(e.animate)||AC.some(t=>qm(e[t]))}function iM(e){return!!(lv(e)||e.variants)}function Pie(e,t){if(lv(e)){const{initial:r,animate:n}=e;return{initial:r===!1||qm(r)?r:void 0,animate:qm(n)?n:void 0}}return e.inherit!==!1?t:{}}function Lie(e){const{initial:t,animate:r}=Pie(e,A.useContext(ov));return A.useMemo(()=>({initial:t,animate:r}),[PN(t),PN(r)])}function PN(e){return Array.isArray(e)?e.join(" "):e}function LN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ef={correct:(e,t)=>
1179{if(!t.target)return e;if(typeof e=="string")if(Et.test(e))e=parseFloat(e);else return e;const r=LN(e,t.target.x),n=LN(e,t.target.y);return`${r}% ${n}%`}},Die={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,s=Cc.parse(e);if(s.length>5)return n;const o=Cc.createTransformer(e),i=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,c=r.y.scale*t.y;s[0+i]/=l,s[1+i]/=c;const u=Nn(l,c,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),o(s)}},Hw={borderRadius:{...Ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ef,borderTopRightRadius:Ef,borderBottomLeftRadius:Ef,borderBottomRightRadius:Ef,boxShadow:Die};function lM(e,{layout:t,layoutId:r}){return JA.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Hw[e]||e==="opacity")}const Rie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mie=ZA.length;function Oie(e,t,r){let n="",s=!0;for(let o=0;o<Mie;o++){const i=ZA[o],l=e[i];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(i.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||r){const u=X6(l,iC[i]);if(!c){s=!1;const d=Rie[i]||i;n+=`${d}(${u}) `}r&&(t[i]=u)}}return n=n.trim(),r?n=r(t,s?"":n):s&&(n="none"),n}function fC(e,t,r){const{style:n,vars:s,transformOrigin:o}=e;let i=!1,l=!1;for(const c in t){const u=t[c];if(JA.has(c)){i=!0;continue}else if(B6(c)){s[c]=u;continue}else{const d=X6(u,iC[c]);c.startsWith("origin")?(l=!0,o[c]=d):n[c]=d}}if(t.transform||(i||r?n.transform=Oie(t,e.transform,r):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=o;n.transformOrigin=`${c} ${u} ${d}`}}const mC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cM(e,t,r){for(const n in t)!is(t[n])&&!lM(n,r)&&(e[n]=t[n])}function Uie({transformTemplate:e},t){return A.useMemo(()=>{const r=mC();return fC(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Qie(e,t){const r=e.style||{},n={};return cM(n,r,e),Object.assign(n,Uie(e,t)),n}function Vie(e,t){const r={},n=Qie(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Hie={offset:"stroke-dashoffset",array:"stroke-dasharray"},zie={offset:"strokeDashoffset",array:"strokeDasharray"};function $ie(e,t,r=1,n=0,s=!0){e.pathLength=1;const o=s?Hie:zie;e[o.offset]=Et.transform(-n);const i=Et.transform(t),l=Et.transform(r);e[o.array]=`${i} ${l}`}const qie=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uM(e,{attrX:t,attrY:r,attrScale:n,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...l},c,u,d){if(fC(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(const m of qie)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),s!==void 0&&$ie(f,s,o,i,!1)}const dM=()=>({...mC(),attrs:{}}),AM=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Kie(e,t,r,n){const s=A.useMemo(()=>{const o=dM();return uM(o,t,AM(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};cM(o,e.style,e),s.style={...o,...s.style}}return s}const Gie=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function hC(e){return typeof e!="string"||e.includes("-")?!1:!!(Gie.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wie(e,t,r,{latestValues:n},s,o=!1,i){const c=(i??hC(e)?Kie:Vie)(t,n,s,e),u=Tie(t,typeof e=="string",o),d=e!==A.Fragment?{...u,...c,ref:r}:{},{children:f}=t,h=A.useMemo(()=>is(f)?f.get():f,[f]);return A.createElement(e,{...d,children:h})}function DN(e){const t=[{},{}];
1179return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function pC(e,t,r,n){if(typeof t=="function"){const[s,o]=DN(n);t=t(r!==void 0?r:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=DN(n);t=t(r!==void 0?r:e.custom,s,o)}return t}function a0(e){return is(e)?e.get():e}function Yie({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,s){return{latestValues:Xie(r,n,s,e),renderState:t()}}function Xie(e,t,r,n){const s={},o=n(e,{});for(const h in o)s[h]=a0(o[h]);let{initial:i,animate:l}=e;const c=lv(e),u=iM(e);t&&u&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),l===void 0&&(l=t.animate));let d=r?r.initial===!1:!1;d=d||i===!1;const f=d?l:i;if(f&&typeof f!="boolean"&&!iv(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const g=pC(e,h[m]);if(g){const{transitionEnd:p,transition:x,...y}=g;for(const b in y){let j=y[b];if(Array.isArray(j)){const C=d?j.length-1:0;j=j[C]}j!==null&&(s[b]=j)}for(const b in p)s[b]=p[b]}}}return s}const fM=e=>(t,r)=>{const n=A.useContext(ov),s=A.useContext(sv),o=()=>Yie(e,t,n,s);return r?o():V5(o)};function gC(e,t,r){const{style:n}=e,s={};for(const o in n)(is(n[o])||t.style&&is(t.style[o])||lM(o,e)||r?.getValue(o)?.liveStyle!==void 0)&&(s[o]=n[o]);return s}const Zie=fM({scrapeMotionValuesFromProps:gC,createRenderState:mC});function mM(e,t,r){const n=gC(e,t,r);for(const s in e)if(is(e[s])||is(t[s])){const o=ZA.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[o]=e[s]}return n}const Jie=fM({scrapeMotionValuesFromProps:mM,createRenderState:dM}),ele=Symbol.for("motionComponentSymbol");function tle(e,t,r){const n=A.useRef(r);A.useInsertionEffect(()=>{n.current=r});const s=A.useRef(null);return A.useCallback(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());const i=n.current;if(typeof i=="function")if(o){const l=i(o);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):i(o);else i&&(i.current=o)},[t])}const xC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rle="framerAppearId",hM="data-"+xC(rle),pM=A.createContext({});function qf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nle(e,t,r,n,s,o){const{visualElement:i}=A.useContext(ov),l=A.useContext(sM),c=A.useContext(sv),u=A.useContext(uC).reducedMotion,d=A.useRef(null);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:i,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,isSVG:o}));const f=d.current,h=A.useContext(pM);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&ale(d.current,r,s,h);const m=A.useRef(!1);A.useInsertionEffect(()=>{f&&m.current&&f.update(r,c)});const g=r[hM],p=A.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return u6(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),p.current&&f.animationState&&f.animationState.animateChanges())}),A.useEffect(()=>{f&&(!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),p.current=!1),f.enteringChildren=void 0)}),f}function ale(e,t,r,n){const{layoutId:s,layout:o,drag:i,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:gM(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!i||l&&qf(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:c,layoutRoot:u})}function gM(e){if(e)return e.options.allowProjection!==!1?e.projection:gM(e.parent)}function d1(e,{forwardMotionProps:t=!1,type:r}={},n,s){n&&kie(n);const o=r?r==="svg":hC(e),i=o?Jie:Zie;function l(u,d){let f;const h={...A.useContext(uC),...u,layoutId:sle(u)},{isStatic:m}=h,g=Lie(u),p=i(u,m);if(!m&&H5){ole();const x=ile(h);f=x.MeasureLayout,g.visualElement=nle(e,p,h,s,x.ProjectionNode,o)}return a.jsxs(ov.Provider,{value:g,children:[f&&g.visualElement?a.jsx(f,{visualElement:g.visualElement,...h}):null,Wie(e,u,tle(p,g.visualElement,d),p,m,t,o)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=A.forwardRef(l);return c[ele]=e,c}function sle({layoutId:e}){const t=A.useContext(Q5).id;return t&&e!==void 0?t+"-"+e:e}function ole(e,t){A.useContext(sM).strict}function ile(e){const{drag:t,layout:r}=EA;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
vendor: 4,450 bytes, line 1179
1179function lle(e,t){if(typeof Proxy>"u")return d1;const r=new Map,n=(o,i)=>d1(o,i,e,t),s=(o,i)=>n(o,i);return new Proxy(s,{get:(o,i)=>i==="create"?n:(r.has(i)||r.set(i,d1(i,void 0,e,t)),r.get(i))})}function xM({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function cle({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ule(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function A1(e){return e===void 0||e===1}function zw({scale:e,scaleX:t,scaleY:r}){return!A1(e)||!A1(t)||!A1(r)}function uu(e){return zw(e)||vM(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vM(e){return RN(e.x)||RN(e.y)}function RN(e){return e&&e!=="0%"}function V0(e,t,r){const n=e-r,s=t*n;return r+s}function MN(e,t,r,n,s){return s!==void 0&&(e=V0(e,s,n)),V0(e,r,n)+t}function $w(e,t=0,r=1,n,s){e.min=MN(e.min,t,r,n,s),e.max=MN(e.max,t,r,n,s)}function yM(e,{x:t,y:r}){$w(e.x,t.translate,t.scale,t.originPoint),$w(e.y,r.translate,r.scale,r.originPoint)}const ON=.999999999999,UN=1.0000000000001;function dle(e,t,r,n=!1){const s=r.length;if(!s)return;t.x=t.y=1;let o,i;for(let l=0;l<s;l++){o=r[l],i=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Wd(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,yM(e,i)),n&&uu(o.latestValues)&&Wd(e,o.latestValues))}t.x<UN&&t.x>ON&&(t.x=1),t.y<UN&&t.y>ON&&(t.y=1)}function Gd(e,t){e.min=e.min+t,e.max=e.max+t}function QN(e,t,r,n,s=.5){const o=Nn(e.min,e.max,s);$w(e,t,r,o,n)}function Wd(e,t){QN(e.x,t.x,t.scaleX,t.scale,t.originX),QN(e.y,t.y,t.scaleY,t.scale,t.originY)}function bM(e,t){return xM(ule(e.getBoundingClientRect(),t))}function Ale(e,t,r){const n=bM(e,r),{scroll:s}=t;return s&&(Gd(n.x,s.offset.x),Gd(n.y,s.offset.y)),n}const VN=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yd=()=>({x:VN(),y:VN()}),HN=()=>({min:0,max:0}),pa=()=>({x:HN(),y:HN()}),qw={current:null},wM={current:!1};function fle(){if(wM.current=!0,!!H5)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qw.current=e.matches;e.addEventListener("change",t),t()}else qw.current=!1}const mle=new WeakMap;function hle(e,t,r){for(const n in t){const s=t[n],o=r[n];if(is(s))e.addValue(n,s);else if(is(o))e.addValue(n,jA(s,{owner:e}));else if(o!==s)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(n);e.addValue(n,jA(i!==void 0?i:s,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const zN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ple{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:o,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=js.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,An.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=lv(r),this.isVariantNode=iM(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&is(m)&&m.set(c[h])}}mount(t){this.current=t,mle.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1179h((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wM.current||fle(),this.shouldReduceMotion=qw.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_c(this.notifyUpdate),_c(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=JA.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&An.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),o&&o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in EA){const r=EA[t];if(!r)continue;const{isEnabled:n,Feature:s}=r;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pa()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<zN.length;n++){const s=zN[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,i=t[o];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=hle(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=jA(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(d6(n)||f6(n))?n=parseFloat(n):!_ie(n)&&Cc.test(r)&&(n=W6(t,r)),this.setBaseTarget(t,is(n)?n.get():n)),is(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=pC(this.props,r,this.presenceContext?.custom);o&&(n=o[t])}if(r&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!is(s)?s:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new G5),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){lC.render(this.render)}}class _M extends ple{constructor(){super(...arguments),this.KeyframeResolver=fie}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;is(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function CM(e,{style:t,vars:r},n,s){const o=e.style;let i;for(i in t)o[i]=t[i];s?.applyProjectionStyles(o,n);for(i in r)o.setProperty(i,r[i])}function gle(e){return window.getComputedStyle(e)}class xle extends _M{constructor(){super(...arguments),this.type="html",this.renderInstance=CM}readValueFromInstance(t,r){if(JA.has(r))return this.projection?.isProjecting?Lw(r):Foe(t,r);{const n=gle(t),s=(B6(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:r}){return bM(t,r)}build(t,r,n){fC(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return gC(t,r,n)}}const jM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vle(e,t,r,n){CM(e,t,void 0,n);for(const s in t.attrs)e.setAttribute(jM.has(s)?s:xC(s),t.attrs[s])}class yle extends _M{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pa}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(JA.has(r)){const n=G6(r);return n&&n.default||0}return r=jM.has(r)?r:xC(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return mM(t,r,n)}
1179build(t,r,n){uM(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,s){vle(t,r,n,s)}mount(t){this.isSVGTag=AM(t.tagName),super.mount(t)}}const ble=(e,t)=>t.isSVG??hC(e)?new yle(t):new xle(t,{allowProjection:e!==A.Fragment});function oA(e,t,r){const n=e.getProps();return pC(n,t,r!==void 0?r:n.custom,e)}const Kw=e=>Array.isArray(e);function wle(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,jA(r))}function _le(e){return Kw(e)?e[e.length-1]||0:e}function Cle(e,t){const r=oA(e,t);let{transitionEnd:n={},transition:s={},...o}=r||{};o={...o,...n};for(const i in o){const l=_le(o[i]);wle(e,i,l)}}function jle(e){return!!(is(e)&&e.add)}function Gw(e,t){const r=e.getValue("willChange");if(jle(r))return r.add(t);if(!r&&wl.WillChange){const n=new wl.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function EM(e){return e.props[hM]}const Ele=e=>e!==null;function Ble(e,{repeat:t,repeatType:r="loop"},n){const s=e.filter(Ele),o=t&&r!=="loop"&&t%2===1?0:s.length-1;return s[o]}const Nle={type:"spring",stiffness:500,damping:25,restSpeed:10},Sle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kle={type:"keyframes",duration:.8},Ile={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fle=(e,{keyframes:t})=>t.length>2?kle:JA.has(e)?e.startsWith("scale")?Sle(t[1]):Nle:Ile;function Tle({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const vC=(e,t,r,n={},s,o)=>i=>{const l=oC(n,e)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-pl(c);const d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{i(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:s};Tle(l)||Object.assign(d,Fle(e,d)),d.duration&&(d.duration=pl(d.duration)),d.repeatDelay&&(d.repeatDelay=pl(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Uw(d),d.delay===0&&(f=!0)),(wl.instantAnimations||wl.skipAnimations)&&(f=!0,Uw(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!o&&t.get()!==void 0){const h=Ble(d.keyframes,l);if(h!==void 0){An.update(()=>{d.onUpdate(h),d.onComplete()});return}}return l.isSync?new aC(d):new tie(d)};function Ple({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function BM(e,t,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...l}=t;n&&(o=n);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,e.latestValues[d]??null),h=l[d];if(h===void 0||u&&Ple(u,d))continue;const m={delay:r,...oC(o||{},d)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const y=EM(e);if(y){const b=window.MotionHandoffAnimation(y,d,An);b!==null&&(m.startTime=b,p=!0)}}Gw(e,d),f.start(vC(d,f,h,e.shouldReduceMotion&&$6.has(d)?{type:!1}:m,e,p));const x=f.animation;x&&c.push(x)}return i&&Promise.all(c).then(()=>{An.update(()=>{i&&Cle(e,i)})}),c}function NM(e,t,r,n=0,s=1){const o=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,l=(i-1)*n;return typeof r=="function"?r(o,i):s===1?o*n:l-o*n}function Ww(e,t,r={}){const n=oA(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const o=n?()=>Promise.all(BM(e,n,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return Lle(e,t,c,u,d,f,r)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[o,i]:[i,o];return c().then(()=>u())}else return Promise.all([o(),i(r.delay)])}function Lle(e,t,r=0,n=0,s=0,o=1,i){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Ww(c,t,{...i,delay:r+(typeof n=="function"?0:n)+NM(e.variantChildren,c,n,s,o)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Dle(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const s=t.map(o=>Ww(e,o,r));n=Promise.all(s)}else if(typeof t=="string")n=Ww(e,t,r);else{const s=typeof t=="function"?oA(e,t,r.custom):t;n=Promise.all(BM(e,s,r))}return n.then(()=>
1179{e.notify("AnimationComplete",t)})}function SM(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const Rle=AC.length;function kM(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?kM(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<Rle;r++){const n=AC[r],s=e.props[n];(qm(s)||s===!1)&&(t[n]=s)}return t}const Mle=[...dC].reverse(),Ole=dC.length;function Ule(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Dle(e,r,n)))}function Qle(e){let t=Ule(e),r=$N(),n=!0;const s=c=>(u,d)=>{const f=oA(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function o(c){t=c(e)}function i(c){const{props:u}=e,d=kM(e.parent)||{},f=[],h=new Set;let m={},g=1/0;for(let x=0;x<Ole;x++){const y=Mle[x],b=r[y],j=u[y]!==void 0?u[y]:d[y],C=qm(j),T=y===c?b.isActive:null;T===!1&&(g=x);let L=j===d[y]&&j!==u[y]&&C;if(L&&n&&e.manuallyAnimateOnMount&&(L=!1),b.protectedKeys={...m},!b.isActive&&T===null||!j&&!b.prevProp||iv(j)||typeof j=="boolean")continue;const P=Vle(b.prevProp,j);let I=P||y===c&&b.isActive&&!L&&C||x>g&&C,E=!1;const O=Array.isArray(j)?j:[j];let k=O.reduce(s(y),{});T===!1&&(k={});const{prevResolvedValues:D={}}=b,H={...D,...k},U=V=>{I=!0,h.has(V)&&(E=!0,h.delete(V)),b.needsAnimating[V]=!0;const q=e.getValue(V);q&&(q.liveStyle=!1)};for(const V in H){const q=k[V],G=D[V];if(m.hasOwnProperty(V))continue;let Ae=!1;Kw(q)&&Kw(G)?Ae=!SM(q,G):Ae=q!==G,Ae?q!=null?U(V):h.add(V):q!==void 0&&h.has(V)?U(V):b.protectedKeys[V]=!0}b.prevProp=j,b.prevResolvedValues=k,b.isActive&&(m={...m,...k}),n&&e.blockInitialAnimation&&(I=!1);const ee=L&&P;I&&(!ee||E)&&f.push(...O.map(V=>{const q={type:y};if(typeof V=="string"&&n&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,Ae=oA(G,V);if(G.enteringChildren&&Ae){const{delayChildren:se}=Ae.transition||{};q.delay=NM(G.enteringChildren,e,se)}}return{animation:V,options:q}}))}if(h.size){const x={};if(typeof u.initial!="boolean"){const y=oA(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(x.transition=y.transition)}h.forEach(y=>{const b=e.getBaseTarget(y),j=e.getValue(y);j&&(j.liveStyle=!0),x[y]=b??null}),f.push({animation:x})}let p=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function l(c,u){if(r[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),r[c].isActive=u;const d=i(c);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=$N()}}}function Vle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!SM(t,e):!1}function ru(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $N(){return{animate:ru(!0),whileInView:ru(),whileHover:ru(),whileTap:ru(),whileDrag:ru(),whileFocus:ru(),exit:ru()}}class Fc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Hle extends Fc{constructor(t){super(t),t.animationState||(t.animationState=Qle(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();iv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let zle=0;class $le extends Fc{constructor(){super(...arguments),this.id=zle++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const qle={animation:{Feature:Hle},exit:{Feature:$le}};function Km(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Oh(e){return{point:{x:e.pageX,y:e.pageY}}}const Kle=e=>t=>cC(t)&&e(t,Oh(t));function dm(e,t,r,n){return Km(e,t,Kle(r),n)}const IM=1e-4,Gle=1-IM,Wle=1+IM,FM=.01,Yle=0-FM,Xle=0+FM;function Es(e){return e.max-e.min}function Zle(e,t,r){return Math.abs(e-t)<=r}function qN(e,t,r,n=.5){e.origin=n,e.originPoint=Nn(t.min,t.max,e.origin),e.scale=Es(r)/Es(t),e.translate=Nn(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Gle&&e.scale<=Wle||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yle&&e.translate<=Xle||isNaN(e.translate))&&(e.translate=0)}function Am(e,t,r,n){qN(e.x,t.x,r.x,n?n.originX:void 0),qN(e.y,t.y,r.y,n?n.originY:void 0)}function KN(e,t,r){e.min=r.min+t.min,e.max=e.min+Es(t)}function Jle(e,t,r){KN(e.x,t.x,r.x),KN(e.y,t.y,r.y)}function GN(e,t,r){e.min=t.min-r.min,e.max=e.min+Es(t)}function H0(e,t,r){GN(e.x,t.x,r.x),GN(e.y,t.y,r.y)}function wo(e){return[e("x"),e("y")]}const TM=({current:e})=>e?e.ownerDocument.defaultView:null,WN=(e,t)=>Math.abs(e-t);function ece(e,t){const r=WN(e.x,t.x),n=WN(e.y,t.y);return Math.sqrt(r**2+n**2)}const YN=new Set(["auto","scroll"]);class PM{constructor(t,r,{transformPagePoint:n,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=m1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,p=ece(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!p)return;const{point:x}=m,{timestamp:y}=Pa;this.history.push({...x,timestamp:y}
1179);const{onStart:b,onMove:j}=this.handlers;g||(b&&b(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=f1(g,this.transformPagePoint),An.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=m1(m.type==="pointercancel"?this.lastMoveEventInfo:f1(g,this.transformPagePoint),this.history);this.startEvent&&p&&p(m,b),x&&x(m,b)},!cC(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=s||window;const c=Oh(t),u=f1(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Pa;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=r;h&&h(t,m1(u,this.history)),this.removeListeners=Dh(dm(this.contextWindow,"pointermove",this.handlePointerMove),dm(this.contextWindow,"pointerup",this.handlePointerUp),dm(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(YN.has(n.overflowX)||YN.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,s=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-r.x,y:s.y-r.y};o.x===0&&o.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),An.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_c(this.updatePoint)}}function f1(e,t){return t?{point:t(e.point)}:e}function XN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function m1({point:e},t){return{point:e,delta:XN(e,LM(t)),offset:XN(e,tce(t)),velocity:rce(t,.1)}}function tce(e){return e[0]}function LM(e){return e[e.length-1]}function rce(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const s=LM(e);for(;r>=0&&(n=e[r],!(s.timestamp-n.timestamp>pl(t)));)r--;if(!n)return{x:0,y:0};const o=Eo(s.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function nce(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Nn(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Nn(r,e,n.max):Math.min(e,r)),e}function ZN(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ace(e,{top:t,left:r,bottom:n,right:s}){return{x:ZN(e.x,r,s),y:ZN(e.y,t,n)}}function JN(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function sce(e,t){return{x:JN(e.x,t.x),y:JN(e.y,t.y)}}function oce(e,t){let r=.5;const n=Es(e),s=Es(t);return s>n?r=Hm(t.min,t.max-n,e.min):n>s&&(r=Hm(e.min,e.max-s,t.min)),Fi(0,1,r)}function ice(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Yw=.35;function lce(e=Yw){return e===!1?e=0:e===!0&&(e=Yw),{x:e4(e,"left","right"),y:e4(e,"top","bottom")}}function e4(e,t,r){return{min:t4(e,t),max:t4(e,r)}}function t4(e,t){return typeof e=="number"?e:e[t]||0}const cce=new WeakMap;class uce{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pa(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=f=>{r?(this.stopAnimation(),this.snapToCursor(Oh(f).point)):this.pauseAnimation()},i=(f,h)=>{this.stopAnimation();const{drag:m,dragPropagation:g,onDragStart:p}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pie(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wo(y=>{let b=this.getAxisMotionValue(y).get()||0;if(Si.test(b)){const{projection:j}=this.visualElement;if(j&&j.layout){const C=j.layout.layoutBox[y];C&&(b=Es(C)*(parseFloat(b)/100))}}this.originPoint[y]=b}),p&&An.postRender(()=>p(f,h)),Gw(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:p,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=dce(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),x&&x(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>wo(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new PM(t,{onSessionStart:o,onStart:i,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:TM(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,s=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&An.postRender(()=>l(n,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:s}=this.getProps();if(!n||!$p(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=nce(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&qf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ace(n.layoutBox,t):this.constraints=!1,this.elastic=lce(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wo(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ice(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!qf(t))return!1;const n=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Ale(n,s.root,this.visualElement.getTransformPagePoint());let i=sce(s.layout.layoutBox,o);if(r){const l=r(cle(i));this.hasMutatedConstraints=!!l,l&&(i=xM(l))}return i}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=wo(d=>{if(!$p(d,r,this.currentDirection))return;let f=c&&c[d]||{};i&&(f={min:0,max:0});const h=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:n?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);
vendor: 8,563 bytes, line 1179
1179return Gw(this.visualElement,t),n.start(vC(t,n,0,r,this.visualElement,!1))}stopAnimation(){wo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){wo(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){wo(r=>{const{drag:n}=this.getProps();if(!$p(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(r);if(s&&s.layout){const{min:i,max:l}=s.layout.layoutBox[r],c=o.get()||0;o.set(t[r]-Nn(i,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!qf(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};wo(i=>{const l=this.getAxisMotionValue(i);if(l&&this.constraints!==!1){const c=l.get();s[i]=oce({min:c,max:c},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),wo(i=>{if(!$p(i,t,null))return;const l=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];l.set(Nn(c,u,s[i]))})}addListeners(){if(!this.visualElement.current)return;cce.set(this.visualElement,this);const t=this.visualElement.current,r=dm(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&!rM(c.target)&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();qf(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),An.read(n);const i=Km(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(wo(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{i(),r(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=Yw,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:l}}}function $p(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function dce(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Ace extends Fc{constructor(t){super(t),this.removeGroupControls=So,this.removeListeners=So,this.controls=new uce(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||So}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const r4=e=>(t,r)=>{e&&An.postRender(()=>e(t,r))};class fce extends Fc{constructor(){super(...arguments),this.removePointerDownListener=So}onPointerDown(t){this.session=new PM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:TM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:r4(t),onStart:r4(r),onMove:n,onEnd:(o,i)=>{delete this.session,s&&An.postRender(()=>s(o,i))}}}mount(){this.removePointerDownListener=dm(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const s0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let h1=!1;class mce extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),n&&n.register&&s&&n.register(o),h1&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),s0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:s,isPresent:o}=this.props,{projection:i}=n;return i&&(i.isPresent=o,h1=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||An.postRender(()=>{const l=i.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=t;h1=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function DM(e){const[t,r]=aM(),n=A.useContext(Q5);return a.jsx(mce,{...e,layoutGroup:n,switchLayoutGroup:A.useContext(pM),isPresent:t,safeToRemove:r})}function hce(e,t,r){const n=is(e)?e:jA(e);return n.start(vC("",n,t,r)),n.animation}const pce=(e,t)=>e.depth-t.depth;class gce{constructor(){this.children=[],this.isDirty=!1}add(t){z5(this.children,t),this.isDirty=!0}remove(t){$5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pce),this.isDirty=!1,this.children.forEach(t)}}function xce(e,t){const r=js.now(),n=({timestamp:s})=>{const o=s-r;o>=t&&(_c(n),e(o-t))};return An.setup(n,!0),()=>_c(n)}const RM=["TopLeft","TopRight","BottomLeft","BottomRight"],vce=RM.length,n4=e=>typeof e=="string"?parseFloat(e):e,a4=e=>typeof e=="number"||Et.test(e);function yce(e,t,r,n,s,o){s?(e.opacity=Nn(0,r.opacity??1,bce(n)),e.opacityExit=Nn(t.opacity??1,0,wce(n))):o&&(e.opacity=Nn(t.opacity??1,r.opacity??1,n));for(let i=0;i<vce;i++){const l=`border${RM[i]}Radius`;let c=s4(t,l),u=s4(r,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||a4(c)===a4(u)?(e[l]=Math.max(Nn(n4(c),n4(u),n),0),(Si.test(u)||Si.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||r.rotate)&&(e.rotate=Nn(t.rotate||0,r.rotate||0,n))}function s4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const bce=MM(0,.5,b6),wce=MM(.5,.95,So);function MM(e,t,r){return n=>n<e?0:n>t?1:r(Hm(e,t,n))}function o4(e,t){e.min=t.min,e.max=t.max}function zo(e,t){o4(e.x,t.x),o4(e.y,t.y)}function i4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function l4(e,t,r,n,s){return e-=t,e=V0(e,1/r,n),s!==void 0&&(e=V0(e,1/s,n)),e}function _ce(e,t=0,r=1,n=.5,s,o=e,i=e){if(Si.test(t)&&(t=parseFloat(t),t=Nn(i.min,i.max,t/100)-i.min),typeof t!="number")return;let l=Nn(o.min,o.max,n);e===o&&(l-=t),e.min=l4(e.min,t,r,l,s),e.max=l4(e.max,t,r,l,s)}function c4(e,t,[r,n,s],o,i){_ce(e,t[r],t[n],t[s],t.scale,o,i)}const Cce=["x","scaleX","originX"],jce=["y","scaleY","originY"];function u4(e,t,r,n){c4(e.x,t,Cce,r?r.x:void 0,n?n.x:void 0),c4(e.y,t,jce,r?r.y:void 0,n?n.y:void 0)}function d4(e){return e.translate===0&&e.scale===1}function OM(e){return d4(e.x)&&d4(e.y)}function A4(e,t){return e.min===t.min&&e.max===t.max}function Ece(e,t){return A4(e.x,t.x)&&A4(e.y,t.y)}function f4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function UM(e,t){return f4(e.x,t.x)&&f4(e.y,t.y)}function m4(e){return Es(e.x)/Es(e.y)}function h4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Bce{constructor(){this.members=[]}add(t){z5(this.members,t),t.scheduleRender()}remove(t){if($5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(s=>t===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&n.hide()}}
1179exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nce(e,t,r){let n="";const s=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((s||o||i)&&(n=`translate3d(${s}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const p1=["","X","Y","Z"],Sce=1e3;let kce=0;function g1(e,t,r,n){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function QM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=EM(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",An,!(s||o))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&QM(n)}function VM({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(i={},l=t?.()){this.id=kce++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Tce),this.nodes.forEach(Rce),this.nodes.forEach(Mce),this.nodes.forEach(Pce)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new gce)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new G5),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=nM(i)&&!bie(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;An.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=xce(h,250),s0.hasAnimatedSinceResize&&(s0.hasAnimatedSinceResize=!1,this.nodes.forEach(x4)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>
1179{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Hce,{onLayoutAnimationStart:p,onLayoutAnimationComplete:x}=u.getProps(),y=!this.targetLayout||!UM(this.targetLayout,m),b=!f&&h;if(this.options.layoutRoot||this.resumeFrom||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...oC(g,"layout"),onPlay:p,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(d,b)}else f||x4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_c(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Oce),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&QM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(p4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(g4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dce),this.nodes.forEach(Ice),this.nodes.forEach(Fce)):this.nodes.forEach(g4),this.clearAllSnapshots();const l=js.now();Pa.delta=Fi(0,1e3/60,l-Pa.timestamp),Pa.timestamp=l,Pa.isProcessing=!0,a1.update.process(Pa),a1.preRender.process(Pa),a1.render.process(Pa),Pa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lce),this.sharedNodes.forEach(Uce)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,An.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){An.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Es(this.snapshot.measuredBox.x)&&!Es(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!OM(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||uu(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),zce(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return pa();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some($ce))){const{scroll:u}=this.root;u&&(Gd(l.x,u.offset.x),Gd(l.y,u.offset.y))}return l}removeElementScroll(i){const l=pa();if(zo(l,i),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&zo(l,i),Gd(l.x,d.offset.x),Gd(l.y,d.offset.y))}return l}applyTransform(i,l=!1){const c=pa();zo(c,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Wd(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),uu(d.latestValues)&&Wd(c,d.latestValues)}return uu(this.latestValues)&&Wd(c,this.latestValues),c}removeTransform(i){const l=pa();zo(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!uu(u.latestValues))continue;zw(u.latestValues)&&u.updateSnapshot();const d=pa(),f=u.measurePageBox();zo(d,f),u4(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return uu(this.latestValues)&&u4(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Pa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Pa.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pa(),this.targetWithTransforms=pa()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Jle(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zo(this.target,this.layout.layoutBox),yM(this.target,this.targetDelta)):zo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||zw(this.parent.latestValues)||vM(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,l,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pa(),this.relativeTargetOrigin=pa(),H0(this.relativeTargetOrigin,l,c),zo(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;
1179if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Pa.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;zo(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;dle(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=pa());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(i4(this.prevProjectionDelta.x,this.projectionDelta.x),i4(this.prevProjectionDelta.y,this.projectionDelta.y)),Am(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!h4(this.projectionDelta.x,this.prevProjectionDelta.x)||!h4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yd(),this.projectionDelta=Yd(),this.projectionDeltaWithTransform=Yd()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Yd();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=pa(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,p=m!==g,x=this.getStack(),y=!x||x.members.length<=1,b=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(Vce));this.animationProgress=0;let j;this.mixTargetDelta=C=>{const T=C/1e3;v4(f.x,i.x,T),v4(f.y,i.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(H0(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qce(this.relativeTarget,this.relativeTargetOrigin,h,T),j&&Ece(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=pa()),zo(j,this.relativeTarget)),p&&(this.animationValues=d,yce(d,u,this.latestValues,T,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_c(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=An.update(()=>{s0.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jA(0)),this.currentAnimation=hce(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sce),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&HM(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||pa();const f=Es(this.layout.layoutBox.x);
1179c.x.min=i.target.x.min,c.x.max=c.x.min+f;const h=Es(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}zo(l,c),Wd(l,d),Am(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Bce),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&g1("z",i,u,this.animationValues);for(let d=0;d<p1.length;d++)g1(`rotate${p1[d]}`,i,u,this.animationValues),g1(`skew${p1[d]}`,i,u,this.animationValues);i.render();for(const d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=a0(l?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=a0(l?.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Nce(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),i.transform=f;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Hw){if(d[g]===void 0)continue;const{correct:p,applyTo:x,isCSSVariable:y}=Hw[g],b=f==="none"?d[g]:p(d[g],u);if(x){const j=x.length;for(let C=0;C<j;C++)i[x[C]]=b}else y?this.options.visualElement.renderState.vars[g]=b:i[g]=b}this.options.layoutId&&(i.pointerEvents=u===this?a0(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(p4),this.root.sharedNodes.clear()}}}function Ice(e){e.updateLayout()}function Fce(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?wo(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Es(f);f.min=r[d].min,f.max=f.min+h}):HM(s,t.layoutBox,r)&&wo(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],h=Es(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=Yd();Am(i,r,t.layoutBox);const l=Yd();o?Am(l,e.applyTransform(n,!0),t.measuredBox):Am(l,r,t.layoutBox);const c=!OM(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=pa();H0(m,t.layoutBox,f.layoutBox);const g=pa();H0(g,r,h.layoutBox),UM(m,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Tce(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Pce(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lce(e){e.clearSnapshot()}function p4(e){e.clearMeasurements()}function g4(e){e.isLayoutDirty=!1}function Dce(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function x4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rce(e){e.resolveTargetDelta()}function Mce(e){e.calcProjection()}
vendor: 4,135 bytes, line 1179
1179function Oce(e){e.resetSkewAndRotation()}function Uce(e){e.removeLeadSnapshot()}function v4(e,t,r){e.translate=Nn(t.translate,0,r),e.scale=Nn(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function y4(e,t,r,n){e.min=Nn(t.min,r.min,n),e.max=Nn(t.max,r.max,n)}function Qce(e,t,r,n){y4(e.x,t.x,r.x,n),y4(e.y,t.y,r.y,n)}function Vce(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Hce={duration:.45,ease:[.4,0,.1,1]},b4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),w4=b4("applewebkit/")&&!b4("chrome/")?Math.round:So;function _4(e){e.min=w4(e.min),e.max=w4(e.max)}function zce(e){_4(e.x),_4(e.y)}function HM(e,t,r){return e==="position"||e==="preserve-aspect"&&!Zle(m4(t),m4(r),.2)}function $ce(e){return e!==e.root&&e.scroll?.wasRoot}const qce=VM({attachResizeListener:(e,t)=>Km(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),x1={current:void 0},zM=VM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!x1.current){const e=new qce({});e.mount(window),e.setOptions({layoutScroll:!0}),x1.current=e}return x1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kce={pan:{Feature:fce},drag:{Feature:Ace,ProjectionNode:zM,MeasureLayout:DM}};function C4(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,o=n[s];o&&An.postRender(()=>o(t,Oh(t)))}class Gce extends Fc{mount(){const{current:t}=this.node;t&&(this.unmount=gie(t,(r,n)=>(C4(this.node,n,"Start"),s=>C4(this.node,s,"End"))))}unmount(){}}class Wce extends Fc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Dh(Km(this.node.current,"focus",()=>this.onFocus()),Km(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function j4(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),o=n[s];o&&An.postRender(()=>o(t,Oh(t)))}class Yce extends Fc{mount(){const{current:t}=this.node;t&&(this.unmount=yie(t,(r,n)=>(j4(this.node,n,"Start"),(s,{success:o})=>j4(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xw=new WeakMap,v1=new WeakMap,Xce=e=>{const t=Xw.get(e.target);t&&t(e)},Zce=e=>{e.forEach(Xce)};function Jce({root:e,...t}){const r=e||document;v1.has(r)||v1.set(r,{});const n=v1.get(r),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(Zce,{root:e,...t})),n[s]}function eue(e,t,r){const n=Jce(t);return Xw.set(e,r),n.observe(e),()=>{Xw.delete(e),n.unobserve(e)}}const tue={some:0,all:1};class rue extends Fc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:tue[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return eue(this.node.current,i,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(nue(t,r))&&this.startObserver()}unmount(){}}function nue({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const aue={inView:{Feature:rue},tap:{Feature:Yce}
1179,focus:{Feature:Wce},hover:{Feature:Gce}},sue={layout:{ProjectionNode:zM,MeasureLayout:DM}},oue={...qle,...aue,...Kce,...sue},Ze=lle(oue,ble),iue={some:0,all:1};function lue(e,t,{root:r,margin:n,amount:s="some"}={}){const o=Y6(e),i=new WeakMap,l=u=>{u.forEach(d=>{const f=i.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const h=t(d.target,d);typeof h=="function"?i.set(d.target,h):c.unobserve(d.target)}else typeof f=="function"&&(f(d),i.delete(d.target))})},c=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof s=="number"?s:iue[s]});return o.forEach(u=>c.observe(u)),()=>c.disconnect()}function $M(e,{root:t,margin:r,amount:n,once:s=!1,initial:o=!1}={}){const[i,l]=A.useState(o);return A.useEffect(()=>{if(!e.current||s&&i)return;const c=()=>(l(!0),s?void 0:()=>l(!1)),u={root:t&&t.current||void 0,margin:r,amount:n};return lue(e.current,c,u)},[t,e,r,s,n]),i}const us=A.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:je("rounded-xl border border-border/60 bg-card text-card-foreground shadow-[0_1px_2px_rgba(15,23,42,0.04),0_1px_3px_rgba(15,23,42,0.06)]",e),...t}));us.displayName="Card";const qM=A.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:je("flex flex-col space-y-1.5 p-6 pb-4",e),...t}));qM.displayName="CardHeader";const KM=A.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:je("text-2xl font-semibold leading-none tracking-tight",e),...t}));KM.displayName="CardTitle";const cue=A.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:je("text-sm text-muted-foreground",e),...t}));cue.displayName="CardDescription";const ds=A.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:je("p-6 pt-0",e),...t}));ds.displayName="CardContent";const uue=A.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:je("flex items-center p-6 pt-0",e),...t}));uue.displayName="CardFooter";async function Zw(e){const t=(await B(async()=>{const{default:r}=await import("./confetti.module-wUsLuJ1J.js");return{default:r}},[])).default;t(e)}function yC({searchCode:e,appointmentStart:t,appointmentEnd:r,courseTitle:n,areaInteresse:s,quandoFazer:o,leadId:i,onClose:l,notificationResults:c,closerName:u,appointmentId:d}){const[f,h]=A.useState(!1),[m,g]=A.useState(!1),[p,x]=A.useState(!1);A.useEffect(()=>{const I=Date.now()+2e3,E=()=>{Zw({particleCount:3,angle:60,spread:55,origin:{x:0,y:.7},colors:["#10b981","#3b82f6","#8b5cf6","#f59e0b"]}),Zw({particleCount:3,angle:120,spread:55,origin:{x:1,y:.7},colors:["#10b981","#3b82f6","#8b5cf6","#f59e0b"]}),Date.now()<I&&requestAnimationFrame(E)};E();const O=setTimeout(()=>h(!0),800);return()=>clearTimeout(O)},[]),A.useEffect(()=>{if(!d||p)return;const P=setInterval(async()=>{const{data:I}=await J.from("scheduling_appointments").select("closer_confirmed_at").eq("id",d).single();I?.closer_confirmed_at&&(x(!0),clearInterval(P))},5e3);return()=>clearInterval(P)},[d,p]);const y=async(P,I)=>{if(i)try{await J.from("lead_interactions").insert({lead_id:i,tipo:"nota",descricao:`CTA clicado pós-agendamento: ${P} â ${I}`})}catch(E){console.error("Error tracking CTA click:",E)}},[b,j]=A.useState(!1),C=async()=>{if(!(m||b)){j(!0);try{y("furar_fila_sonax","priority_call");const{data:P,error:I}=await J.functions.invoke("public-priority-call",{body:{leadId:i}});if(I||!P?.success)throw new Error(P?.error||I?.message||"Erro ao disparar ligação");g(!0),et.success("Ligação a caminho! Um consultor ligará para você em instantes.")}catch(P){console.error("Erro Furar Fila:",P),et.error("Não foi possÃvel disparar a ligação. Tente novamente.")}finally{j(!1)}}},T=()=>{const P=Ir(t),I=Ir(r),E=k=>k.toISOString().replace(/-|:|\.\d{3}/g,"");return`https://calendar.google.com/calendar/render?${new URLSearchParams({action:"TEMPLATE",text:`Consultoria Trainning${n?` - ${n}`:""}`,dates:`${E(P)}/${E(I)}`,details:`Código de busca: ${e} 1180 1181Prepare-se para a sua consultoria especializada com a Trainning Education.`,location:"Online"}).toString()}`};return(()=>{const P=[{label:"Simulados Gratuitos",description:"Teste seus conhecimentos agora",icon:a.jsx(hA,{className:"h-5 w-5"}),url:"/simulados",priority:"high"},{label:"Aulas Gratuitas",description:"Comece a aprender hoje",icon:a.jsx(Mn,{className:"h-5 w-5"}),url:"/aulas-gratuitas",priority:"high"},{label:"Blog Trainning",description:"Artigos e novidades do mercado",icon:a.jsx(Zo,{className:"h-5 w-5"}),url:"/blog",priority:"medium"},{label:"Certificações",description:"Explore certificações de mercado",icon:a.jsx(kn,{className:"h-5 w-5"}),url:"/certificacoes",priority:"medium"}],I=n?.toLowerCase()||"",E=s?.toLowerCase()||"";return I.includes("itil")||E.includes("itil")?P.unshift({label:"Simulado ITIL",description:"Preparação especÃfica para sua prova",icon:a.jsx(hA,{className:"h-5 w-5"}),url:"/simulados?search=itil",priority:"high"}):I.includes("sap")||E.includes("sap")?P.unshift({label:"Cursos SAP",description:"Explore todo o ecossistema SAP",icon:a.jsx(Mn,{className:"h-5 w-5"}),url:"/cursos/sap",priority:"high"}):(I.includes("aws")||E.includes("aws")||E.includes("cloud"))&&P.unshift({label:"Cursos Cloud & AWS",description:"Domine a nuvem",icon:a.jsx(Mn,{className:"h-5 w-5"}),url:"/cursos/cloud",priority:"high"}),P.slice(0,4)})(),a.jsxs("div",{className:"flex flex-col items-center py-4 text-center max-h-[80vh] overflow-y-auto",children:[a.jsxs(Ze.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"relative mb-4",children:[a.jsx("div",{className:"w-20 h-20 rounded-full bg-gradient-to-br from-green-400 to-emerald-600 flex items-center justify-center shadow-lg shadow-green-500/30",children:a.jsx(Vf,{className:"h-10 w-10 text-white"})}),a.jsx(Ze.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.3},className:"absolute -top-1 -right-1",children:a.jsx(Nr,{className:"h-6 w-6 text-yellow-500"})})]}),a.jsx(Ze.h3,{initial:{opacity:0,y:10}
1181,animate:{opacity:1,y:0},transition:{delay:.2},className:"text-2xl font-bold mb-1 bg-gradient-to-r from-green-600 to-emerald-500 bg-clip-text text-transparent",children:"Agendamento Confirmado!"}),a.jsx(Ze.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:"text-muted-foreground text-sm mb-4",children:"Preparamos tudo para sua consultoria"}),!m&&a.jsxs(Ze.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.35,type:"spring",stiffness:200},className:"w-full max-w-sm mb-4",children:[a.jsx(Oe,{onClick:C,disabled:b||!i,size:"lg",className:"w-full h-16 text-lg font-bold bg-gradient-to-r from-orange-500 via-red-500 to-pink-500 hover:from-orange-600 hover:via-red-600 hover:to-pink-600 text-white shadow-xl shadow-red-500/40 border-0 animate-pulse hover:animate-none rounded-xl",children:b?a.jsxs(a.Fragment,{children:[a.jsx($r,{className:"h-6 w-6 mr-2 animate-spin"}),"Conectando sua ligação..."]}):a.jsxs(a.Fragment,{children:[a.jsx(DA,{className:"h-6 w-6 mr-2"}),"ð¥ Furar a Fila â Ser Atendido Agora!",a.jsx($E,{className:"h-6 w-6 ml-2"})]})}),a.jsx("p",{className:"text-xs text-muted-foreground mt-2 text-center",children:"â¡ Receba uma ligação imediata de um consultor especializado"})]}),m&&a.jsx(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"w-full max-w-sm mb-4",children:a.jsx(us,{className:"border-2 border-green-500/50 bg-gradient-to-br from-green-50 to-emerald-50 dark:from-green-950/30 dark:to-emerald-950/30",children:a.jsxs(ds,{className:"p-4 flex items-center gap-3",children:[a.jsx($E,{className:"h-6 w-6 text-green-600 animate-bounce"}),a.jsxs("div",{className:"text-left",children:[a.jsx("p",{className:"font-bold text-green-700 dark:text-green-400",children:"Ligação a caminho!"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Um consultor ligará para você em instantes"})]})]})})}),a.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"w-full max-w-sm mb-4",children:a.jsx(us,{className:"border-2 border-primary/20 bg-gradient-to-br from-primary/5 to-transparent",children:a.jsxs(ds,{className:"p-4 space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-3 text-left",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(dn,{className:"h-5 w-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Data"}),a.jsx("p",{className:"font-semibold capitalize",children:Kt(Ir(t),"EEEE, dd 'de' MMMM",{locale:cn})})]})]}),a.jsxs("div",{className:"flex items-center gap-3 text-left",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:a.jsx(Vr,{className:"h-5 w-5 text-primary"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Horário"}),a.jsxs("p",{className:"font-semibold",children:[Kt(Ir(t),"HH:mm")," - ",Kt(Ir(r),"HH:mm")]})]})]}),o&&a.jsxs("div",{className:"flex items-center gap-3 text-left",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center shrink-0",children:a.jsx(Mn,{className:"h-5 w-5 text-blue-600"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Quando Pretende Fazer"}),a.jsx("p",{className:"font-semibold",children:o})]})]}),a.jsxs("div",{className:"flex items-center gap-3 text-left",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center shrink-0",children:a.jsx(wT,{className:"h-5 w-5 text-amber-600"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Código de Busca"}),a.jsx("p",{className:"font-mono font-bold text-lg tracking-wider",children:e})]})]})]})})}),(c||u)&&a.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"w-full max-w-sm mb-4",children:a.jsx(us,{className:"border border-violet-500/30 bg-violet-500/5",children:a.jsxs(ds,{className:"p-4 space-y-3",children:[a.jsxs("p",{className:"text-sm font-semibold text-left flex items-center gap-2",children:[a.jsx(Fm,{className:"h-4 w-4 text-violet-600"}),"Notificação ao Closer",u&&a.jsx(Vt,{variant:"outline",className:"text-xs bg-violet-500/10 text-violet-600 border-violet-500/30",children:u})]}),c&&a.jsxs("div",{className:"space-y-1.5 text-left",children:[c.sellerWhatsapp!==void 0&&a.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.sellerWhatsapp?a.jsx(Vf,{className:"h-3.5 w-3.5 text-green-500"}):a.jsx("span",{className:"text-red-500 text-sm",children:"â"}),a.jsx(Tu,{className:"h-3 w-3 text-green-600"}),a.jsxs("span",{children:["WhatsApp ",c.sellerWhatsapp?"enviado":"falhou"]})]}),c.push!==void 0&&a.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.push?a.jsx(Vf,{className:"h-3.5 w-3.5 text-green-500"}):a.jsx("span",{className:"text-red-500 text-sm",children:"â"}),a.jsx(Fm,{className:"h-3 w-3 text-blue-600"}),a.jsxs("span",{children:["Push ",c.push?"enviada":"falhou"]})]}),c.internal!==void 0&&a.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.internal?a.jsx(Vf,{className:"h-3.5 w-3.5 text-green-500"}):a.jsx("span",{className:"text-red-500 text-sm",children:"â"}),a.jsx(mo,{className:"h-3 w-3 text-violet-600"}),a.jsxs("span",{children:["Notificação interna ",c.internal?"criada":"falhou"]})]})]}),d&&a.jsx("div",{className:"pt-2 border-t border-violet-500/20",children:p?a.jsxs("div",{className:"flex items-center gap-2 text-xs text-green-600 font-medium",children:[a.jsx(Nz,{className:"h-4 w-4"}),a.jsx("span",{children:"Closer confirmou recebimento â
"})]}):a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx(xc,{className:"h-3.5 w-3.5 animate-spin"}),a.jsx("span",{children:"Aguardando confirmação do closer..."})]})})]})})}),a.jsxs(Ze.div,{initial:{opacity:0}
1181,animate:{opacity:1},transition:{delay:1},className:"flex items-center gap-2 text-sm text-muted-foreground mb-5",children:[a.jsx(wa,{className:"h-4 w-4"}),a.jsxs("span",{children:[a.jsx("strong",{className:"text-foreground",children:"+200.000"})," profissionais confiam na Trainning"]})]}),a.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1.1},className:"flex flex-col sm:flex-row gap-2 w-full max-w-sm",children:[a.jsxs(Oe,{variant:"outline",className:"flex-1",onClick:()=>{y("google_calendar",T()),window.open(T(),"_blank")},children:[a.jsx(dn,{className:"h-4 w-4 mr-2"}),"Adicionar ao Calendário"]}),a.jsxs(Oe,{onClick:l,className:"flex-1",children:["Explorar Site",a.jsx(Iu,{className:"h-4 w-4 ml-2"})]})]})]})}const due=["id","name","email","whatsapp","score","temperatura","course_title","quando_pretende","categoria","vendedor_id","lead_type","qualification_interest","qualification_pain","qualification_urgency","qualification_budget_moment","qualification_goal","dor_principal","objetivo","momento_carreira","empresa_setor","company_name","cargo","sap_experience","recommended_product","recomendacao_sdr","closer_handoff_summary","resumo_qualificacao_sdr","obs_passo1","obs_passo2","obs_passo3"].join(",");function GM(e,t=!0){return jt({queryKey:["lead-scheduling-context",e],enabled:!!e&&t,staleTime:3e4,queryFn:async()=>{if(!e)return{lead:null,qualificationAnswers:[],lastInteraction:null};const[r,n,s]=await Promise.all([J.from("leads").select(due).eq("id",e).maybeSingle(),J.from("lead_qualification_answers").select("question_label, answer_label, answer_value, created_at").eq("lead_id",e).order("created_at",{ascending:!1}).limit(10),J.from("lead_interactions").select("tipo, descricao, created_at").eq("lead_id",e).order("created_at",{ascending:!1}).limit(1).maybeSingle()]);let o=null;const i=r.data??null;if(i?.vendedor_id){const{data:c}=await J.from("sales_team").select("name").eq("id",i.vendedor_id).maybeSingle();o=c?.name??null}let l=n.data??[];if(!l.length){const{data:c}=await J.from("qualification_responses").select("question_id, answer, created_at").eq("lead_id",e).order("created_at",{ascending:!1}).limit(10);c&&(l=c.map(u=>({question_label:u.question_id,answer_label:u.answer,answer_value:u.answer,created_at:u.created_at})))}return{lead:i?{...i,vendedor_name:o}:null,qualificationAnswers:(l??[]).map(c=>({question_label:c.question_label??null,answer_label:c.answer_label??null,answer_value:c.answer_value??null})),lastInteraction:s.data?{tipo:s.data.tipo,descricao:s.data.descricao,created_at:s.data.created_at}:null}}})}const Jw="feature.meeting_engine";function E4(){if(typeof window>"u")return!0;try{const t=new URL(window.location.href).searchParams.get("meeting-engine");if(t==="1"||t==="0"){try{window.localStorage.setItem(Jw,t)}catch{}return t==="1"}}catch{}try{return window.localStorage.getItem(Jw)!=="0"}catch{return!0}}function Aue(){const[e,t]=A.useState(E4);A.useEffect(()=>{if(typeof window>"u")return;const n=()=>t(E4());return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)},[]);const r=A.useCallback(n=>{t(n);try{window.localStorage.setItem(Jw,n?"1":"0")}catch{}},[]);return[e,r]}var WM="AlertDialog",[fue]=Ha(WM,[TL]),El=TL(),YM=e=>{const{__scopeAlertDialog:t,...r}=e,n=El(t);return a.jsx(Eh,{...n,...r,modal:!0})};YM.displayName=WM;var mue="AlertDialogTrigger",XM=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=El(r);return a.jsx(f5,{...s,...n,ref:t})});XM.displayName=mue;var hue="AlertDialogPortal",ZM=e=>{const{__scopeAlertDialog:t,...r}=e,n=El(t);return a.jsx(Bh,{...n,...r})};ZM.displayName=hue;var pue="AlertDialogOverlay",JM=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=El(r);return a.jsx(ed,{...s,...n,ref:t})});JM.displayName=pue;var iA="AlertDialogContent",[gue,xue]=fue(iA),vue=LF("AlertDialogContent"),eO=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...s}=e,o=El(r),i=A.useRef(null),l=er(t,i),c=A.useRef(null);return a.jsx(Cte,{contentName:iA,titleName:tO,docsSlug:"alert-dialog",children:a.jsx(gue,{scope:r,cancelRef:c,children:a.jsxs(td,{role:"alertdialog",...o,...s,ref:l,onOpenAutoFocus:At(s.onOpenAutoFocus,u=>{u.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[a.jsx(vue,{children:n}),a.jsx(bue,{contentRef:i})]})})})});eO.displayName=iA;var tO="AlertDialogTitle",rO=A.forwardRef((e,t)=>
1181{const{__scopeAlertDialog:r,...n}=e,s=El(r);return a.jsx(VA,{...s,...n,ref:t})});rO.displayName=tO;var nO="AlertDialogDescription",aO=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=El(r);return a.jsx(HA,{...s,...n,ref:t})});aO.displayName=nO;var yue="AlertDialogAction",sO=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,s=El(r);return a.jsx(Nh,{...s,...n,ref:t})});sO.displayName=yue;var oO="AlertDialogCancel",iO=A.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:s}=xue(oO,r),o=El(r),i=er(t,s);return a.jsx(Nh,{...o,...n,ref:i})});iO.displayName=oO;var bue=({contentRef:e})=>{const t=`\`${iA}\` requires a description for the component to be accessible for screen reader users. 1182 1183You can add a description to the \`${iA}\` by passing a \`${nO}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 1184 1185Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${iA}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 1186 1187For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return A.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},wue=YM,_ue=XM,Cue=ZM,lO=JM,cO=eO,uO=sO,dO=iO,AO=rO,fO=aO;const jue=wue,g8e=_ue,Eue=Cue,mO=A.forwardRef(({className:e,...t},r)=>a.jsx(lO,{className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));mO.displayName=lO.displayName;const hO=A.forwardRef(({className:e,...t},r)=>a.jsxs(Eue,{children:[a.jsx(mO,{}),a.jsx(cO,{ref:r,className:je("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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),...t})]}));hO.displayName=cO.displayName;const pO=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col space-y-2 text-center sm:text-left",e),...t});pO.displayName="AlertDialogHeader";const gO=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gO.displayName="AlertDialogFooter";const xO=A.forwardRef(({className:e,...t},r)=>a.jsx(AO,{ref:r,className:je("text-lg font-semibold",e),...t}));xO.displayName=AO.displayName;const vO=A.forwardRef(({className:e,...t},r)=>a.jsx(fO,{ref:r,className:je("text-sm text-muted-foreground",e),...t}));vO.displayName=fO.displayName;const yO=A.forwardRef(({className:e,...t},r)=>a.jsx(uO,{ref:r,className:je(Vm(),e),...t}));yO.displayName=uO.displayName;const bO=A.forwardRef(({className:e,...t},r)=>a.jsx(dO,{ref:r,className:je(Vm({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));bO.displayName=dO.displayName;const B4=[{value:"confirmar_presenca",label:"â Confirmar presença",title:"Confirmar presença na reunião"},{value:"sondar_objeções",label:"ð Sondar objeções",title:"Sondar objeções e dúvidas"},{value:"reapresentar_proposta",label:"ð Reapresentar proposta",title:"Reapresentar proposta com novo ângulo"},{value:"enviar_ementa",label:"ð Enviar ementa/material",title:"Enviar ementa e material de apoio"},{value:"negociar_condicoes",label:"ð° Negociar condições",title:"Negociar condições / desconto"},{value:"fechar_venda",label:"ð¯ Fechar venda",title:"Fechar venda (call de fechamento)"},{value:"resgatar_no_show",label:"ð Resgatar no-show",title:"Resgatar lead após no-show"},{value:"pos_venda",label:"ð Onboarding pós-venda",title:"Onboarding pós-venda"}
1187,{value:"personalizado",label:"âï¸ Personalizado",title:""}];function N4(e,t,r){const n=Kt(e,"yyyy-MM-dd");return C5(`${n}T${t.padStart(2,"0")}:${r.padStart(2,"0")}`)}function Bue({open:e,leadId:t,leadName:r,leadEmail:n,leadPhone:s,onSuccess:o}){const[i,l]=A.useState(""),[c,u]=A.useState(void 0),[d,f]=A.useState(""),[h,m]=A.useState(!1),[g,p]=A.useState(!1),[x,y]=A.useState(""),[b,j]=A.useState(!0),[C,T]=A.useState(!0),[L,P]=A.useState(!1),[I,E]=A.useState("09"),[O,k]=A.useState("00"),[D,H]=A.useState(!1),[U,ee]=A.useState(""),[ae,V]=A.useState(!1),[q,G]=A.useState(""),[Ae,se]=A.useState(""),[S,Q]=A.useState(""),[z,W]=A.useState(""),[ne,X]=A.useState(""),[te,fe]=A.useState(""),[pe,_e]=A.useState(!0),[xe,Be]=A.useState("relative"),[He,R]=A.useState("2"),[be,tt]=A.useState(void 0),[at,De]=A.useState("10"),[le,me]=A.useState("00"),[we,Fe]=A.useState("whatsapp"),[ze,Pe]=A.useState("confirmar_presenca"),[$e,ct]=A.useState(""),[pt,it]=A.useState(""),[gt,st]=A.useState("closer"),[Ut,Lt]=A.useState(""),[St,Mt]=A.useState(null),[tr,wt]=A.useState(""),[ft,ie]=A.useState(""),[Ue,dt]=A.useState(""),[Re,Xe]=A.useState(""),[lt,Le]=A.useState(!1),[ut,Qt]=A.useState("google_meet"),[mt,ot]=A.useState(""),[or,Fr]=A.useState(""),[Ar,Sr]=A.useState(""),[Tr,Pr]=A.useState(""),[fr,_a]=A.useState(null),[Ns,Qn]=A.useState(!1),Tn=A.useCallback(()=>Qn(!0),[]),qt=A.useRef(!1);A.useEffect(()=>{e||(l(""),u(void 0),f(""),m(!1),p(!1),y(""),j(!0),T(!0),P(!1),E("09"),k("00"),H(!1),ee(""),V(!1),G(""),se(""),Q(""),W(""),X(""),fe(""),_e(!0),Be("relative"),R("2"),tt(void 0),De("10"),me("00"),Fe("whatsapp"),Pe("confirmar_presenca"),ct(""),it(""),st("closer"),Lt(""),Mt(null),wt(""),ie(""),dt(""),Xe(""),Le(!1),Qt("google_meet"),ot(""),Fr(""),Sr(""),Pr(""),Qn(!1),qt.current=!1)},[e]);const{data:bn,isLoading:wn}=c6(S),{data:ir}=w5({enabled:e}),{user:Yr}=Zn(),{calendars:za,isLoading:mn}=l6(),Ca=vn(),{data:qr}=GM(t,e);A.useEffect(()=>{if(!e||Re||!Yr?.id||!ir?.length)return;const qe=ir.find(vt=>vt.user_id===Yr.id);qe?.id&&Xe(qe.id)},[e,Yr?.id,ir,Re]);const{data:ea}=jt({queryKey:["lead-closer-info",t],queryFn:async()=>{if(!t)return null;const{data:qe}=await J.from("leads").select("vendedor_id").eq("id",t).single();if(!qe?.vendedor_id)return null;const{data:vt}=await J.from("sales_team").select("id, name, email, phone").eq("id",qe.vendedor_id).single();return vt||null},enabled:!!t&&e});A.useEffect(()=>{ea?.id&&!Ue&&dt(ea.id)},[ea,Ue]),A.useEffect(()=>{e&&!ea?.id&>==="closer"&&st("self")},[e,ea?.id,gt]);const $a=A.useMemo(()=>za?.filter(qe=>qe.is_active)||[],[za]);A.useEffect(()=>{$a.length>0&&!i&&l($a[0].id)},[$a,i]);const Ft=Di(),po=KA(Ft,60),{data:Xr,isLoading:ta}=U5(i,Ft,po),Ro=c?Kt(c,"yyyy-MM-dd"):"",{data:Mo,isLoading:Bl}=O5({calendarId:i,date:Ro}),li=A.useMemo(()=>Mo?.filter(qe=>qe.available)||[],[Mo]),Ss=A.useMemo(()=>{if(!c||!L)return null;const qe=N4(c,I,O);if(!qe)return null;const vt=new Date(new Date(qe).getTime()+60*60*1e3).toISOString();return{start:qe,end:vt}},[c,L,I,O]);A.useEffect(()=>{f("")},[c]);const Sa=A.useCallback(()=>{if(!qr?.lead)return"";const qe=qr.lead,vt=[];vt.push("ð RESUMO PARA O CLOSER"),vt.push("â".repeat(28)),vt.push(`Lead: ${qe.name||"â"}${qe.company_name?` (${qe.company_name})`:""}`),qe.cargo&&vt.push(`Cargo: ${qe.cargo}`),qe.whatsapp&&vt.push(`WhatsApp: ${qe.whatsapp}`),qe.email&&vt.push(`Email: ${qe.email}`),vt.push(""),vt.push("ð¯ INTERESSE"),vt.push(`⢠Curso/Formação: ${qe.course_title||"â"}`),qe.qualification_interest&&vt.push(`⢠Sub-área: ${qe.qualification_interest}`),qe.recommended_product&&vt.push(`⢠Produto recomendado: ${qe.recommended_product}`),qe.sap_experience&&vt.push(`⢠Experiência: ${qe.sap_experience}`),vt.push(""),vt.push("ð§ QUALIFICAÃÃO SDR"),(qe.qualification_pain||qe.dor_principal)&&vt.push(`⢠Dor: ${qe.qualification_pain||qe.dor_principal}`),(qe.objetivo||qe.qualification_goal)&&vt.push(`⢠Objetivo: ${qe.objetivo||qe.qualification_goal}`),qe.momento_carreira&&vt.push(`⢠Momento de carreira: ${qe.momento_carreira}`),qe.empresa_setor&&vt.push(`⢠Setor: ${qe.empresa_setor}`),(qe.qualification_urgency||qe.quando_pretende)&&vt.push(`⢠Urgência: ${qe.qualification_urgency||qe.quando_pretende}`),qe.qualification_budget_moment&&vt.push(`⢠Momento de budget: ${qe.qualification_budget_moment}`),vt.push(`⢠Score: ${qe.score??"â"} | Temperatura: ${qe.temperatura||"â"}`),vt.push(""),qe.recomendacao_sdr&&(vt.push("ð¡ RECOMENDAÃÃO DO SDR"),vt.push(qe.re
1187comendacao_sdr),vt.push("")),(qe.closer_handoff_summary||qe.resumo_qualificacao_sdr)&&(vt.push("ð NOTAS DO HANDOFF"),vt.push(String(qe.closer_handoff_summary||qe.resumo_qualificacao_sdr)),vt.push(""));const hn=[qe.obs_passo1,qe.obs_passo2,qe.obs_passo3].filter(Boolean).join(` 1188`);return hn&&(vt.push("ð OBSERVAÃÃES DO SDR"),vt.push(hn),vt.push("")),qr.qualificationAnswers.length>0&&(vt.push("â RESPOSTAS DO WIZARD"),qr.qualificationAnswers.forEach(ua=>{const ka=ua.question_label||"",lr=ua.answer_label||ua.answer_value||"";(ka||lr)&&vt.push(`⢠${ka}: ${lr}`)}),vt.push("")),vt.push("â¡ Próxima ação: confirmar reunião 1h antes via WhatsApp."),vt.join(` 1189`)},[qr]);A.useEffect(()=>{!e||!qr?.lead||te.trim().length>0||fe(Sa())},[e,qr?.lead?.id]),A.useEffect(()=>{if(!e||z||!qr?.lead)return;const qe=qr.lead,vt=String(qe.course_title||qe.recommended_product||"").trim().toLowerCase();if(!vt)return;if(!S){Q("curso");return}if(!bn||wn)return;const hn=lr=>lr.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,""),ua=hn(vt),ka=bn.find(lr=>hn(lr.name).includes(ua)||ua.includes(hn(lr.name)));ka?(W(ka.id),X(ka.name),qt.current=!0):!qt.current&&S==="curso"&&(qt.current=!0,Q("formacao"))},[e,qr?.lead?.id,S,bn,wn]);const ci=A.useCallback(()=>{if(!qr?.lead)return;const qe=Sa();fe(vt=>vt?`${vt} 1190 1191${qe}`:qe),et.success("Resumo copiado para Observações")},[qr,Sa]);A.useEffect(()=>{const qe=d||Ss?.start;if(!qe||!c)return;const vt=Ir(qe),hn=Kt(vt,"EEEE, dd 'de' MMMM 'de' yyyy",{locale:cn}),ua=Kt(vt,"HH:mm",{locale:cn});G(`â *Agendamento Confirmado!* 1192 1193Olá ${r||""}! 1194 1195Seu atendimento foi agendado com sucesso: 1196 1197ð *Data:* ${hn} 1198ð *Horário:* ${ua} 1199 1200Caso precise remarcar ou cancelar, entre em contato conosco. 1201 1202Até breve! ð 1203_Trainning Education_`),se(`â Agendamento Confirmado - ${Kt(vt,"dd/MM/yyyy")} à s ${ua}`)},[d,Ss?.start,c,r]);const he=A.useMemo(()=>{const qe=[];return i||qe.push("Tipo de atendimento"),c||qe.push("Data da reunião"),!d&&!L&&qe.push("Horário"),Ue||qe.push("Responsável"),D&&U.trim().length<20&&qe.push("Justificativa (â¥20 caracteres)"),lt&&ut==="zoom_manual"&&!mt.trim()&&qe.push("Link do Zoom"),qe},[i,c,d,L,Ue,D,U,lt,ut,mt]),We=A.useCallback(qe=>{if(D)return!0;const vt=Kt(qe,"yyyy-MM-dd");return L?vt>=Ft:vt<Ft?!1:Xr?.includes(vt)||!1},[D,L,Ft,Xr]),Cr=async qe=>D0(qe,"Não foi possÃvel confirmar a criação do link online. Confira a reunião antes de repetir."),kr=A.useCallback(async()=>{try{const{data:qe,error:vt}=await J.functions.invoke("create-meeting",{body:{dry_run:!0,provider:ut,zoom_url:ut==="zoom_manual"?mt.trim():void 0}});return vt?{ok:!1,message:await Cr(vt)}:qe&&qe.ok===!1?{ok:!1,message:[qe.error,qe.hint].filter(Boolean).join(" â ")}:{ok:!0}}catch(qe){return{ok:!1,message:qe?.message??"Falha ao validar reunião online"}}},[ut,mt]),jr=A.useCallback(async(qe,vt,hn)=>{if(ut==="zoom_manual"&&!mt.trim())return et.warning("Cole o link do Zoom para anexar à reunião."),null;const ua=new Date(hn).getTime()-new Date(vt).getTime(),ka=Math.max(15,Math.round(ua/6e4)),lr=n||qr?.lead?.email||"",Zs=r||qr?.lead?.name||"",ks=ir?.find(Fs=>Fs.id===Ue)?.email||ea?.email||"",Is=ir?.find(Fs=>Fs.id===Ue)?.name||ea?.name||"",go=or.split(/[,;\s]+/).map(Fs=>Fs.trim()).filter(Fs=>/.+@.+\..+/.test(Fs)).map(Fs=>({email:Fs,role:"extra"})),an=[lr?{email:lr,name:Zs,is_primary:!0,role:"contact"}:null,ks?{email:ks,name:Is,role:"vendor"}:null,...go].filter(Boolean);if(an.length===0)return et.warning("Sem convidados com e-mail â link online não foi criado."),null;const{data:Nl,error:ld}=await J.functions.invoke("create-meeting",{body:{appointment_id:qe,provider:ut,title:`Reunião â ${Zs||"Lead"}`,start_datetime:vt,duration_minutes:ka,description:Ar.trim()||te||void 0,zoom_url:ut==="zoom_manual"?mt.trim():void 0,attendees:an,lead_id:t??null,created_from:"agendamento"}});if(ld)throw new Error(await Cr(ld));const xo=Nl?.conference_url||"";return xo&&(Pr(xo),et.success(`Link ${ut==="google_meet"?"Meet":"Zoom"} anexado ao agendamento.`)),xo||null},[ut,mt,n,qr,r,ir,Ue,ea,or,Ar,te,t]),_n=A.useCallback(async()=>{const qe=L?Ss?.start:d,vt=L?Ss?.end:li.find(lr=>lr.start===d)?.end;if(!t){et.error("Lead não identificado.");return}if(he.length>0){et.error(`Faltando: ${he.join(" · ")}`);return}if(!qe||!vt){et.error(L?"Defina hora e minuto.":"Selecione um horário disponÃvel.");return}if(m(!0),lt){const lr=await kr();if(!lr.ok){_a(lr.message??"Não foi possÃvel preparar a reunião online."),et.error(lr.message??"Não foi possÃvel preparar a reunião online."),m(!1);return}_a(null)}const hn=gt==="other"&&Ut||null,ua={leadId:t,calendarId:i,startDatetime:qe,endDatetime:vt,notes:te||`Agendamento via popup - Cliente: ${r||"N/A"}`,sendWhatsApp:D?!1:b,sendEmail:D?!1:C,customWhatsAppMessage:q,customEmailSubject:Ae,productType:S||null,productId:z||null,productName:ne||null,createFollowUp:pe,followUpDays:parseInt(He),followUpChannel:we,followUpMode:xe,followUpScheduledAt:xe==="specific"&&be?N4(be,at,le):null,followUpObjective:ze,followUpTitle:$e||null,followUpNotes:pt||null,followUpAssigneeMode:gt,followUpAssigneeId:hn,assignedCloserId:Ue||null,performedByTeamId:Re||null,isBackfill:D,backfillJustification:D?U.trim():null,freeTime:L},ka=async()=>J.functions.invoke("create-lead-appointment",{body:ua});try{const{data:lr,error:Zs}=await ka();if(Zs)throw Zs;if(lr?.success){y(lr.searchCode),Mt(lr.notifications||null);const ks=ir?.find(an=>an.id===Ue)?.name||lr.sellerName||ea?.name||"";wt(ks);const Is=lr.appointment?.id||"";if(ie(Is),lt&&Is&&qe&&vt)try{await jr(Is,qe,vt)}catch(an){console.error("[MeetingEngine] falha ao anexar reunião online:",an),et.error(`Agendamento criado, mas falhou ao gerar link online: ${an?.message??an}`)}p(!0),Qn(!1);const go=Kt(Ir(qe),"dd/MM/yyyy 'à s' HH:mm",{locale:cn});et.success(`â Agendamento confirmado para ${ks||"responsável"} em ${go}`),Ca.invalidateQueries({queryKey:["leads-list"]}),Ca.invalidateQueries({queryKey:["all-scheduling-appointments"]}),Ca.invalidateQueries({queryKey:["atendimentos-feed"]}),Ca.invalidateQueries({queryKey:["atendimentos-kpis"]}),Ca.invalidateQueries({queryKey:["lead-timeline",t]}),Ca.invalidateQueries({queryKey:["lead-follow-ups",t]}),o?.(lr.searchCode)}else throw new Error(lr?.error||"Erro ao criar agendamento")}catch(lr){console.error("Erro ao criar agendamento:",lr),et.error(D0(lr,"Não foi possÃvel confirmar o agendamento. Confira a agenda antes de repetir."),{duration:12e3})}finally{m(!1)}},[L,Ss,d,li,t,he,gt,Ut,i,te,r,D,b,C,q,Ae,S,z,ne,pe,He,we,xe,be,at,le,ze,$e,pt,Ue,Re,U,ir,ea,lt,jr,kr,Ca,o]),ca=ir?.find(qe=>qe.id===Ue),Xs=ir?.find(qe=>qe.id===Re),qa=gt==="self"?Xs?.name||ir?.find(qe=>qe.user_id===Yr?.id)?.name||"você":gt==="closer"?ea?.name||ca?.name||"â":ir?.find(qe=>qe.id===Ut)?.name||"â";return{selectedCalendarId:i,setSelectedCalendarId:l,selectedDate:c,setSelectedDate:u,selectedSlot:d,setSelectedSlot:f,isSubmitting:h,showSuccess:g,searchCode:x,sendWhatsApp:b,setSendWhatsApp:j,sendEmail:C,setSendEmail:T,useCustomTime:L,setUseCustomTime:P,customHour:I,setCustomHour:E,customMinute:O,setCustomMinute:k,allowPast:D,setAllowPast:H,backfillJustification:U,setBackfillJustification:ee,showMessagePreview:ae,setShowMessagePreview:V,whatsappMessage:q,setWhatsappMessage:G,emailSubject:Ae,setEmailSubject:se,productType:S,setProductType:Q,productId:z,setProductId:W,productName:ne,setProductName:X,observacoes:te,setObservacoes:fe,createFollowUp:pe,setCreateFollowUp:_e,followUpMode:xe,setFollowUpMode:Be,followUpDays:He,setFollowUpDays:R,followUpDate:be,setFollowUpDate:tt,followUpHour:at,setFollowUpHour:De,followUpMinute:le,setFollowUpMinute:me,followUpChannel:we,setFollowUpChannel:Fe,followUpObjective:ze,setFollowUpObjective:Pe,followUpTitle:$e,setFollowUpTitle:ct,followUpNotes:pt,setFollowUpNotes:it,followUpAssigneeMode:gt,setFollowUpAssigneeMode:st,followUpAssigneeId:Ut,setFollowUpAssigneeId:Lt,
1203notificationResults:St,closerName:tr,appointmentId:ft,selectedCloserId:Ue,setSelectedCloserId:dt,performedByTeamId:Re,setPerformedByTeamId:Xe,createOnlineMeeting:lt,setCreateOnlineMeeting:Le,meetingProvider:ut,setMeetingProvider:Qt,zoomUrl:mt,setZoomUrl:ot,extraAttendees:or,setExtraAttendees:Fr,meetingInviteText:Ar,setMeetingInviteText:Sr,conferenceUrl:Tr,attachOnlineMeeting:jr,onlineMeetingIssue:fr,preflightOnlineMeeting:kr,dirty:Ns,markDirty:Tn,leadContext:qr,closerInfo:ea,allInternalUsers:ir,currentAuthUser:Yr,activeCalendars:$a,loadingCalendars:mn,availableDates:Xr,loadingDates:ta,availableSlots:li,loadingSlots:Bl,productOptions:bn,loadingProducts:wn,customSlot:Ss,todaySP:Ft,missing:he,isDateAvailable:We,selectedResponsible:ca,performedBy:Xs,followUpExecutorName:qa,buildHandoffSummary:Sa,copyContextToObservations:ci,handleSubmit:_n}}var cv="Collapsible",[Nue,x8e]=Ha(cv),[Sue,bC]=Nue(cv),wO=A.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:o,onOpenChange:i,...l}=e,[c,u]=Io({prop:n,defaultProp:s??!1,onChange:i,caller:cv});return a.jsx(Sue,{scope:r,disabled:o,contentId:la(),open:c,onOpenToggle:A.useCallback(()=>u(d=>!d),[u]),children:a.jsx(_t.div,{"data-state":jC(c),"data-disabled":o?"":void 0,...l,ref:t})})});wO.displayName=cv;var _O="CollapsibleTrigger",wC=A.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,s=bC(_O,r);return a.jsx(_t.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":jC(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:t,onClick:At(e.onClick,s.onOpenToggle)})});wC.displayName=_O;var _C="CollapsibleContent",CC=A.forwardRef((e,t)=>{const{forceMount:r,...n}=e,s=bC(_C,e.__scopeCollapsible);return a.jsx(Na,{present:r||s.open,children:({present:o})=>a.jsx(kue,{...n,ref:t,present:o})})});CC.displayName=_C;var kue=A.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:s,...o}=e,i=bC(_C,r),[l,c]=A.useState(n),u=A.useRef(null),d=er(t,u),f=A.useRef(0),h=f.current,m=A.useRef(0),g=m.current,p=i.open||l,x=A.useRef(p),y=A.useRef(void 0);return A.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),On(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const j=b.getBoundingClientRect();f.current=j.height,m.current=j.width,x.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(n)}},[i.open,n]),a.jsx(_t.div,{"data-state":jC(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!p,...o,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:p&&s})});function jC(e){return e?"open":"closed"}var Iue=wO,v8e=wC,y8e=CC;const EC=Iue,BC=wC,NC=CC,Fue=Array.from({length:24},(e,t)=>t.toString().padStart(2,"0"));function qp({n:e,title:t,children:r}){return a.jsxs("div",{className:"relative pl-8",children:[a.jsx("span",{className:"absolute left-0 top-0 h-5 w-5 rounded-full bg-violet-600/25 text-violet-300 border border-violet-400/30 text-[11px] font-bold flex items-center justify-center",children:e}),a.jsx("span",{className:"absolute left-[9px] top-6 bottom-0 w-px bg-border","aria-hidden":!0}),a.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 mb-1.5",children:t}),a.jsx("div",{className:"pb-3",children:r})]})}function Bd({icon:e,label:t,active:r,last:n}){return a.jsxs("div",{className:"relative pl-7 pb-2.5 last:pb-0",children:[!n&&a.jsx("span",{className:"absolute left-[9px] top-5 bottom-0 w-px bg-border","aria-hidden":!0}),a.jsx("span",{className:je("absolute left-0 top-0.5 h-[18px] w-[18px] rounded-full flex items-center justify-center",r?"bg-violet-600/25 text-violet-300 border border-violet-400/30":"bg-white/[0.04] text-slate-500 border border-white/[0.06]"),children:a.jsx(e,{className:"h-2.5 w-2.5"})}),a.jsx("p",{className:je("text-xs leading-tight",r?"text-slate-200":"text-slate-500 line-through"),children:t})]})}function Tue({form:e}){const[t,r]=A.useState(!1),n=!!(e.selectedSlot||e.useCustomTime&&e.selectedDate);return a.jsxs("div",{className:"space-y-2.5",children:[a.jsxs("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 flex items-center gap-1.5 px-1",children:[a.jsx(LA,{className:"h-3.5 w-3.5"})," Execution Center"]}),a.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-[#111827]/80 p-2.5 space-y-1.5",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsxs($t,{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 flex items-center gap-1.5",children:[a.jsx(hA,{className:"h-3 w-3"})," Observações (resumo p/ Closer)"]}),a.jsx("button",{type:"button",onClick:()=>r(s=>!s),"aria-expanded":t,className:"text-[11px] font-medium text-violet-300 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 rounded",children:t?"recolher":"expandir"})]}),a.jsx(hl,{placeholder:"Notas internas sobre o agendamento...",value:e.observacoes,onChange:s=>{e.setObservacoes(s.target.value),e.markDirty()},rows:t?8:3,className:"text-[12px] resize-none"})]}),a.jsxs("div",{className:je("rounded-xl border border-white/[0.08] bg-[#111827]/80 p-3 space-y-2",!n&&"opacity-60"),children:[a.jsx($t,{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80",children:"Notificar o lead via"}),a.jsx("div",{className:"flex gap-2",children:[{key:"wa",checked:e.sendWhatsApp,set:e.setSendWhatsApp,icon:Tu,label:"WhatsApp",color:"text-green-500"},{key:"em",checked:e.sendEmail,set:e.setSendEmail,icon:mo,label:"E-mail",color:"text-blue-500"}].map(s=>a.jsxs("button",{type:"button",disabled:!n||e.allowPast,onClick:()=>{s.set(!s.checked),e.markDirty()},className:je("flex-1 h-9 rounded-lg border text-xs font-medium flex items-center justify-center gap-1.5 transition-all","hover:scale-[1.02] active:scale-[0.98] disabled:pointer-events-none",s.checked?"border-violet-400/60 bg-violet-500/15 text-slate-100 shadow-[0_0_12px_-4px_rgba(168,85,247,0.6)]":"bg-white/[0.03] border-white/10 text-slate-400"),"aria-pressed":s.checked,children:[a.jsx(s.icon,{className:je("h-3.5 w-3.5",
1203s.color)})," ",s.label]},s.key))}),e.allowPast&&a.jsx("p",{className:"text-[11px] text-amber-600",children:"ð Registro retroativo: o lead não será notificado."}),!e.allowPast&&!e.sendWhatsApp&&!e.sendEmail&&a.jsx("p",{className:"text-[11px] text-amber-600",children:"â ï¸ Nenhuma notificação será enviada ao lead"}),n&&!e.allowPast&&(e.sendWhatsApp||e.sendEmail)&&a.jsxs(EC,{open:e.showMessagePreview,onOpenChange:e.setShowMessagePreview,children:[a.jsx(BC,{asChild:!0,children:a.jsxs(Oe,{variant:"ghost",size:"sm",className:"h-7 text-xs w-full justify-start px-1",children:[a.jsx(T2,{className:"h-3 w-3 mr-1"}),e.showMessagePreview?"Ocultar mensagem":"Editar mensagem enviada ao lead"]})}),a.jsxs(NC,{className:"space-y-2 pt-1",children:[e.sendWhatsApp&&a.jsx(hl,{value:e.whatsappMessage,onChange:s=>{e.setWhatsappMessage(s.target.value),e.markDirty()},rows:5,className:"text-[11px] font-mono"}),e.sendEmail&&a.jsx(Jt,{value:e.emailSubject,onChange:s=>{e.setEmailSubject(s.target.value),e.markDirty()},className:"text-xs",placeholder:"Assunto do e-mail"})]})]})]}),a.jsxs("div",{className:"rounded-xl border border-violet-400/25 bg-gradient-to-br from-violet-600/12 via-[#111827]/80 to-transparent p-3 space-y-2",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs($t,{htmlFor:"me-follow-up-toggle",className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 flex items-center gap-1.5 cursor-pointer",children:[a.jsx(xc,{className:"h-3 w-3 text-primary"})," Próxima ação após a reunião"]}),a.jsx(Al,{id:"me-follow-up-toggle",checked:e.createFollowUp,onCheckedChange:s=>{e.setCreateFollowUp(s),e.markDirty()}})]}),e.createFollowUp&&a.jsxs("div",{className:"pt-1",children:[a.jsx(qp,{n:1,title:"Objetivo",children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs(br,{value:e.followUpObjective,onValueChange:s=>{e.setFollowUpObjective(s);const o=B4.find(i=>i.value===s);e.setFollowUpTitle(o?.title||""),e.markDirty()},children:[a.jsx(pr,{className:"h-8 text-xs",children:a.jsx(wr,{})}),a.jsx(gr,{children:B4.map(s=>a.jsx(yt,{value:s.value,className:"text-xs",children:s.label},s.value))})]}),a.jsx(Jt,{placeholder:"Ação exibida na agenda de quem executa",value:e.followUpTitle,onChange:s=>{e.setFollowUpTitle(s.target.value),e.markDirty()},className:"h-8 text-xs"})]})}),a.jsx(qp,{n:2,title:"Quando",children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs("div",{className:"flex gap-1.5",children:[a.jsx(Oe,{type:"button",size:"sm",variant:e.followUpMode==="relative"?"default":"outline",className:"flex-1 h-7 text-[11px]",onClick:()=>{e.setFollowUpMode("relative"),e.markDirty()},children:"â± Após a reunião"}),a.jsx(Oe,{type:"button",size:"sm",variant:e.followUpMode==="specific"?"default":"outline",className:"flex-1 h-7 text-[11px]",onClick:()=>{e.setFollowUpMode("specific"),!e.followUpDate&&e.selectedDate&&e.setFollowUpDate(Ea(e.selectedDate,2)),e.markDirty()},children:"ð
Data especÃfica"})]}),e.followUpMode==="relative"?a.jsxs(br,{value:e.followUpDays,onValueChange:s=>{e.setFollowUpDays(s),e.markDirty()},children:[a.jsx(pr,{className:"h-8 text-xs",children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"0",children:"No mesmo dia"}),a.jsx(yt,{value:"1",children:"1 dia depois"}),a.jsx(yt,{value:"2",children:"2 dias depois"}),a.jsx(yt,{value:"3",children:"3 dias depois"}),a.jsx(yt,{value:"5",children:"5 dias depois"}),a.jsx(yt,{value:"7",children:"1 semana depois"}),a.jsx(yt,{value:"14",children:"2 semanas depois"}),a.jsx(yt,{value:"30",children:"1 mês depois"})]})]}):a.jsxs("div",{className:"rounded-lg border bg-background/60 p-2 space-y-1.5",children:[a.jsx("div",{className:"flex justify-center",children:a.jsx(CA,{mode:"single",selected:e.followUpDate,onSelect:s=>{e.setFollowUpDate(s),e.markDirty()},locale:cn,disabled:s=>Kt(s,"yyyy-MM-dd")<e.todaySP,className:"rounded-md pointer-events-auto p-1"})}),a.jsxs("div",{className:"flex items-center gap-1.5 justify-center",children:[a.jsx(Vr,{className:"h-3 w-3 text-muted-foreground"}),a.jsxs(br,{value:e.followUpHour,onValueChange:s=>{e.setFollowUpHour(s),e.markDirty()},children:[a.jsx(pr,{className:"w-16 h-7 text-xs",children:a.jsx(wr,{})}),a.jsx(gr,{children:Fue.map(s=>a.jsx(yt,{value:s,children:s},s))})]}),a.jsx("span",{className:"font-bold text-xs",children:":"}),a.jsxs(br,{value:e.followUpMinute,onValueChange:s=>{e.setFollowUpMinute(s),e.markDirty()},children:[a.jsx(pr,{className:"w-16 h-7 text-xs",children:a.jsx(wr,{})}),a.jsx(gr,{children:["00","15","30","45"].map(s=>a.jsx(yt,{value:s,children:s},s))})]})]})]})]})}),a.jsx(qp,{n:3,title:"Canal",children:a.jsx("div",{className:"grid grid-cols-4 gap-1.5",children:[{v:"whatsapp",l:"WhatsApp"},{v:"ligacao",l:"Ligação"},{v:"email",l:"E-mail"},{v:"reuniao",l:"Reunião"}].map(s=>a.jsx("button",{type:"button",onClick:()=>{e.setFollowUpChannel(s.v),e.markDirty()},className:je("h-7 rounded-md border text-[11px] font-medium transition-all hover:scale-[1.02] active:scale-[0.98]",e.followUpChannel===s.v?"border-violet-400/60 bg-violet-500/15 text-slate-100 shadow-[0_0_12px_-4px_rgba(168,85,247,0.6)]":"bg-white/[0.03] border-white/10 text-slate-400"),"aria-pressed":e.followUpChannel===s.v,children:s.l},s.v))})}),a.jsx(qp,{n:4,title:"Quem executa e roteiro",children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs("div",{className:"space-y-1",children:[[{mode:"self",label:`Eu â ${e.allInternalUsers?.find(s=>
1203s.user_id===e.currentAuthUser?.id)?.name||"usuário atual"}`,disabled:!1},{mode:"closer",label:`Closer destino â ${e.closerInfo?.name||"nenhum atribuÃdo"}`,disabled:!e.closerInfo?.id},{mode:"other",label:"Outro membro do time",disabled:!1}].map(s=>a.jsxs("label",{className:je("flex items-center gap-2 text-[11px] rounded-md px-2 py-1 transition-colors",s.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-muted/50"),children:[a.jsx("input",{type:"radio",name:"me-fu-assignee",checked:e.followUpAssigneeMode===s.mode,disabled:s.disabled,onChange:()=>{e.setFollowUpAssigneeMode(s.mode),s.mode!=="other"&&e.setFollowUpAssigneeId(""),e.markDirty()}}),a.jsx("span",{className:"leading-tight",children:s.label})]},s.mode)),e.followUpAssigneeMode==="other"&&a.jsxs(br,{value:e.followUpAssigneeId,onValueChange:s=>{e.setFollowUpAssigneeId(s),e.markDirty()},children:[a.jsx(pr,{className:"h-7 text-xs",children:a.jsx(wr,{placeholder:"Selecionar SDR / Closer..."})}),a.jsx(gr,{children:(e.allInternalUsers||[]).map(s=>a.jsxs(yt,{value:s.id,className:"text-xs",children:[s.name," ",s.role?`· ${s.role}`:""]},s.id))})]})]}),a.jsx(hl,{placeholder:"Roteiro / contexto para quem executar...",value:e.followUpNotes,onChange:s=>{e.setFollowUpNotes(s.target.value),e.markDirty()},rows:2,className:"text-[11px] resize-none"})]})})]})]})]})}function Pue({form:e,fq:t}){const r=e.useCustomTime?e.customSlot?.start:e.selectedSlot,n=r?Kt(Ir(r),"EEE, dd/MM 'à s' HH:mm",{locale:cn}):"â",s=e.followUpMode==="specific"&&e.followUpDate?`${Kt(e.followUpDate,"dd/MM",{locale:cn})} à s ${e.followUpHour}:${e.followUpMinute}`:`D+${e.followUpDays} à s 10h`;return a.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-[#111827]/80 p-3",children:[a.jsxs("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 mb-2 flex items-center gap-1.5",children:[a.jsx(DA,{className:"h-3 w-3"})," Ao confirmar"]}),a.jsxs("div",{children:[a.jsx(Bd,{icon:vz,active:!0,label:`Reunião criada na agenda de ${e.selectedResponsible?.name||"â"} · ${n}`}),a.jsx(Bd,{icon:yh,active:e.createOnlineMeeting,label:e.meetingProvider==="google_meet"?"Link do Google Meet gerado e enviado":"Link do Zoom anexado ao convite"}),a.jsx(Bd,{icon:Tu,active:!e.allowPast&&e.sendWhatsApp,label:"WhatsApp de confirmação para o lead"}),a.jsx(Bd,{icon:mo,active:!e.allowPast&&e.sendEmail,label:"E-mail de confirmação para o lead"}),a.jsx(Bd,{icon:xc,active:e.createFollowUp,label:`Follow-up "${e.followUpTitle||"próxima ação"}" (${s}) â ${e.followUpExecutorName}`}),a.jsx(Bd,{icon:wa,active:!0,last:!0,label:"CRM atualizado: score recalculado, pipeline e notificação do closer"})]}),t&&a.jsxs("p",{className:"text-[10px] text-slate-300 mt-2 pt-2 border-t border-white/[0.08] leading-snug",children:["ð· Oportunidade ",a.jsx("strong",{children:t.type.toUpperCase()})," · Qualificação ",t.completeness,"%",t.skipped?" · â ï¸ pulada":"",e.productName?a.jsxs(a.Fragment,{children:[" · ð ",e.productName]}):null,e.extraAttendees?a.jsxs(a.Fragment,{children:[" · ðª ",e.extraAttendees.split(",").filter(o=>o.trim()).length," convidado(s) extra"]}):null]}),a.jsxs("p",{className:"text-[10px] text-muted-foreground mt-2 pt-2 border-t border-white/[0.08] leading-snug",children:[a.jsx("strong",{className:"text-slate-200",children:e.performedBy?.name||"â"})," cria para"," ",a.jsx("strong",{className:"text-slate-200",children:e.selectedResponsible?.name||"â"}),e.allowPast&&" · registro retroativo (sem notificações)"]})]})}const Lue=["Imediatamente","Até 30 dias","1â3 meses","3â6 meses","6â12 meses","Sem previsão"],Due=["Entrar na área","Evoluir na carreira","Certificação","Atualização","Projeto profissional","Outro"],Rue=["Não","Básico","Intermediário","Avançado"],Mue=["1","2â5","6â10","11â20","21â50","51â100","100+"],Oue=["Decisor","Influenciador","Usuário","Compras","RH","TI","Gestor","Sponsor","Outro"],z0={leadType:null,cursoObjetivo:"",objetivoPrincipal:"",experiencia:"",empresaNome:"",empresaCnpj:"",empresaCidade:"",empresaSegmento:"",crmCompanyId:null,
1203solucao:"",foraCatalogo:!1,qtdAlunos:"",participantes:[],decisorNome:"",decisorCargo:"",decisorEmail:"",decisorPapel:"Decisor",decisorNaoIdentificado:!1,prazo:"",contexto:""};function $0(e){return`fastqual:${e}`}function Uue(e){try{const t=window.localStorage.getItem($0(e));if(t)return{...z0,...JSON.parse(t)}}catch{}return z0}function Que(e){try{window.localStorage.removeItem($0(e))}catch{}}function Vue(e,t,r){const n=s=>typeof s=="string"?s.trim().length>0:s!=null;return t==="pf"?[{key:"curso",label:"Curso / objetivo profissional",done:n(e?.course_title)||n(r.cursoObjetivo),value:e?.course_title},{key:"objetivo",label:"Objetivo principal",done:n(e?.qualification_goal)||n(e?.objetivo)||n(r.objetivoPrincipal),value:e?.qualification_goal||e?.objetivo},{key:"prazo",label:"Quando pretende iniciar",done:n(e?.quando_pretende)||n(r.prazo),value:e?.quando_pretende},{key:"experiencia",label:"Experiência prévia",done:n(e?.sap_experience)||n(r.experiencia),value:e?.sap_experience}]:[{key:"empresa",label:"Empresa",done:n(e?.crm_company_id)||n(e?.company_name)||n(r.crmCompanyId)||n(r.empresaNome),value:e?.company_name},{key:"solucao",label:"Curso / solução",done:n(e?.course_title)||n(e?.recommended_product)||n(r.solucao),value:e?.course_title||e?.recommended_product},{key:"qtd",label:"Quantidade de alunos",done:n(r.qtdAlunos),value:null},{key:"decisor",label:"Decisor",done:n(r.decisorNome)||r.decisorNaoIdentificado||(e?._decisores_count??0)>0,value:null},{key:"prazo",label:"InÃcio previsto",done:n(e?.quando_pretende)||n(r.prazo),value:e?.quando_pretende},{key:"contexto",label:"Contexto / briefing",done:n(e?.closer_handoff_summary)||n(r.contexto),value:null}]}function Hue(e){return e.length?Math.round(e.filter(t=>t.done).length/e.length*100):0}function q0(e){return e>=90?{label:"Completa",cls:"text-emerald-400"}:e>=70?{label:"Boa",cls:"text-cyan-300"}:e>=40?{label:"Parcial",cls:"text-amber-300"}:{label:"Incompleta",cls:"text-red-300"}}function zue({form:e,leadId:t,onDone:r}){const n=e.leadContext?.lead,[s,o]=A.useState("type"),[i,l]=A.useState(!1),[c,u]=A.useState(!1),[d,f]=A.useState([]),[h,m]=A.useState(!1),[g,p]=A.useState("search"),[x,y]=A.useState(z0),[b,j]=A.useState([]);A.useEffect(()=>{try{const V=window.localStorage.getItem($0(t));V&&y({...z0,...JSON.parse(V)})}catch{}},[t]);const C=A.useCallback(V=>{y(q=>{const G={...q,...V};try{window.localStorage.setItem($0(t),JSON.stringify(G))}catch{}return G})},[t]);A.useEffect(()=>{t&&J.from("lead_decision_makers").select("id,name,title,email").eq("lead_id",t).limit(5).then(({data:V})=>j(V??[]))},[t]);const T=A.useMemo(()=>{const V=String(n?.lead_type||"").toLowerCase();return V==="pj"||V==="pessoa_juridica"?"pj":V==="pf"||V==="pessoa_fisica"?"pf":n?.crm_company_id||n?.company_name?"pj":null},[n]);A.useEffect(()=>{!x.leadType&&T&&C({leadType:T})},[T]),A.useEffect(()=>{(n?.crm_company_id||n?.company_name)&&p("linked")},[n?.crm_company_id,n?.company_name]);const L=x.leadType,P=A.useMemo(()=>({...n,_decisores_count:b.length}),[n,b.length]),I=A.useMemo(()=>L?Vue(P,L,x):[],[P,L,x]),E=I.filter(V=>!V.done),O=Hue(I),k=A.useRef(!1);A.useEffect(()=>{k.current||s!=="type"||!L||!n||E.length===0&&(k.current=!0,r({type:L,skipped:!1,completeness:O}))},[s,L,n,E.length,O,r]);const D=A.useCallback(async V=>{const q=V.trim();if(q.length<3){f([]);return}m(!0);try{const G=q.replace(/\D/g,"");let Ae=J.from("crm_companies").select("id, razao_social, nome_fantasia, cnpj, setor, cidade, site").limit(6);G.length>=8?Ae=Ae.ilike("cnpj",`%${G}%`):Ae=Ae.or(`razao_social.ilike.%${q}%,nome_fantasia.ilike.%${q}%,site.ilike.%${q}%`);const{data:se}=await Ae;f(se??[])}finally{m(!1)}},[]),H=A.useCallback(async V=>{if(!L)return;const q={lead_type:L};if(L==="pf")x.cursoObjetivo.trim()&&(q.course_title=x.cursoObjetivo.trim()),x.objetivoPrincipal&&(q.qualification_goal=x.objetivoPrincipal),x.experiencia&&(q.sap_experience=x.experiencia);else{x.solucao.trim()&&!x.foraCatalogo&&(q.course_title=x.solucao.trim());let se=x.crmCompanyId||n?.crm_company_id||null;const S=x.empresaNome.trim()||n?.company_name||"";if(!se&&S&&g==="create"){const{data:Q,error:z}=await J.from("crm_companies").insert({razao_social:S,nome_fantasia:S,cnpj:x.empresaCnpj.trim()||null,cidade:x.empresaCidade.trim()||null,setor:x.empresaSegmento.trim()||null}).select("id").single();z||(se=Q?.id??null)}se&&(q.crm_company_id=se),S&&(q.company_name=S),x.decisorNome.trim()&&!x.decisorNaoIdentificado&&await J.from("lead_decision_makers").insert({lead_id:t,name:x.decisorNome.trim(),title:x.decisorCargo.trim()||x.decisorPapel||null,email:x.decisorEmail.trim()||null,source:"fast_qualification"})}x.prazo&&(q.quando_pretende=x.prazo);const G=[];if(L==="pj"&&(x.qtdAlunos&&G.push(`ð¥ Alunos previstos: ${x.qtdAlunos}
1203`),x.foraCatalogo&&x.solucao.trim()&&G.push(`ð§© Necessidade FORA do catálogo: ${x.solucao.trim()}`),x.decisorNaoIdentificado&&G.push("ð¯ Decisor ainda não identificado"),x.participantes.length&&G.push(`ðª Participantes da reunião: ${x.participantes.map(se=>`${se.nome}${se.cargo?` (${se.cargo})`:""}${se.email?` <${se.email}>`:""}`).join("; ")}`)),x.contexto.trim()&&G.push(`ð BRIEFING/CONTEXTO (texto original preservado): 1204${x.contexto.trim()}`),V&&E.length>0&&G.push(`â ï¸ Qualificação incompleta ao agendar (${E.map(se=>se.label).join(", ")})`),G.length){const se=`â FAST QUALIFICATION (${L.toUpperCase()}) â 1205${G.join(` 1206`)}`,S=String(n?.closer_handoff_summary||"").trim();q.closer_handoff_summary=S?`${S} 1207 1208${se}`:se}const{error:Ae}=await J.from("leads").update(q).eq("id",t);if(Ae)throw Ae},[L,x,n,t,g,E]),U=A.useCallback(V=>{V&&E.length>0&&(e.setCreateFollowUp(!0),e.setFollowUpTitle("Completar qualificação PF/PJ"),e.setFollowUpNotes(`Pendências da Fast Qualification: ${E.map(Ae=>Ae.label).join(", ")}`)),L==="pj"&&x.foraCatalogo&&x.solucao.trim()&&e.setProductName(x.solucao.trim());const q=x.participantes.map(Ae=>Ae.email).filter(Ae=>/.+@.+\..+/.test(Ae));q.length&&(e.setExtraAttendees([e.extraAttendees,...q].filter(Boolean).join(", ")),e.setCreateOnlineMeeting(!0));const G=[];L==="pj"&&x.qtdAlunos&&G.push(`ð¥ Alunos previstos: ${x.qtdAlunos}`),x.decisorNome.trim()&&G.push(`ð¯ Decisor: ${x.decisorNome}${x.decisorCargo?` (${x.decisorCargo})`:""}`),x.contexto.trim()&&G.push(`ð Contexto: ${x.contexto.trim()}`),G.length&&e.setObservacoes(`${e.observacoes} 1209 1210${G.join(` 1211`)}`.trim()),e.markDirty()},[L,x,e,E]),ee=A.useCallback(async V=>{if(L){l(!0);try{await H(V)}catch(q){et.error(`Qualificação salva parcialmente: ${q?.message??q}`)}finally{l(!1)}U(V),r({type:L,skipped:V,completeness:O})}},[L,H,U,r,O]),ae=(V,q,G,Ae)=>a.jsxs("span",{className:je("flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-[0.12em]",G?"text-violet-300":Ae?"text-emerald-400":"text-slate-500"),children:[a.jsx("span",{className:je("h-5 w-5 rounded-full border text-[10px] flex items-center justify-center",G?"border-violet-400/60 bg-violet-600/25":Ae?"border-emerald-400/50 bg-emerald-500/15":"border-white/10 bg-white/[0.03]"),children:Ae?a.jsx($s,{className:"h-3 w-3"}):V}),q]});return a.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto p-6",children:[a.jsxs("div",{className:"flex items-center gap-3 flex-wrap mb-5",children:[ae(1,"Tipo",s==="type",!!L&&s!=="type"),a.jsx(_r,{className:"h-3 w-3 text-slate-600"}),ae(2,"Qualificação",s==="qual"),a.jsx(_r,{className:"h-3 w-3 text-slate-600"}),ae(3,"Agenda",!1),a.jsx(_r,{className:"h-3 w-3 text-slate-600"}),ae(4,"Confirmar",!1)]}),s==="type"&&a.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-base font-bold uppercase tracking-wide text-slate-100",children:"Tipo de oportunidade"}),T&&a.jsxs("p",{className:"text-[11px] text-cyan-300 mt-0.5",children:["⦠",T==="pj"?"Empresa":"Pessoa FÃsica"," identificado pelo cadastro â você pode alterar."]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[{t:"pf",icon:cs,title:"Pessoa FÃsica",sub:"Venda ou orientação individual"},{t:"pj",icon:Ra,title:"Empresa / Pessoa JurÃdica",sub:"Treinamento corporativo, projeto ou múltiplos participantes"}].map(V=>a.jsxs("button",{type:"button",onClick:()=>C({leadType:V.t}),className:je("rounded-2xl border p-6 text-left transition-all hover:scale-[1.02] active:scale-[0.98]",x.leadType===V.t?"border-violet-400/60 bg-violet-600/15 shadow-[0_0_28px_-6px_rgba(168,85,247,0.6)]":"border-white/10 bg-[#111827]/80 hover:border-violet-400/30"),"aria-pressed":x.leadType===V.t,children:[a.jsx(V.icon,{className:je("h-8 w-8 mb-3",x.leadType===V.t?"text-violet-300":"text-slate-400")}),a.jsx("p",{className:"text-base font-bold text-slate-100",children:V.title}),a.jsx("p",{className:"text-xs text-slate-400 mt-1",children:V.sub})]},V.t))}),a.jsx("div",{className:"flex justify-end",children:a.jsxs(Oe,{disabled:!L,onClick:()=>{E.length===0?ee(!1):o("qual")},className:"bg-gradient-to-r from-violet-600 to-fuchsia-600 text-white h-11 min-w-[220px] rounded-xl font-semibold",children:[E.length===0&&L?"Tudo qualificado â ir para a agenda":"Continuar"," ",a.jsx(_r,{className:"h-4 w-4 ml-1.5"})]})})]}
1211),s==="qual"&&L&&a.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[a.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-[#111827]/80 p-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80",children:"Qualificação encontrada"}),a.jsxs("span",{className:je("text-[11px] font-bold",q0(O).cls),children:[O,"% · ",q0(O).label]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-1",children:I.map(V=>a.jsxs("p",{className:je("text-xs flex items-center gap-1.5",V.done?"text-emerald-300":"text-amber-300"),children:[V.done?"â":"?"," ",V.label,V.done&&V.value?a.jsxs("span",{className:"text-slate-400 truncate",children:["â ",String(V.value).slice(0,32)]}):null]},V.key))})]}),a.jsxs("div",{className:"space-y-3",children:[L==="pf"&&a.jsxs(a.Fragment,{children:[E.some(V=>V.key==="curso")&&a.jsx(mi,{label:"Qual curso, formação ou objetivo profissional?",children:a.jsx(Jt,{value:x.cursoObjetivo,onChange:V=>C({cursoObjetivo:V.target.value}),placeholder:"Ex.: Academia SAP MM · ou descreva livremente"})}),E.some(V=>V.key==="objetivo")&&a.jsx(mi,{label:"Objetivo principal",children:a.jsx(Kp,{options:Due,value:x.objetivoPrincipal,onSelect:V=>C({objetivoPrincipal:V})})}),E.some(V=>V.key==="experiencia")&&a.jsx(mi,{label:"Já possui conhecimento/experiência?",children:a.jsx(Kp,{options:Rue,value:x.experiencia,onSelect:V=>C({experiencia:V})})})]}),L==="pj"&&a.jsxs(a.Fragment,{children:[E.some(V=>V.key==="empresa")&&a.jsx(mi,{label:"Empresa",children:g==="linked"?a.jsxs("div",{className:"rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2 flex items-center justify-between gap-2",children:[a.jsxs("p",{className:"text-xs text-slate-200 truncate",children:["ð¢ ",n?.company_name||"Empresa vinculada"," ",a.jsx("span",{className:"text-emerald-400",children:"· identificada pelo cadastro"})]}),a.jsx(Oe,{variant:"ghost",size:"sm",className:"h-6 text-[11px] shrink-0",onClick:()=>p("search"),children:"Trocar"})]}):a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"relative",children:[a.jsx(vc,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500"}),a.jsx(Jt,{className:"pl-8",placeholder:"Nome, CNPJ ou domÃnioâ¦",value:x.empresaNome,onChange:V=>{C({empresaNome:V.target.value,crmCompanyId:null}),D(V.target.value)}})]}),h&&a.jsxs("p",{className:"text-[11px] text-slate-500 flex items-center gap-1",children:[a.jsx($r,{className:"h-3 w-3 animate-spin"})," buscandoâ¦"]}),d.map(V=>a.jsxs("button",{type:"button",onClick:()=>{C({crmCompanyId:V.id,empresaNome:V.nome_fantasia||V.razao_social||"",empresaCnpj:V.cnpj||""}),f([]),p("linked")},className:"w-full text-left rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2 hover:border-violet-400/40 text-xs",children:[a.jsx("span",{className:"font-medium text-slate-100",children:V.nome_fantasia||V.razao_social}),a.jsxs("span",{className:"text-slate-500",children:[" ",V.cnpj?`· ${V.cnpj}`:""," ",V.cidade?`· ${V.cidade}`:""]})]},V.id)),g!=="create"&&x.empresaNome.trim().length>=3&&!h&&d.length===0&&a.jsxs(Oe,{variant:"outline",size:"sm",className:"h-8 text-xs border-white/15",onClick:()=>p("create"),children:[a.jsx(BT,{className:"h-3.5 w-3.5 mr-1"}),' Criar empresa "',x.empresaNome.trim(),'"']}),g==="create"&&a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[a.jsx(Jt,{placeholder:"CNPJ (opcional)",value:x.empresaCnpj,onChange:V=>C({empresaCnpj:V.target.value})}),a.jsx(Jt,{placeholder:"Cidade/UF",value:x.empresaCidade,onChange:V=>C({empresaCidade:V.target.value})}),a.jsx(Jt,{placeholder:"Segmento",value:x.empresaSegmento,onChange:V=>C({empresaSegmento:V.target.value})})]})]})}),E.some(V=>V.key==="solucao")&&a.jsxs(mi,{label:"Qual curso, treinamento ou serviço?",children:[a.jsx(Jt,{value:x.solucao,onChange:V=>C({solucao:V.target.value}),placeholder:x.foraCatalogo?"Descreva o treinamento, tecnologia, projeto ou necessidadeâ¦":"Ex.: Academia SAP MM"}),a.jsxs("label",{className:"flex items-center gap-2 text-[11px] text-cyan-300 cursor-pointer mt-1",children:[a.jsx("input",{type:"checkbox",checked:x.foraCatalogo,onChange:V=>C({foraCatalogo:V.target.checked})}),"+ Necessidade FORA do catálogo (não forçar curso da grade)"]})]}),E.some(V=>V.key==="qtd")&&a.jsx(mi,{label:"Quantos alunos / participantes no treinamento?",children:a.jsx(Kp,{options:Mue,value:x.qtdAlunos,onSelect:V=>C({qtdAlunos:V})})}),E.some(V=>V.key==="decisor")&&a.jsxs(mi,{label:"Quem é o decisor?",children:[b.length>0&&a.jsxs("p",{className:"text-[11px] text-emerald-300 mb-1",children:["â ",b.length," contato(s) já cadastrados: ",b.map(V=>
1211V.name).join(", ")]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[a.jsx(Jt,{placeholder:"Nome",value:x.decisorNome,disabled:x.decisorNaoIdentificado,onChange:V=>C({decisorNome:V.target.value})}),a.jsx(Jt,{placeholder:"Cargo",value:x.decisorCargo,disabled:x.decisorNaoIdentificado,onChange:V=>C({decisorCargo:V.target.value})}),a.jsx(Jt,{placeholder:"E-mail",value:x.decisorEmail,disabled:x.decisorNaoIdentificado,onChange:V=>C({decisorEmail:V.target.value})})]}),a.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[a.jsxs(br,{value:x.decisorPapel,onValueChange:V=>C({decisorPapel:V}),children:[a.jsx(pr,{className:"h-8 text-xs w-40",children:a.jsx(wr,{})}),a.jsx(gr,{children:Oue.map(V=>a.jsx(yt,{value:V,className:"text-xs",children:V},V))})]}),a.jsxs("label",{className:"flex items-center gap-1.5 text-[11px] text-slate-400 cursor-pointer",children:[a.jsx("input",{type:"checkbox",checked:x.decisorNaoIdentificado,onChange:V=>C({decisorNaoIdentificado:V.target.checked})}),"Decisor ainda não identificado"]})]})]}),a.jsxs(mi,{label:`Participantes da reunião (${x.participantes.length})`,optional:!0,children:[x.participantes.map((V,q)=>a.jsxs("div",{className:"grid grid-cols-[1fr_1fr_1fr_auto] gap-2 mb-1.5",children:[a.jsx(Jt,{placeholder:"Nome",value:V.nome,onChange:G=>C({participantes:x.participantes.map((Ae,se)=>se===q?{...Ae,nome:G.target.value}:Ae)})}),a.jsx(Jt,{placeholder:"E-mail",value:V.email,onChange:G=>C({participantes:x.participantes.map((Ae,se)=>se===q?{...Ae,email:G.target.value}:Ae)})}),a.jsx(Jt,{placeholder:"Cargo",value:V.cargo,onChange:G=>C({participantes:x.participantes.map((Ae,se)=>se===q?{...Ae,cargo:G.target.value}:Ae)})}),a.jsx(Oe,{variant:"ghost",size:"sm",className:"h-9 text-red-300",onClick:()=>C({participantes:x.participantes.filter((G,Ae)=>Ae!==q)}),children:"Ã"})]},q)),a.jsxs(Oe,{variant:"outline",size:"sm",className:"h-8 text-xs border-white/15",onClick:()=>C({participantes:[...x.participantes,{nome:"",email:"",cargo:""}]}),children:[a.jsx(wa,{className:"h-3.5 w-3.5 mr-1"})," Adicionar participante"]})]})]}),E.some(V=>V.key==="prazo")&&a.jsx(mi,{label:"Quando pretende iniciar?",children:a.jsx(Kp,{options:Lue,value:x.prazo,onSelect:V=>C({prazo:V})})}),(L==="pj"?E.some(V=>V.key==="contexto"):!0)&&a.jsxs(mi,{label:"Contexto do projeto / demanda",optional:L==="pf",children:[a.jsx("textarea",{value:x.contexto,onChange:V=>C({contexto:V.target.value}),rows:4,placeholder:"Cole aqui o e-mail, briefing, mensagem recebida ou resumo da necessidade. Ex.: Recebemos um e-mail solicitando treinamento SAP MM para 20 colaboradores, previsão para outubroâ¦",className:"w-full text-xs rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-slate-100 placeholder:text-slate-500"}),a.jsx("p",{className:"text-[10px] text-slate-500",children:"O texto original é sempre preservado no histórico do lead."})]})]}),a.jsxs("div",{className:"flex items-center justify-between gap-3 pt-2 flex-wrap",children:[a.jsxs(Oe,{variant:"ghost",size:"sm",className:"text-slate-400",onClick:()=>o("type"),children:[a.jsx(Jd,{className:"h-4 w-4 mr-1"})," Tipo"]}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[c?a.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-amber-300",children:[a.jsxs("span",{children:["Há ",E.length," informação(ões) recomendadas não preenchidas."]}),a.jsx(Oe,{size:"sm",variant:"outline",className:"h-7 text-[11px] border-amber-400/40",disabled:i,onClick:()=>ee(!0),children:"Agendar mesmo assim"}),a.jsx(Oe,{size:"sm",variant:"ghost",className:"h-7 text-[11px]",onClick:()=>u(!1),children:"Voltar"})]}):a.jsxs(Oe,{variant:"ghost",size:"sm",className:"text-slate-500 hover:text-slate-300",onClick:()=>u(!0),children:[a.jsx(FT,{className:"h-3.5 w-3.5 mr-1"})," Pular por agora"]}),a.jsxs(Oe,{disabled:i,onClick:()=>ee(!1),className:"bg-gradient-to-r from-violet-600 to-fuchsia-600 text-white h-10 min-w-[220px] rounded-xl font-semibold",children:[i?a.jsx($r,{className:"h-4 w-4 animate-spin mr-1.5"}):a.jsx(_r,{className:"h-4 w-4 mr-1.5"}),E.length>0?`Continuar (${E.length} pendente${E.length>
12111?"s":""})`:"Ir para a agenda"]})]})]})]})]})}function mi({label:e,children:t,optional:r}){return a.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-[#111827]/80 p-3.5 space-y-1.5",children:[a.jsxs($t,{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80",children:[e," ",r&&a.jsx("span",{className:"text-slate-500 normal-case tracking-normal",children:"(opcional)"})]}),t]})}function Kp({options:e,value:t,onSelect:r}){return a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.map(n=>a.jsx("button",{type:"button",onClick:()=>r(n),className:je("h-8 px-3 rounded-lg border text-xs font-medium transition-all hover:scale-[1.02] active:scale-[0.98]",t===n?"border-violet-400/60 bg-violet-500/15 text-slate-100 shadow-[0_0_12px_-4px_rgba(168,85,247,0.6)]":"bg-white/[0.03] border-white/10 text-slate-400"),"aria-pressed":t===n,children:n},n))})}function $ue(e){return e>=81?{label:"Diamante",className:"text-emerald-500",bar:"bg-emerald-500"}:e>=61?{label:"Ouro",className:"text-amber-500",bar:"bg-amber-500"}:e>=31?{label:"Prata",className:"text-sky-500",bar:"bg-sky-500"}:{label:"Bronze",className:"text-muted-foreground",bar:"bg-muted-foreground"}}function que(e){const t=String(e||"").toLowerCase();return t.includes("quente")?{icon:vi,label:"Quente",className:"text-orange-500 bg-orange-500/10"}:t.includes("morno")?{icon:J$,label:"Morno",className:"text-amber-500 bg-amber-500/10"}:t.includes("frio")?{icon:z$,label:"Frio",className:"text-sky-500 bg-sky-500/10"}:null}function Bf({title:e,icon:t,children:r,className:n}){return a.jsxs("div",{className:je("rounded-xl border border-white/[0.08] bg-[#111827]/80 p-2.5 space-y-1.5 transition-colors hover:border-violet-400/25",n),children:[e&&a.jsxs("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-violet-300/80 flex items-center gap-1.5",children:[t&&a.jsx(t,{className:"h-3 w-3"})," ",e]}),r]})}function Kue({form:e,fq:t}){const[r,n]=A.useState(!1),[s,o]=A.useState(!1),i=e.leadContext?.lead;if(!i)return a.jsx("div",{className:"p-3 space-y-2.5","aria-busy":!0,children:[72,96,132].map(m=>a.jsx("div",{className:"rounded-xl border bg-card/40 animate-pulse",style:{height:m}},m))});const l=typeof i.score=="number"?i.score:null,c=l!==null?$ue(l):null,u=que(i.temperatura),d=t&&i.id?Uue(String(i.id)):null,f=[i.qualification_interest&&{k:"Sub-área",v:i.qualification_interest},(i.qualification_pain||i.dor_principal)&&{k:"Dor",v:i.qualification_pain||i.dor_principal},(i.objetivo||i.qualification_goal)&&{k:"Objetivo",v:i.objetivo||i.qualification_goal},i.momento_carreira&&{k:"Momento",v:i.momento_carreira},(i.qualification_urgency||i.quando_pretende)&&{k:"Urgência",v:i.qualification_urgency||i.quando_pretende},i.qualification_budget_moment&&{k:"Budget",v:i.qualification_budget_moment},i.sap_experience&&{k:"Experiência",v:i.sap_experience},i.recommended_product&&{k:"Produto rec.",v:i.recommended_product}].filter(Boolean),h=a.jsxs("div",{className:"space-y-2.5",children:[a.jsxs(Bf,{children:[a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx(zA,{className:"h-10 w-10 border border-primary/20",children:a.jsx($A,{className:"bg-primary/10 text-primary font-semibold text-xs",children:String(i.name||"?").split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase()})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"font-semibold text-sm leading-tight truncate text-foreground",children:i.name||"â"}),i.company_name&&a.jsxs("p",{className:"text-[12px] text-muted-foreground truncate flex items-center gap-1",children:[a.jsx(zs,{className:"h-3 w-3 shrink-0"})," ",i.company_name]})]})]}),a.jsxs("div",{className:"space-y-0.5 text-[12px] text-muted-foreground",children:[i.whatsapp&&a.jsxs("p",{className:"flex items-center gap-1.5 tabular-nums truncate",children:[a.jsx(Pu,{className:"h-3 w-3 shrink-0"})," ",i.whatsapp]}),i.course_title&&a.jsxs("p",{className:"flex items-center gap-1.5 truncate",children:["ð ",i.course_title]}),i.vendedor_name&&a.jsxs("p",{className:"flex items-center gap-1.5 truncate",children:[a.jsx(cs,{className:"h-3 w-3 shrink-0"})," Closer: ",a.jsx("span",{className:"text-foreground",children:i.vendedor_name})]})]})]}),l!==null&&c&&a.jsxs(Bf,{className:"bg-gradient-to-br from-violet-600/15 via-[#111827]/80 to-cyan-500/10 border-violet-400/25",children:[a.jsxs("div",{className:"flex items-end justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Level"}),a.jsx("p",{className:"text-[32px] font-bold leading-none tabular-nums",children:l})]}),a.jsxs("div",{className:"text-right space-y-1",children:[a.jsxs("p",{className:je("text-[13px] font-semibold",c.className),children:["ð ",c.label]}
1211),u&&a.jsxs("span",{className:je("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium",u.className),children:[a.jsx(u.icon,{className:"h-3 w-3"})," ",u.label]})]})]}),a.jsx("div",{className:"h-1 rounded-full bg-muted overflow-hidden",children:a.jsx("div",{className:je("h-full rounded-full transition-all",c.bar),style:{width:`${Math.min(100,l)}%`}})}),i.quando_pretende&&a.jsxs("p",{className:"text-[11px] text-muted-foreground truncate",children:["â± Pretende: ",a.jsx("span",{className:"text-foreground",children:i.quando_pretende})]})]}),t&&a.jsxs(Bf,{title:`Oportunidade ${t.type.toUpperCase()}`,icon:zs,className:t.type==="pj"?"border-cyan-400/25":void 0,children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-xs text-slate-300",children:"Qualificação"}),a.jsxs("span",{className:je("text-xs font-bold tabular-nums",q0(t.completeness).cls),children:[t.completeness,"% · ",q0(t.completeness).label]})]}),a.jsx("div",{className:"h-1.5 rounded-full bg-muted overflow-hidden",children:a.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-violet-500 to-cyan-400 transition-all",style:{width:`${Math.min(100,t.completeness)}%`}})}),t.skipped&&a.jsx("p",{className:"text-[11px] text-amber-300",children:"â ï¸ Qualificação pulada â completar após a reunião"}),t.type==="pj"&&a.jsxs("div",{className:"space-y-1 text-[11px] text-muted-foreground pt-1 border-t border-white/[0.08]",children:[a.jsxs("p",{className:"truncate",children:["ð¢ ",a.jsx("span",{className:"text-foreground font-medium",children:d?.empresaNome||i.company_name||"Empresa não informada"}),d?.empresaSegmento?` · ${d.empresaSegmento}`:"",d?.empresaCnpj?` · ${d.empresaCnpj}`:""]}),a.jsxs("p",{className:"truncate",children:["ð¯ ",d?.decisorNaoIdentificado?"Decisor ainda não identificado":d?.decisorNome?a.jsxs(a.Fragment,{children:["Decisor: ",a.jsxs("span",{className:"text-foreground",children:[d.decisorNome,d.decisorCargo?` (${d.decisorCargo})`:""]})]}):"Decisor: â"]}),a.jsxs("p",{className:"line-clamp-2",children:["ð§© Demanda: ",a.jsx("span",{className:"text-foreground",children:d?.solucao||e.productName||i.course_title||"â"}),d?.qtdAlunos?` · ${d.qtdAlunos} aluno(s)`:""]})]})]}),(f.length>0||i.recomendacao_sdr||i.closer_handoff_summary)&&a.jsxs(Bf,{title:"Qualificação SDR",icon:Nr,children:[a.jsxs("div",{className:je("space-y-0.5 text-[12px] text-muted-foreground",!s&&"line-clamp-4 xl:line-clamp-4 max-xl:line-clamp-3"),children:[f.map(m=>a.jsxs("p",{className:"leading-snug",children:[a.jsxs("span",{className:"text-foreground font-medium",children:[m.k,":"]})," ",m.v]},m.k)),i.recomendacao_sdr&&a.jsxs("p",{className:"leading-snug",children:["ð¡ ",a.jsx("span",{className:"text-foreground font-medium",children:"Recomendação:"})," ",i.recomendacao_sdr]}),(i.closer_handoff_summary||i.resumo_qualificacao_sdr)&&a.jsxs("p",{className:"whitespace-pre-wrap leading-snug",children:["ð ",i.closer_handoff_summary||i.resumo_qualificacao_sdr]})]}),a.jsx("button",{type:"button",onClick:()=>o(m=>!m),"aria-expanded":s,className:"text-[11px] font-medium text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:s?"ver menos":"ver mais"})]}),e.leadContext?.lastInteraction&&a.jsx(Bf,{title:"Ãltima interação",icon:Tu,children:a.jsxs("p",{className:"text-[12px] text-muted-foreground leading-snug line-clamp-2",children:[a.jsxs("span",{className:"text-foreground",children:["(",e.leadContext.lastInteraction.tipo,")"]})," ",e.leadContext.lastInteraction.descricao?.slice(0,140)||"â"]})}),a.jsxs("div",{className:"rounded-xl border border-cyan-400/25 bg-cyan-500/[0.06] p-3 flex gap-2.5 items-start",children:[a.jsx("span",{className:"text-lg leading-none",children:"ð®"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-cyan-300",children:"Dica Pro"}),a.jsx("p",{className:"text-[11px] text-slate-300 leading-snug",children:"Reuniões confirmadas em até 24h têm até 3à mais chance de conversão."})]})]}),a.jsxs(Oe,{variant:"ghost",size:"sm",className:"w-full justify-start text-[12px] h-10 text-slate-300 hover:bg-violet-500/10 hover:text-slate-100 transition-colors focus-visible:ring-2 focus-visible:ring-violet-400",onClick:e.copyContextToObservations,children:[a.jsx(PA,{className:"h-3.5 w-3.5 mr-1.5"})," Copiar resumo p/ Observações"]}),a.jsx(Pue,{form:e,fq:t})]});return a.jsxs("div",{className:"p-2.5",children:[a.jsxs("div",{className:"hidden lg:block space-y-2.5",children:[a.jsxs("p",{className:"text-[11px] font-bold uppercase tracking-[0.16em] text-violet-300 flex items-center gap-1.5 px-1",children:[a.jsx(Nr,{className:"h-3.5 w-3.5"})," Lead Intelligence"]}),h]}),a.jsxs(EC,{open:r,onOpenChange:n,className:"lg:hidden",children:[a.jsx(BC,{asChild:!0,children:a.jsxs(Oe,{variant:"outline",size:"sm",className:"w-full justify-between",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Nr,{className:"h-4 w-4 text-primary"})," Lead Intelligence"]}),a.jsx(rs,{className:je("h-4 w-4 transition-transform",r&&"rotate-180")}
1211)]})}),a.jsx(NC,{className:"pt-3",children:h})]})]})}const Gue=Array.from({length:24},(e,t)=>t.toString().padStart(2,"0")),Wue=Array.from({length:60},(e,t)=>t.toString().padStart(2,"0"));function y1({title:e,icon:t,children:r,action:n,hero:s}){return a.jsxs("section",{className:je("rounded-xl border border-white/[0.08] bg-[#111827]/80 p-3 space-y-2 transition-colors hover:border-violet-400/25",s&&"border-violet-400/25 shadow-[0_0_20px_-8px_rgba(168,85,247,0.45)]"),children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsxs("h3",{className:"text-[13px] font-bold uppercase tracking-[0.12em] flex items-center gap-2 text-slate-200",children:[a.jsx("span",{className:"h-6 w-6 rounded-lg bg-gradient-to-br from-violet-600/30 to-cyan-500/15 border border-violet-400/25 flex items-center justify-center shrink-0",children:a.jsx(t,{className:"h-3.5 w-3.5 text-violet-300"})}),e]}),n]}),r]})}function Yue({form:e}){const[t,r]=A.useState(!1),n=o=>Kt(Ir(o),"HH:mm",{locale:cn}),s=e.conferenceUrl||(e.meetingProvider==="zoom_manual"&&e.zoomUrl.trim()?e.zoomUrl.trim():"");return a.jsxs("div",{className:"space-y-3",children:[a.jsxs(y1,{title:"Atendimento e Produto",icon:F2,children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Tipo de Atendimento"}),a.jsxs(br,{value:e.selectedCalendarId,onValueChange:o=>{e.setSelectedCalendarId(o),e.markDirty()},children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:e.loadingCalendars?"Carregando...":"Selecione..."})}),a.jsx(gr,{children:e.activeCalendars.map(o=>a.jsx(yt,{value:o.id,children:o.name},o.id))})]})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Produto de Interesse"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs(br,{value:e.productType,onValueChange:o=>{e.setProductType(o),e.setProductId(""),e.setProductName(""),e.markDirty()},children:[a.jsx(pr,{className:"w-[120px] shrink-0",children:a.jsx(wr,{placeholder:"Tipo..."})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"curso",children:"Curso"}),a.jsx(yt,{value:"formacao",children:"Formação"}),a.jsx(yt,{value:"assinatura",children:"Assinatura"}),a.jsx(yt,{value:"servico",children:"Serviço"})]})]}),e.productType&&a.jsxs(br,{value:e.productId,onValueChange:o=>{e.setProductId(o);const i=e.productOptions?.find(l=>l.id===o);e.setProductName(i?.name||""),e.markDirty()},children:[a.jsx(pr,{className:"flex-1 min-w-0",children:a.jsx(wr,{placeholder:e.loadingProducts?"Carregando...":"Produto..."})}),a.jsx(gr,{children:(e.productOptions||[]).map(o=>a.jsx(yt,{value:o.id,children:o.name},o.id))})]})]})]})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsxs($t,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[a.jsx(cs,{className:"h-3 w-3"})," Agendando para"]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[minmax(0,1fr)_auto] gap-2 items-center",children:[a.jsxs(br,{value:e.selectedCloserId,onValueChange:o=>{e.setSelectedCloserId(o),e.markDirty()},children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:"Selecione o responsável..."})}),a.jsx(gr,{children:(e.allInternalUsers||[]).map(o=>a.jsx(yt,{value:o.id,children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:o.name}),o.role&&a.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",o.role,")"]})]})},o.id))})]}),e.selectedResponsible&&a.jsxs("div",{className:"flex items-center gap-2 rounded-lg border bg-primary/5 px-2.5 py-1.5",children:[a.jsxs(zA,{className:"h-7 w-7",children:[a.jsx(Sh,{src:e.selectedResponsible.foto_url||""}),a.jsx($A,{className:"bg-primary/10 text-primary text-[11px] font-semibold",children:e.selectedResponsible.name?.split(" ").map(o=>o[0]).join("").slice(0,2).toUpperCase()})]}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"text-xs font-semibold truncate max-w-[140px]",children:e.selectedResponsible.name}),a.jsx("p",{className:"text-[10px] text-muted-foreground",children:e.closerInfo?.id===e.selectedCloserId?"Responsável do lead":"ReatribuÃdo"})]})]})]})]})]}),a.jsx(y1,{title:"Data e Horário",icon:dn,hero:!0,children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[auto_minmax(0,1fr)] gap-3 items-start",children:[a.jsx("div",{className:"flex justify-center md:justify-start",children:e.loadingCalendars||!e.useCustomTime&&e.loadingDates?a.jsx("div",{className:"w-[268px] h-[268px] rounded-xl border bg-card/40 animate-pulse flex items-center justify-center",children:a.jsx($r,{className:"h-6 w-6 animate-spin text-primary"})}):a.jsx(CA,{mode:"single",selected:e.selectedDate,onSelect:o=>{e.setSelectedDate(o),e.markDirty(),o&&e.useCustomTime&&!e.allowPast&&Kt(o,"yyyy-MM-dd")<e.todaySP&&(e.setAllowPast(!0),et.info("Data no passado detectada â ativamos o modo Documentação retroativa. Preencha a justificativa."))},locale:cn,disabled:o=>e.allowPast||e.useCustomTime?!1:!e.isDateAvailable(o),className:je("rounded-xl border border-white/10 bg-white/[0.02] pointer-events-auto p-2"),classNames:{cell:"h-9 w-9 xl:h-10 xl:w-10 text-center text-sm p-0 relative focus-within:relative focus-within:z-20",day:"h-9 w-9 xl:h-10 xl:w-10 p-0 font-normal aria-selected:opacity-100 rounded-md hover:bg-accent focus-visible:ring-2 focus-visible:ring-violet-400",head_cell:"text-muted-foreground rounded-md w-9 xl:w-10 font-normal text-[11px]"}})}),a.jsxs("div",{className:"space-y-1.5 min-w-0",children:[a.jsxs($t,{className:"text-[12px] text-muted-foreground flex items-center gap-1",children:[a.jsx(Vr,{className:"h-3 w-3"})," Horário"]}),e.selectedDate?e.useCustomTime?a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(br,{value:e.customHour,onValueChange:o=>{e.setCustomHour(o),e.markDirty()},children:[a.jsx(pr,{className:"w-20 h-10",children:a.jsx(wr,{})}),a.jsx(gr,{children:Gue.map(o=>a.jsx(yt,{value:o,children:o},o))})]}),a.jsx("span",{className:"text-lg font-medium",children:":"}),a.jsxs(br,{value:e.customMinute,onValueChange:o=>{e.setCustomMinute(o),e.markDirty()},children:[a.jsx(pr,{className:"w-20 h-10",children:a.jsx(wr,{})}),a.jsx(gr,{children:Wue.map(o=>a.jsx(yt,{value:o,children:o},o))})]}),a.jsxs("span",{className:"text-[12px] text-muted-foreground ml-1 tabular-nums",children:[Kt(e.selectedDate,"dd/MM/yyyy",{locale:cn})," à s ",e.customHour,":",e.customMinute]})]}
1211),a.jsx("p",{className:"text-[11px] text-amber-600 dark:text-amber-400",children:"â ï¸ Horário fora do expediente regular do calendário"})]}):e.loadingSlots?a.jsx("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-1.5","aria-busy":!0,children:Array.from({length:12}).map((o,i)=>a.jsx("div",{className:"h-10 rounded-lg border bg-muted/30 animate-pulse"},i))}):e.availableSlots.length===0?a.jsxs("div",{className:"py-3 space-y-2",children:[a.jsx("p",{className:"text-[13px] text-muted-foreground",children:"Nenhum horário disponÃvel nesta data."}),a.jsxs(Oe,{variant:"outline",size:"sm",className:"h-10",onClick:()=>{e.setUseCustomTime(!0),e.markDirty()},children:[a.jsx(Vr,{className:"h-3 w-3 mr-1"})," Usar horário livre"]})]}):a.jsx("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-1.5 max-h-[228px] overflow-y-auto pr-0.5",children:e.availableSlots.map(o=>{const i=e.selectedSlot===o.start;return a.jsx("button",{type:"button",onClick:()=>{e.setSelectedSlot(o.start),e.markDirty()},className:je("h-10 rounded-lg border text-sm font-semibold tabular-nums transition-all duration-150","hover:scale-[1.03] active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400",i?"bg-violet-600 text-white border-violet-400 shadow-[0_0_20px_-2px_rgba(168,85,247,0.75)] scale-[1.04]":"bg-white/[0.03] border-white/10 text-slate-200 hover:border-violet-400/50 hover:bg-violet-500/10"),children:n(o.start)},o.start)})}):a.jsxs("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-1.5","aria-hidden":!0,children:[Array.from({length:12}).map((o,i)=>a.jsx("div",{className:"h-10 rounded-lg border border-dashed border-white/15 bg-white/[0.02]"},i)),a.jsx("p",{className:"col-span-full text-[12px] text-slate-400 pt-1",children:"Selecione uma data para ver os horários"})]})]})]})}),a.jsx(y1,{title:"Reunião online (Meet / Zoom)",icon:yh,action:a.jsx(Al,{id:"online-meeting-toggle",checked:e.createOnlineMeeting,onCheckedChange:o=>{e.setCreateOnlineMeeting(o),e.markDirty()}}),children:e.createOnlineMeeting?a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-[12px] text-muted-foreground",children:"Plataforma"}),a.jsxs(br,{value:e.meetingProvider,onValueChange:o=>{e.setMeetingProvider(o),e.markDirty()},children:[a.jsx(pr,{className:"h-10",children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"google_meet",children:"Google Meet (gerar automático)"}),a.jsx(yt,{value:"zoom_manual",children:"Zoom (link manual)"})]})]})]}),e.meetingProvider==="zoom_manual"&&a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-[12px] text-muted-foreground",children:"Link do Zoom"}),a.jsx(Jt,{className:"h-10",placeholder:"https://zoom.us/j/...",value:e.zoomUrl,onChange:o=>{e.setZoomUrl(o.target.value),e.markDirty()}})]})]}),a.jsxs("div",{className:je("rounded-lg border px-2.5 py-2 flex items-center gap-2",s?"border-emerald-500/40 bg-emerald-500/5":"border-dashed bg-muted/30"),children:[a.jsx(Bx,{className:je("h-4 w-4 shrink-0",s?"text-emerald-500":"text-muted-foreground")}),s?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-[12px] truncate flex-1 min-w-0 text-foreground",children:s}),a.jsxs(Oe,{variant:"outline",size:"sm",className:"h-8 text-[12px] shrink-0",onClick:()=>{navigator.clipboard.writeText(s),et.success("Link copiado!")},children:[a.jsx(PA,{className:"h-3 w-3 mr-1"})," Copiar"]}),a.jsx(Oe,{variant:"outline",size:"sm",className:"h-8 text-[12px] shrink-0",asChild:!0,children:a.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",children:[a.jsx(Iu,{className:"h-3 w-3 mr-1"})," Testar"]})})]}):a.jsx("span",{className:"text-[11px] text-muted-foreground flex-1 line-clamp-2",children:e.meetingProvider==="google_meet"?"O link do Meet é gerado durante a confirmação do agendamento â aparecerá aqui para copiar e testar.":"Cole o link do Zoom acima para copiar/testar."})]}),e.onlineMeetingIssue&&a.jsxs("div",{className:"rounded-lg border border-destructive/40 bg-destructive/5 px-3 py-2 space-y-1",children:[a.jsx("p",{className:"text-xs font-medium text-destructive",children:"Reunião online indisponÃvel"}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:e.onlineMeetingIssue}),a.jsx(Oe,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>{e.setMeetingProvider("zoom_manual"),e.markDirty()},children:"Usar Zoom (link manual)"})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-[12px] text-muted-foreground",children:"Convidados extras (e-mails por vÃrgula)"}),a.jsx(Jt,{className:"h-10",placeholder:"[email protected], [email protected]",value:e.extraAttendees,onChange:o=>{e.setExtraAttendees(o.target.value),e.markDirty()}}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Lead e closer já são incluÃdos."})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-[12px] text-muted-foreground",children:"Texto do convite (descrição do evento)"}),a.jsx("textarea",{value:e.meetingInviteText,onChange:o=>{e.setMeetingInviteText(o.target.value),e.markDirty()},placeholder:"Ex.: Reunião de apresentação da formação SAP.",rows:2,className:"w-full text-[12px] rounded-md border border-input bg-background px-2 py-1.5 resize-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]})]})]}):a.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Ative para gerar link Meet automático (ou colar Zoom) com convite por e-mail aos participantes."})}),a.jsxs(EC,{open:t,onOpenChange:r,children:[a.jsx(BC,{asChild:!0,children:a.jsxs(Oe,{variant:"outline",size:"sm",className:"w-full justify-between h-10 rounded-xl",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(D$,{className:"h-4 w-4"})," Opções avançadas",(e.useCustomTime||e.allowPast)&&a.jsx("span",{className:"text-[10px] rounded bg-amber-500/15 text-amber-700 dark:text-amber-400 px-1.5 py-0.5 font-medium",children:e.allowPast?"retroativo":"horário livre"})]}),a.jsx(rs,{className:je("h-4 w-4 transition-transform",t&&"rotate-180")}
1211)]})}),a.jsxs(NC,{className:"pt-3 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-xl border",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"h-4 w-4 text-muted-foreground"}),a.jsx($t,{htmlFor:"custom-time",className:"text-sm cursor-pointer",children:"Horário livre (fora do expediente)"})]}),a.jsx(Al,{id:"custom-time",checked:e.useCustomTime,onCheckedChange:o=>{e.setUseCustomTime(o),e.markDirty()}})]}),a.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-amber-500/5 rounded-xl border border-amber-500/30",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(dn,{className:"h-4 w-4 text-amber-600"}),a.jsx($t,{htmlFor:"allow-past",className:"text-sm cursor-pointer",children:"Registrar reunião já realizada (data/horário passado)"})]}),a.jsx(Al,{id:"allow-past",checked:e.allowPast,onCheckedChange:o=>{e.setAllowPast(o),e.markDirty(),o&&e.setUseCustomTime(!0)}})]}),e.allowPast&&a.jsxs("div",{className:"space-y-2 pl-6",children:[a.jsxs("p",{className:"text-xs text-amber-700 dark:text-amber-500",children:["â ï¸ Registro retroativo: a reunião será marcada como ",a.jsx("strong",{children:"ATTENDED"}),", notificações de lead/closer não serão enviadas e o estado comercial do lead NÃO será alterado."]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs",children:"Justificativa (mÃnimo 20 caracteres)"}),a.jsx("textarea",{value:e.backfillJustification,onChange:o=>{e.setBackfillJustification(o.target.value),e.markDirty()},placeholder:"Ex.: Reunião realizada no WhatsApp em 10/06 sem registro prévio no sistema.",rows:2,className:"w-full text-xs rounded-md border border-input bg-background px-2 py-1.5"}),a.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[e.backfillJustification.length,"/20 caracteres"]})]})]})]}),a.jsxs("div",{className:"space-y-1.5 rounded-xl bg-background/60 px-3 py-2.5 border border-dashed",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[11px] text-muted-foreground shrink-0",children:"ð¤ Realizado por"}),a.jsxs(br,{value:e.performedByTeamId,onValueChange:o=>{e.setPerformedByTeamId(o),e.markDirty()},children:[a.jsx(pr,{className:"h-7 text-xs flex-1",children:a.jsx(wr,{placeholder:"Selecione quem agendou"})}),a.jsx(gr,{children:(e.allInternalUsers||[]).map(o=>{const i=o.user_id===e.currentAuthUser?.id;return a.jsxs(yt,{value:o.id,className:"text-xs",children:[o.name,i?" (você)":"",o.role?` · ${o.role}`:""]},o.id)})})]})]}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:"O atendimento aparecerá na agenda do responsável; quem criou verá como tarefa transferida."})]})]})]})]})}function Xue(){return jt({queryKey:["scheduling-meeting-config"],queryFn:async()=>{const{data:e,error:t}=await J.from("scheduling_meeting_config").select("*");if(t)throw t;const r={};return(e||[]).forEach(n=>{r[n.config_key]=n.config_value}),r}})}function Zue(e){return e>=50?{icon:fl,text:"Lenda do funil! ð"}:e>=30?{icon:fl,text:"Máquina de reuniões!"}:e>=20?{icon:vi,text:"Em chamas! ð¥"}:e>=10?{icon:vi,text:"Ritmo forte!"}:e>=5?{icon:os,text:"Acelerando!"}:{icon:os,text:"Boa! Continue assim."}}function Jue({creatorUserId:e,creatorName:t,ownerUserId:r,ownerName:n}){const{data:s}=Xue(),o=(s?.general_settings?.enableGamification??!0)!==!1,{data:i}=jt({queryKey:["scheduling-gamification",e,r],queryFn:async()=>{const{start:c,end:u}=one(),d=async(f,h)=>{const{count:m}=await J.from("scheduling_appointments").select("id",{count:"exact",head:!0}
1211).eq(f,h).gte("created_at",c).lte("created_at",u).neq("status","CANCELED");return m??0};return{creator:e?await d("created_by",e):null,owner:r?await d("owner_user_id",r):null}},enabled:o&&(!!e||!!r),staleTime:6e4});if(!o||!i||i.creator===null&&i.owner===null)return null;const l=[i.creator!==null&&{label:t?`Você (${t})`:"Você",sub:"agendamentos criados no mês",count:i.creator},i.owner!==null&&r!==e&&{label:n||"Responsável",sub:"reuniões recebidas no mês",count:i.owner}].filter(Boolean);return l.length===0?null:a.jsxs("div",{className:"rounded-lg border bg-gradient-to-br from-primary/5 to-amber-500/10 p-3 space-y-2",children:[a.jsxs("p",{className:"text-xs font-semibold flex items-center gap-1.5",children:[a.jsx(fl,{className:"h-3.5 w-3.5 text-amber-500"})," Placar do mês"]}),l.map(c=>{const u=Zue(c.count),d=u.icon;return a.jsxs("div",{className:"flex items-center justify-between gap-2 text-sm",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"font-medium truncate",children:c.label}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:c.sub})]}),a.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[a.jsxs("span",{className:"text-xl font-bold tabular-nums",children:[c.count,"º"]}),a.jsxs("span",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[a.jsx(d,{className:"h-3.5 w-3.5 text-amber-500"})," ",u.text]})]})]},c.label)})]})}function ede(e){const{open:t,onOpenChange:r,leadId:n,leadName:s}=e,o=Bue(e),[i,l]=A.useState(!1),c=e.confirmationContext==="internal";A.useEffect(()=>{c&&o.showSuccess&&r(!1)},[c,o.showSuccess]);const[u,d]=A.useState(null);A.useEffect(()=>{t&&d(null)},[t]),A.useEffect(()=>{o.showSuccess&&n&&Que(n)},[o.showSuccess,n]);const f=!!n&&!u,h=g=>{if(g)return r(!0);if(!o.showSuccess&&o.dirty){l(!0);return}r(!1)},m=o.leadContext?.lead;if(o.showSuccess&&c)return null;if(o.showSuccess){const g=o.useCustomTime?o.customSlot?.start:o.selectedSlot,p=o.useCustomTime?o.customSlot?.end:o.availableSlots.find(y=>y.start===o.selectedSlot)?.end||o.selectedSlot,x=async()=>{if(!(!o.appointmentId||!g||!p))try{await o.attachOnlineMeeting(o.appointmentId,g,p)}catch(y){et.error(`Falha ao gerar o link: ${y?.message??y}`)}};return a.jsx(Qa,{open:t,onOpenChange:()=>r(!1),children:a.jsxs(Ba,{className:"max-w-md max-h-[92vh] overflow-y-auto",children:[a.jsx(Va,{className:"sr-only",children:"Agendamento Confirmado"}),a.jsx(yC,{searchCode:o.searchCode,appointmentStart:g||"",appointmentEnd:p||"",leadId:n,onClose:()=>r(!1),notificationResults:o.notificationResults,closerName:o.closerName,appointmentId:o.appointmentId}),a.jsxs("div",{className:"rounded-lg border p-3 space-y-2",children:[a.jsxs("p",{className:"text-xs font-semibold flex items-center gap-1.5",children:[a.jsx(yh,{className:"h-3.5 w-3.5 text-primary"})," Reunião online"]}),o.conferenceUrl?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("a",{href:o.conferenceUrl,target:"_blank",rel:"noreferrer",className:"text-xs text-primary underline truncate flex-1 min-w-0",children:o.conferenceUrl}),a.jsxs(Oe,{variant:"outline",size:"sm",className:"shrink-0 h-7 text-xs",onClick:()=>{navigator.clipboard.writeText(o.conferenceUrl),et.success("Link copiado!")},children:[a.jsx(PA,{className:"h-3 w-3 mr-1"})," Copiar"]})]}):a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:"Nenhum link gerado para este agendamento."}),a.jsxs(Oe,{variant:"outline",size:"sm",className:"shrink-0 h-7 text-xs",onClick:x,children:[a.jsx(Bx,{className:"h-3 w-3 mr-1"})," Gerar link Meet"]})]})]}),a.jsx(Jue,{creatorUserId:o.currentAuthUser?.id,creatorName:o.performedBy?.name,ownerUserId:o.selectedResponsible?.user_id,ownerName:o.selectedResponsible?.name})]})})}return a.jsxs(a.Fragment,{children:[a.jsx(Qa,{open:t,onOpenChange:h,children:a.jsxs(Ba,{className:`me-cockpit max-w-none w-[95vw] xl:max-w-[1800px] h-[90vh] p-0 gap-0 overflow-hidden rounded-[20px] 1212 border-violet-500/20 bg-[#0B1020] text-slate-100 1213 shadow-[0_0_80px_-20px_rgba(139,92,246,0.35)] 1214 grid grid-rows-[auto_minmax(0,1fr)_auto] 1215 max-sm:w-screen max-sm:h-[100dvh] max-sm:max-h-none max-sm:rounded-none max-sm:flex max-sm:flex-col`,children:[a.jsxs("div",{className:"min-h-16 border-b border-white/[0.08] px-5 py-2.5 pr-12 flex items-center gap-3 bg-[#111827]/60",children:[a.jsx("div",{className:"h-9 w-9 rounded-xl bg-gradient-to-br from-violet-600/30 to-cyan-500/20 border border-violet-400/30 flex items-center justify-center shrink-0 shadow-[0_0_16px_
1215-4px_rgba(139,92,246,0.6)]",children:a.jsx(dn,{className:"h-4.5 w-4.5 text-violet-300"})}),a.jsxs("div",{className:"min-w-0",children:[a.jsxs(Va,{className:"text-[20px] leading-7 font-bold tracking-tight uppercase truncate",children:["Agendar reunião",s?` â ${s}`:""]}),a.jsx(Po,{className:"text-[12px] leading-4 text-slate-400 truncate",children:"Escolha o melhor horário e planeje a continuidade comercial"})]}),a.jsxs("div",{className:"flex items-center gap-1.5 ml-auto shrink-0",children:[m?.lead_type&&a.jsx(Vt,{variant:"outline",className:"text-[11px] uppercase h-6 px-2 border-white/15 text-slate-300",children:String(m.lead_type)==="pj"||String(m.lead_type)==="pessoa_juridica"?"PJ":"PF"}),m?.score!==null&&m?.score!==void 0&&a.jsxs(Vt,{className:"text-[11px] tabular-nums h-6 px-2 bg-violet-600/20 text-violet-200 border border-violet-400/30 hover:bg-violet-600/20",children:["ð ",m.score]}),o.selectedResponsible?.name&&a.jsxs(Vt,{className:"text-[11px] h-6 px-2 max-w-[180px] truncate bg-cyan-500/15 text-cyan-200 border border-cyan-400/25 hover:bg-cyan-500/15",children:["â ",o.selectedResponsible.name]}),o.dirty&&!o.showSuccess&&a.jsx("span",{className:"h-2 w-2 rounded-full bg-amber-400 shrink-0 animate-pulse",title:"Alterações não salvas","aria-label":"Alterações não salvas"})]})]}),f?a.jsx(zue,{form:o,leadId:n,onDone:d}):a.jsxs("div",{className:"min-h-0 overflow-y-auto lg:overflow-hidden lg:grid lg:grid-cols-[300px_minmax(0,1fr)] xl:grid-cols-[320px_minmax(0,1fr)_400px]",children:[a.jsx("aside",{className:"min-w-0 lg:min-h-0 lg:overflow-y-auto border-b lg:border-b-0 lg:border-r border-white/[0.08] bg-white/[0.02]",children:a.jsx(Kue,{form:o,fq:u??void 0})}),a.jsx("main",{className:"min-w-0 lg:min-h-0 lg:overflow-y-auto p-3 xl:p-4",children:a.jsx(Yue,{form:o})}),a.jsx("section",{className:"min-w-0 xl:min-h-0 xl:overflow-y-auto border-t xl:border-t-0 xl:border-l border-white/[0.08] p-3 bg-white/[0.015]",children:a.jsx(Tue,{form:o})})]}),f?a.jsxs("div",{className:"shrink-0 border-t border-white/[0.08] px-6 py-3 bg-[#111827]/60 flex items-center justify-between gap-3",children:[a.jsx("p",{className:"text-[11px] text-slate-500",children:"Suas respostas ficam salvas automaticamente â fechar não perde nada e não cria reunião."}),a.jsx(Oe,{variant:"outline",size:"sm",className:"border-white/15 bg-transparent text-slate-300 hover:bg-white/5 hover:text-slate-100",onClick:()=>h(!1),children:"Fechar"})]}):a.jsxs("div",{className:"min-h-[72px] border-t border-white/[0.08] px-5 py-3 bg-[#111827]/60 flex items-center gap-4",children:[o.missing.length>0?a.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-amber-400/40 bg-amber-400/10 px-3 py-1.5 text-[12px] leading-tight text-amber-300 flex-1 min-w-0",children:[a.jsx("span",{className:"font-semibold shrink-0",children:"â ï¸ Faltando:"}),a.jsx("span",{className:"flex-1 line-clamp-2",children:o.missing.join(" · ")})]}):a.jsx("p",{className:"text-[12px] text-emerald-300/90 flex-1 min-w-0",children:'â
Tudo pronto â revise a coluna "Ao confirmar" e dispare.'}),a.jsxs("div",{className:"flex gap-2 items-center shrink-0",children:[a.jsx(Oe,{variant:"outline",className:"h-12 px-5 border-white/15 bg-transparent text-slate-300 hover:bg-white/5 hover:text-slate-100",onClick:()=>h(!1),disabled:o.isSubmitting,children:"Cancelar"}),a.jsx(Oe,{size:"lg",className:je("w-[340px] max-xl:w-[260px] h-14 text-base font-bold uppercase tracking-wide rounded-xl transition-all duration-150","bg-gradient-to-r from-violet-600 to-fuchsia-600 hover:from-violet-500 hover:to-fuchsia-500 text-white border border-violet-400/40","hover:scale-[1.02] active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-violet-400",o.missing.length===0&&!o.isSubmitting&&"shadow-[0_0_36px_-6px_rgba(168,85,247,0.8)]","disabled:from-slate-700 disabled:to-slate-700 disabled:text-slate-400 disabled:border-white/10 disabled:shadow-none"),onClick:o.handleSubmit,disabled:o.missing.length>0||o.isSubmitting,title:o.missing.length>0?o.missing.join(" · "):void 0,children:o.isSubmitting?a.jsxs(a.Fragment,{children:[a.jsx($r,{className:"mr-2 h-5 w-5 animate-spin"})," Agendando..."]}):a.jsxs(a.Fragment,{children:[a.jsx(LA,{className:"mr-2 h-5 w-5"})," Confirmar Agendamento"]})})]})]})]})}),a.jsx(jue,{open:i,onOpenChange:l,children:a.jsxs(hO,{children:[a.jsxs(pO,{children:[a.jsx(xO,{children:"Descartar agendamento?"}),a.jsxs(vO,{children:["Você tem alterações não salvas. Nenhum agendamento foi criado e o lead ",a.jsx("strong",{children:"não"})," será marcado como cancelamento."]})]}),a.jsxs(gO,{children:[a.jsx(bO,{children:"Continuar editando"}),a.jsx(yO,{onClick:()=>{l(!1),r(!1)},children:"Descartar"})]})]})})]})}
1215function tde(e){const[t]=Aue();return t?a.jsx(ede,{...e}):a.jsx(rde,{...e})}function rde({open:e,onOpenChange:t,leadId:r,leadName:n,leadEmail:s,leadPhone:o,onSuccess:i,confirmationContext:l="public"}){const[c,u]=A.useState(""),[d,f]=A.useState(void 0),[h,m]=A.useState(""),[g,p]=A.useState(!1),[x,y]=A.useState(!1),[b,j]=A.useState(""),[C,T]=A.useState(!0),[L,P]=A.useState(!0),[I,E]=A.useState(!1),[O,k]=A.useState("09"),[D,H]=A.useState("00"),[U,ee]=A.useState(!1),[ae,V]=A.useState(""),[q,G]=A.useState(!1),[Ae,se]=A.useState(""),[S,Q]=A.useState(""),[z,W]=A.useState(""),[ne,X]=A.useState(""),[te,fe]=A.useState(""),[pe,_e]=A.useState(""),[xe,Be]=A.useState(!0),[He,R]=A.useState("relative"),[be,tt]=A.useState("2"),[at,De]=A.useState(void 0),[le,me]=A.useState("10"),[we,Fe]=A.useState("00"),[ze,Pe]=A.useState("whatsapp"),[$e,ct]=A.useState("confirmar_presenca"),[pt,it]=A.useState(""),[gt,st]=A.useState(""),[Ut,Lt]=A.useState("closer"),[St,Mt]=A.useState(""),[tr,wt]=A.useState(null),[ft,ie]=A.useState(""),[Ue,dt]=A.useState(""),[Re,Xe]=A.useState(""),[lt,Le]=A.useState(""),[ut,Qt]=A.useState(!1),[mt,ot]=A.useState("google_meet"),[or,Fr]=A.useState(""),[Ar,Sr]=A.useState("");A.useEffect(()=>{e||(y(!1),j(""),wt(null),ie(""),dt(""),m(""),f(void 0),p(!1),_e(""),W(""),X(""),fe(""),Xe(""),Le(""),u(""),E(!1),k("09"),H("00"),T(!0),P(!0),se(""),Q(""),G(!1),Be(!0),R("relative"),tt("2"),De(void 0),me("10"),Fe("00"),Pe("whatsapp"),ct("confirmar_presenca"),it(""),st(""),Qt(!1),ot("google_meet"),Fr(""),Sr(""))},[e]);const{data:Tr,isLoading:Pr}=c6(z),{data:fr}=w5({enabled:e}),{user:_a}=Zn();A.useEffect(()=>{if(!e||lt||!_a?.id||!fr?.length)return;const he=fr.find(We=>We.user_id===_a.id);he?.id&&Le(he.id)},[e,_a?.id,fr,lt]);const{calendars:Ns,isLoading:Qn}=l6(),Tn=vn(),{data:qt}=GM(r,e),bn=()=>{if(!qt?.lead)return"";const he=qt.lead,We=[];We.push("ð RESUMO PARA O CLOSER"),We.push("â".repeat(28)),We.push(`Lead: ${he.name||"â"}${he.company_name?` (${he.company_name})`:""}`),he.cargo&&We.push(`Cargo: ${he.cargo}`),he.whatsapp&&We.push(`WhatsApp: ${he.whatsapp}`),he.email&&We.push(`Email: ${he.email}`),We.push(""),We.push("ð¯ INTERESSE"),We.push(`⢠Curso/Formação: ${he.course_title||"â"}`),he.qualification_interest&&We.push(`⢠Sub-área: ${he.qualification_interest}`),he.recommended_product&&We.push(`⢠Produto recomendado: ${he.recommended_product}`),he.sap_experience&&We.push(`⢠Experiência: ${he.sap_experience}`),We.push(""),We.push("ð§ QUALIFICAÃÃO SDR"),(he.qualification_pain||he.dor_principal)&&We.push(`⢠Dor: ${he.qualification_pain||he.dor_principal}`),(he.objetivo||he.qualification_goal)&&We.push(`⢠Objetivo: ${he.objetivo||he.qualification_goal}`),he.momento_carreira&&We.push(`⢠Momento de carreira: ${he.momento_carreira}`),he.empresa_setor&&We.push(`⢠Setor: ${he.empresa_setor}`),(he.qualification_urgency||he.quando_pretende)&&We.push(`⢠Urgência: ${he.qualification_urgency||he.quando_pretende}`),he.qualification_budget_moment&&We.push(`⢠Momento de budget: ${he.qualification_budget_moment}`),We.push(`⢠Score: ${he.score??"â"} | Temperatura: ${he.temperatura||"â"}`),We.push(""),he.recomendacao_sdr&&(We.push("ð¡ RECOMENDAÃÃO DO SDR"),We.push(he.recomendacao_sdr),We.push("")),(he.closer_handoff_summary||he.resumo_qualificacao_sdr)&&(We.push("ð NOTAS DO HANDOFF"),We.push(String(he.closer_handoff_summary||he.resumo_qualificacao_sdr)),We.push(""));const Cr=[he.obs_passo1,he.obs_passo2,he.obs_passo3].filter(Boolean).join(` 1216`);return Cr&&(We.push("ð OBSERVAÃÃES DO SDR"),We.push(Cr),We.push("")),qt.qualificationAnswers.length>0&&(We.push("â RESPOSTAS DO WIZARD"),qt.qualificationAnswers.forEach(kr=>{const jr=kr.question_label||"",_n=kr.answer_label||kr.answer_value||"";(jr||_n)&&We.push(`⢠${jr}: ${_n}`)}),We.push("")),We.push("â¡ Próxima ação: confirmar reunião 1h antes via WhatsApp."),We.join(` 1217`)};A.useEffect(()=>{!e||!qt?.lead||pe.trim().length>0||_e(bn())},[e,qt?.lead?.id]);const wn=()=>{if(!qt?.lead)return;const he=bn();_e(We=>We?`${We} 1218 1219${he}`:he),et.success("Resumo copiado para Observações")},{data:ir}=jt({queryKey:["lead-closer-info",r],queryFn:async()=>
1219{if(!r)return null;const{data:he}=await J.from("leads").select("vendedor_id").eq("id",r).single();if(!he?.vendedor_id)return null;const{data:We}=await J.from("sales_team").select("id, name, email, phone").eq("id",he.vendedor_id).single();return We||null},enabled:!!r&&e});A.useEffect(()=>{ir?.id&&!Re&&Xe(ir.id)},[ir,Re]),A.useEffect(()=>{e&&!ir?.id&&Ut==="closer"&&Lt("self")},[e,ir?.id,Ut]);const Yr=Ns?.filter(he=>he.is_active)||[];A.useEffect(()=>{Yr.length>0&&!c&&u(Yr[0].id)},[Yr,c]);const za=new Date,mn=Kt(za,"yyyy-MM-dd"),Ca=Kt(Ea(za,60),"yyyy-MM-dd"),{data:qr,isLoading:ea}=U5(c,mn,Ca),$a=d?Kt(d,"yyyy-MM-dd"):"",{data:Ft,isLoading:po}=O5({calendarId:c,date:$a}),Xr=Ft?.filter(he=>he.available)||[],ta=d&&I?{start:By(Ey(d,parseInt(O)),parseInt(D)).toISOString(),end:By(Ey(d,parseInt(O)+1),parseInt(D)).toISOString()}:null;A.useEffect(()=>{e||(f(void 0),m(""),y(!1),j(""),E(!1),k("09"),H("00"),G(!1),se(""),Q(""),W(""),X(""),fe(""),_e(""),Be(!0),R("relative"),tt("2"),De(void 0),me("10"),Fe("00"),Pe("whatsapp"),ct("confirmar_presenca"),it(""),st(""),Lt("closer"),Mt(""),ee(!1),V(""),Xe(""))},[e]),A.useEffect(()=>{m("")},[d]),A.useEffect(()=>{if((h||ta)&&d){const he=h||ta?.start;if(he){const We=Ir(he),Cr=Kt(We,"EEEE, dd 'de' MMMM 'de' yyyy",{locale:cn}),kr=Kt(We,"HH:mm",{locale:cn}),jr=`â *Agendamento Confirmado!* 1220 1221Olá ${n||""}! 1222 1223Seu atendimento foi agendado com sucesso: 1224 1225ð *Data:* ${Cr} 1226ð *Horário:* ${kr} 1227 1228Caso precise remarcar ou cancelar, entre em contato conosco. 1229 1230Até breve! ð 1231_Trainning Education_`;se(jr),Q(`â Agendamento Confirmado - ${Kt(We,"dd/MM/yyyy")} à s ${kr}`)}}},[h,ta?.start,d,n]);const Ro=()=>{t(!1)},Mo=he=>{t(he)},Bl=async()=>{const he=I?ta?.start:h,We=I?ta?.end:Xr.find(_n=>_n.start===h)?.end;if(!r){et.error("Lead não identificado.");return}if(!c){et.error("Selecione o tipo de atendimento.");return}if(!d){et.error("Selecione a data.");return}if(!he||!We){et.error(I?"Defina hora e minuto.":"Selecione um horário disponÃvel.");return}if(!Re){et.error("Selecione o responsável pelo atendimento.");return}if(U&&ae.trim().length<20){et.error("Registro retroativo exige justificativa de no mÃnimo 20 caracteres");return}p(!0);const Cr=Ut==="other"&&St||null,kr={leadId:r,calendarId:c,startDatetime:he,endDatetime:We,notes:pe||`Agendamento via popup - Cliente: ${n||"N/A"}`,sendWhatsApp:U?!1:C,sendEmail:U?!1:L,customWhatsAppMessage:Ae,customEmailSubject:S,productType:z||null,productId:ne||null,productName:te||null,createFollowUp:xe,followUpDays:parseInt(be),followUpChannel:ze,followUpMode:He,followUpScheduledAt:He==="specific"&&at?By(Ey(at,parseInt(le)),parseInt(we)).toISOString():null,followUpObjective:$e,followUpTitle:pt||null,followUpNotes:gt||null,followUpAssigneeMode:Ut,followUpAssigneeId:Cr,assignedCloserId:Re||null,performedByTeamId:lt||null,isBackfill:U,backfillJustification:U?ae.trim():null,freeTime:I};console.log("[LeadSchedulingModal] submit payload:",{leadId:r,slotToUse:he,endToUse:We,allowPast:U,useCustomTime:I,selectedCloserId:Re,followUpAssigneeMode:Ut,followUpAssigneeId:St});const jr=async()=>await J.functions.invoke("create-lead-appointment",{body:kr});try{const{data:_n,error:ca}=await jr();if(ca)throw ca;if(_n?.success){j(_n.searchCode),wt(_n.notifications||null);const Xs=fr?.find(hn=>hn.id===Re)?.name||_n.sellerName||ir?.name||"";ie(Xs);const qa=_n.appointment?.id||"";dt(qa);let qe=null;if(ut&&qa&&he&&We)try{if(mt==="zoom_manual"&&!or.trim())et.warning("Cole o link do Zoom para anexar à reunião.");else{const hn=new Date(We).getTime()-new Date(he).getTime(),ua=Math.max(15,Math.round(hn/6e4)),ka=s||qt?.lead?.email||"",lr=n||qt?.lead?.name||"",Zs=fr?.find(an=>an.id===Re)?.email||ir?.email||"",ks=fr?.find(an=>an.id===Re)?.name||ir?.name||"",Is=Ar.split(/[,;\s]+/).map(an=>an.trim()).filter(an=>/.+@.+\..+/.test(an)).map(an=>({email:an,role:"extra"})),go=[ka?{email:ka,name:lr,is_primary:!0,role:"contact"}:null,Zs?{email:Zs,name:ks,role:"vendor"}:null,...Is].filter(Boolean);if(go.length===0)et.warning("Sem convidados com e-mail â link online não foi criado.");else{const{data:an,error:Nl}=await J.functions.invoke("create-meeting",{body:{appointment_id:qa,provider:mt,title:`Reunião â ${lr||"Lead"}`,start_datetime:he,duration_minutes:ua,description:pe||void 0,zoom_url:mt==="zoom_manual"?or.trim():void 0,attendees:go,lead_id:r??null,created_from:"agendamento"}});if(Nl)throw Nl;an?.conference_url&&(qe=an.conference_url,et.success(`Link ${mt==="google_meet"?"Meet":"Zoom"} anexado ao agendamento.`))}}}catch(hn){console.error("[LeadSchedulingModal] falha ao anexar reunião online:",hn),et.error(`Agendamento criado, mas falhou ao gerar link online: ${hn?.message??hn}`)}l==="internal"?t(!1):y(!0);const vt=Kt(Ir(he),"dd/MM/yyyy 'à s' HH:mm",{locale:cn});et.success(`â Agendamento confirmado para ${Xs||"responsável"} em ${vt}`),Tn.invalidateQueries({queryKey:["leads-list"]}),Tn.invalidateQueries({queryKey:["all-scheduling-appointments"]}),Tn.invalidateQueries({queryKey:["atendimentos-feed"]}),Tn.invalidateQueries({queryKey:["atendimentos-kpis"]}),Tn.invalidateQueries({queryKey:["sdr-scheduling-logs"]}),Tn.invalidateQueries({queryKey:["lead-timeline",r]}),Tn.invalidateQueries({queryKey:["lead-follow-ups",r]}),i?.(_n.searchCode,{appointmentId:qa||null,start:he??null,end:We??null,closerName:Xs||null,meetUrl:qe})}else throw new Error(_n?.error||"Erro ao criar agendamento")}catch(_n){console.error("Erro ao criar agendamento:",_n),et.error(D0(_n,"Não foi possÃvel confirmar o agendamento. Confira a agenda antes de repetir."),{duration:12e3})}finally{p(!1)}},li=he=>{const We=Ir(he);return Kt(We,"HH:mm",{locale:cn})},Ss=Array.from({length:24},(he,We)=>We.toString().padStart(2,"0")),Sa=Array.from({length:60},(he,We)=>We.toString().padStart(2,"0")),ci=he=>{if(U)return!0;
1231if(I){const Cr=new Date;return Cr.setHours(0,0,0,0),he>=Cr}const We=Kt(he,"yyyy-MM-dd");return qr?.includes(We)||!1};if(x){const We=(I?ta:Xr.find(kr=>kr.start===h))?.end||h,Cr=I?ta?.start:h;return a.jsx(Qa,{open:e,onOpenChange:Mo,children:a.jsxs(Ba,{className:"max-w-md",children:[a.jsxs("button",{onClick:Ro,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:[a.jsx(Ua,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Fechar"})]}),a.jsx(Ks,{children:a.jsx(Va,{className:"sr-only",children:"Agendamento Confirmado"})}),a.jsx(yC,{searchCode:b,appointmentStart:Cr||"",appointmentEnd:We,leadId:r,onClose:Ro,notificationResults:tr,closerName:ft,appointmentId:Ue})]})})}return a.jsx(Qa,{open:e,onOpenChange:Mo,children:a.jsxs(Ba,{className:"w-[calc(100vw-1.5rem)] max-w-3xl max-h-[90vh] overflow-y-auto",children:[a.jsxs("button",{onClick:Ro,className:"absolute right-4 top-4 roun
1231ded-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 z-50",children:[a.jsx(Ua,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Fechar"})]}),a.jsxs(Ks,{children:[a.jsx("div",{className:"flex items-center justify-center mb-2",children:a.jsx("div",{className:"p-3 bg-primary/10 rounded-full",children:a.jsx(dn,{className:"h-6 w-6 text-primary"})})}),a.jsx(Va,{className:"text-center",children:"Escolha o Melhor Horário"}),a.jsx(Po,{className:"text-center",children:"Selecione a data e horário para seu atendimento"})]}),a.jsxs("div",{className:"py-4 grid grid-cols-1 md:grid-cols-2 gap-6 md:items-start",children:[a.jsxs("div",{className:"space-y-6 min-w-0",children:[qt?.lead&&a.jsxs("div",{className:"rounded-lg border bg-card p-3 space-y-2",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Nr,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"text-sm font-semibold",children:"Resumo do Lead"})]}),a.jsxs(Oe,{variant:"ghost",size:"sm",onClick:wn,children:[a.jsx(PA,{className:"h-3.5 w-3.5 mr-1"}),a.jsx("span",{className:"text-xs",children:"Copiar p/ Observações"})]})]}),a.jsxs("div",{className:"flex flex-wrap gap-1.5 text-xs",children:[qt.lead.name&&a.jsx(Vt,{variant:"secondary",children:qt.lead.name}),qt.lead.whatsapp&&a.jsxs(Vt,{variant:"outline",children:["ð± ",qt.lead.whatsapp]}),qt.lead.score!==null&&a.jsxs(Vt,{variant:"outline",children:["Score ",qt.lead.score]}),qt.lead.temperatura&&a.jsxs(Vt,{variant:"outline",children:["ð¡ ",qt.lead.temperatura]}),qt.lead.quando_pretende&&a.jsxs(Vt,{variant:"outline",children:["â± ",qt.lead.quando_pretende]}),qt.lead.course_title&&a.jsxs(Vt,{variant:"outline",children:["ð ",qt.lead.course_title]}),qt.lead.vendedor_name&&a.jsxs(Vt,{variant:"outline",children:["ð¤ Closer: ",qt.lead.vendedor_name]})]}),(()=>{const he=qt.lead,We=[he.qualification_interest&&{k:"Sub-área",v:he.qualification_interest},(he.qualification_pain||he.dor_principal)&&{k:"Dor",v:he.qualification_pain||he.dor_principal},(he.objetivo||he.qualification_goal)&&{k:"Objetivo",v:he.objetivo||he.qualification_goal},he.momento_carreira&&{k:"Momento",v:he.momento_carreira},(he.qualification_urgency||he.quando_pretende)&&{k:"Urgência",v:he.qualification_urgency||he.quando_pretende},he.qualification_budget_moment&&{k:"Budget",v:he.qualification_budget_moment},he.sap_experience&&{k:"Experiência",v:he.sap_experience},he.recommended_product&&{k:"Produto rec.",v:he.recommended_product}].filter(Boolean);return!We.length&&!he.recomendacao_sdr&&!he.closer_handoff_summary?null:a.jsxs("div",{className:"text-xs text-muted-foreground space-y-0.5 pt-1 border-t",children:[a.jsx("div",{className:"font-medium text-foreground",children:"Qualificação SDR:"}),We.map((Cr,kr)=>a.jsxs("div",{children:["⢠",a.jsxs("span",{className:"text-foreground",children:[Cr.k,":"]})," ",Cr.v]},kr)),he.recomendacao_sdr&&a.jsxs("div",{className:"pt-1",children:["ð¡ ",a.jsx("span",{className:"text-foreground font-medium",children:"Recomendação SDR:"})," ",he.recomendacao_sdr]}),(he.closer_handoff_summary||he.resumo_qualificacao_sdr)&&a.jsxs("div",{className:"pt-1 whitespace-pre-wrap",children:["ð ",he.closer_handoff_summary||he.resumo_qualificacao_sdr]})]})})(),qt.lastInteraction&&a.jsxs("div",{className:"text-xs text-muted-foreground pt-1 border-t",children:["Ãltima interação (",qt.lastInteraction.tipo,"):"," ",a.jsx("span",{className:"text-foreground",children:qt.lastInteraction.descricao?.slice(0,120)||"â"})]})]}),Yr.length>1&&a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"Tipo de Atendimento"}),a.jsxs(br,{value:c,onValueChange:u,children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:"Selecione..."})}),a.jsx(gr,{children:Yr.map(he=>a.jsx(yt,{value:he.id,children:he.name},he.id))})]})]}),(()=>{const he=fr?.find(jr=>jr.id===lt),We=fr?.find(jr=>jr.id===Re),Cr=I?ta?.start:h,kr=Cr?Kt(Ir(Cr),"EEEE, dd/MM/yyyy 'à s' HH:mm",{locale:cn}):"â";return a.jsxs("div",{className:"rounded-lg border bg-muted/30 p-3 space-y-1.5 text-sm",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"ð¤ Origem · Criado por"}),a.jsx("span",{className:"font-medium",children:he?.name||_a?.email||"â"}),he?.role&&a.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",he.role,")"]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"ð¥ Responsável pelo atendimento"}),a.jsx("span",{className:"font-medium",children:We?.name||"selecionar abaixo"}),We?.role&&a.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",We.role,")"]})]}),a.jsxs("div",{className:"pt-1.5 border-t text-xs text-muted-foreground",children:["ð¤ ",a.jsx("strong",{children:he?.name||"â"})," â ð¥ ",a.jsx("strong",{children:We?.name||"â"})," ","· via ",a.jsx("strong",{children:c&&Yr.find(jr=>jr.id===c)?.name||"â"})," ","em ",a.jsx("strong",{children:kr}),U&&a.jsx("span",{className:"ml-2 inline-flex items-center rounded bg-amber-500/15 text-amber-700 dark:text-amber-400 px-1.5 py-0.5 text-[10px] font-medium",children:"ð Documentação retroativa"})]}),a.jsx("p",{className:"text-[11px] text-muted-foreground italic",children:"O atendimento aparecerá na agenda do responsável; quem criou verá como tarefa transferida."})]})})(),a.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg border",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"h-4 w-4 text-muted-foreground"}),a.jsx($t,{htmlFor:"custom-time",className:"text-sm cursor-pointer",children:"Horário livre (fora do expediente)"})]}),a.jsx(Al,{id:"custom-time",checked:I,onCheckedChange:E})]}),a.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-amber-500/5 rounded-lg border border-amber-500/30",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(dn,{className:"h-4 w-4 text-amber-600"}),a.jsx($t,{htmlFor:"allow-past",className:"text-sm cursor-pointer",children:"Registrar reunião já realizada (data/horário passado)"})]}),a.jsx(Al,{id:"allow-past",checked:U,onCheckedChange:he=>{ee(he),he&&E(!0)}})]}),U&&a.jsxs("div",{className:"space-y-2 pl-6",children:[a.jsxs("p",{className:"text-xs text-amber-700 dark:text-amber-500",children:["â ï¸ Registro retroativo: a reunião será marcada como ",a.jsx("strong",{children:"ATTENDED"}),", notificações de lead/closer não serão enviadas e o estado comercial do lead NÃO será alterado."]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs",children:"Justificativa (mÃnimo 20 caracteres)"}),a.jsx("textarea",{value:ae,onChange:he=>V(he.target.value),placeholder:"Ex.: Reunião realizada no WhatsApp em 10/06 sem registro prévio no sistema.",rows:2,className:"w-full text-xs rounded-md border border-input bg-background px-2 py-1.5"}),a.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[ae.length,"/20 caracteres"]})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:[a.jsx(dn,{className:"h-4 w-4"}),"Data"]}),Qn||!I&&ea?a.jsx("div",{className:"flex justify-center py-8",children:a.jsx($r,{className:"h-6 w-6 animate-spin text-primary"})}):a.jsx("div",{className:"flex justify-center",children:a.jsx(CA,{mode:"single",selected:d,onSelect:he=>{if(f(he),he&&I&&!U){const We=new Date;We.setHours(0,0,0,0),he<We&&(ee(!0),et.info("Data no passado detectada â ativamos o modo Documentação retroativa. Preencha a justificativa."))}},locale:cn,disabled:he=>{if(U||I)return!1;const We=new Date;return We.setHours(0,0,0,0),he<We||!ci(he)},className:je("rounded-md border pointer-events-auto")})})]}),d&&!I&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:[a.jsx(Vr,{className:"h-4 w-4"}),"Horário DisponÃvel"]}),po?a.jsx("div",{className:"flex justify-center py-4",children:a.jsx($r,{className:"h-5 w-5 animate-spin text-primary"})}):Xr.length===0?a.jsxs("div",{className:"text-center py-4",children:[a.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Nenhum horário disponÃvel nesta data."}),a.jsxs(Oe,{variant:"outline",size:"sm",onClick:()=>E(!0),children:[a.jsx(Vr,{className:"h-3 w-3 mr-1"}),"Usar horário livre"]})]}):a.jsx("div",{className:"grid grid-cols-4 gap-2",children:Xr.map(he=>a.jsx(Oe,{variant:h===he.start?"default":"outline",size:"sm",className:"w-full",onClick:()=>m(he.start),children:li(he.start)},he.start))})]}),d&&I&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:[a.jsx(Vr,{className:"h-4 w-4"}),"Horário Personalizado"]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(br,{value:O,onValueChange:k,children:[a.jsx(pr,{className:"w-20",children:a.jsx(wr,{})}),a.jsx(gr,{children:Ss.map(he=>a.jsx(yt,{value:he,children:he},he))})]}),a.jsx("span",{className:"text-lg font-medium",children:":"}),a.jsxs(br,{value:D,onValueChange:H,children:[a.jsx(pr,{className:"w-20",children:a.jsx(wr,{})}),a.jsx(gr,{children:Sa.map(he=>a.jsx(yt,{value:he,children:he},he))})]}),a.jsxs("span",{className:"text-sm text-muted-foreground ml-2",children:["(",Kt(d,"dd/MM/yyyy",{locale:cn})," à s ",O,":",D,")"]})]}),a.jsx("p",{className:"text-xs text-amber-600",children:"â ï¸ Este horário está fora do expediente regular do calendário"})]})]}),a.jsxs("div",{className:"space-y-6 min-w-0",children:[a.jsxs("div",{className:"space-y-3 p-4 bg-muted/50 rounded-lg border",children:[a.jsxs("p",{className:"text-sm font-medium flex items-center gap-2",children:[a.jsx(F2,{className:"h-4 w-4"}),"Produto de Interesse"]}),a.jsxs(br,{value:z,onValueChange:he=>{W(he),X(""),fe("")},children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:"Selecione o tipo..."})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"curso",children:"Curso"}),a.jsx(yt,{value:"formacao",children:"Formação"}),a.jsx(yt,{value:"assinatura",children:"Assinatura"}),a.jsx(yt,{value:"servico",children:"Serviço"})]})]}),z&&a.jsxs(br,{value:ne,onValueChange:he=>{X(he);const We=Tr?.find(Cr=>Cr.id===he);fe(We?.name||"")},children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:Pr?"Carregando...":"Selecione o produto..."})}),a.jsx(gr,{children:(Tr||[]).map(he=>a.jsx(yt,{value:he.id,children:he.name},he.id))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs($t,{className:"flex items-center gap-2",children:[a.jsx(hA,{className:"h-4 w-4"}),"Observações"]}),a.jsx(hl,{placeholder:"Notas internas sobre o agendamento...",value:pe,onCh
1231ange:he=>_e(he.target.value),rows:3})]}),a.jsxs("div",{className:"space-y-3 p-4 rounded-lg border bg-muted/30",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs($t,{htmlFor:"online-meeting-toggle",className:"flex items-center gap-2 cursor-pointer",children:[a.jsx(dn,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"font-semibold",children:"Reunião online (Meet / Zoom)"})]}),a.jsx(Al,{id:"online-meeting-toggle",checked:ut,onCheckedChange:Qt})]}),ut&&a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx($t,{className:"text-xs",children:"Plataforma"}),a.jsxs(br,{value:mt,onValueChange:he=>ot(he),children:[a.jsx(pr,{children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"google_meet",children:"Google Meet (gerar automático)"}),a.jsx(yt,{value:"zoom_manual",children:"Zoom (link manual)"})]})]})]}),mt==="zoom_manual"&&a.jsxs("div",{className:"space-y-1.5",children:[a.jsx($t,{className:"text-xs",children:"Link do Zoom"}),a.jsx(Jt,{placeholder:"https://zoom.us/j/...",value:or,onChange:he=>Fr(he.target.value)})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx($t,{className:"text-xs",children:"Convidados extras (e-mails separados por vÃrgula)"}),a.jsx(Jt,{placeholder:"ex.: [email protected], [email protected]",value:Ar,onChange:he=>Sr(he.target.value)}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Contato do lead e closer atribuÃdo já são incluÃdos automaticamente."})]})]})]}),a.jsxs("div",{className:"space-y-3 p-4 bg-gradient-to-br from-primary/5 to-primary/10 rounded-lg border border-primary/20",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs($t,{htmlFor:"follow-up-toggle",className:"flex items-center gap-2 cursor-pointer",children:[a.jsx(xc,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"font-semibold",children:"Plano de Follow-up"}),a.jsx(Vt,{variant:"secondary",className:"text-[10px] font-bold",children:"ARMA PRINCIPAL"})]}),a.jsx(Al,{id:"follow-up-toggle",checked:xe,onCheckedChange:Be})]}),xe&&a.jsxs("div",{className:"space-y-3 pt-2",children:[(()=>{const We=fr?.find(jr=>jr.user_id===_a?.id)?.name||"Eu (usuário atual)",Cr=ir?.name?`${ir.name} (closer do lead)`:"Closer destino (nenhum atribuÃdo)",kr=fr?.find(jr=>jr.id===St);return a.jsxs("div",{className:"space-y-2 p-3 bg-background/60 rounded-md border border-primary/15",children:[a.jsxs($t,{className:"text-xs font-semibold flex items-center gap-1.5",children:[a.jsx(xc,{className:"h-3 w-3"})," Quem executa este follow-up?"]}),a.jsxs("div",{className:"grid grid-cols-1 gap-1.5",children:[a.jsxs("label",{className:"flex items-center gap-2 text-xs cursor-pointer rounded-md px-2 py-1.5 hover:bg-muted/50",children:[a.jsx("input",{type:"radio",name:"fu-assignee",checked:Ut==="self",onChange:()=>{Lt("self"),Mt("")}}),a.jsxs("span",{children:["Eu â ",a.jsx("strong",{children:We})]})]}),a.jsxs("label",{className:je("flex items-center gap-2 text-xs rounded-md px-2 py-1.5",ir?.id?"cursor-pointer hover:bg-muted/50":"opacity-50 cursor-not-allowed"),children:[a.jsx("input",{type:"radio",name:"fu-assignee",checked:Ut==="closer",disabled:!ir?.id,onChange:()=>{Lt("closer"),Mt("")}}),a.jsxs("span",{children:["Closer destino â ",a.jsx("strong",{children:Cr})]})]}),a.jsxs("label",{className:"flex items-center gap-2 text-xs cursor-pointer rounded-md px-2 py-1.5 hover:bg-muted/50",children:[a.jsx("input",{type:"radio",name:"fu-assignee",checked:Ut==="other",onChange:()=>Lt("other")}),a.jsx("span",{children:"Outro membro do time"})]}),Ut==="other"&&a.jsxs(br,{value:St,onValueChange:Mt,children:[a.jsx(pr,{className:"h-8 text-xs",children:a.jsx(wr,{placeholder:"Selecionar SDR / Closer..."})}),a.jsx(gr,{children:(fr||[]).map(jr=>a.jsxs(yt,{value:jr.id,className:"text-xs",children:[jr.name," ",jr.role?`· ${jr.role}`:""]},jr.id))})]})]}),a.jsxs("p",{className:"text-[10px] text-muted-foreground pt-1 border-t border-primary/10",children:["Tarefa será atribuÃda a:"," ",a.jsxs("strong",{children:[Ut==="self"&&We,Ut==="closer"&&(ir?.name||"â"),Ut==="other"&&(kr?.name||"â")]})]})]})})(),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Objetivo da ação"}),a.jsxs(br,{value:$e,onValueChange:he=>{ct(he),it({confirmar_presenca:"Confirmar presença na reunião",sondar_objeções:"Sondar objeções e dúvidas",reapresentar_proposta:"Reapresentar proposta com novo ângulo",enviar_ementa:"Enviar ementa e material de apoio",negociar_condicoes:"Negociar condições / desconto",fechar_venda:"Fechar venda (call de fechamento)",resgatar_no_show:"Resgatar lead após no-show",pos_venda:"Onboarding pós-venda",personalizado:""}[he]||"")},children:[a.jsx(pr,{children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"confirmar_presenca",children:"â
Confirmar presença"}),a.jsx(yt,{value:"sondar_objeções",children:"ð Sondar objeções"}),a.jsx(yt,{value:"reapresentar_proposta",children:"ð Reapresentar proposta"}),a.jsx(yt,{value:"enviar_ementa",children:"ð Enviar ementa/material"}),a.jsx(yt,{value:"negociar_condicoes",children:"ð° Negociar condições"}),a.jsx(yt,{value:"fechar_venda",children:"ð¯ Fechar venda"}),a.jsx(yt,{value:"resgatar_no_show",children:"ð Resgatar no-show"}),a.jsx(yt,{value:"pos_venda",children:"ð Onboarding pós-venda"}),a.jsx(yt,{value:"personalizado",children:"âï¸ Personalizado"})]})]})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Ação (será exibida na agenda do Closer)"}),a.jsx(Jt,{placeholder:"Ex.: Ligar para confirmar reunião",value:pt,onChange:he=>it(he.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Oe,{type:"button",size:"sm",variant:He==="relative"?"default":"outline",className:"flex-1 h-8 text-xs",onClick:()=>R("relative"),children:"â± Após a reunião"}),a.jsx(Oe,{type:"button",size:"sm",variant:He==="specific"?"default":"outline",className:"flex-1 h-8 text-xs",onClick:()=>{R("specific"),!at&&d&&De(Ea(d,2))},children:"ð
Data especÃfica"})]}
1231),He==="relative"&&a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Dias após a reunião"}),a.jsxs(br,{value:be,onValueChange:tt,children:[a.jsx(pr,{children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"0",children:"No mesmo dia"}),a.jsx(yt,{value:"1",children:"1 dia"}),a.jsx(yt,{value:"2",children:"2 dias"}),a.jsx(yt,{value:"3",children:"3 dias"}),a.jsx(yt,{value:"5",children:"5 dias"}),a.jsx(yt,{value:"7",children:"1 semana"}),a.jsx(yt,{value:"14",children:"2 semanas"}),a.jsx(yt,{value:"30",children:"1 mês"})]})]})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Canal preferido"}),a.jsxs(br,{value:ze,onValueChange:Pe,children:[a.jsx(pr,{children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"whatsapp",children:"WhatsApp"}),a.jsx(yt,{value:"ligacao",children:"Ligação"}),a.jsx(yt,{value:"email",children:"Email"}),a.jsx(yt,{value:"reuniao",children:"Reunião"})]})]})]})]}),He==="specific"&&a.jsxs("div",{className:"space-y-2 rounded-md border bg-background/60 p-2",children:[a.jsx("div",{className:"flex justify-center",children:a.jsx(CA,{mode:"single",selected:at,onSelect:De,locale:cn,disabled:he=>{const We=new Date;return We.setHours(0,0,0,0),he<We},className:"rounded-md pointer-events-auto"})}),a.jsxs("div",{className:"flex items-center gap-2 justify-center",children:[a.jsx(Vr,{className:"h-3.5 w-3.5 text-muted-foreground"}),a.jsxs(br,{value:le,onValueChange:me,children:[a.jsx(pr,{className:"w-20 h-8",children:a.jsx(wr,{})}),a.jsx(gr,{children:Ss.map(he=>a.jsx(yt,{value:he,children:he},he))})]}),a.jsx("span",{className:"font-bold",children:":"}),a.jsxs(br,{value:we,onValueChange:Fe,children:[a.jsx(pr,{className:"w-20 h-8",children:a.jsx(wr,{})}),a.jsx(gr,{children:["00","15","30","45"].map(he=>a.jsx(yt,{value:he,children:he},he))})]}),a.jsxs(br,{value:ze,onValueChange:Pe,children:[a.jsx(pr,{className:"w-32 h-8 ml-2",children:a.jsx(wr,{})}),a.jsxs(gr,{children:[a.jsx(yt,{value:"whatsapp",children:"WhatsApp"}),a.jsx(yt,{value:"ligacao",children:"Ligação"}),a.jsx(yt,{value:"email",children:"Email"}),a.jsx(yt,{value:"reuniao",children:"Reunião"})]})]})]}),at&&a.jsxs("p",{className:"text-[11px] text-center text-muted-foreground",children:["Agendado para ",Kt(at,"EEE, dd/MM/yyyy",{locale:cn})," à s ",le,":",we]})]})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx($t,{className:"text-xs text-muted-foreground",children:"Roteiro / contexto para quem executar"}),a.jsx(hl,{placeholder:"Ex.: Confirmar presença, validar curso de interesse, oferecer alternativa caso não possa...",value:gt,onChange:he=>st(he.target.value),rows:2,className:"text-xs"})]}),a.jsxs("div",{className:"space-y-1.5 rounded-md bg-background/60 px-2.5 py-2 border border-dashed",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[11px] text-muted-foreground shrink-0",children:"ð¤ Realizado por"}),a.jsxs(br,{value:lt,onValueChange:Le,children:[a.jsx(pr,{className:"h-7 text-xs flex-1",children:a.jsx(wr,{placeholder:"Selecione quem agendou"})}),a.jsx(gr,{children:(fr||[]).map(he=>{const We=he.user_id===_a?.id;return a.jsxs(yt,{value:he.id,className:"text-xs",children:[he.name,We?" (você)":"",he.role?` · ${he.role}`:""]},he.id)})})]})]}),a.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground pt-0.5",children:[a.jsxs("span",{children:["Origem: ",a.jsx("strong",{className:"text-foreground",children:(fr||[]).find(he=>he.id===lt)?.name||"â"})]}),a.jsx("span",{children:"â"}),a.jsxs("span",{children:["Destino: ",a.jsx("strong",{className:"text-foreground",children:(fr||[]).find(he=>he.id===Re)?.name||"Closer responsável"})]})]})]})]})]}),(h||I&&d)&&a.jsxs("div",{className:"space-y-3 p-4 bg-muted/50 rounded-lg border",children:[a.jsx("p",{className:"text-sm font-medium",children:"Notificar o lead via:"}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Nw,{id:"send-whatsapp",checked:C,onCheckedChange:he=>T(he===!0)}),a.jsxs($t,{htmlFor:"send-whatsapp",className:"flex items-center gap-1.5 cursor-pointer",children:[a.jsx(Tu,{className:"h-4 w-4 text-green-500"}),"WhatsApp"]})]}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Nw,{id:"send-email",checked:L,onCheckedChange:he=>P(he===!0)}),a.jsxs($t,{htmlFor:"send-email",className:"flex items-center gap-1.5 cursor-pointer",children:[a.jsx(mo,{className:"h-4 w-4 text-blue-500"}),"Email"]})]})]}),!C&&!L&&a.jsx("p",{className:"text-xs text-amber-600",children:"â ï¸ Nenhuma notificação será enviada ao lead"}),(C||L)&&a.jsx(Oe,{variant:"ghost",size:"sm",className:"mt-2",onClick:()=>G(!q),children:q?a.jsxs(a.Fragment,{children:[a.jsx(k2,{className:"h-4 w-4 mr-1"}),"Ocultar mensagem"]}):a.jsxs(a.Fragment,{children:[a.jsx(T2,{className:"h-4 w-4 mr-1"}),"Editar mensagem"]})}
1231),q&&a.jsxs("div",{className:"space-y-4 pt-3 border-t mt-3",children:[C&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs($t,{htmlFor:"whatsapp-msg",className:"flex items-center gap-1.5",children:[a.jsx(Tu,{className:"h-3 w-3 text-green-500"}),"Mensagem WhatsApp"]}),a.jsx(hl,{id:"whatsapp-msg",value:Ae,onChange:he=>se(he.target.value),rows:8,className:"text-xs font-mono"})]}),L&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs($t,{htmlFor:"email-subject",className:"flex items-center gap-1.5",children:[a.jsx(mo,{className:"h-3 w-3 text-blue-500"}),"Assunto do Email"]}),a.jsx(Jt,{id:"email-subject",value:S,onChange:he=>Q(he.target.value),className:"text-sm"})]})]})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs($t,{className:"flex items-center gap-2 text-sm font-medium",children:[a.jsx(cs,{className:"h-4 w-4"}),"Agendando para:"]}),a.jsxs(br,{value:Re,onValueChange:Xe,children:[a.jsx(pr,{children:a.jsx(wr,{placeholder:"Selecione o responsável..."})}),a.jsx(gr,{children:(fr||[]).map(he=>a.jsx(yt,{value:he.id,children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:he.name}),he.role&&a.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",he.role,")"]})]})},he.id))})]}),Re&&(()=>{const he=fr?.find(Cr=>Cr.id===Re);if(!he)return null;const We=ir?.id===Re;return a.jsxs("div",{className:"flex items-center gap-3 p-3 bg-primary/5 border border-primary/20 rounded-lg",children:[a.jsxs(zA,{className:"h-10 w-10",children:[a.jsx(Sh,{src:he.foto_url||""}),a.jsx($A,{className:"bg-primary/10 text-primary font-semibold text-sm",children:he.name?.split(" ").map(Cr=>Cr[0]).join("").slice(0,2).toUpperCase()})]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-semibold text-sm truncate",children:he.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:We?"Responsável atual do lead":"ReatribuÃdo manualmente"})]}),a.jsx(cs,{className:"h-4 w-4 text-primary shrink-0"})]})})(),!Re&&a.jsx("p",{className:"text-xs text-amber-600",children:"â ï¸ Selecione o responsável pelo atendimento"})]}),a.jsx("div",{className:"space-y-2 pt-4 border-t",children:(()=>{const he=[];c||he.push("Tipo de atendimento"),d||he.push("Data da reunião"),!h&&!I&&he.push("Horário"),Re||he.push("Responsável"),U&&ae.trim().length<20&&he.push("Justificativa (â¥20 caracteres)");const We=he.length?he.join(" · "):"";return a.jsxs(a.Fragment,{children:[We&&a.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:[a.jsx("span",{className:"font-semibold shrink-0",children:"â ï¸ Faltando:"}),a.jsx("span",{className:"flex-1",children:We})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Oe,{variant:"outline",className:"flex-1",onClick:Ro,disabled:g,children:"Cancelar"}),a.jsx(Oe,{className:"flex-1",onClick:Bl,disabled:!!We||g,title:We||void 0,children:g?a.jsxs(a.Fragment,{children:[a.jsx($r,{className:"mr-2 h-4 w-4 animate-spin"}),"Agendando..."]}):"Confirmar Agendamento"})]})]})})()})]})})}const nde="America/Sao_Paulo",ade=[{value:"ligacao",label:"Ligar",icon:Pu},{value:"whatsapp",label:"WhatsApp",icon:qs},{value:"email",label:"E-mail",icon:mo},{value:"reuniao",label:"Reunião",icon:yh},{value:"tarefa",label:"Tarefa",icon:AT}],S4={ligacao:"Ligar para o lead",whatsapp:"Enviar WhatsApp",email:"Enviar e-mail",reuniao:"Reunião de follow-up",tarefa:"Tarefa de follow-up"};function Kf(){const e=new Intl.DateTimeFormat("en-CA",{timeZone:nde,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(new Date),t=r=>Number(e.find(n=>n.type===r)?.value??0);return new Date(t("year"),t("month")-1,t("day"),t("hour"),t("minute"))}function b1(e){const t=r=>String(r).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}function sde(e){const t=Kf();return e.type==="hours"?(t.setHours(t.getHours()+e.amount),t):(t.setDate(t.getDate()+e.amount),t.setHours(e.hour??9,0,0,0),t)}const k4=[{key:"1",label:"Hoje +2h",hint:"1",build:()=>{const e=Kf();return e.setHours(e.getHours()+2),e}},{key:"2",label:"Amanhã 9h",hint:"2",build:()=>{const e=Kf();return e.setDate(e.getDate()+1),e.setHours(9,0,0,0),e}},{key:"3",label:"3 dias",hint:"3",build:()=>{const e=Kf();return e.setDate(e.getDate()+3),e.setHours(9,0,0,0),e}},{key:"4",label:"Próxima semana",hint:"4",build:()=>{const e=Kf();return e.setDate(e.getDate()+7),e.setHours(9,0,0,0),e}}];function ode({options:e,onClose:t}){const{user:r}=Zn(),n=jl(),s=vn(),o=A.useRef(null),l=(e.mode??"create")==="edit",c=e.defaults??{},[u,d]=A.useState(c.action??"whatsapp"),[f,h]=A.useState(()=>c.scheduledAt?b1(new Date(c.scheduledAt)):b1(k4[1].build())),[m,g]=A.useState(c.scheduledAt?null:"2"),[p,x]=A.useState(c.responsavelId??""),[y,b]=A.useState(c.objective??null),[j,C]=A.useState(c.priority??"normal"),[T,L]=A.useState(c.title??""),[P,I]=A.useState(c.description??""),[E,O]=A.useState({}),[k,D]=A.useState("none"),[H,U]=A.useState(!1),{data:ee=[]}=w5(),{config:ae}
1231=jee(),V=A.useMemo(()=>(ae.presets??[]).length?ae.presets.map(te=>({key:te.key,label:te.label,hint:te.key,build:()=>sde(te)})):k4,[ae.presets]),{data:q}=jt({queryKey:["followup-composer-entity",e.leadId,e.propostaId],enabled:!!(e.leadId||e.propostaId),staleTime:6e4,queryFn:async()=>{if(e.propostaId){const{data:fe}=await J.from("propostas_comerciais").select("id, codigo_proposta, titulo, total, lead_id, vendedor_id").eq("id",e.propostaId).maybeSingle();return{label:fe?.titulo||fe?.codigo_proposta||"Proposta",value:fe?.total??null,score:null,vendedorId:fe?.vendedor_id??null}}const{data:te}=await J.from("leads").select("id, name, company_name, score, vendedor_id").eq("id",e.leadId).maybeSingle();return{label:te?.name||te?.company_name||"Lead",value:null,score:te?.score??null,vendedorId:te?.vendedor_id??null}}}),G=c.entityLabel||q?.label||null,Ae=c.entityValue??q?.value??null,se=c.leadScore??q?.score??null;A.useEffect(()=>{if(p)return;let te=!1;return(async()=>{const fe=r?.id?await lR(r.id):null;te||x(fe??q?.vendedorId??"")})(),()=>{te=!0}},[r?.id,q?.vendedorId,p]),A.useEffect(()=>{const te=setTimeout(()=>o.current?.focus(),60);return()=>clearTimeout(te)},[]);const S=A.useMemo(()=>typeof se!="number"||se<=0?null:se>=80?{emoji:"ð¥",label:"Quente"}:se>=50?{emoji:"ð ",label:"Morno"}:{emoji:"ð¢",label:"Frio"},[se]),Q=te=>{const fe=V.find(pe=>pe.key===te);fe&&(h(b1(fe.build())),g(te),O(pe=>({...pe,when:""})))};function z(){const te={};return u||(te.action="Escolha o tipo de ação."),f?Number.isNaN(new Date(f).getTime())&&(te.when="Data inválida."):te.when="Informe a data e hora do follow-up.",p||(te.responsavel="Selecione o responsável."),!e.leadId&&!e.propostaId&&(te.vinculo="Vincule o follow-up a um lead ou proposta."),O(te),Object.keys(te).length===0}async function W(){const te=new Date(f).toISOString(),fe=T.trim()||S4[u];return l&&e.followUpId&&e.followUpSource!=="proposta"?(await uR({id:e.followUpId,channel:u,title:fe,description:P.trim()||null,scheduledAt:te,vendedorId:p||null,objective:y,priority:j}),{id:e.followUpId}):e.propostaId?{id:(await LR({propostaId:e.propostaId,vendedorId:p||null,channel:u,mode:"scheduled",scheduledAt:te,leadId:e.leadId??null,subject:fe,proximaAcao:P.trim()||null,layers:{objective:y,priority:j}}))?.id??null}:{id:(await cR({leadId:e.leadId,vendedorId:p||null,channel:u,title:fe,description:P.trim()||null,scheduledAt:te,objective:y,priority:j}))?.id??null}}async function ne(te){if(z()){D(te?"open":"create");try{const fe=await W();AR(s),s.invalidateQueries({queryKey:["lead-follow-ups"]}),s.invalidateQueries({queryKey:["lead-quick-followup"]}),s.invalidateQueries({queryKey:["proposta-followup-summary"]}),et.success(l?"Follow-up atualizado":"Follow-up criado"),e.onCreated?.(fe),t(),te&&n(Une(e.propostaId?{propostaId:e.propostaId}:{leadId:e.leadId??void 0}))}catch(fe){const pe=fe instanceof Error?fe.message:"Erro ao salvar follow-up";O(_e=>({..._e,submit:pe})),et.error(pe)}finally{D("none")}}}const X=k!=="none";return a.jsxs(a.Fragment,{children:[a.jsx(Qa,{open:!0,onOpenChange:te=>!te&&!X&&t(),children:a.jsxs(Ba,{className:"w-[calc(100vw-1.5rem)] sm:max-w-[560px] lg:max-w-[720px] top-4 translate-y-0 max-h-[calc(100dvh-2rem)] h-[calc(100dvh-2rem)] sm:h-auto p-0 gap-0 overflow-hidden flex flex-col",onKeyDown:te=>{(te.metaKey||te.ctrlKey)&&te.key==="Enter"&&(te.preventDefault(),ne(!1))},children:[a.jsxs(Ks,{className:"px-5 pt-5 pb-3 border-b space-y-2 text-left",children:[a.jsxs(Va,{className:"text-base flex items-center gap-2",children:[a.jsx(yz,{className:"h-4 w-4 text-primary"}),l?"Editar follow-up":"Novo follow-up"]}),a.jsx(Po,{className:"sr-only",children:"Criação canônica de follow-up manual"}),(G||S||Ae)&&a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[G&&a.jsx("span",{className:"text-sm font-medium text-foreground truncate max-w-[240px]",children:G}),S&&a.jsxs(Vt,{variant:"outline",className:"h-5 text-[10px] gap-1",children:[a.jsx("span",{"aria-hidden":!0,children:S.emoji}),S.label,typeof se=="number"&&a.jsxs("span",{className:"opacity-70",children:["· ",se]})]}),typeof Ae=="number"&&Ae>0&&a.jsx(Vt,{variant:"secondary",className:"h-5 text-[10px]",children:NW(Ae)}
1231)]})]}),a.jsx(Xx,{className:"flex-1 min-h-0",children:a.jsxs("div",{className:"px-5 py-4 space-y-4",children:[a.jsxs("section",{className:"space-y-2",children:[a.jsx($t,{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"O quê"}),a.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-5 gap-2",children:ade.map((te,fe)=>{const pe=te.icon,_e=u===te.value;return a.jsxs("button",{ref:fe===0?o:void 0,type:"button",onClick:()=>{d(te.value),O(xe=>({...xe,action:""}))},"aria-pressed":_e,className:je("flex flex-col items-center gap-1 rounded-md border px-2 py-2.5 text-[11px] font-medium transition-colors",_e?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:border-primary/40 hover:text-foreground"),children:[a.jsx(pe,{className:"h-4 w-4"}),te.label]},te.value)})}),E.action&&a.jsx("p",{className:"text-[11px] text-destructive",children:E.action}),u==="reuniao"&&e.leadId&&a.jsx("button",{type:"button",onClick:()=>U(!0),className:"text-[11px] text-primary underline underline-offset-2",children:"à uma reunião de verdade? Agendar na agenda canônica"})]}),a.jsxs("section",{className:"space-y-2",children:[a.jsx($t,{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Quando"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:V.map(te=>a.jsxs("button",{type:"button",onClick:()=>Q(te.key),className:je("rounded-full border px-3 py-1 text-[11px] font-medium transition-colors",m===te.key?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:border-primary/40"),children:[te.label,a.jsx("span",{className:"ml-1.5 opacity-50",children:te.hint})]},te.key))}),a.jsx(Jt,{type:"datetime-local",value:f,onChange:te=>{h(te.target.value),g(null),O(fe=>({...fe,when:""}))},onKeyDown:te=>{/^[1-4]$/.test(te.key)&&(te.altKey||te.metaKey)&&(te.preventDefault(),Q(te.key))},className:"h-9","aria-invalid":!!E.when}),E.when?a.jsx("p",{className:"text-[11px] text-destructive",children:E.when}):a.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Horário de BrasÃlia (America/Sao_Paulo)"})]}),a.jsxs("section",{className:"space-y-2",children:[a.jsx($t,{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Quem"}),a.jsxs(br,{value:p,onValueChange:te=>{x(te),O(fe=>({...fe,responsavel:""}))},children:[a.jsx(pr,{className:"h-9",children:a.jsx(wr,{placeholder:"Selecione o responsável"})}),a.jsx(gr,{children:ee.map(te=>a.jsx(yt,{value:te.id,children:a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsxs(zA,{className:"h-5 w-5",children:[a.jsx(Sh,{src:te.foto_url??void 0,alt:""}),a.jsx($A,{className:"text-[9px]",children:(te.name??"?").slice(0,2).toUpperCase()})]}),a.jsx("span",{className:"text-xs",children:te.name})]})},te.id))})]}),E.responsavel&&a.jsx("p",{className:"text-[11px] text-destructive",children:E.responsavel})]}),a.jsxs("section",{className:"space-y-3",children:[a.jsxs($t,{className:"text-xs uppercase tracking-wide text-muted-foreground flex items-center gap-1.5",children:[a.jsx(Lu,{className:"h-3.5 w-3.5"}),"Contexto"]}),a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:DR.map(te=>{const fe=y===te.value;return a.jsx("button",{type:"button",onClick:()=>b(fe?null:te.value),"aria-pressed":fe,className:je("rounded-md border px-2 py-2 text-[11px] font-medium text-left transition-colors",fe?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:border-primary/40 hover:text-foreground"),children:te.label},te.value)})}),a.jsx("div",{className:"flex flex-wrap gap-2",children:One.map(te=>a.jsx("button",{type:"button",onClick:()=>C(te.value),"aria-pressed":j===te.value,className:je("rounded-full border px-3 py-1 text-[11px] font-medium transition-colors",j===te.value?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:border-primary/40"),children:te.label},te.value))}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx($t,{htmlFor:"fu-title",className:"text-[11px]",children:"TÃtulo (opcional)"}),a.jsx(Jt,{id:"fu-title",value:T,onChange:te=>L(te.target.value),placeholder:S4[u],className:"h-9",maxLength:140})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx($t,{htmlFor:"fu-notes",className:"text-[11px]",children:"Nota / próximo passo (opcional)"}),a.jsx(hl,{id:"fu-notes",value:P,onChange:te=>I(te.target.value),placeholder:"Ex.: cobrar retorno do decisor sobre a proposta enviada",rows:3,className:"min-h-[76px] resize-y",maxLength:1e3,onKeyDown:te=>{te.key==="Enter"&&!te.shiftKey&&(te.preventDefault(),ne(!1))}})]})]}),a.jsxs("section",{className:"space-y-1.5",children:[a.jsxs($t,{className:"text-xs uppercase tracking-wide text-muted-foreground flex items-center gap-1.5",children:[a.jsx(wa,{className:"h-3.5 w-3.5"}),"VÃnculo"]}),a.jsx("div",{className:"rounded-md border bg-muted/40 px-3 py-2 text-[11px] text-muted-foreground flex items-center gap-2",children:e.propostaId?a.jsxs(a.Fragment,{children:[a.jsx(ss,{className:"h-3.5 w-3.5 text-primary"}),"Proposta ",G?`· ${G}`:""," (followup_tasks · manual)"]}):e.leadId?a.jsxs(a.Fragment,{children:[a.jsx(cs,{className:"h-3.5 w-3.5 text-primary"}),"Lead ",G?`· ${G}`:""]}):a.jsx("span",{className:"text-destructive",children:"Sem vÃnculo â abra o composer a partir de um lead ou proposta."})}),E.vinculo&&a.jsx("p",{className:"text-[11px] text-destructive",children:E.vinculo})]}),E.submit&&a.jsx("p",{className:"text-[11px] text-destructive",children:E.submit})]})}),a.jsxs("div",{className:"border-t px-5 py-3 flex flex-wrap items-center justify-end gap-2 bg-background",children:[a.jsx(Oe,{variant:"ghost",size:"sm",onClick:t,disabled:X,children:"Cancelar"}),a.jsx(Oe,{variant:"outline",size:"sm",onClick:()=>ne(!0),disabled:X,children:k==="open"?a.jsx($r,{className:"h-3.5 w-3.5 animate-spin"}):"Criar e abrir"}),a.jsx(Oe,{size:"sm",onClick:()=>ne(!1),disabled:X,children:k==="create"?a.jsx($r,{className:"h-3.5 w-3.5 animate-spin"}):l?"Salvar follow-up":"Criar follow-up"})]})]})}
1231),e.leadId&&a.jsx(tde,{open:H,onOpenChange:U,leadId:e.leadId,leadName:G??void 0})]})}const CO=A.createContext(null);function ide({children:e}){const[t,r]=A.useState(null),n=A.useCallback(i=>r(i),[]),s=A.useCallback(()=>r(null),[]),o=A.useMemo(()=>({open:n,close:s}),[n,s]);return a.jsxs(CO.Provider,{value:o,children:[e,t&&a.jsx(ode,{options:t,onClose:s},`${t.mode??"create"}-${t.leadId??""}-${t.propostaId??""}-${t.followUpId??""}`)]})}function b8e(){const e=A.useContext(CO);return e||{open:()=>{console.warn("[FollowUpComposer] provider ausente â nada foi aberto.")},close:()=>{}}}const lde={"/curso/sales-expert":"/formacoes/formacao-sales-expert","/curso/advpl-avancado-oop-mvc-e-integracoes-rest":"/curso/advpl-advanced-mvc-tlpp-rest-integracoes","/curso/advpl-fundamental-programacao-protheus-do-zero":"/curso/advpl-professional","/curso/ai-for-sales":"/curso/sales-ai-professional","/curso/gestao-de-vendas-e-automauao-com-crm":"/curso/sales-automation-crm","/curso/sales-ai":"/curso/sales-ai-professional","/curso/sales-automation":"/curso/sales-automation-crm","/curso/sales-b2b":"/curso/sales-performance-sdr-closer-vendas-b2b","/curso/sales-closer":"/curso/sales-performance-sdr-closer-vendas-b2b","/curso/sales-leader":"/cursos/sales-360-academy","/curso/sales-sdr":"/curso/sales-performance-sdr-closer-vendas-b2b","/curso/totvs-basis-administracao-de-ambiente-protheus":"/curso/totvs-erp-foundation","/curso/totvs-configurador-dicionario-de-dados-e-parametrizacoes":"/curso/totvs-erp-foundation","/curso/totvs-contabilidade-sigactb":"/curso/totvs-funcional-expert","/curso/totvs-erp-foundation-fundamentos-e-ecossistema-protheus":"/curso/totvs-erp-foundation","/curso/totvs-estoque-e-compras-sigaest-e-sigacom":"/curso/totvs-supply-chain-expert","/curso/totvs-financeiro-sigafin-contas-a-pagar-e-receber":"/curso/totvs-funcional-expert","/curso/totvs-fiscal-sigafis-tributacao-e-sped":"/curso/totvs-funcional-expert","/curso/totvs-manufatura-sigapcp-planejamento-e-producao":"/curso/totvs-supply-chain-expert","/curso/totvs-manutencao-sigamnt-plant-maintenance":"/cursos/academias-totvs","/curso/totvs-rh-sigagpe-folha-de-pagamento-e-esocial":"/curso/totvs-rh-expert","/curso/totvs-tl-e-framework-avancado":"/curso/advpl-advanced-mvc-tlpp-rest-integracoes","/curso/totvs-vendas-e-faturamento-sigafat":"/curso/totvs-supply-chain-expert","/formacoes/formacao-desenvolvedor-protheus-advpl":"/formacoes/formacao-totvs-developers-expert","/formacoes/formacao-erp-totvs-foundation":"/curso/totvs-erp-foundation","/formacoes/formacao-totvs-full-stack-consultor-desenvolvedor":"/cursos/academias-totvs","/formacoes/formacao-totvs-funcional-expert-financeiro-fiscal":"/curso/totvs-funcional-expert","/formacoes/formacao-totvs-rh-expert-folha-esocial":"/curso/totvs-rh-expert","/formacoes/formacao-totvs-supply-chain-expert":"/curso/totvs-supply-chain-expert","/formacoes/sales-expert":"/formacoes/formacao-sales-expert"};function I4({children:e}){const t=fn(),r=lde[t.pathname.replace(/\/$/,"")];return r?a.jsx(Me,{replace:!0,to:`${r}${t.search}${t.hash}`}):a.jsx(a.Fragment,{children:e})}var uv="Popover",[jO]=Ha(uv,[Sc]),Uh=Sc(),[cde,Tc]=jO(uv),EO=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:i=!1}=e,l=Uh(t),c=A.useRef(null),[u,d]=A.useState(!1),[f,h]=Io({prop:n,defaultProp:s??!1,onChange:o,caller:uv});return a.jsx(wh,{...l,children:a.jsx(cde,{scope:t,contentId:la(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:A.useCallback(()=>d(!0),[]),onCustomAnchorRemove:A.useCallback(()=>d(!1),[]),modal:i,children:r})})};EO.displayName=uv;var BO="PopoverAnchor",ude=A.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Tc(BO,r),o=Uh(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=s;return A.useEffect(()=>(i(),()=>l()),[i,l]),a.jsx(_h,{...o,...n,ref:t})});ude.displayName=BO;var NO="PopoverTrigger",SO=A.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Tc(NO,r),o=Uh(r),i=er(t,s.triggerRef),l=a.jsx(_t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":PO(s.open
1231),...n,ref:i,onClick:At(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:a.jsx(_h,{asChild:!0,...o,children:l})});SO.displayName=NO;var SC="PopoverPortal",[dde,Ade]=jO(SC,{forceMount:void 0}),kO=e=>{const{__scopePopover:t,forceMount:r,children:n,container:s}=e,o=Tc(SC,t);return a.jsx(dde,{scope:t,forceMount:r,children:a.jsx(Na,{present:r||o.open,children:a.jsx(FA,{asChild:!0,container:s,children:n})})})};kO.displayName=SC;var BA="PopoverContent",IO=A.forwardRef((e,t)=>{const r=Ade(BA,e.__scopePopover),{forceMount:n=r.forceMount,...s}=e,o=Tc(BA,e.__scopePopover);return a.jsx(Na,{present:n||o.open,children:o.modal?a.jsx(mde,{...s,ref:t}):a.jsx(hde,{...s,ref:t})})});IO.displayName=BA;var fde=gc("PopoverContent.RemoveScroll"),mde=A.forwardRef((e,t)=>{const r=Tc(BA,e.__scopePopover),n=A.useRef(null),s=er(t,n),o=A.useRef(!1);return A.useEffect(()=>{const i=n.current;if(i)return qx(i)},[]),a.jsx(jh,{as:fde,allowPinchZoom:!0,children:a.jsx(FO,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:At(e.onCloseAutoFocus,i=>{i.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:At(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:At(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),hde=A.forwardRef((e,t)=>{const r=Tc(BA,e.__scopePopover),n=A.useRef(!1),s=A.useRef(!1);return a.jsx(FO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),FO=A.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=Tc(BA,r),m=Uh(r);return zx(),a.jsx(Ch,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:a.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:a.jsx(Lx,{"data-state":PO(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),TO="PopoverClose",pde=A.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Tc(TO,r);return a.jsx(_t.button,{type:"button",...n,ref:t,onClick:At(e.onClick,()=>s.onOpenChange(!1))})});pde.displayName=TO;var gde="PopoverArrow",xde=A.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Uh(r);return a.jsx(Dx,{...s,...n,ref:t})});xde.displayName=gde;function PO(e){return e?"open":"closed"}var vde=EO,yde=SO,bde=kO,LO=IO;const kC=vde,IC=yde,dv=A.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},s)=>a.jsx(bde,{children:a.jsx(LO,{ref:s,align:t,sideOffset:r,className:je("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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})}));dv.displayName=LO.displayName;const wde={Code:mT,Database:gT,Cloud:fT,Shield:_i,Settings:Gg,Package:F2,Server:L$,Cpu:Lz,HardDrive:Zz,Network:x$,Lock:Nx,Key:wT,FileCode:Qz,Terminal:Z$,GitBranch:Wz,Layers:xh,Boxes:xz,Component:Pz,Workflow:uq,Zap:DA,Sparkles:Nr,Brain:vl,Lightbulb:Tm,Target:Lu,Award:kn,TrendingUp:ls,BarChart:Ez,PieChart:Bz,Activity:iz,Radio:I$,Wifi:cq,Bluetooth:hz,Cast:_z,Smartphone:H$,Tablet:Y$,Monitor:cl,Laptop:o$,Gauge:Kz,Rocket:LA,Puzzle:N$,Briefcase:zs,GraduationCap:Mn,Home:Ex,Users:wa,User:cs,Mail:mo,Phone:Pu,Calendar:dn,Clock:Vr,Search:vc,Plus:BT,Minus:h$,Check:$s,X:Ua,ChevronRight:Vs,ChevronDown:rs,ArrowRight:_r,ArrowLeft:TA,ArrowUp:Az,ArrowDown:uz,Edit:$$,Trash2:TT,Copy:PA,Save:ST,Download:S2,Upload:aq,Share2:IT,Eye:k2,EyeOff:Mz,Heart:t$,Star:os,Bell:Fm,MessageSquare:Tu,Image:n$,Video:yh,Music:p$,FileText:hA,File:Vz,Folder:qz,Globe:yT,MapPin:Sx,Navigation:g$,Compass:pT,ShoppingCart:O$,Credit
1231Card:N2,DollarSign:xT,Percent:_$,Receipt:F$,Building2:Ra,Factory:Uz,Store:K$,Warehouse:lq,BookOpen:Zo,Book:pz,Bookmark:lT,Tag:L2,Tags:X$,Hash:Jz,Link:u$,ExternalLink:Iu,Send:kT,Inbox:a$,Archive:cz,Play:Pm,Pause:Gb,SkipForward:FT,SkipBack:Q$,Volume2:oq,Sun:om,Moon:sm,Palette:ET,Paintbrush:y$,Pen:T2,PenTool:b$,Wrench:dq,Hammer:Xz,Cog:hT,SlidersHorizontal:V$,AlertTriangle:vh,AlertCircle:Cx,Info:bT,HelpCircle:uT,Ban:fz,RefreshCw:xc,RotateCcw:NT,Repeat:T$,Loader2:$r,List:CT,LayoutGrid:i$,LayoutList:l$,Table:W$,Grid3X3:Yz,BarChart3:_x,LineChart:jz,TrendingDown:rq,Flame:vi,Crown:jx,Trophy:fl,Medal:A$,Gem:Gz,Headphones:e$,Mic:f$,Camera:bz,Film:Hz,Plane:E$,Car:wz,Train:tq,Ship:M$,Coffee:Fz,Pizza:j$,Apple:lz,Leaf:c$,Cat:Cz,Dog:Dz,Bug:qb,Fish:$z,Siren:U$,ShieldCheck:P2,ShieldAlert:R$,Fingerprint:zz,Wallet:iq,PiggyBank:C$,Banknote:mz,Coins:Tz,CircleDot:Sz,Circle:dT,Square:q$,Triangle:nq,Hexagon:r$,Pentagon:w$,Octagon:v$};function _de(e){return e.includes("-")?e.split("-").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""):e}function Gm(e){if(!e)return null;const t=_de(e);return wde[t]??null}function w8e(e,t){return Gm(e)??t}function NA({name:e,fallbackName:t,suspenseFallback:r,...n}){const s=e||t;if(!s)return null;const o=Gm(s)||(t&&t!==e?Gm(t):null);return o?a.jsx(o,{...n}):null}const FC="/assets/logo-trainning-sRIdY_dr.png",DO=()=>{const{user:e}=Zn(),{toast:t}=hh(),[r,n]=A.useState([]),[s,o]=A.useState(0),[i,l]=A.useState(!0),[c,u]=A.useState(null),[d,f]=A.useState(!1),h=A.useCallback(async()=>{if(e)try{const{data:y,error:b}=await J.from("user_notifications").select(` 1232 id, 1233 is_read, 1234 notification:notifications!inner ( 1235 id, 1236 title, 1237 message, 1238 type, 1239 priority, 1240 link, 1241 image_url, 1242 created_at 1243 ) 1244 `).eq("user_id",e.id).eq("notification.is_active",!0).or(`expires_at.is.null,expires_at.gt.${new Date().toISOString()}`,{foreignTable:"notification"}).order("created_at",{ascending:!1}).limit(30);b&&console.error("Error fetching user_notifications:",b);const{data:j,error:C}=await J.from("urgent_notifications").select("*").eq("user_id",e.id).order("created_at",{ascending:!1}).limit(30);C&&console.error("Error fetching urgent_notifications:",C);const{data:T,error:L}=await J.from("lead_internal_notifications").select("*").eq("to_user_id",e.id).order("created_at",{ascending:!1}).limit(30);L&&console.error("Error fetching lead_internal_notifications:",L);const P=(y||[]).filter(k=>k.notification).map(k=>({...k.notification,is_read:k.is_read,user_notification_id:k.id,priority:k.notification?.priority||"medium",source:"notifications"})),I=(j||[]).map(k=>({id:k.id,title:k.title,message:k.message,type:k.type||"urgent",priority:k.type==="sale_confirmed"?"high":"urgent",link:k.link,created_at:k.created_at,is_read:k.dismissed===!0,user_notification_id:k.id,source:"urgent"})),E=(T||[]).map(k=>({id:k.id,title:k.title,message:k.message,type:"internal",priority:k.urgency==="important"?"high":"medium",link:`/admin/leads?leadId=${k.lead_id}`,created_at:k.created_at,is_read:k.is_read===!0,user_notification_id:k.id,source:"internal"})),O=[...P,...I,...E].sort((k,D)=>new Date(D.created_at).getTime()-new Date(k.created_at).getTime()).slice(0,50);n(O),o(O.filter(k=>!k.is_read).length)}catch(y){console.error("Error fetching notifications:",y)}finally{l(!1)}},[e]),m=async(y,b)=>{try{const j=r.find(T=>T.user_notification_id===y),C=b||j?.source;if(C==="urgent"){const{error:T}=await J.from("urgent_notifications").update({dismissed:!0,displayed:!0}).eq("id",y);if(T)throw T}else if(C==="internal"){const{error:T}=await J.from("lead_internal_notifications").update({is_read:!0,read_at:new Date().toISOString()}).eq("id",y);if(T)throw T}else{const{error:T}=await J.from("user_notifications").update({is_read:!0,read_at:new Date().toISOString()}).eq("id",y);if(T)throw T}n(T=>T.map(L=>L.user_notification_id===y?{...L,is_read:!0}:L)),o(T=>Math.max(0,T-1))}catch(j){console.error("Error marking notification as read:",j)}},g=async()=>{if(e)try{const{error:y}=await J.from("user_notifications").update({is_read:!0,read_at:new Date().toISOString()}).eq("user_id",e.id).eq("is_read",!1);y&&console.error("Error marking user_notifications as read:",y);const{error:b}=await J.from("urgent_notifications").update({dismissed:!0,displayed:!0}).eq("user_id",e.id).eq("dismissed",!1).neq("type","post_call_followup");b&&console.error("Error marking urgent_notifications as read:",b);const{error:j}=await J.from("lead_internal_notifications").update({is_read:!0,read_at:new Date().toISOString()}).eq("to_user_id",e.id).eq("is_read",!1);j&&console.error("Error marking lead_internal_notifications as read:",j),n(C=>C.map(T=>({...T,is_read:!0}))),o(0)}catch(y){console.error("Error marking all as read:",y)}},p=async y=>{if(e)try{const{error:b}=await J.from("user_notifications").insert({user_id:e.id,notification_id:y});if(b&&b.code!=="23505")throw b}catch(b){console.error("Error creating user notification:",b)}},x=()=>{f(!1),c?.user_notification_id&&m(c.user_notification_id),u(null)};return A.useEffect(()=>{if(!e)return;h();const y=`notifications-channel-${e.id}`,b=J.channel(y).on("postgres_changes",{event:"INSERT",schema:"public",table:"notifications",filter:"is_public=eq.true"},async j=>{const C=j.new;if(C?.is_public!==!0)return;const T=UJ("notification",C.id,C.created_at);dL(T)||(AL(T,C.type||"notification"),await p(C.id),u({id:C.id,title:C.title,message:C.message,type:C.type,priority:C.priority,link:C.link,image_url:C.image_url,created_at:C.created_at}),f(!0),h())}).on("postgres_changes",{event:"INSERT",schema:"public",table:"user_notifications",filter:`user_id=eq.${e.id}`},()=>{h()}).on("postgres_changes",{event:"INSERT",schema:"public",table:"urgent_notifications",filter:`user_id=eq.${e.id}`},()=>{h()}).on("postgres_changes",{event:"UPDATE",schema:"public",table:"urgent_notifications",filter:`user_id=eq.${e.id}`},()=>{h()}).on("postgres_changes",{event:"INSERT",schema:"public",table:"lead_internal_notifications",filter:`to_user_id=eq.${e.id}`},()=>{h()}).subscribe();return()=>{J.removeChannel(b)}},[e,h,t]),{notifications:r,unreadCount:s,loading:i,markAsRead:m,markAllAsRead:g,refetch:h,currentPushNotification:c,showPushModal:d,handleClosePushModal:x}},F4="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";function Cde(e){if(!e)return;const t=e.match(new RegExp(`^/(?:admin|comercial)/leads/(${F4})/?(?:\\?.*)?$`,"i"));if(t)return`/admin/leads/${t[1]}/central`;try{const[r,n=""]=e.split("?",2);if(r==="/admin/leads"||r==="/comercial/leads"){const s=new URLSearchParams(n),o=s.get("leadId")||s.get("id");if(o&&new RegExp(`^${F4}$`,"i").test(o))return`/admin/leads/${o}/central`}}catch{return e}return e}const T4=()=>{const{notifications:e,unreadCount:t,markAsRead:r,markAllAsRead:n}=DO(),s=o=>
1244o==="urgent"?"bg-destructive":o==="high"?"bg-warning":o==="medium"?"bg-primary":"bg-muted-foreground";return a.jsxs(kC,{children:[a.jsx(IC,{asChild:!0,children:a.jsxs(Oe,{variant:"ghost",size:"icon",className:"relative h-8 w-8","aria-label":`Notificações${t?`, ${t} não lidas`:""}`,children:[a.jsx(Fm,{className:"h-4.5 w-4.5"}),t>0&&a.jsx(Vt,{variant:"destructive",className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center p-0 px-1 text-[10px]",children:t>9?"9+":t})]})}),a.jsxs(dv,{className:"w-[360px] overflow-hidden p-0",align:"end",children:[a.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Notificações"}),a.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Eventos e ações que chegaram para você."})]}),t>0&&a.jsx(Oe,{variant:"ghost",size:"sm",onClick:n,className:"h-7 px-2 text-[11px]",children:"Marcar lidas"})]}),a.jsx(Xx,{className:"h-[420px]",children:e.length===0?a.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:"Nenhuma notificação."}):a.jsx("div",{className:"divide-y",children:e.map(o=>{const i=Cde(o.link),l=()=>{!o.is_read&&o.user_notification_id&&r(o.user_notification_id)};return a.jsx("div",{className:`p-3.5 transition-colors hover:bg-accent/60 ${o.is_read?"":"bg-accent/30"}`,onClick:l,children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:`mt-1.5 h-2 w-2 shrink-0 rounded-full ${s(o.priority)}`}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsx("h4",{className:"truncate text-sm font-medium",children:o.title}),a.jsx("span",{className:"whitespace-nowrap text-[10px] text-muted-foreground",children:aG(new Date(o.created_at),{addSuffix:!0,locale:cn})})]}),a.jsx("p",{className:"mt-1 line-clamp-2 text-xs text-muted-foreground",children:o.message}),i&&a.jsx(Te,{to:i,onClick:l,className:"mt-2 inline-flex text-xs font-medium text-primary hover:underline",children:"Abrir e agir â"})]})]})},`${o.source}:${o.id}`)})})})]})]})},jde=({open:e,onClose:t,notification:r})=>{if(!r)return null;const n=o=>{switch(o){case"urgent":return"destructive";case"high":return"default";default:return"secondary"}},s=o=>{switch(o){case"urgent":return"Urgente";case"high":return"Alta Prioridade";case"medium":return"Média Prioridade";default:return"Baixa Prioridade"}};return a.jsx(Qa,{open:e,onOpenChange:t,children:a.jsxs(Ba,{className:"sm:max-w-md",children:[a.jsxs(Ks,{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(Fm,{className:"h-5 w-5 text-primary"}),a.jsx(Vt,{variant:n(r.priority),children:s(r.priority)})]}),a.jsx(Va,{className:"text-xl",children:r.title})]}),r.image_url&&a.jsx("div",{className:"w-full aspect-video rounded-lg overflow-hidden bg-muted",children:a.jsx("img",{src:r.image_url,alt:r.title,className:"w-full h-full object-cover"})}),a.jsx(Po,{className:"text-base leading-relaxed whitespace-pre-wrap",children:r.message}),a.jsxs(YL,{className:"flex-col sm:flex-row gap-2",children:[r.link&&a.jsx(Oe,{variant:"outline",onClick:()=>{window.location.href=r.link,t()},className:"w-full sm:w-auto",children:"Ver Detalhes"}),a.jsx(Oe,{onClick:t,className:"w-full sm:w-auto",children:"OK"})]})]})})},RO=()=>{const{i18n:e}=mh(),{data:t}=jt({queryKey:["locale-settings"],queryFn:async()=>{const{data:o}=await J.from("locale_settings").select("*").eq("is_active",!0);return o||[]}}),r=t?.find(o=>o.locale===e.language),n=o=>{if(!r)return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(o);const i=o*Number(r.exchange_rate),l=1+Number(r.markup_percentage)/100,c=i*l;return new Intl.NumberFormat(r.locale,{style:"currency",currency:r.currency_code}).format(c)},s=o=>{e.changeLanguage(o),localStorage.setItem("i18nextLng",o)};return{currentLocale:e.language,localeSettings:t,formatPrice:n,changeLanguage:s}};function Ede(e){const t=(e??"").trim().toLowerCase().replace("_","-").split("-")[0];return t==="en"?"en":t==="es"?"es":"pt"}function $l(e,t,r){if(!e)return;const n=Ede(r),s=P4(e[t]);return n==="pt"?s:P4(e[`${t}_${n}`])??s}function P4(e){return typeof e!="string"?void 0:e.trim().length>0?e:void 0}function Bde({isOpen:e,onClose:t}){const{data:r=[]}=jt({queryKey:["mega-menu-categories"],queryFn:async()=>{const{data:n}=await J.from("categories").select("id, name, slug, description").eq("approval_status","approved").order("is_mastertech",{ascending:!1}).order("display_order");return n||[]}});return e?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-40",onClick:t}),a.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2 z-50",onMouseLeave:t,children:a.jsx("div",{id:"megamenu-categorias",role:"menu","aria-label":"Categorias e formações",className:je("w-[min(95vw,380px)] max-h-[80vh] overflow-y-auto","bg-background border border-border rounded-xl shadow-2xl","animate-in fade-in-0 slide-in-from-top-2 duration-200"),children:a.jsx("div",{className:"p-4",children:a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsxs(Te,{to:"/mastertech",onClick:t,className:"flex w-full items-center gap-2 px-3 py-2 rounded-lg bg-primary/10 hover:bg-primary/20 transition-colors group border border-primary/20",children:[a.jsx(Nr,{className:"h-4 w-4 text-primary shrink-0"}),a.jsx("span",{className:"text-sm font-semibold text-foreground group-hover:text-primary transition-colors",children:"MasterTech"})]}),a.jsxs(Te,{to:"/formacoes/sap-full-access-todos-cursos-sap",onClick:t,className:"mt-1 flex w-full items-center gap-1.5 px-3 py-1 rounded-md text-[11px] leading-tight text-muted-foreground hover:text-primary hover:bg-primary/5 transition-colors",children:[a.jsx(Mn,{className:"h-3 w-3 shrink-0 text-primary/60"}),a.jsx("span",{className:"truncate",children:"SAP Full Access â todos os cursos SAP"})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-2 border-b border-border",children:[a.jsx(Zo,{className:"h-4 w-4 text-primary"}),a.jsx("h3",{className:"font-semibold text-sm text-foreground",children:"Categorias"})]}),a.jsxs("div",{className:"space-y-0.5",children:[r.map(n=>a.jsxs(Te,{to:`/cursos/${n.slug}`,onClick:t,className:"flex items-center gap-2 px-2 py-1.5 rounded-md text-sm text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors group",children:[a.jsx(Mn,{className:"h-3.5 w-3.5 shrink-0 text-primary/50 group-hover:text-primary"}),a.jsx("span",{className:"truncate flex-1",children:n.name}),a.jsx(_r,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity text-primary"})]},n.id)),a.jsxs(Te,{to:"/cursos",onClick:t,className:"flex items-center gap-2 px-2 py-2 mt-2 rounded-md text-sm font-medium text-primary hover:bg-primary/10 transition-colors group border-t border-border/50 pt-3",children:[a.jsx(CT,{className:"h-3.5 w-3.5 shrink-0"}),a.jsx("span",{children:"Ver todos os cursos"}),a.jsx(_r,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})]})]})})})})]}):null}const Nde=[{title:"Skill Gap SAP",description:"Diagnóstico de conhecimentos e dificuldades no SAP",url:"/skill-gap",icon:Iz,color:"text-cyan-600",bgColor:"bg-cyan-500/10"},{title:"Cursos Gratuitos",description:"Cursos completos para iniciar sua carreira",url:"/cursos-gratis",icon:Mn,color:"text-primary",bgColor:"bg-primary/10"},{title:"Certificações Gratuitas",description:"Certificações reconhecidas pelo mercado",url:"/certificacoes-gratuitas",icon:kn,color:"text-amber-500",bgColor:"bg-
1244amber-500/10"},{title:"Aulas Gratuitas",description:"Aulas ao vivo gravadas para assistir",url:"/aulas-gratuitas",icon:kz,color:"text-green-500",bgColor:"bg-green-500/10"},{title:"Simulados Gratuitos",description:"Teste seus conhecimentos antes da prova",url:"/simulados",icon:Lu,color:"text-blue-500",bgColor:"bg-blue-500/10"},{title:"Biblioteca de Certificações",description:"Explore todas as certificações disponÃveis",url:"/certificacoes",icon:Zo,color:"text-purple-500",bgColor:"bg-purple-500/10"},{title:"Blog",description:"Artigos, novidades e conteúdo especializado",url:"/blog",icon:I2,color:"text-sky-500",bgColor:"bg-sky-500/10"},{title:"Vagas de Emprego",description:"Oportunidades exclusivas em tecnologia",url:"/vagas",icon:zs,color:"text-rose-500",bgColor:"bg-rose-500/10"}];function Sde({isOpen:e,onClose:t}){return e?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-40",onClick:t}),a.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 pt-2 z-50",onMouseLeave:t,children:a.jsx("div",{id:"megamenu-gratuitos",role:"menu","aria-label":"Conteúdo gratuito",className:je("w-[min(95vw,340px)] max-h-[80vh] overflow-y-auto","bg-background border border-border rounded-xl shadow-2xl","animate-in fade-in-0 slide-in-from-top-2 duration-200"),children:a.jsxs("div",{className:"p-3",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3 px-2",children:[a.jsx(Fu,{className:"h-4 w-4 text-primary"}),a.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:"Conteúdo 100% Gratuito"})]}),a.jsx("div",{className:"space-y-1",children:Nde.map(r=>a.jsxs(Te,{to:r.url,onClick:t,className:"flex items-center gap-3 px-3 py-2.5 rounded-lg hover:bg-muted/60 transition-colors group",children:[a.jsx("div",{className:je("flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center",r.bgColor),children:a.jsx(r.icon,{className:je("h-4.5 w-4.5",r.color)})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-foreground group-hover:text-primary transition-colors",children:r.title}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r.description})]}),a.jsx(_r,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity text-primary"})]},r.url))}),a.jsx("div",{className:"mt-3 pt-3 border-t border-border",children:a.jsxs(Te,{to:"/cursos-gratis",onClick:t,className:"flex items-center justify-center gap-2 py-2 text-sm font-semibold text-primary hover:bg-primary/10 rounded-lg transition-colors",children:["ð Explorar tudo grátis",a.jsx(_r,{className:"h-3.5 w-3.5"})]})})]})})})]}):null}const kde={carreira:"Cargos, salários, certificações e a trilha oficial Trainning para cada carreira SAP em 2027.",curso:"Todos os módulos SAP, com trilhas de estudo e cursos oficiais Trainning atualizados para 2027.",diagnostico:"Complemente seu diagnóstico com o Guia Of
1244icial SAP 2027 â módulos, salários e carreiras.",default:"Módulos SAP, carreiras, faixas salariais e como começar a estudar em 2027."};function w1({variant:e="banner",context:t="default",className:r,onNavigate:n}){const{pathname:s}=fn();return s==="/guia-sap"?null:e==="chip"?a.jsxs(Te,{to:"/guia-sap","aria-label":"Acessar Guia Oficial SAP 2027",onClick:n,className:je("group relative inline-flex items-center gap-1.5","px-2 py-1 text-xs font-semibold","text-primary hover:text-primary","border-b border-transparent hover:border-primary/60","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",r),children:[a.jsx(Zo,{className:"h-3.5 w-3.5","aria-hidden":"true"}),a.jsx("span",{children:"Guia SAP"}),a.jsx("span",{className:"rounded-sm bg-amber-400 px-1 py-0.5 text-[9px] font-bold leading-none text-slate-900","aria-hidden":"true",children:"2027"})]}):e==="mobile"?a.jsxs(Te,{to:"/guia-sap","aria-label":"Acessar Guia Oficial SAP 2027",onClick:n,className:je("flex items-center justify-between gap-3 rounded-lg","bg-primary px-3 py-2.5 text-primary-foreground","ring-1 ring-primary/40 shadow-sm",r),children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Zo,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"text-sm font-semibold",children:"Guia SAP"}),a.jsx("span",{className:"rounded-sm bg-amber-400 px-1.5 py-0.5 text-[10px] font-bold leading-none text-slate-900",children:"2027"})]}),a.jsx(_r,{className:"h-4 w-4","aria-hidden":"true"})]}):a.jsx("div",{className:je("container mx-auto px-4 pt-6",r),children:a.jsxs(Te,{to:"/guia-sap","aria-label":"Acessar Guia Oficial SAP 2027",className:je("group relative block overflow-hidden rounded-2xl","bg-gradient-to-r from-primary/10 via-primary/5 to-transparent","ring-1 ring-primary/25 hover:ring-primary/50","transition-all duration-300 hover:shadow-lg","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[a.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute -left-1/3 top-0 h-full w-1/3 translate-x-0 -skew-x-12 bg-gradient-to-r from-transparent via-white/20 to-transparent opacity-0 transition-all duration-700 group-hover:translate-x-[400%] group-hover:opacity-100"}),a.jsxs("div",{className:"relative grid grid-cols-[auto,1fr] items-center gap-4 p-4 md:grid-cols-[auto,1fr,auto] md:gap-6 md:p-5",children:[a.jsxs("div",{className:"relative flex h-14 w-14 shrink-0 items-center justify-center rounded-xl bg-primary text-primary-foreground shadow-md md:h-16 md:w-16",children:[a.jsx(Zo,{className:"h-7 w-7 md:h-8 md:w-8","aria-hidden":"true"}),a.jsx("span",{className:"absolute -right-2 -top-2 rounded-md bg-amber-400 px-1.5 py-0.5 text-[10px] font-bold leading-none text-slate-900 shadow","aria-hidden":"true",children:"2027"})]}),a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary/10 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-primary",children:[a.jsx(Nr,{className:"h-3 w-3","aria-hidden":"true"}),"Guia Oficial"]}),a.jsx("span",{className:"text-[11px] font-medium text-muted-foreground",children:"Atualizado 2027"})]}),a.jsx("h3",{className:"mt-1 text-lg font-bold text-foreground md:text-xl",children:"Acessar Guia Oficial SAP 2027"}),a.jsx("p",{className:"mt-0.5 line-clamp-2 text-sm text-muted-foreground md:line-clamp-none",children:kde[t]})]}),a.jsx("div",{className:"col-span-2 md:col-span-1",children:a.jsxs("span",{className:je("inline-flex w-full items-center justify-center gap-2 rounded-lg","bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground shadow","transition-transform group-hover:translate-x-0.5 md:w-auto"),children:["Acessar guia agora",a.jsx(_r,{className:"h-4 w-4","aria-hidden":"true"})]})})]})]})})}const Nf="/empresas/team-pass-sap",Ide={curso:"Precisa treinar uma equipe inteira? Planos corporativos de 12 ou 24 meses com Live, Digital, Academias e Sandbox.",carreira:"Sua empresa forma os próprios especialistas SAP: jornadas por perfil, SkillMap e atualização contÃnua.",diagnostico:"Leve o diagnóstico para o nÃvel corporativo: mapeie os gaps da equipe e receba o plano SAP recomendado.",guia:"Do guia para a prática corporativa: desenvolva de 10 a 100+ profissionais com uma única contratação.",empresas:"O ecossistema corporativo de desenvolvimento SAP: três nÃveis de acesso, uma única plataforma.",header:"Desenvolvimento SAP corporativo para equipes de 10 a mais de 100 profissionais.",default:"Desenvolvimento SAP corporativo para equipes de 10 a mais de 100 profissionais, em planos de 12 ou 24 meses."},Gp=(e,t)=>{try{window.dataLayer?.push?.({event:"team_pass_sap_cta_click",cta_context:e,cta_variant:t})}catch{}};function fm({variant:e="banner",context:t="default",className:r,onNavigate:n}){const{pathname:s}=fn();return s===Nf?null:e==="chip"?a.jsxs(Te,{to:Nf,"aria-label":"Team Pass SAP Hub para empresas",onClick:()=>{Gp(t,"chip"),n?.()},className:je("group relative inline-flex items-center gap-1.5","px-2 py-1 text-xs font-semibold","text-primary hover:text-primary","border-b border-transparent hover:border-primary/60","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",r),children:[a.jsx(Ra,{className:"h-3.5 w-3.5","aria-hidden":"true"}),a.jsx("span",{children:"Team Pass SAP"}),a.jsx("span",{className:"rounded-sm bg-cyan-500 px-1 py-0.5 text-[9px] font-bold leading-none text-white","aria-hidden":"true",children:"B2B"})]}):e==="mobile"?a.jsxs(Te,{to:Nf,"aria-label":"Team Pass SAP Hub para empresas",onClick:()=>{Gp(t,"mobile"),n?.()},className:je("flex items-center justify-between gap-3 rounded-lg","bg-slate-950 px-3 py-2.5 text-white","ring-1 ring-cyan-400/40 shadow-sm",r),children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Ra,{className:"h-4 w-4 text-cyan-300","aria-hidden":"true"}),a.jsxs("span",{className:"flex flex-col leading-tight",children:[a.jsx("span",{className:"text-sm font-semibold",children:"Team Pass SAP Hub"}),a.jsx("span",{className:"text-[10px] font-normal text-white/60",children:"Treinamento SAP para equipes · 12 ou 24 meses"})]})]}),a.jsx(_r,{className:"h-4 w-4 text-cyan-300","aria-hidden":"true"})]}):e==="compact"?a.jsxs(Te,{to:Nf,"aria-label":"Conhecer o Team Pass SAP Hub para empresas",onClick:()=>Gp(t,"compact"),className:je("group flex items-center justify-between gap-3 rounded-xl","border border-primary/25 bg-primary/5 px-4 py-3","transition-colors hover:border-primary/50 hover:bg-primary/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",r),children:[a.jsxs("span",{className:"flex min-w-0 items-center gap-2.5",children:[a.jsx(Ra,{className:"h-4 w-4 shrink-0 text-primary","aria-hidden":"true"}),a.jsxs("span",{className:"min-w-0",children:[a.jsx("span",{className:"block text-sm font-bold text-foreground",children:"Team Pass SAP Hub"}),a.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:"Treinamento SAP para equipes · 12 ou 24 meses"})]})]}),a.jsx(_r,{className:"h-4 w-4 shrink-0 text-primary transition-transform group-hover:translate-x-0.5","aria-hidden":"true"})]}):a.jsx("div",{className:je("container mx-auto px-4 pt-6",r),children:a.jsxs(Te,{to:Nf,"aria-label":"Conhecer o Team Pass SAP Hub para empresas",onClick:()=>Gp(t,"banner"),className:je("group relative block overflow-hidden rounded-2xl","bg-slate-950 text-white","ring-1 ring-cyan-400/30 hover:ring-cyan-400/60","transition-all duration-300 hover:shadow-xl hover:shadow-cyan-950/30","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[a.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_85%_0%,hsl(199_85%_42%/0.25),transparent_55%),radial-gradient(circle_at_0%_100%,hsl(38_92%_50%/0.12),transparent_50%)]"}),a.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute -left-1/3 top-0 h-full w-1/3 -skew-x-12 bg-gradient-to-r from-transparent via-white/10 to-transparent opacity-0 transition-all duration-700 group-hover:translate-x-[400%] group-hover:opacity-100"}),a.jsxs("div",{className:"relative grid grid-cols-[auto,1fr] items-center gap-4 p-4 md:grid-cols-[auto,1fr,auto] md:gap-6 md:p-5",children:[a.jsxs("div",{className:"relative flex h-14 w-14 shrink-0 items-center justify-center rounded-xl bg-gradient-to-br from-cyan-500 to-sky-600 text-white shadow-md md:h-16 md:w-16",children:[a.jsx(Ra,{className:"h-7 w-7 md:h-8 md:w-8","aria-hidden":"true"}),a.jsx("span",{className:"absolute -right-2 -top-2 rounded-md bg-amber-400 px-1.5 py-0.5 text-[10px] font-bold leading-none text-slate-900 shadow","aria-hidden":"true",children:"B2B"})]}),a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-cyan-500/15 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-cyan-300",children:[a.jsx(Nr,{className:"h-3 w-3","aria-hidden":"true"}),"Para empresas"]}),a.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] font-medium text-white/50",children:[a.jsx(wa,{className:"h-3 w-3","aria-hidden":"true"}),"10 a 100+ profissionais"]})]}),a.jsx("h3",{className:"mt-1 text-lg font-bold text-white md:text-xl",children:"Team Pass SAP Hub â construa capacidade SAP na sua empresa"}),a.jsx("p",{className:"mt-0.5 line-clamp-2 text-sm text-white/60 md:line-clamp-none",children:Ide[t]})]}),a.jsx("div",{className:"col-span-2 md:col-span-1",children:a.jsxs("span",{className:je("inl
1244ine-flex w-full items-center justify-center gap-2 rounded-lg","bg-cyan-500 px-4 py-2.5 text-sm font-bold text-slate-950 shadow","transition-transform group-hover:translate-x-0.5 md:w-auto"),children:["Conhecer o Team Pass",a.jsx(_r,{className:"h-4 w-4","aria-hidden":"true"})]})})]})]})})}var _1="rovingFocusGroup.onEntryFocus",Fde={bubbles:!1,cancelable:!0},Qh="RovingFocusGroup",[e_,MO,Tde]=yx(Qh),[Pde,OO]=Ha(Qh,[Tde]),[Lde,Dde]=Pde(Qh),UO=A.forwardRef((e,t)=>a.jsx(e_.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(e_.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Rde,{...e,ref:t})})}));UO.displayName=Qh;var Rde=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=A.useRef(null),m=er(t,h),g=Gx(o),[p,x]=Io({prop:i,defaultProp:l??null,onChange:c,caller:Qh}),[y,b]=A.useState(!1),j=Bn(u),C=MO(r),T=A.useRef(!1),[L,P]=A.useState(0);return A.useEffect(()=>{const I=h.current;if(I)return I.addEventListener(_1,j),()=>I.removeEventListener(_1,j)},[j]),a.jsx(Lde,{scope:r,orientation:n,dir:g,loop:s,currentTabStopId:p,onItemFocus:A.useCallback(I=>x(I),[x]),onItemShiftTab:A.useCallback(()=>b(!0),[]),onFocusableItemAdd:A.useCallback(()=>P(I=>I+1),[]),onFocusableItemRemove:A.useCallback(()=>P(I=>I-1),[]),children:a.jsx(_t.div,{tabIndex:y||L===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:At(e.onMouseDown,()=>{T.current=!0}),onFocus:At(e.onFocus,I=>{const E=!T.current;if(I.target===I.currentTarget&&E&&!y){const O=new CustomEvent(_1,Fde);if(I.currentTarget.dispatchEvent(O),!O.defaultPrevented){const k=C().filter(ae=>ae.focusable),D=k.find(ae=>ae.active),H=k.find(ae=>ae.id===p),ee=[D,H,...k].filter(Boolean).map(ae=>ae.ref.current);HO(ee,d)}}T.current=!1}),onBlur:At(e.onBlur,()=>b(!1))})})}),QO="RovingFocusGroupItem",VO=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:o,children:i,...l}=e,c=la(),u=o||c,d=Dde(QO,r),f=d.currentTabStopId===u,h=MO(r),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:p}=d;return A.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),a.jsx(e_.ItemSlot,{scope:r,id:u,focusable:n,active:s,children:a.jsx(_t.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:At(e.onMouseDown,x=>{n?d.onItemFocus(u):x.preventDefault()}),onFocus:At(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:At(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Ude(x,d.orientation,d.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let j=h().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")j.reverse();else if(y==="prev"||y==="next"){y==="prev"&&j.reverse();const C=j.indexOf(x.currentTarget);j=d.loop?Qde(j,C+1):j.slice(C+1)}setTimeout(()=>HO(j))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});VO.displayName=QO;var Mde={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ode(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ude(e,t,r){const n=Ode(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Mde[n]}function HO(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Qde(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Vde=UO,Hde=VO,t_=["Enter"," "],zde=["ArrowDown","PageUp","Home"],zO=["ArrowUp","PageDown","End"],$de=[...zde,...zO],qde={ltr:[...t_,"ArrowRight"],rtl:[...t_,"ArrowLeft"]},Kde={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vh="Menu",[Wm,Gde,Wde]=yx(Vh),[rd,$O]=Ha(Vh,[Wde,Sc,OO]),Hh=Sc(),qO=OO(),[KO,Pc]=rd(Vh),[Yde,zh]=rd(Vh),GO=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:s,onOpenChange:o,modal:i=!0}=e,l=Hh(t),[c,u]=A.useState(null),d=A.useRef(!1),f=Bn(o),h=Gx(s);return A.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),a.jsx(wh,{...l,children:a.jsx(KO,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:a.jsx(Yde,{scope:t,onClose:A.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:i,children:n})})})};GO.displayName=Vh;var Xde="MenuAnchor",TC=A.forwardRef((e,t)=>
1244{const{__scopeMenu:r,...n}=e,s=Hh(r);return a.jsx(_h,{...s,...n,ref:t})});TC.displayName=Xde;var PC="MenuPortal",[Zde,WO]=rd(PC,{forceMount:void 0}),YO=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:s}=e,o=Pc(PC,t);return a.jsx(Zde,{scope:t,forceMount:r,children:a.jsx(Na,{present:r||o.open,children:a.jsx(FA,{asChild:!0,container:s,children:n})})})};YO.displayName=PC;var ko="MenuContent",[Jde,LC]=rd(ko),XO=A.forwardRef((e,t)=>{const r=WO(ko,e.__scopeMenu),{forceMount:n=r.forceMount,...s}=e,o=Pc(ko,e.__scopeMenu),i=zh(ko,e.__scopeMenu);return a.jsx(Wm.Provider,{scope:e.__scopeMenu,children:a.jsx(Na,{present:n||o.open,children:a.jsx(Wm.Slot,{scope:e.__scopeMenu,children:i.modal?a.jsx(eAe,{...s,ref:t}):a.jsx(tAe,{...s,ref:t})})})})}),eAe=A.forwardRef((e,t)=>{const r=Pc(ko,e.__scopeMenu),n=A.useRef(null),s=er(t,n);return A.useEffect(()=>{const o=n.current;if(o)return qx(o)},[]),a.jsx(DC,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:At(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tAe=A.forwardRef((e,t)=>{const r=Pc(ko,e.__scopeMenu);return a.jsx(DC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),rAe=gc("MenuContent.ScrollLock"),DC=A.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...p}=e,x=Pc(ko,r),y=zh(ko,r),b=Hh(r),j=qO(r),C=Gde(r),[T,L]=A.useState(null),P=A.useRef(null),I=er(t,P,x.onContentChange),E=A.useRef(0),O=A.useRef(""),k=A.useRef(0),D=A.useRef(null),H=A.useRef("right"),U=A.useRef(0),ee=g?jh:A.Fragment,ae=g?{as:rAe,allowPinchZoom:!0}:void 0,V=G=>{const Ae=O.current+G,se=C().filter(X=>!X.disabled),S=document.activeElement,Q=se.find(X=>X.ref.current===S)?.textValue,z=se.map(X=>X.textValue),W=mAe(z,Ae,Q),ne=se.find(X=>X.textValue===W)?.ref.current;(function X(te){O.current=te,window.clearTimeout(E.current),te!==""&&(E.current=window.setTimeout(()=>X(""),1e3))})(Ae),ne&&setTimeout(()=>ne.focus())};A.useEffect(()=>()=>window.clearTimeout(E.current),[]),zx();const q=A.useCallback(G=>H.current===D.current?.side&&pAe(G,D.current?.area),[]);return a.jsx(Jde,{scope:r,searchRef:O,onItemEnter:A.useCallback(G=>{q(G)&&G.preventDefault()},[q]),onItemLeave:A.useCallback(G=>{q(G)||(P.current?.focus(),L(null))},[q]),onTriggerLeave:A.useCallback(G=>{q(G)&&G.preventDefault()},[q]),pointerGraceTimerRef:k,onPointerGraceIntentChange:A.useCallback(G=>
1244{D.current=G},[]),children:a.jsx(ee,{...ae,children:a.jsx(Ch,{asChild:!0,trapped:s,onMountAutoFocus:At(o,G=>{G.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:a.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:a.jsx(Vde,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:T,onCurrentTabStopIdChange:L,onEntryFocus:At(c,G=>{y.isUsingKeyboardRef.current||G.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Lx,{role:"menu","aria-orientation":"vertical","data-state":mU(x.open),"data-radix-menu-content":"",dir:y.dir,...b,...p,ref:I,style:{outline:"none",...p.style},onKeyDown:At(p.onKeyDown,G=>{const se=G.target.closest("[data-radix-menu-content]")===G.currentTarget,S=G.ctrlKey||G.altKey||G.metaKey,Q=G.key.length===1;se&&(G.key==="Tab"&&G.preventDefault(),!S&&Q&&V(G.key));const z=P.current;if(G.target!==z||!$de.includes(G.key))return;G.preventDefault();const ne=C().filter(X=>!X.disabled).map(X=>X.ref.current);zO.includes(G.key)&&ne.reverse(),AAe(ne)}),onBlur:At(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(E.current),O.current="")}),onPointerMove:At(e.onPointerMove,Ym(G=>{const Ae=G.target,se=U.current!==G.clientX;if(G.currentTarget.contains(Ae)&&se){const S=G.clientX>U.current?"right":"left";H.current=S,U.current=G.clientX}}))})})})})})})});XO.displayName=ko;var nAe="MenuGroup",RC=A.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return a.jsx(_t.div,{role:"group",...n,ref:t})});RC.displayName=nAe;var aAe="MenuLabel",ZO=A.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return a.jsx(_t.div,{...n,ref:t})});ZO.displayName=aAe;var K0="MenuItem",L4="menu.itemSelect",Av=A.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...s}=e,o=A.useRef(null),i=zh(K0,e.__scopeMenu),l=LC(K0,e.__scopeMenu),c=er(t,o),u=A.useRef(!1),d=()=>{const f=o.current;if(!r&&f){const h=new CustomEvent(L4,{bubbles:!0,cancelable:!0});f.addEventListener(L4,m=>n?.(m),{once:!0}),_2(f,h),h.defaultPrevented?u.current=!1:i.onClose()}};return a.jsx(JO,{...s,ref:c,disabled:r,onClick:At(e.onClick,d),onPointerDown:f=>{e.onPointerDown?.(f),u.current=!0},onPointerUp:At(e.onPointerUp,f=>{u.current||f.currentTarget?.click()}),onKeyDown:At(e.onKeyDown,f=>{const h=l.searchRef.current!=="";r||h&&f.key===" "||t_.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Av.displayName=K0;var JO=A.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...o}=e,i=LC(K0,r),l=qO(r),c=A.useRef(null),u=er(t,c),[d,f]=A.useState(!1),[h,m]=A.useState("");return A.useEffect(()=>{const g=c.current;g&&m((g.textContent??"").trim())},[o.children]),a.jsx(Wm.ItemSlot,{scope:r,disabled:n,textValue:s??h,children:a.jsx(Hde,{asChild:!0,...l,focusable:!n,children:a.jsx(_t.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:u,onPointerMove:At(e.onPointerMove,Ym(g=>{n?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:At(e.onPointerLeave,Ym(g=>i.onItemLeave(g))),onFocus:At(e.onFocus,()=>f(!0)),onBlur:At(e.onBlur,()=>f(!1))})})})}),sAe="MenuCheckboxItem",eU=A.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...s}=e;return a.jsx(sU,{scope:e.__scopeMenu,checked:r,children:a.jsx(Av,{role:"menuitemcheckbox","aria-checked":G0(r)?"mixed":r,...s,ref:t,"data-state":UC(r),onSelect:At(s.onSelect,()=>n?.(G0(r)?!0:!r),{checkForDefaultPrevented:!1})})})});eU.displayName=sAe;var tU="MenuRadioGroup",[oAe,iAe]=rd(tU,{value:void 0,onValueChange:()=>{}}),rU=A.forwardRef((e,t)=>{const{value:r,onValueChange:n,...s}=e,o=Bn(n);return a.jsx(oAe,{scope:e.__scopeMenu,value:r,onValueChange:o,children:a.jsx(RC,{...s,ref:t})})});rU.displayName=tU;var nU="MenuRadioItem",aU=A.forwardRef((e,t)=>{const{value:r,...n}=e,s=iAe(nU,e.__scopeMenu),o=r===s.value;return a.jsx(sU,{scope:e.__scopeMenu,checked:o,children:a.jsx(Av,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":UC(o),onSelect:At(n.onSelect,()=>s.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});aU.displayName=nU;var MC="MenuItemIndicator",[sU,lAe]=rd(MC,{checked:!1}
1244),oU=A.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...s}=e,o=lAe(MC,r);return a.jsx(Na,{present:n||G0(o.checked)||o.checked===!0,children:a.jsx(_t.span,{...s,ref:t,"data-state":UC(o.checked)})})});oU.displayName=MC;var cAe="MenuSeparator",iU=A.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return a.jsx(_t.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});iU.displayName=cAe;var uAe="MenuArrow",lU=A.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,s=Hh(r);return a.jsx(Dx,{...s,...n,ref:t})});lU.displayName=uAe;var OC="MenuSub",[dAe,cU]=rd(OC),uU=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:s}=e,o=Pc(OC,t),i=Hh(t),[l,c]=A.useState(null),[u,d]=A.useState(null),f=Bn(s);return A.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),a.jsx(wh,{...i,children:a.jsx(KO,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:a.jsx(dAe,{scope:t,contentId:la(),triggerId:la(),trigger:l,onTriggerChange:c,children:r})})})};uU.displayName=OC;var Gf="MenuSubTrigger",dU=A.forwardRef((e,t)=>{const r=Pc(Gf,e.__scopeMenu),n=zh(Gf,e.__scopeMenu),s=cU(Gf,e.__scopeMenu),o=LC(Gf,e.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=o,u={__scopeMenu:e.__scopeMenu},d=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>d,[d]),A.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),a.jsx(TC,{asChild:!0,...u,children:a.jsx(JO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":mU(r.open),...e,ref:xl(t,s.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:At(e.onPointerMove,Ym(f=>{o.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:At(e.onPointerLeave,Ym(f=>{d();const h=r.content?.getBoundingClientRect();if(h){const m=r.content?.dataset.side,g=m==="right",p=g?-5:5,x=h[g?"left":"right"],y=h[g?"right":"left"];o.onPointerGraceIntentChange({area:[{x:f.clientX+p,y:f.clientY},{x,y:h.top},{x:y,y:h.top},{x:y,y:h.bottom},{x,y:h.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(f),f.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:At(e.onKeyDown,f=>{const h=o.searchRef.current!=="";e.disabled||h&&f.key===" "||qde[n.dir].includes(f.key)&&(r.onOpenChange(!0),r.content?.focus(),f.preventDefault())})})})});dU.displayName=Gf;var AU="MenuSubContent",fU=A.forwardRef((e,t)=>{const r=WO(ko,e.__scopeMenu),{forceMount:n=r.forceMount,...s}=e,o=Pc(ko,e.__scopeMenu),i=zh(ko,e.__scopeMenu),l=cU(AU,e.__scopeMenu),c=A.useRef(null),u=er(t,c);return a.jsx(Wm.Provider,{scope:e.__scopeMenu,children:a.jsx(Na,{present:n||o.open,children:a.jsx(Wm.Slot,{scope:e.__scopeMenu,children:a.jsx(DC,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:At(e.onFocusOutside,d=>{d.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:At(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:At(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),h=Kde[i.dir].includes(d.key);f&&h&&(o.onOpenChange(!1),l.trigger?.focus(),d.preventDefault())})})})})})});fU.displayName=AU;function mU(e){return e?"open":"closed"}function G0(e){return e==="indeterminate"}function UC(e){return G0(e)?"indeterminate":e?"checked":"unchecked"}function AAe(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function fAe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function mAe(e,t,r){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=fAe(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==r));const c=i.find(u=>u.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function hAe(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],c=t[i],u=l.x,d=l.y,f=c.x,h=c.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(s=!s)}return s}function pAe(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return hAe(r,t)}function Ym(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gAe=GO,xAe=TC,vAe=YO,yAe=XO,bAe=RC,wAe=ZO,_Ae=Av,CAe=eU,jAe=rU,EAe=aU,BAe=oU,NAe=iU,SAe=lU,kAe=uU,IAe=dU,FAe=fU,fv="DropdownMenu",[TAe]=Ha(fv,[$O]),As=$O(),[PAe,hU]=TAe(fv),pU=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:s,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,c=As(t),u=A.useRef(null),[d,f]=Io({prop:s,defaultProp:o??!1,onChange:i,caller:fv});return a.jsx(PAe,{scope:t,triggerId:la(),triggerRef:u,contentId:la(),open:d,onOpenChange:f,onOpenToggle:A.useCallback(()=>f(h=>!h),[f]),modal:l,children:a.jsx(gAe,{...c,open:d,onOpenChange:f,dir:n,modal:l,children:r})})};pU.displayName=fv;var gU="DropdownMenuTrigger",xU=A.forwardRef((e,t)=>
1244{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=e,o=hU(gU,r),i=As(r);return a.jsx(xAe,{asChild:!0,...i,children:a.jsx(_t.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:xl(t,o.triggerRef),onPointerDown:At(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:At(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});xU.displayName=gU;var LAe="DropdownMenuPortal",vU=e=>{const{__scopeDropdownMenu:t,...r}=e,n=As(t);return a.jsx(vAe,{...n,...r})};vU.displayName=LAe;var yU="DropdownMenuContent",bU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=hU(yU,r),o=As(r),i=A.useRef(!1);return a.jsx(yAe,{id:s.contentId,"aria-labelledby":s.triggerId,...o,...n,ref:t,onCloseAutoFocus:At(e.onCloseAutoFocus,l=>{i.current||s.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:At(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!s.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});bU.displayName=yU;var DAe="DropdownMenuGroup",RAe=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(bAe,{...s,...n,ref:t})});RAe.displayName=DAe;var MAe="DropdownMenuLabel",wU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(wAe,{...s,...n,ref:t})});wU.displayName=MAe;var OAe="DropdownMenuItem",_U=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(_Ae,{...s,...n,ref:t})});_U.displayName=OAe;var UAe="DropdownMenuCheckboxItem",CU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(CAe,{...s,...n,ref:t})});CU.displayName=UAe;var QAe="DropdownMenuRadioGroup",VAe=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(jAe,{...s,...n,ref:t})});VAe.displayName=QAe;var HAe="DropdownMenuRadioItem",jU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(EAe,{...s,...n,ref:t})});jU.displayName=HAe;var zAe="DropdownMenuItemIndicator",EU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(BAe,{...s,...n,ref:t})});EU.displayName=zAe;var $Ae="DropdownMenuSeparator",BU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(NAe,{...s,...n,ref:t})});BU.displayName=$Ae;var qAe="DropdownMenuArrow",KAe=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(SAe,{...s,...n,ref:t})});KAe.displayName=qAe;var GAe=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:s,defaultOpen:o}=e,i=As(t),[l,c]=Io({prop:n,defaultProp:o??!1,onChange:s,caller:"DropdownMenuSub"});return a.jsx(kAe,{...i,open:l,onOpenChange:c,children:r})},WAe="DropdownMenuSubTrigger",NU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(IAe,{...s,...n,ref:t})});NU.displayName=WAe;var YAe="DropdownMenuSubContent",SU=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=As(r);return a.jsx(FAe,{...s,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});SU.displayName=YAe;var XAe=pU,ZAe=xU,JAe=vU,kU=bU,IU=wU,FU=_U,TU=CU,PU=jU,LU=EU,DU=BU,efe=GAe,RU=NU,MU=SU;const tfe=XAe,rfe=ZAe,_8e=efe,nfe=A.forwardRef(({className:e,inset:t,children:r,...n},s)=>a.jsxs(RU,{ref:s,className:je("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,a.jsx(Vs,{className:"ml-auto h-4 w-4"})]}));nfe.displayName=RU.displayName;const afe=A.forwardRef(({className:e,...t},r)=>a.jsx(MU,{ref:r,className:je("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1244de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));afe.displayName=MU.displayName;const OU=A.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(JAe,{children:a.jsx(kU,{ref:n,sideOffset:t,className:je("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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),...r})}));OU.displayName=kU.displayName;const r_=A.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(FU,{ref:n,className:je("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));r_.displayName=FU.displayName;const sfe=A.forwardRef(({className:e,children:t,checked:r,...n},s)=>a.jsxs(TU,{ref:s,className:je("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(LU,{children:a.jsx($s,{className:"h-4 w-4"})})}),t]}));sfe.displayName=TU.displayName;const ofe=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(PU,{ref:n,className:je("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(LU,{children:a.jsx(dT,{className:"h-2 w-2 fill-current"})})}),t]}));ofe.displayName=PU.displayName;const ife=A.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(IU,{ref:n,className:je("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ife.displayName=IU.displayName;const UU=A.forwardRef(({className:e,...t},r)=>a.jsx(DU,{ref:r,className:je("-mx-1 my-1 h-px bg-muted",e),...t}));UU.displayName=DU.displayName;const QU=()=>{const{data:e,isLoading:t}=jt({queryKey:["campaign-config"],queryFn:async()=>{const{data:n,error:s}=await J.from("black_friday_config").select("*").single();if(s)throw s;return n}});return{config:{campaignName:e?.campaign_name||"Black Friday",campaignSubtitle:e?.campaign_subtitle||"Maiores descontos do ano",campaignEmoji:e?.campaign_emoji||"ð¥",headerLinkText:e?.header_link_text||"Black Friday",heroBadgeText:e?.hero_badge_text||"Black Friday Trainning Education",heroTitle:e?.hero_title||"Descontos ImperdÃveis",heroSubtitle:e?.hero_subtitle||"Aproveite os maiores descontos do ano em cursos de tecnologia",stickyBarText:e?.sticky_bar_text||"Termina Em:",ctaButtonText:e?.cta_button_text||"Quero aproveitar",finalCtaTitle:e?.final_cta_title||"Não Perca Esta Oportunidade Ãnica",finalCtaDescription:e?.final_cta_description||"Esta é sua chance de transformar sua carreira com os melhores curs
1244os de tecnologia do mercado.",primaryColor:e?.theme_primary_color||"#EAB308",secondaryColor:e?.theme_secondary_color||"#DC2626",isEnabled:e?.is_enabled??!1,endDate:e?.end_date?new Date(e.end_date):null,startDate:e?.start_date?new Date(e.start_date):null,showCourseLabels:e?.show_course_labels??!0,campaignPageTitle:e?.campaign_page_title||"Black Friday"},rawConfig:e,isLoading:t}},n_="form:overlay:open",a_="form:overlay:close";let Xm=0;function mv(){Xm++,window.dispatchEvent(new CustomEvent(n_))}function hv(){Xm=Math.max(0,Xm-1),window.dispatchEvent(new CustomEvent(a_))}function lfe(){const[e,t]=A.useState(Xm>0);return A.useEffect(()=>{const r=()=>t(!0),n=()=>t(Xm>0);return window.addEventListener(n_,r),window.addEventListener(a_,n),()=>{window.removeEventListener(n_,r),window.removeEventListener(a_,n)}},[]),e}var $h=e=>e.type==="checkbox",pu=e=>e instanceof Date,ws=e=>e==null;const VU=e=>typeof e=="object";var Xn=e=>!ws(e)&&!Array.isArray(e)&&VU(e)&&!pu(e),HU=e=>Xn(e)&&e.target?$h(e.target)?e.target.checked:e.target.value:e,cfe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zU=(e,t)=>e.has(cfe(t)),ufe=e=>{const t=e.constructor&&e.constructor.prototype;return Xn(t)&&t.hasOwnProperty("isPrototypeOf")},QC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ha(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(QC&&(e instanceof Blob||n))&&(r||Xn(e)))if(t=r?[]:{},!r&&!ufe(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=ha(e[s]));else return e;return t}var pv=e=>/^\w*$/.test(e),Kn=e=>e===void 0,VC=e=>Array.isArray(e)?e.filter(Boolean):[],HC=e=>VC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xt=(e,t,r)=>{if(!t||!Xn(e))return r;const n=(pv(t)?[t]:HC(t)).reduce((s,o)=>ws(s)?s:s[o],e);return Kn(n)||n===e?Kn(e[t])?r:e[t]:n},io=e=>typeof e=="boolean",Or=(e,t,r)=>{let n=-1;const s=pv(t)?[t]:HC(t),o=s.length,i=o-1;for(;++n<o;){const l=s[n];let c=r;if(n!==i){const u=e[l];c=Xn(u)||Array.isArray(u)?u:isNaN(+s[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const W0={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zC=Ne.createContext(null);zC.displayName="HookFormContext";const gv=()=>Ne.useContext(zC),dfe=e=>{const{children:t,...r}=e;return Ne.createElement(zC.Provider,{value:r},t)};var $U=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Wo.all&&(t._proxyFormState[i]=!n||Wo.all),r&&(r[i]=!0),e[i]}});return s};const $C=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect;function Afe(e){const t=gv(),{control:r=t.control,disabled:n,name:s,exact:o}=e||{},[i,l]=Ne.useState(r._formState),c=Ne.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return $C(()=>r._subscribe({name:s,formState:c.current,exact:o,callback:u=>{!n&&l({...r._formState,...u})}}),[s,n,o]),Ne.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),Ne.useMemo(()=>$U(i,r,c.current,!1),[i,r])}var Ei=e=>typeof e=="string",qU=(e,t,r,n,s)=>Ei(e)?(n&&t.watch.add(e),xt(r,e,s)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),xt(r,o))):(n&&(t.watchAll=!0),r),s_=e=>ws(e)||!VU(e);function ul(e,t,r=new WeakSet){if(s_(e)||s_(t))return e===t;if(pu(e)&&pu(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const i=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const l=t[o];if(pu(i)&&pu(l)||Xn(i)&&Xn(l)||Array.isArray(i)&&Array.isArray(l)?!ul(i,l,r):i!==l)return!1}}return!0}function ffe(e){const t=gv(),{control:r=t.control,name:n,defaultValue:s,disabled:o,exact:i,compute:l}=e||{},c=Ne.useRef(s),u=Ne.useRef(l),d=Ne.useRef(void 0);u.current=l;const f=Ne.useMemo(()=>r._getWatch(n,c.current),[r,n]),[h,m]=Ne.useState(u.current?u.current(f):f);return $C(()=>r._subscribe({name:n,formState:{values:!0},exact:i,callback:g=>{if(!o){const p=qU(n,r._names,g.values||r._formValues,!1,c.current);if(u.current){const x=u.current(p);ul(x,d.current)||(m(x),d.current=x)}else m(p)}}}),[r,o,n,i]),Ne.useEffect(()=>r._removeUnmounted()),h}function mfe(e){const t=gv(),{name:r,disabled:n,control:s=t.control,shouldUnregister:o,defaultValue:i}=e,l=zU(s._names.array,r),c=Ne.useMemo(()=>xt(s._formValues,r,xt(s._defaultValues,r,i)),[s,r,i]),u=ffe({control:s,name:r,defaultValue:c,exact:!0}),d=Afe({control:s,name:r,exact:!0}),f=Ne.useRef(e),h=Ne.useRef(s.register(r,{...e.rules,value:u,...io(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=Ne.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!xt(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!xt(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!xt(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!xt(d.validatingFields,r)},error:{enumerable:!0,get:()=>xt(d.errors,r)}}),[d,r]),g=Ne.useCallback(b=>h.current.onChange({target:{value:HU(b),name:r},type:W0.CHANGE}),[r]),p=Ne.useCallback(()=>h.current.onBlur({target:{value:xt(s._formValues,r),name:r},type:W0.BLUR}),[r,s._formValues]),x=Ne.useCallback(b=>{const j=xt(s._fields,r);j&&b&&(j._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:C=>b.setCustomValidity(C),reportValidity:()=>b.reportValidity()})},[s._fields,r]),y=Ne.useMemo(()=>({name:r,value:u,...io(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:g,onBlur:p,ref:x}),[r,n,d.disabled,g,p,x,u]);return Ne.useEffect(()=>{const b=s._options.shouldUnregister||o;s.register(r,{...f.current.rules,...io(f.current.disabled)?{disabled:f.current.disabled}:{}});const j=(C,T)=>{const L=xt(s._fields,C);L&&L._f&&(L._f.mount=T)};if(j(r,!0),b){const C=ha(xt(s._options.defaultValues,r));Or(s._defaultValues,r,C),Kn(xt(s._formValues,r))&&Or(s._formValues,r,C)}return!l&&s.register(r),()=>{(l?b&&!s._state.action:b)?s.unregister(r):j(r,!1)}},[r,s,l,o]),Ne.useEffect(()=>{s._setDisabledField({disabled:n,name:r})},[n,r,s]),Ne.useMemo(()=>({field:y,formState:d,fieldState:m}),[y,d,m])}const hfe=e=>e.render(mfe(e));var qC=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},mm=e=>Array.isArray(e)?e:[e],D4=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}},Rs=e=>Xn(e)&&!Object.keys(e).length,KC=e=>e.type==="file",Yo=e=>typeof e=="function",Y0=e=>{if(!QC)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},KU=e=>e.type==="select-multiple",GC=e=>e.type==="radio",pfe=e=>GC(e)||$h(e),C1=e=>Y0(e)&&e.isConnected;function gfe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Kn(e)?n++:e[t[n++]];return e}function xfe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Kn(e[t]))return!1;return!0}function sa(e,t){const r=Array.isArray(t)?t:pv(t)?[t]:HC(t),n=r.length===1?e:gfe(e,r),s=r.length-1,o=r[s];return n&&delete n[o],s!==0&&(Xn(n)&&Rs(n)||Array.isArray(n)&&xfe(n))&&sa(e,r.slice(0,-1)),e}var GU=e=>{for(const t in e)if(Yo(e[t]))return!0;return!1};function X0(e,t={}){const r=Array.isArray(e);if(Xn(e)||r)for(const n in e)Array.isArray(e[n])||Xn(e[n])&&!GU(e[n])?(t[n]=Array.isArray(e[n])?[]:{}
vendor: 9,431 bytes, line 1244
1244,X0(e[n],t[n])):ws(e[n])||(t[n]=!0);return t}function WU(e,t,r){const n=Array.isArray(e);if(Xn(e)||n)for(const s in e)Array.isArray(e[s])||Xn(e[s])&&!GU(e[s])?Kn(t)||s_(r[s])?r[s]=Array.isArray(e[s])?X0(e[s],[]):{...X0(e[s])}:WU(e[s],ws(t)?{}:t[s],r[s]):r[s]=!ul(e[s],t[s]);return r}var Sf=(e,t)=>WU(e,t,X0(t));const R4={value:!1,isValid:!1},M4={value:!0,isValid:!0};var YU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Kn(e[0].attributes.value)?Kn(e[0].value)||e[0].value===""?M4:{value:e[0].value,isValid:!0}:M4:R4}return R4},XU=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Kn(e)?e:t?e===""?NaN:e&&+e:r&&Ei(e)?new Date(e):n?n(e):e;const O4={isValid:!1,value:null};var ZU=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,O4):O4;function U4(e){const t=e.ref;return KC(t)?t.files:GC(t)?ZU(e.refs).value:KU(t)?[...t.selectedOptions].map(({value:r})=>r):$h(t)?YU(e.refs).value:XU(Kn(t.value)?e.ref.value:t.value,e)}var vfe=(e,t,r,n)=>{const s={};for(const o of e){const i=xt(t,o);i&&Or(s,o,i._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},Z0=e=>e instanceof RegExp,kf=e=>Kn(e)?e:Z0(e)?e.source:Xn(e)?Z0(e.value)?e.value.source:e.value:e,Q4=e=>({isOnSubmit:!e||e===Wo.onSubmit,isOnBlur:e===Wo.onBlur,isOnChange:e===Wo.onChange,isOnAll:e===Wo.all,isOnTouch:e===Wo.onTouched});const V4="AsyncFunction";var yfe=e=>!!e&&!!e.validate&&!!(Yo(e.validate)&&e.validate.constructor.name===V4||Xn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===V4)),bfe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),H4=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const hm=(e,t,r,n)=>{for(const s of r||Object.keys(e)){const o=xt(e,s);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],s)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(hm(l,t))break}else if(Xn(l)&&hm(l,t))break}}};function z4(e,t,r){const n=xt(e,r);if(n||pv(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const o=s.join("."),i=xt(t,o),l=xt(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};if(l&&l.root&&l.root.type)return{name:`${o}.root`,error:l.root};s.pop()}return{name:r}}var wfe=(e,t,r,n)=>{r(e);const{name:s,...o}=e;return Rs(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Wo.all))},_fe=(e,t,r)=>!e||!t||e===t||mm(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Cfe=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,jfe=(e,t)=>!VC(xt(e,t)).length&&sa(e,t),Efe=(e,t,r)=>{const n=mm(xt(e,r));return Or(n,"root",t[r]),Or(e,r,n),e},o0=e=>Ei(e);function $4(e,t,r="validate"){if(o0(e)||Array.isArray(e)&&e.every(o0)||io(e)&&!e)return{type:r,message:o0(e)?e:"",ref:t}}var Nd=e=>Xn(e)&&!Z0(e)?e:{value:e,message:""},q4=async(e,t,r,n,s,o)=>{const{ref:i,refs:l,required:c,maxLength:u,minLength:d,min:f,max:h,pattern:m,validate:g,name:p,valueAsNumber:x,mount:y}=e._f,b=xt(r,p);if(!y||t.has(p))return{};const j=l?l[0]:i,C=D=>{s&&j.reportValidity&&(j.setCustomValidity(io(D)?"":D||""),j.reportValidity())},T={},L=GC(i),P=$h(i),I=L||P,E=(x||KC(i))&&Kn(i.value)&&Kn(b)||Y0(i)&&i.value===""||b===""||Array.isArray(b)&&!b.length,O=qC.bind(null,p,n,T),k=(D,H,U,ee=tl.maxLength,ae=tl.minLength)=>{const V=D?H:U;T[p]={type:D?ee:ae,message:V,ref:i,...O(D?ee:ae,V)}};if(o?!Array.isArray(b)||!b.length:c&&(!I&&(E||ws(b))||io(b)&&!b||P&&!YU(l).isValid||L&&!ZU(l).isValid)){const{value:D,message:H}=o0(c)?{value:!!c,message:c}:Nd(c);if(D&&(T[p]={type:tl.required,message:H,ref:j,...O(tl.required,H)},!n))return C(H),T}if(!E&&(!ws(f)||!ws(h))){let D,H;const U=Nd(h),ee=Nd(f);if(!ws(b)&&!isNaN(b)){const ae=i.valueAsNumber||b&&+b;ws(U.value)||(D=ae>U.value),ws(ee.value)||(H=ae<ee.value)}else{const ae=i.valueAsDate||new Date(b),V=Ae=>new Date(new Date().toDateString()+" "+Ae),q=i.type=="time",G=i.type=="week";Ei(U.value)&&b&&(D=q?V(b)>V(U.value):G?b>U.value:ae>new Date(U.value)),Ei(ee.value)&&b&&(H=q?V(b)<V(ee.value):G?b<ee.value:ae<new Date(ee.value))}if((D||H)&&(k(!!D,U.message,ee.message,tl.max,tl.min),!n))return C(T[p].message),T}if((u||d)&&!E&&(Ei(b)||o&&Array.isArray(b))){const D=Nd(u),H=Nd(d),U=!ws(D.value)&&b.length>+D.value,ee=!ws(H.value)&&b.length<+H.value;if((U||ee)&&(k(U,D.message,H.message),!n))return C(T[p].message),T}if(m&&!E&&Ei(b)){const{value:D,message:H}=Nd(m);if(Z0(D)&&!b.match(D)&&(T[p]={type:tl.pattern,message:H,ref:i,...O(tl.pattern,H)},!n))return C(H),T}if(g){if(Yo(g)){const D=await g(b,r),H=$4(D,j);if(H&&(T[p]={...H,...O(tl.validate,H.message)},!n))return C(H.message),T}else if(Xn(g)){let D={};for(const H in g){if(!Rs(D)&&!n)break;const U=$4(await g[H](b,r),j,H);U&&(D={...U,...O(H,U.message)},C(U.message),n&&(T[p]=D))}if(!Rs(D)&&(T[p]={ref:j,...D},!n))return T}}return C(!0),T};const Bfe={mode:Wo.onSubmit,reValidateMode:Wo.onChange,shouldFocusError:!0};function Nfe(e={}){let t={...Bfe,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Yo(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=Xn(t.defaultValues)||Xn(t.values)?ha(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:ha(s),i={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const h={array:D4(),state:D4()},m=t.criteriaMode===Wo.all,g=le=>me=>{clearTimeout(u),u=setTimeout(le,me)},p=async le=>{if(!t.disabled&&(d.isValid||f.isValid||le)){const me=t.resolver?Rs((await P()).errors):await E(n,!0);me!==r.isValid&&h.state.next({isValid:me})}},x=(le,me)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((le||Array.from(l.mount)).forEach(we=>{we&&(me?Or(r.validatingFields,we,me):sa(r.validatingFields,we))}),h.state.next({validatingFields:r.validatingFields,isValidating:!Rs(r.validatingFields)}))},y=(le,me=[],we,Fe,ze=!0,Pe=!0)=>{if(Fe&&we&&!t.disabled){if(i.action=!0,Pe&&Array.isArray(xt(n,le))){const $e=we(xt(n,le),Fe.argA,Fe.argB);ze&&Or(n,le,$e)}if(Pe&&Array.isArray(xt(r.errors,le))){const $e=we(xt(r.errors,le),Fe.argA,Fe.argB);ze&&Or(r.errors,le,$e),jfe(r.errors,le)}if((d.touchedFields||f.touchedFields)&&Pe&&Array.isArray(xt(r.touchedFields,le))){const $e=we(xt(r.touchedFields,le),Fe.argA,Fe.argB);ze&&Or(r.touchedFields,le,$e)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Sf(s,o)),h.state.next({name:le,isDirty:k(le,me),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Or(o,le,me)},b=(le,me)=>{Or(r.errors,le,me),h.state.next({errors:r.errors})},j=le=>{r.errors=le,h.state.next({errors:r.errors,isValid:!1})},C=(le,me,we,Fe)=>{const ze=xt(n,le);if(ze){const Pe=xt(o,le,Kn(we)?xt(s,le):we);Kn(Pe)||Fe&&Fe.defaultChecked||me?Or(o,le,me?Pe:U4(ze._f)):U(le,Pe),i.mount&&p()}},T=(le,me,we,Fe,ze)=>{let Pe=!1,$e=!1;const ct={name:le};if(!t.disabled){if(!we||Fe){(d.isDirty||f.isDirty)&&($e=r.isDirty,r.isDirty=ct.isDirty=k(),Pe=$e!==ct.isDirty);const pt=ul(xt(s,le),me);$e=!!xt(r.dirtyFields,le),pt?sa(r.dirtyFields,le):Or(r.dirtyFields,le,!0),ct.dirtyFields=r.dirtyFields,Pe=Pe||(d.dirtyFields||f.dirtyFields)&&$e!==!pt}if(we){const pt=xt(r.touchedFields,le);pt||(Or(r.touchedFields,le,we),ct.touchedFields=r.touchedFields,Pe=Pe||(d.touchedFields||f.touchedFields)&&pt!==we)}Pe&&ze&&h.state.next(ct)}return Pe?ct:{}},L=(le,me,we,Fe)=>{const ze=xt(r.errors,le),Pe=(d.isValid||f.isValid)&&io(me)&&r.isValid!==me;if(t.delayError&&we?(c=g(()=>b(le,we)),c(t.delayError)):(clearTimeout(u),c=null,we?Or(r.errors,le,we):sa(r.errors,le)),(we?!ul(ze,we):ze)||!Rs(Fe)||Pe){const $e={...Fe,...Pe&&io(me)?{isValid:me}:{},errors:r.errors,name:le};r={...r,...$e},h.state.next($e)}},P=async le=>{x(le,!0);const me=await t.resolver(o,t.context,vfe(le||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(le),me},I=async le=>{const{errors:me}=await P(le);if(le)for(const we of le){const Fe=xt(me,we);Fe?Or(r.errors,we,Fe):sa(r.errors,we)}else r.errors=me;return me},E=async(le,me,we={valid:!0})=>{for(const Fe in le){const ze=le[Fe];if(ze){const{_f:Pe,...$e}=ze;if(Pe){const ct=l.array.has(Pe.name),pt=ze._f&&yfe(ze._f);pt&&d.validatingFields&&x([Fe],!0);const it=await q4(ze,l.disabled,o,m,t.shouldUseNativeValidation&&!me,ct);if(pt&&d.validatingFields&&x([Fe]),it[Pe.name]&&(we.valid=!1,me))break;!me&&(xt(it,Pe.name)?ct?Efe(r.errors,it,Pe.name):Or(r.errors,Pe.name,it[Pe.name]):sa(r.errors,Pe.name))}!Rs($e)&&await E($e,me,we)}}return we.valid},O=()=>{for(const le of l.unMount){const me=xt(n,le);me&&(me._f.refs?me._f.refs.every(we=>!C1(we)):!C1(me._f.ref))&&X(le)}l.unMount=new Set},k=(le,me)=>!t.disabled&&(le&&me&&Or(o,le,me),!ul(Ae(),s)),D=(le,me,we)=>qU(le,l,{...i.mount?o:Kn(me)?s:Ei(le)?{[le]:me}:me},we,me),H=le=>VC(xt(i.mount?o:s,le,t.shouldUnregister?xt(s,le,[]):[])),U=(le,me,we={})=>{const Fe=xt(n,le);let ze=me;if(Fe){const Pe=Fe._f;Pe&&(!Pe.disabled&&Or(o,le,XU(me,Pe)),ze=Y0(Pe.ref)&&ws(me)?"":me,KU(Pe.ref)?[...Pe.ref.options].forEac
1244h($e=>$e.selected=ze.includes($e.value)):Pe.refs?$h(Pe.ref)?Pe.refs.forEach($e=>{(!$e.defaultChecked||!$e.disabled)&&(Array.isArray(ze)?$e.checked=!!ze.find(ct=>ct===$e.value):$e.checked=ze===$e.value||!!ze)}):Pe.refs.forEach($e=>$e.checked=$e.value===ze):KC(Pe.ref)?Pe.ref.value="":(Pe.ref.value=ze,Pe.ref.type||h.state.next({name:le,values:ha(o)})))}(we.shouldDirty||we.shouldTouch)&&T(le,ze,we.shouldTouch,we.shouldDirty,!0),we.shouldValidate&&G(le)},ee=(le,me,we)=>{for(const Fe in me){if(!me.hasOwnProperty(Fe))return;const ze=me[Fe],Pe=le+"."+Fe,$e=xt(n,Pe);(l.array.has(le)||Xn(ze)||$e&&!$e._f)&&!pu(ze)?ee(Pe,ze,we):U(Pe,ze,we)}},ae=(le,me,we={})=>{const Fe=xt(n,le),ze=l.array.has(le),Pe=ha(me);Or(o,le,Pe),ze?(h.array.next({name:le,values:ha(o)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&we.shouldDirty&&h.state.next({name:le,dirtyFields:Sf(s,o),isDirty:k(le,Pe)})):Fe&&!Fe._f&&!ws(Pe)?ee(le,Pe,we):U(le,Pe,we),H4(le,l)&&h.state.next({...r,name:le}),h.state.next({name:i.mount?le:void 0,values:ha(o)})},V=async le=>{i.mount=!0;const me=le.target;let we=me.name,Fe=!0;const ze=xt(n,we),Pe=pt=>{Fe=Number.isNaN(pt)||pu(pt)&&isNaN(pt.getTime())||ul(pt,xt(o,we,pt))},$e=Q4(t.mode),ct=Q4(t.reValidateMode);if(ze){let pt,it;const gt=me.type?U4(ze._f):HU(le),st=le.type===W0.BLUR||le.type===W0.FOCUS_OUT,Ut=!bfe(ze._f)&&!t.resolver&&!xt(r.errors,we)&&!ze._f.deps||Cfe(st,xt(r.touchedFields,we),r.isSubmitted,ct,$e),Lt=H4(we,l,st);Or(o,we,gt),st?(ze._f.onBlur&&ze._f.onBlur(le),c&&c(0)):ze._f.onChange&&ze._f.onChange(le);const St=T(we,gt,st),Mt=!Rs(St)||Lt;if(!st&&h.state.next({name:we,type:le.type,values:ha(o)}),Ut)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?st&&p():st||p()),Mt&&h.state.next({name:we,...Lt?{}:St});if(!st&&Lt&&h.state.next({...r}),t.resolver){const{errors:tr}=await P([we]);if(Pe(gt),Fe){const wt=z4(r.errors,n,we),ft=z4(tr,n,wt.name||we);pt=ft.error,we=ft.name,it=Rs(tr)}}else x([we],!0),pt=(await q4(ze,l.disabled,o,m,t.shouldUseNativeValidation))[we],x([we]),Pe(gt),Fe&&(pt?it=!1:(d.isValid||f.isValid)&&(it=await E(n,!0)));Fe&&(ze._f.deps&&G(ze._f.deps),L(we,it,pt,St))}},q=(le,me)=>{if(xt(r.errors,me)&&le.focus)return le.focus(),1},G=async(le,me={})=>{let we,Fe;const ze=mm(le);if(t.resolver){const Pe=await I(Kn(le)?le:ze);we=Rs(Pe),Fe=le?!ze.some($e=>xt(Pe,$e)):we}else le?(Fe=(await Promise.all(ze.map(async Pe=>{const $e=xt(n,Pe);return await E($e&&$e._f?{[Pe]:$e}:$e)}))).every(Boolean),!(!Fe&&!r.isValid)&&p()):Fe=we=await E(n);return h.state.next({...!Ei(le)||(d.isValid||f.isValid)&&we!==r.isValid?{}:{name:le},...t.resolver||!le?{isValid:we}:{},errors:r.errors}),me.shouldFocus&&!Fe&&hm(n,q,le?ze:l.mount),Fe},Ae=le=>{const me={...i.mount?o:s};return Kn(le)?me:Ei(le)?xt(me,le):le.map(we=>xt(me,we))},se=(le,me)=>({invalid:!!xt((me||r).errors,le),isDirty:!!xt((me||r).dirtyFields,le),error:xt((me||r).errors,le),isValidating:!!xt(r.validatingFields,le),isTouched:!!xt((me||r).touchedFields,le)}),S=le=>{le&&mm(le).forEach(me=>sa(r.errors,me)),h.state.next({errors:le?r.errors:{}})},Q=(le,me,we)=>{const Fe=(xt(n,le,{_f:{}})._f||{}).ref,ze=xt(r.errors,le)||{},{ref:Pe,message:$e,type:ct,...pt}=ze;Or(r.errors,le,{...pt,...me,ref:Fe}),h.state.next({name:le,errors:r.errors,isValid:!1}),we&&we.shouldFocus&&Fe&&Fe.focus&&Fe.focus()},z=(le,me)=>Yo(le)?h.state.subscribe({next:we=>"values"in we&&le(D(void 0,me),we)}):D(le,me,!0),W=le=>h.state.subscribe({next:me=>{_fe(le.name,me.name,le.exact)&&wfe(me,le.formState||d,tt,le.reRenderRoot)&&le.callback({values:{...o},...r,...me,defaultValues:s})}}).unsubscribe,ne=le=>(i.mount=!0,f={...f,...le.formState},W({...le,formState:f})),X=(le,me={})=>{for(const we of le?mm(le):l.mount)l.mount.delete(we),l.array.delete(we),me.keepValue||(sa(n,we),sa(o,we)),!me.keepError&&sa(r.errors,we),!me.keepDirty&&sa(r.dirtyFields,we),!me.keepTouched&&sa(r.touchedFields,we),!me.keepIsValidating&&sa(r.validatingFields,we),!t.shouldUnregister&&!me.keepDefaultValue&&sa(s,we);h.state.next({values:ha(o)}),h.state.next({...r,...me.keepDirty?{isDirty:k()}:{}}),!me.keepIsValid&&p()},te=({disabled:le,name:me})=>
1244{(io(le)&&i.mount||le||l.disabled.has(me))&&(le?l.disabled.add(me):l.disabled.delete(me))},fe=(le,me={})=>{let we=xt(n,le);const Fe=io(me.disabled)||io(t.disabled);return Or(n,le,{...we||{},_f:{...we&&we._f?we._f:{ref:{name:le}},name:le,mount:!0,...me}}),l.mount.add(le),we?te({disabled:io(me.disabled)?me.disabled:t.disabled,name:le}):C(le,!0,me.value),{...Fe?{disabled:me.disabled||t.disabled}:{},...t.progressive?{required:!!me.required,min:kf(me.min),max:kf(me.max),minLength:kf(me.minLength),maxLength:kf(me.maxLength),pattern:kf(me.pattern)}:{},name:le,onChange:V,onBlur:V,ref:ze=>{if(ze){fe(le,me),we=xt(n,le);const Pe=Kn(ze.value)&&ze.querySelectorAll&&ze.querySelectorAll("input,select,textarea")[0]||ze,$e=pfe(Pe),ct=we._f.refs||[];if($e?ct.find(pt=>pt===Pe):Pe===we._f.ref)return;Or(n,le,{_f:{...we._f,...$e?{refs:[...ct.filter(C1),Pe,...Array.isArray(xt(s,le))?[{}]:[]],ref:{type:Pe.type,name:le}}:{ref:Pe}}}),C(le,!1,void 0,Pe)}else we=xt(n,le,{}),we._f&&(we._f.mount=!1),(t.shouldUnregister||me.shouldUnregister)&&!(zU(l.array,le)&&i.action)&&l.unMount.add(le)}}},pe=()=>t.shouldFocusError&&hm(n,q,l.mount),_e=le=>{io(le)&&(h.state.next({disabled:le}),hm(n,(me,we)=>{const Fe=xt(n,we);Fe&&(me.disabled=Fe._f.disabled||le,Array.isArray(Fe._f.refs)&&Fe._f.refs.forEach(ze=>{ze.disabled=Fe._f.disabled||le}))},0,!1))},xe=(le,me)=>async we=>{let Fe;we&&(we.preventDefault&&we.preventDefault(),we.persist&&we.persist());let ze=ha(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Pe,values:$e}=await P();r.errors=Pe,ze=ha($e)}else await E(n);if(l.disabled.size)for(const Pe of l.disabled)sa(ze,Pe);if(sa(r.errors,"root"),Rs(r.errors)){h.state.next({errors:{}});try{await le(ze,we)}catch(Pe){Fe=Pe}}else me&&await me({...r.errors},we),pe(),setTimeout(pe);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rs(r.errors)&&!Fe,submitCount:r.submitCount+1,errors:r.errors}),Fe)throw Fe},Be=(le,me={})=>{xt(n,le)&&(Kn(me.defaultValue)?ae(le,ha(xt(s,le))):(ae(le,me.defaultValue),Or(s,le,ha(me.defaultValue))),me.keepTouched||sa(r.touchedFields,le),me.keepDirty||(sa(r.dirtyFields,le),r.isDirty=me.defaultValue?k(le,ha(xt(s,le))):k()),me.keepError||(sa(r.errors,le),d.isValid&&p()),h.state.next({...r}))},He=(le,me={})=>{const we=le?ha(le):s,Fe=ha(we),ze=Rs(le),Pe=ze?s:Fe;if(me.keepDefaultValues||(s=we),!me.keepValues){if(me.keepDirtyValues){const $e=new Set([...l.mount,...Object.keys(Sf(s,o))]);for(const ct of Array.from($e))xt(r.dirtyFields,ct)?Or(Pe,ct,xt(o,ct)):ae(ct,xt(Pe,ct))}else{if(QC&&Kn(le))for(const $e of l.mount){const ct=xt(n,$e);if(ct&&ct._f){const pt=Array.isArray(ct._f.refs)?ct._f.refs[0]:ct._f.ref;if(Y0(pt)){const it=pt.closest("form");if(it){it.reset();break}}}}if(me.keepFieldsRef)for(const $e of l.mount)ae($e,xt(Pe,$e));else n={}}o=t.shouldUnregister?me.keepDefaultValues?ha(s):{}:ha(Pe),h.array.next({values:{...Pe}}),h.state.next({values:{...Pe}})}l={mount:me.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!me.keepIsValid||!!me.keepDirtyValues,i.watch=!!t.shouldUnregister,h.state.next({submitCount:me.keepSubmitCount?r.submitCount:0,isDirty:ze?!1:me.keepDirty?r.isDirty:!!(me.keepDefaultValues&&!ul(le,s)),isSubmitted:me.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ze?{}:me.keepDirtyValues?me.keepDefaultValues&&o?Sf(s,o):r.dirtyFields:me.keepDefaultValues&&le?Sf(s,le):me.keepDirty?r.dirtyFields:{},touchedFields:me.keepTouched?r.touchedFields:{},errors:me.keepErrors?r.errors:{},isSubmitSuccessful:me.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},R=(le,me)=>He(Yo(le)?le(o):le,me),be=(le,me={})=>{const we=xt(n,le),Fe=we&&we._f;if(Fe){const ze=Fe.refs?Fe.refs[0]:Fe.ref;ze.focus&&(ze.focus(),me.shouldSelect&&Yo(ze.select)&&ze.select())}},tt=le=>{r={...r,...le}},De={control:{register:fe,unregister:X,getFieldState:se,handleSubmit:xe,setError:Q,_subscribe:W,_runSchema:P,_focusError:pe,_getWatch:D,_getDirty:k,_setValid:p,_setFieldArray:y,_setDisabledField:te,_setErrors:j,_getFieldArray:H,_reset:He,_resetDefaultValues:()=>Yo(t.defaultValues)&&t.defaultValues().then(le=>{R(le,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:_e,_subjects:h,_proxyFormState:d,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(le){i=le},get _defaultValues(){return s},get _names(){return l},set _names(le){l=le},get _formState(){return r},get _options(){return t},set _options(le){t={...t,...le}}},subscribe:ne,trigger:G,register:fe,handleSubmit:xe,watch:z,setValue:ae,getValues:Ae,reset:R,resetField:Be,clearErrors:S,unregister:X,setError:Q,setFocus:be,getFieldState:se};return{...De,formControl:De}}function JU(e={}){const t=Ne.useRef(void 0),r=Ne.useRef(void 0),[n,s]=Ne.useState({isDirty:!1,isValidating:!1,isLoading:Yo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Yo(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Yo(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...l}=Nfe(e);t.current={...l,formState:n}}const o=t.current.control;return o._options=e,$C(()=>{const i=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}
1244),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),o._formState.isReady=!0,i},[o]),Ne.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ne.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),Ne.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),Ne.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),Ne.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),Ne.useEffect(()=>{e.values&&!ul(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),r.current=e.values,s(i=>({...i}))):o._resetDefaultValues()},[o,e.values]),Ne.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=$U(n,o),t.current}const K4=(e,t,r)=>{if(e&&"reportValidity"in e){const n=xt(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},o_=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?K4(n.ref,r,e):n&&n.refs&&n.refs.forEach(s=>K4(s,r,e))}},G4=(e,t)=>{t.shouldUseNativeValidation&&o_(e,t);const r={};for(const n in e){const s=xt(t.fields,n),o=Object.assign(e[n]||{},{ref:s&&s.ref});if(Sfe(t.names||Object.keys(e),n)){const i=Object.assign({},xt(r,n));Or(i,"root",o),Or(r,n,i)}else Or(r,n,o)}return r},Sfe=(e,t)=>{const r=W4(t);return e.some(n=>W4(n).match(`^${r}\\.\\d+`))};function W4(e){return e.replace(/\]|\[/g,"")}function Ye(e,t,r){function n(l,c){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),t(l,c);for(const d in i.prototype)d in l||Object.defineProperty(l,d,{value:i.prototype[d].bind(l)});l._zod.constr=i,l._zod.def=c}const s=r?.Parent??Object;class o extends s{}Object.defineProperty(o,"name",{value:e});function i(l){var c;const u=r?.Parent?new o:this;n(u,l),(c=u._zod).deferred??(c.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class lA extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class e8 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const t8={};function Hu(e){return t8}function kfe(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,s])=>t.indexOf(+n)===-1).map(([n,s])=>s)}function i_(e,t){return typeof t=="bigint"?t.toString():t}function WC(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function YC(e){return e==null}function XC(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ife(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let s=(n.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(s=Number.parseInt(c[1]))}const o=r>s?r:s,i=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return i%l/10**o}const Y4=Symbol("evaluating");function rn(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Y4)return n===void 0&&(n=Y4,n=r()),n},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function nd(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ad(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function X4(e){return JSON.stringify(e)}const r8="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function J0(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ffe=WC(()=>
1244{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Zm(e){if(J0(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(J0(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function n8(e){return Zm(e)?{...e}:Array.isArray(e)?[...e]:e}const Tfe=new Set(["string","number","symbol"]);function SA(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Lc(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Ht(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Pfe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Lfe={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 Dfe(e,t){const r=e._zod.def,n=ad(e._zod.def,{get shape(){const s={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=r.shape[o])}return nd(this,"shape",s),s},checks:[]});return Lc(e,n)}function Rfe(e,t){const r=e._zod.def,n=ad(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete s[o]}return nd(this,"shape",s),s},checks:[]});return Lc(e,n)}function Mfe(e,t){if(!Zm(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const s=ad(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return nd(this,"shape",o),o},checks:[]});return Lc(e,s)}function Ofe(e,t){if(!Zm(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return nd(this,"shape",n),n},checks:e._zod.def.checks};return Lc(e,r)}function Ufe(e,t){const r=ad(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return nd(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Lc(e,r)}function Qfe(e,t,r){const n=ad(t._zod.def,{get shape(){const s=t._zod.def.shape,o={...s};if(r)for(const i in r){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=e?new e({type:"optional",innerType:s[i]}):s[i])}else for(const i in s)o[i]=e?new e({type:"optional",innerType:s[i]}):s[i];return nd(this,"shape",o),o},checks:[]});return Lc(t,n)}function Vfe(e,t,r){const n=ad(t._zod.def,{get shape(){const s=t._zod.def.shape,o={...s};if(r)for(const i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:s[i]}))}else for(const i in s)o[i]=new e({type:"nonoptional",innerType:s[i]});return nd(this,"shape",o),o},checks:[]});return Lc(t,n)}function Xd(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function a8(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Wp(e){return typeof e=="string"?e:e?.message}function zu(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const s=Wp(e.inst?._zod.def?.error?.(e))??Wp(t?.error?.(e))??Wp(r.customError?.(e))??Wp(r.localeError?.(e))??"Invalid input";n.message=s}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function ZC(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jm(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const s8=(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,i_,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},JC=Ye("$ZodError",s8),xv=Ye("$ZodError",s8,{Parent:Error});function Hfe(e,t=r=>r.message){const r={},n=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):n.push(t(s));return{formErrors:n,fieldErrors:r}}
1244function zfe(e,t=r=>r.message){const r={_errors:[]},n=s=>{for(const o of s.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(o))):i[c]=i[c]||{_errors:[]},i=i[c],l++}}};return n(e),r}const vv=e=>(t,r,n,s)=>{const o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new lA;if(i.issues.length){const l=new(s?.Err??e)(i.issues.map(c=>zu(c,o,Hu())));throw r8(l,s?.callee),l}return i.value},$fe=vv(xv),yv=e=>async(t,r,n,s)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new(s?.Err??e)(i.issues.map(c=>zu(c,o,Hu())));throw r8(l,s?.callee),l}return i.value},qfe=yv(xv),bv=e=>(t,r,n)=>{const s=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new lA;return o.issues.length?{success:!1,error:new(e??JC)(o.issues.map(i=>zu(i,s,Hu())))}:{success:!0,data:o.value}},Kfe=bv(xv),wv=e=>async(t,r,n)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},s);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>zu(i,s,Hu())))}:{success:!0,data:o.value}},Gfe=wv(xv),Wfe=e=>(t,r,n)=>{const s=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return vv(e)(t,r,s)},Yfe=e=>(t,r,n)=>vv(e)(t,r,n),Xfe=e=>async(t,r,n)=>{const s=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return yv(e)(t,r,s)},Zfe=e=>async(t,r,n)=>yv(e)(t,r,n),Jfe=e=>(t,r,n)=>{const s=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return bv(e)(t,r,s)},eme=e=>(t,r,n)=>bv(e)(t,r,n),tme=e=>async(t,r,n)=>{const s=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return wv(e)(t,r,s)},rme=e=>async(t,r,n)=>wv(e)(t,r,n),nme=/^[cC][^\s-]{8,}$/,ame=/^[0-9a-z]+$/,sme=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ome=/^[0-9a-vA-V]{20}$/,ime=/^[A-Za-z0-9]{27}$/,lme=/^[a-zA-Z0-9_-]{21}$/,cme=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ume=/^([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})$/,Z4=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)$/,dme=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ame="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fme(){return new RegExp(Ame,"u")}const mme=/^(?:(?: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])$/,hme=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pme=/^((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])$/,gme=/^(([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])$/,xme=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,o8=/^[A-Za-z0-9_-]*$/,vme=/^(?=.{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])?)*\.?$/,yme=/^\+(?:[0-9]){6,14}[0-9]$/,i8="(?:(?:\\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])))",bme=new RegExp(`^${i8}$`);function l8(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 wme(e){return new RegExp(`^${l8(e)}$`)}function _me(e){const t=l8({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${i8}T(?:${n})$`)}const Cme=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},jme=/^-?\d+$/,Eme=/^-?\d+(?:\.\d+)?/,Bme=/^(?:true|false)$/i,Nme=/^[^A-Z]*$/,Sme=/^[^a-z]*$/,Gs=Ye("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),c8={number:"number",bigint:"bigint",object:"date"},u8=Ye("$ZodCheckLessThan",(e,t)=>{Gs.init(e,t);const r=c8[typeof t.value];e._zod.onattach.push(n=>{const s=n._zod.bag,o=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),d8=Ye("$ZodCheckGreaterThan",(e,t)=>{Gs.init(e,t);const r=c8[typeof t.value];e._zod.onattach.push(n=>{const s=n._zod.bag,o=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}
1244),kme=Ye("$ZodCheckMultipleOf",(e,t)=>{Gs.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Ife(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ime=Ye("$ZodCheckNumberFormat",(e,t)=>{Gs.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[s,o]=Lfe[t.format];e._zod.onattach.push(i=>{const l=i._zod.bag;l.format=t.format,l.minimum=s,l.maximum=o,r&&(l.pattern=jme)}),e._zod.check=i=>{const l=i.value;if(r){if(!Number.isInteger(l)){i.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}l<s&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),Fme=Ye("$ZodCheckMaxLength",(e,t)=>{var r;Gs.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!YC(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const s=n.value;if(s.length<=t.maximum)return;const i=ZC(s);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Tme=Ye("$ZodCheckMinLength",(e,t)=>{var r;Gs.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!YC(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const s=n.value;if(s.length>=t.minimum)return;const i=ZC(s);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Pme=Ye("$ZodCheckLengthEquals",(e,t)=>{var r;Gs.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!YC(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=n=>{const s=n.value,o=s.length;if(o===t.length)return;const i=ZC(s),l=o>t.length;n.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),_v=Ye("$ZodCheckStringFormat",(e,t)=>{var r,n;Gs.init(e,t),e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Lme=Ye("$ZodCheckRegex",(e,t)=>{_v.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Dme=Ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Nme),_v.init(e,t)}),Rme=Ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Sme),_v.init(e,t)}),Mme=Ye("$ZodCheckIncludes",(e,t)=>{Gs.init(e,t);const r=SA(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
1244:s.value,inst:e,continue:!t.abort})}}),Ome=Ye("$ZodCheckStartsWith",(e,t)=>{Gs.init(e,t);const r=new RegExp(`^${SA(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ume=Ye("$ZodCheckEndsWith",(e,t)=>{Gs.init(e,t);const r=new RegExp(`.*${SA(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Qme=Ye("$ZodCheckOverwrite",(e,t)=>{Gs.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Vme{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 n=t.split(` 1245`).filter(i=>i),s=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(s)).map(i=>" ".repeat(this.indent*2)+i);for(const i of o)this.content.push(i)}compile(){const t=Function,r=this?.args,s=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,s.join(` 1246`))}}const Hme={major:4,minor:1,patch:12},Un=Ye("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Hme;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const s of n)for(const o of s._zod.onattach)o(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(i,l,c)=>{let u=Xd(i),d;for(const f of l){if(f._zod.def.when){if(!f._zod.def.when(i))continue}else if(u)continue;const h=i.issues.length,m=f._zod.check(i);if(m instanceof Promise&&c?.async===!1)throw new lA;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,i.issues.length!==h&&(u||(u=Xd(i,h)))});else{if(i.issues.length===h)continue;u||(u=Xd(i,h))}}return d?d.then(()=>i):i},o=(i,l,c)=>{if(Xd(i))return i.aborted=!0,i;const u=s(l,n,c);if(u instanceof Promise){if(c.async===!1)throw new lA;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(i,l)=>{if(l.skipChecks)return e._zod.parse(i,l);if(l.direction==="backward"){const u=e._zod.parse({value:i.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,i,l)):o(u,i,l)}const c=e._zod.parse(i,l);if(c instanceof Promise){if(l.async===!1)throw new lA;return c.then(u=>s(u,n,l))}return s(c,n,l)}}e["~standard"]={validate:s=>{try{const o=Kfe(e,s);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Gfe(e,s).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),ej=Ye("$ZodString",(e,t)=>{Un.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Cme(e._zod.bag),e._zod.parse=(r,n)=>{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}}),yn=Ye("$ZodStringFormat",(e,t)=>{_v.init(e,t),ej.init(e,t)}),zme=Ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ume),yn.init(e,t)}),$me=Ye("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Z4(n))}else t.pattern??(t.pattern=Z4());yn.init(e,t)}),qme=Ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dme),yn.init(e,t)}),Kme=Ye("$ZodURL",(e,t)=>{yn.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),s=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:vme.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||r.issues.push({code:"invalid_format",format:"url",n
1246ote:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=s.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Gme=Ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=fme()),yn.init(e,t)}),Wme=Ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=lme),yn.init(e,t)}),Yme=Ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nme),yn.init(e,t)}),Xme=Ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ame),yn.init(e,t)}),Zme=Ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=sme),yn.init(e,t)}),Jme=Ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ome),yn.init(e,t)}),ehe=Ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ime),yn.init(e,t)}),the=Ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_me(t)),yn.init(e,t)}),rhe=Ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bme),yn.init(e,t)}),nhe=Ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wme(t)),yn.init(e,t)}),ahe=Ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cme),yn.init(e,t)}),she=Ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mme),yn.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),ohe=Ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hme),yn.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),ihe=Ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pme),yn.init(e,t)}),lhe=Ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gme),yn.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[s,o]=n;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function A8(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const che=Ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=xme),yn.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{A8(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function uhe(e){if(!o8.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return A8(r)}const dhe=Ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=o8),yn.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{uhe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ahe=Ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=yme),yn.init(e,t)});function fhe(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const s=JSON.parse(atob(n));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const mhe=Ye("$ZodJWT",(e,t)=>{yn.init(e,t),e._zod.check=r=>{fhe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),f8=Ye("$ZodNumber",(e,t)=>{Un.init(e,t),e._zod.pattern=e._zod.bag.pattern??Eme,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const s=r.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return r;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...o?{received:o}:{}}),r}}),hhe=Ye("$ZodNumber",(e,t)=>{Ime.init(e,t),f8.init(e,t)}),phe=Ye("$ZodBoolean",(e,t)=>{Un.init(e,t),e._zod.pattern=Bme,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const s=r.value;return typeof s=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),r}}),ghe=Ye("$ZodUnknown",(e,t)=>{Un.init(e,t),e._zod.parse=r=>r}),xhe=Ye("$ZodNever",(e,t)=>{Un.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function J4(e,t,r){e.issues.length&&t.issues.push(...a8(r,e.issues)),t.value[r]=e.value}const vhe=Ye("$ZodArray",(e,t)=>{Un.init(e,t),e._zod.parse=(r,n)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const o=[];for(let i=0;i<s.length;i++){const l=s[i],c=t.element._zod.run({value:l,issues:[]},n);c instanceof Promise?o.push(c.then(u=>J4(u,r,i))):J4(c,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function ex(e,t,r,n){e.issues.length&&t.issues.push(...a8(r,e.issues)),e.value===void 0?r in n&&
1246(t.value[r]=void 0):t.value[r]=e.value}function m8(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=Pfe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function h8(e,t,r,n,s,o){const i=[],l=s.keySet,c=s.catchall._zod,u=c.def.type;for(const d of Object.keys(t)){if(l.has(d))continue;if(u==="never"){i.push(d);continue}const f=c.run({value:t[d],issues:[]},n);f instanceof Promise?e.push(f.then(h=>ex(h,r,d,t))):ex(f,r,d,t)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}const yhe=Ye("$ZodObject",(e,t)=>{if(Un.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}const n=WC(()=>m8(t));rn(e._zod,"propValues",()=>{const l=t.shape,c={};for(const u in l){const d=l[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(const f of d.values)c[u].add(f)}}return c});const s=J0,o=t.catchall;let i;e._zod.parse=(l,c)=>{i??(i=n.value);const u=l.value;if(!s(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const d=[],f=i.shape;for(const h of i.keys){const g=f[h]._zod.run({value:u[h],issues:[]},c);g instanceof Promise?d.push(g.then(p=>ex(p,l,h,u))):ex(g,l,h,u)}return o?h8(d,u,l,c,n.value,e):d.length?Promise.all(d).then(()=>l):l}}),bhe=Ye("$ZodObjectJIT",(e,t)=>{yhe.init(e,t);const r=e._zod.parse,n=WC(()=>m8(t)),s=h=>{const m=new Vme(["shape","payload","ctx"]),g=n.value,p=j=>{const C=X4(j);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};m.write("const input = payload.value;");const x=Object.create(null);let y=0;for(const j of g.keys)x[j]=`key_${y++}`;m.write("const newResult = {};");for(const j of g.keys){const C=x[j],T=X4(j);m.write(`const ${C} = ${p(j)};`),m.write(` 1247 if (${C}.issues.length) { 1248 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 1249 ...iss, 1250 path: iss.path ? [${T}, ...iss.path] : [${T}] 1251 }))); 1252 } 1253 1254 1255 if (${C}.value === undefined) { 1256 if (${T} in input) { 1257 newResult[${T}] = undefined; 1258 } 1259 } else { 1260 newResult[${T}] = ${C}.value; 1261 } 1262 1263 `)}m.write("payload.value = newResult;"),m.write("return payload;");const b=m.compile();return(j,C)=>b(h,j,C)};let o;const i=J0,l=!t8.jitless,u=l&&Ffe.value,d=t.catchall;let f;e._zod.parse=(h,m)=>{f??(f=n.value);const g=h.value;return i(g)?l&&u&&m?.async===!1&&m.jitless!==!0?(o||(o=s(t.shape)),h=o(h,m),d?h8([],g,h,m,f,e):h):r(h,m):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function eS(e,t,r,n){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const s=e.filter(o=>!Xd(o));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>zu(i,n,Hu())))}),t)}const whe=Ye("$ZodUnion",(e,t)=>{Un.init(e,t),rn(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),rn(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),rn(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),rn(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${s.map(o=>XC(o.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(s,o)=>
1263{if(r)return n(s,o);let i=!1;const l=[];for(const c of t.options){const u=c._zod.run({value:s.value,issues:[]},o);if(u instanceof Promise)l.push(u),i=!0;else{if(u.issues.length===0)return u;l.push(u)}}return i?Promise.all(l).then(c=>eS(c,s,e,o)):eS(l,s,e,o)}}),_he=Ye("$ZodIntersection",(e,t)=>{Un.init(e,t),e._zod.parse=(r,n)=>{const s=r.value,o=t.left._zod.run({value:s,issues:[]},n),i=t.right._zod.run({value:s,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([c,u])=>tS(r,c,u)):tS(r,o,i)}});function l_(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(Zm(e)&&Zm(t)){const r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),s={...e,...t};for(const o of n){const i=l_(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};s[o]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const s=e[n],o=t[n],i=l_(s,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tS(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Xd(e))return e;const n=l_(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const Che=Ye("$ZodEnum",(e,t)=>{Un.init(e,t);const r=kfe(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(s=>Tfe.has(typeof s)).map(s=>typeof s=="string"?SA(s):s.toString()).join("|")})$`),e._zod.parse=(s,o)=>{const i=s.value;return n.has(i)||s.issues.push({code:"invalid_value",values:r,input:i,inst:e}),s}}),jhe=Ye("$ZodLiteral",(e,t)=>{if(Un.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(r=>typeof r=="string"?SA(r):r?SA(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,n)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),Ehe=Ye("$ZodTransform",(e,t)=>{Un.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new e8(e.constructor.name);const s=t.transform(r.value,r);if(n.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(r.value=i,r));if(s instanceof Promise)throw new lA;return r.value=s,r}});function rS(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Bhe=Ye("$ZodOptional",(e,t)=>{Un.init(e,t),e._zod.optin="optional",e._zod.optout="optional",rn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),rn(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${XC(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>rS(o,r.value)):rS(s,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),Nhe=Ye("$ZodNullable",(e,t)=>{Un.init(e,t),rn(e._zod,"optin",()=>t.innerType._zod.optin),rn(e._zod,"optout",()=>t.innerType._zod.optout),rn(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${XC(r.source)}|null)$`):void 0}),rn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),She=Ye("$ZodDefault",(e,t)=>{Un.init(e,t),e._zod.optin="optional",rn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>nS(o,t)):nS(s,t)}});function nS(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const khe=Ye("$ZodPrefault",(e,t)=>{Un.init(e,t),e._zod.optin="optional",rn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Ihe=Ye("$ZodNonOptional",(e,t)=>{Un.init(e,t),rn(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>aS(o,e)):aS(s,e)}});function aS(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 Fhe=Ye("$ZodCatch",(e,t)=>{Un.init(e,t),rn(e._zod,"optin",()=>t.innerType._zod.optin),rn(e._zod,"optout",()=>t.innerType._zod.optout),rn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>zu(i,n,Hu()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(o=>zu(o,n,Hu()))},input:r.value}),r.issues=[]),r)}}),The=Ye("$ZodPipe",(e,t)=>{Un.init(e,t),rn(e._zod,"values",()=>t.in._zod.values),rn(e._zod,"optin",()=>t.in._zod.optin),rn(e._zod,"optout",()=>t.out._zod.optout),rn(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>Yp(i,t.in,n)):Yp(o,t.in,n)}const s=t.in._zod.run(r,n);return s instanceof Promise?s.then(o=>Yp(o,t.out,n)):Yp(s,t.out,n)}});function Yp(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Phe=Ye("$ZodReadonly",(e,t)=>{Un.init(e,t),rn(e._zod,"propValues",()=>t.innerType._zod.propValues),rn(e._zod,"values",()=>t.innerType._zod.values),rn(e._zod,"optin",()=>t.innerType._zod.optin),rn(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(sS):sS(s)}});function sS(e){return e.value=Object.freeze(e.value),e}const Lhe=Ye("$ZodCustom",(e,t)=>{Gs.init(e,t),Un.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,s=t.fn(n);if(s instanceof Promise)return s.then(o=>oS(o,r,n,e));oS(s,r,n,e)}});function oS(e,t,r,n){if(!e){const s={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),t.issues.push(Jm(s))}}class Dhe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const s={...n,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Rhe(){return new Dhe}const Xp=Rhe();function Mhe(e,t){return new e({type:"string",...Ht(t)})}function Ohe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ht(t)})}function iS(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ht(t)})}function Uhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ht(t)})}function Qhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ht(t)})}function Vhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ht(t)})}function Hhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ht(t)})}function zhe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ht(t)})}function $he(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ht(t)})}function qhe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ht(t)})}function Khe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ht(t)})}function Ghe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ht(t)})}function Whe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ht(t)})}function Yhe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ht(t)})}function Xhe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ht(t)})}function Zhe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ht(t)})}function Jhe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ht(t)})}function epe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ht(t)})}function tpe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ht(t)})}function rpe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ht(t)})}function npe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ht(t)})}function ape(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ht(t)})}function spe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ht(t)})}function ope(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ht(t)})}function ipe(e,t){return new e({type:"string",format:"date",check:"string_format",...Ht(t)})}function lpe(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ht(t)})}function cpe(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ht(t)})}function upe(e,t){return new e({type:"number",checks:[],...Ht(t)})}function C8e(e,t){return new e({type:"number",coerce:!0,checks:[],...Ht(t)})}function dpe(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ht(t)})}function Ape(e,t){return new e({type:"boolean",...Ht(t)})}function fpe(e){return new e({type:"unknown"})}function mpe(e,t){return new e({type:"never",...Ht(t)})}function lS(e,t){return new u8({check:"less_than",...Ht(t),value:e,inclusive:!1})}function j1(e,t){return new u8({check:"less_than",...Ht(t),value:e,inclusive:!0})}function cS(e,t){return new d8({check:"greater_than",...Ht(t),value:e,inclusive:!1})}function E1(e,t){return new d8({check:"greater_than",...Ht(t),value:e,inclusive:!0})}function uS(e,t){return new kme({check:"multiple_of",...Ht(t),value:e})}function p8(e,t){return new Fme({check:"max_length",...Ht(t),maximum:e})}function tx(e,t){return new Tme({check:"min_length",...Ht(t),minimum:e})}function g8(e,t){return new Pme({check:"length_equals",...Ht(t),length:e})}function hpe(e,t){return new Lme({check:"string_format",format:"regex",...Ht(t),pattern:e})}function ppe(e){return new Dme({check:"string_format",format:"lowercase",...Ht(e)})}function gpe(e){return new Rme({check:"string_format",format:"up
1263percase",...Ht(e)})}function xpe(e,t){return new Mme({check:"string_format",format:"includes",...Ht(t),includes:e})}function vpe(e,t){return new Ome({check:"string_format",format:"starts_with",...Ht(t),prefix:e})}function ype(e,t){return new Ume({check:"string_format",format:"ends_with",...Ht(t),suffix:e})}function qh(e){return new Qme({check:"overwrite",tx:e})}function bpe(e){return qh(t=>t.normalize(e))}function wpe(){return qh(e=>e.trim())}function _pe(){return qh(e=>e.toLowerCase())}function Cpe(){return qh(e=>e.toUpperCase())}function jpe(e,t,r){return new e({type:"array",element:t,...Ht(r)})}function Epe(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Ht(r)})}function Bpe(e){const t=Npe(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Jm(n,r.value,t._zod.def));else{const s=n;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),r.issues.push(Jm(s))}},e(r.value,r)));return t}function Npe(e,t){const r=new Gs({check:"custom",...Ht(t)});return r._zod.check=e,r}function dS(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function Spe(e,t){for(var r={};e.length;){var n=e[0],s=n.code,o=n.message,i=n.path.join(".");if(!r[i])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[i]={message:l.message,type:l.code}}else r[i]={message:o,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var c=r[i].types,u=c&&c[n.code];r[i]=qC(i,t,r,s,u?[].concat(u,n.message):n.message)}e.shift()}return r}function kpe(e,t){for(var r={};e.length;){var n=e[0],s=n.code,o=n.message,i=n.path.join(".");if(!r[i])if(n.code==="invalid_union"&&n.errors.length>0){var l=n.errors[0][0];r[i]={message:l.message,type:l.code}}else r[i]={message:o,type:s};if(n.code==="invalid_union"&&n.errors.forEach(function(d){return d.forEach(function(f){return e.push(f)})}),t){var c=r[i].types,u=c&&c[n.code];r[i]=qC(i,t,r,s,u?[].concat(u,n.message):n.message)}e.shift()}return r}function Ipe(e,t,r){if(r===void 0&&(r={}),function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def}(e))return function(n,s,o){try{return Promise.resolve(dS(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(i){return o.shouldUseNativeValidation&&o_({},o),{errors:{},values:r.raw?Object.assign({},n):i}})},function(i){if(function(l){return Array.isArray(l?.issues)}(i))return{values:{},errors:G4(Spe(i.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}};if(function(n){return"_zod"in n&&typeof n._zod=="object"}(e))return function(n,s,o){try{return Promise.resolve(dS(function(){return Promise.resolve((r.mode==="sync"?$fe:qfe)(e,n,t)).then(function(i){return o.shouldUseNativeValidation&&o_({},o),{errors:{},values:r.raw?Object.assign({},n):i}})},function(i){if(function(l){return l instanceof JC}(i))return{values:{},errors:G4(kpe(i.issues,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}};throw new Error("Invalid input: not a Zod schema")}const Fpe=Ye("ZodISODateTime",(e,t)=>{the.init(e,t),Fn.init(e,t)});function Tpe(e){return ope(Fpe,e)}const Ppe=Ye("ZodISODate",(e,t)=>{rhe.init(e,t),Fn.init(e,t)});function Lpe(e){return ipe(Ppe,e)}const Dpe=Ye("ZodISOTime",(e,t)=>{nhe.init(e,t),Fn.init(e,t)});function Rpe(e){return lpe(Dpe,e)}const Mpe=Ye("ZodISODuration",(e,t)=>{ahe.init(e,t),Fn.init(e,t)});function Ope(e){return cpe(Mpe,e)}const Upe=(e,t)=>{JC.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>zfe(e,r)},flatten:{value:r=>Hfe(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,i_,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,i_,2)}},isEmpty:{get(){return e.issues.length===0}}})},Do=Ye("ZodError",Upe,{Parent:Error}),Qpe=vv(Do),Vpe=yv(Do),Hpe=bv(Do),zpe=wv(Do),$pe=Wfe(Do),qpe=Yfe(Do),Kpe=Xfe(Do),Gpe=Zfe(Do),Wpe=Jfe(Do),Ype=eme(Do),Xpe=tme(Do),Zpe=rme(Do),Jn=Ye("ZodType",(e,t)=>(Un.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(ad(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>Lc(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>Qpe(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Hpe(e,r,n),e.parseAsync=async(r,n)=>Vpe(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>zpe(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>$pe(e,r,n),e.decode=(r,n)=>qpe(e,r,n),e.encodeAsync=async(r,n)=>Kpe(e,r,n),e.decodeAsync=async(r,n)=>Gpe(e,r,n),e.safeEncode=(r,n)=>Wpe(e,r,n),e.safeDecode=(r,n)=>Ype(e,r,n),e.safeEncodeAsync=async(r,n)=>Xpe(e,r,n),e.safeDecodeAsync=async(r,n)=>Zpe(e,r,n),e.refine=(r,n)=>e.check(qge(r,n)),e.superRefine=r=>e.check(Kge(r)),e.overwrite=r=>e.check(qh(r)),e.optional=()=>hS(e),e.nullable=()=>pS(e),e.nullish=()=>hS(pS(e)),e.nonoptional=r=>Oge(e,r),e.array=()=>_ge(e),e.or=r=>Bge([e,r]),e.and=r=>Sge(e,r),e.transform=r=>gS(e,Tge(r)),e.default=r=>Dge(e,r),e.prefault=r=>Mge(e,r),e.catch=r=>Qge(e,r),e.pipe=r=>gS(e,r),e.readonly=()=>zge(e),e.describe=r=>{const n=e.clone();return Xp.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Xp.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Xp.get(e);const n=e.clone();return Xp.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),x8=Ye("_ZodString",(e,t)=>{ej.init(e,t),Jn.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(hpe(...n)),e.includes=(...n)=>e.check(xpe(...n)),e.startsWith=(...n)=>e.check(vpe(...n)),e.endsWith=(...n)=>e.check(ype(...n)),e.min=(...n)=>e.check(tx(...n)),e.max=(...n)=>e.check(p8(...n)),e.length=(...n)=>e.check(g8(...n)),e.nonempty=(...n)=>e.check(tx(1,...n)),e.lowercase=n=>e.check(ppe(n)),e.uppercase=n=>e.check(gpe(n)),e.trim=()=>e.check(wpe()),e.normalize=(...n)=>e.check(bpe(...n)),e.toLowerCase=()=>e.check(_pe()),e.toUpperCase=()=>e.check(Cpe())}),Jpe=Ye("ZodString",(e,t)=>{ej.init(e,t),x8.init(e,t),e.email=r=>e.check(Ohe(ege,r)),e.url=r=>e.check(zhe(tge,r)),e.jwt=r=>e.check(spe(pge,r)),e.emoji=r=>e.check($he(rge,r)),e.guid=r=>e.check(iS(AS,r)),e.uuid=r=>e.check(Uhe(Zp,r)),e.uuidv4=r=>e.check(Qhe(Zp,r)),e.uuidv6=r=>e.check(Vhe(Zp,r)),e.uuidv7=r=>e.check(Hhe(Zp,r)),e.nanoid=r=>e.check(qhe(nge,r)),e.guid=r=>e.check(iS(AS,r)),e.cuid=r=>e.check(Khe(age,r)),e.cuid2=r=>e.check(Ghe(sge,r)),e.ulid=r=>e.check(Whe(oge,r)),e.base64=r=>e.check(rpe(fge,r)),e.base64url=r=>e.check(npe(mge,r)),e.xid=r=>e.check(Yhe(ige,r)),e.ksuid=r=>e.check(Xhe(lge,r)),e.ipv4=r=>e.check(Zhe(cge,r)),e.ipv6=r=>e.check(Jhe(uge,r)),e.cidrv4=r=>e.check(epe(dge,r)),e.cidrv6=r=>e.check(tpe(Age,r)),e.e164=r=>e.check(ape(hge,r)),e.datetime=r=>e.check(Tpe(r)),e.date=r=>e.check(Lpe(r)),e.time=r=>e.check(Rpe(r)),e.duration=r=>e.check(Ope(r))});function B1(e){return Mhe(Jpe,e)}const Fn=Ye("ZodStringFormat",(e,t)=>{yn.init(e,t),x8.init(e,t)}
1263),ege=Ye("ZodEmail",(e,t)=>{qme.init(e,t),Fn.init(e,t)}),AS=Ye("ZodGUID",(e,t)=>{zme.init(e,t),Fn.init(e,t)}),Zp=Ye("ZodUUID",(e,t)=>{$me.init(e,t),Fn.init(e,t)}),tge=Ye("ZodURL",(e,t)=>{Kme.init(e,t),Fn.init(e,t)}),rge=Ye("ZodEmoji",(e,t)=>{Gme.init(e,t),Fn.init(e,t)}),nge=Ye("ZodNanoID",(e,t)=>{Wme.init(e,t),Fn.init(e,t)}),age=Ye("ZodCUID",(e,t)=>{Yme.init(e,t),Fn.init(e,t)}),sge=Ye("ZodCUID2",(e,t)=>{Xme.init(e,t),Fn.init(e,t)}),oge=Ye("ZodULID",(e,t)=>{Zme.init(e,t),Fn.init(e,t)}),ige=Ye("ZodXID",(e,t)=>{Jme.init(e,t),Fn.init(e,t)}),lge=Ye("ZodKSUID",(e,t)=>{ehe.init(e,t),Fn.init(e,t)}),cge=Ye("ZodIPv4",(e,t)=>{she.init(e,t),Fn.init(e,t)}),uge=Ye("ZodIPv6",(e,t)=>{ohe.init(e,t),Fn.init(e,t)}),dge=Ye("ZodCIDRv4",(e,t)=>{ihe.init(e,t),Fn.init(e,t)}),Age=Ye("ZodCIDRv6",(e,t)=>{lhe.init(e,t),Fn.init(e,t)}),fge=Ye("ZodBase64",(e,t)=>{che.init(e,t),Fn.init(e,t)}),mge=Ye("ZodBase64URL",(e,t)=>{dhe.init(e,t),Fn.init(e,t)}),hge=Ye("ZodE164",(e,t)=>{Ahe.init(e,t),Fn.init(e,t)}),pge=Ye("ZodJWT",(e,t)=>{mhe.init(e,t),Fn.init(e,t)}),v8=Ye("ZodNumber",(e,t)=>{f8.init(e,t),Jn.init(e,t),e.gt=(n,s)=>e.check(cS(n,s)),e.gte=(n,s)=>e.check(E1(n,s)),e.min=(n,s)=>e.check(E1(n,s)),e.lt=(n,s)=>e.check(lS(n,s)),e.lte=(n,s)=>e.check(j1(n,s)),e.max=(n,s)=>e.check(j1(n,s)),e.int=n=>e.check(fS(n)),e.safe=n=>e.check(fS(n)),e.positive=n=>e.check(cS(0,n)),e.nonnegative=n=>e.check(E1(0,n)),e.negative=n=>e.check(lS(0,n)),e.nonpositive=n=>e.check(j1(0,n)),e.multipleOf=(n,s)=>e.check(uS(n,s)),e.step=(n,s)=>e.check(uS(n,s)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function j8e(e){return upe(v8,e)}const gge=Ye("ZodNumberFormat",(e,t)=>{hhe.init(e,t),v8.init(e,t)});function fS(e){return dpe(gge,e)}const xge=Ye("ZodBoolean",(e,t)=>{phe.init(e,t),Jn.init(e,t)});function E8e(e){return Ape(xge,e)}const vge=Ye("ZodUnknown",(e,t)=>{ghe.init(e,t),Jn.init(e,t)});function mS(){return fpe(vge)}const yge=Ye("ZodNever",(e,t)=>{xhe.init(e,t),Jn.init(e,t)});function bge(e){return mpe(yge,e)}const wge=Ye("ZodArray",(e,t)=>{vhe.init(e,t),Jn.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(tx(r,n)),e.nonempty=r=>e.check(tx(1,r)),e.max=(r,n)=>e.check(p8(r,n)),e.length=(r,n)=>e.check(g8(r,n)),e.unwrap=()=>e.element});function _ge(e,t){return jpe(wge,e,t)}const Cge=Ye("ZodObject",(e,t)=>{bhe.init(e,t),Jn.init(e,t),rn(e,"shape",()=>t.shape),e.keyof=()=>kge(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:mS()}),e.loose=()=>e.clone({...e._zod.def,catchall:mS()}),e.strict=()=>e.clone({...e._zod.def,catchall:bge()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Mfe(e,r),e.safeExtend=r=>Ofe(e,r),e.merge=r=>Ufe(e,r),e.pick=r=>Dfe(e,r),e.omit=r=>Rfe(e,r),e.partial=(...r)=>Qfe(y8,e,r[0]),e.required=(...r)=>Vfe(b8,e,r[0])});function jge(e,t){const r={type:"object",shape:e??{},...Ht(t)};return new Cge(r)}const Ege=Ye("ZodUnion",(e,t)=>{whe.init(e,t),Jn.init(e,t),e.options=t.options});function Bge(e,t){return new Ege({type:"union",options:e,...Ht(t)})}const Nge=Ye("ZodIntersection",(e,t)=>{_he.init(e,t),Jn.init(e,t)});function Sge(e,t){return new Nge({type:"intersection",left:e,right:t})}const c_=Ye("ZodEnum",(e,t)=>{Che.init(e,t),Jn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,s)=>{const o={};for(const i of n)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new c_({...t,checks:[],...Ht(s),entries:o})},e.exclude=(n,s)=>{const o={...t.entries};for(const i of n)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new c_({...t,checks:[],...Ht(s),entries:o})}});function kge(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new c_({type:"enum",entries:r,...Ht(t)})}const Ige=Ye("ZodLiteral",(e,t)=>{jhe.init(e,t),Jn.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
1263(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function B8e(e,t){return new Ige({type:"literal",values:Array.isArray(e)?e:[e],...Ht(t)})}const Fge=Ye("ZodTransform",(e,t)=>{Ehe.init(e,t),Jn.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new e8(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jm(o,r.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(Jm(i))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(o=>(r.value=o,r)):(r.value=s,r)}});function Tge(e){return new Fge({type:"transform",transform:e})}const y8=Ye("ZodOptional",(e,t)=>{Bhe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function hS(e){return new y8({type:"optional",innerType:e})}const Pge=Ye("ZodNullable",(e,t)=>{Nhe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pS(e){return new Pge({type:"nullable",innerType:e})}const Lge=Ye("ZodDefault",(e,t)=>{She.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dge(e,t){return new Lge({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():n8(t)}})}const Rge=Ye("ZodPrefault",(e,t)=>{khe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Mge(e,t){return new Rge({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():n8(t)}})}const b8=Ye("ZodNonOptional",(e,t)=>{Ihe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Oge(e,t){return new b8({type:"nonoptional",innerType:e,...Ht(t)})}const Uge=Ye("ZodCatch",(e,t)=>{Fhe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qge(e,t){return new Uge({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Vge=Ye("ZodPipe",(e,t)=>{The.init(e,t),Jn.init(e,t),e.in=t.in,e.out=t.out});function gS(e,t){return new Vge({type:"pipe",in:e,out:t})}const Hge=Ye("ZodReadonly",(e,t)=>{Phe.init(e,t),Jn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zge(e){return new Hge({type:"readonly",innerType:e})}const $ge=Ye("ZodCustom",(e,t)=>{Lhe.init(e,t),Jn.init(e,t)});function qge(e,t={}){return Epe($ge,e,t)}function Kge(e){return Bpe(e)}function Dc(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}function Kh(e){return typeof window>"u"?null:new URLSearchParams(window.location.search).get(e)}function tj(){return Dc("_fbp")}function rj(){const e=Dc("_fbc");if(e)return e;const t=Kh("fbclid");return t?`fb.1.${Math.floor(Date.now()/1e3)}.${t}`:null}function nj(){return Dc("_ttp")}function aj(){const e=Dc("ttclid");return e||Kh("ttclid")}function sj(){const e=Dc("li_fat_id");return e||Kh("li_fat_id")}function oj(){const e=Dc("_gcl_aw");if(e){const t=e.split(".");if(t.length>=3)return t.slice(2).join(".")}return Kh("gclid")}function ij(){const e=Dc("_ga");if(e){const t=e.split(".");if(t.length>=4)return`${t[2]}.${t[3]}`}return null}function w8(){return{fbp:tj(),fbc:rj(),ttp:nj(),ttclid:aj(),li_fat_id:sj(),gclid:oj(),ga_client_id:ij()}}function Gge(){if(typeof sessionStorage>"u")return;const e=w8();Object.entries(e).forEach(([t,r])=>{r&&sessionStorage.setItem(`adplatform_${t}`,r)})}function _8(){return typeof sessionStorage>"u"?{fbp:null,fbc:null,ttp:null,ttclid:null,li_fat_id:null,gclid:null,ga_client_id:null}:{fbp:sessionStorage.getItem("adplatform_fbp")||tj(),fbc:sessionStorage.getItem("adplatform_fbc")||rj(),ttp:sessionStorage.getItem("adplatform_ttp")||nj(),ttclid:sessionStorage.getItem("adplatform_ttclid")||aj(),li_fat_id:sessionStorage.getItem("adplatform_li_fat_id")||sj(),gclid:sessionStorage.getItem("adplatform_gclid")||oj(),ga_client_id:sessionStorage.getItem("adplatform_ga_client_id")||ij()}}const Wge=Object.freeze(Object.defineProperty({__proto__:null,getAllAdPlatformIds:w8,getCookie:Dc,getFbc:rj,getFbp:tj,getGaClientId:ij,getGclid:oj,getLiFatId:sj,getPersistedAdPlatformIds:_8,getTtclid:aj,getTtp:nj,getUrlParam:Kh,persistAdPlatformIds:Gge},Symbol.toStringTag,{value:"Module"}));function C8(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}function Yge(){return C8("_fbp")}function Xge(){const e=C8("_fbc");if(e)return e;
1263if(typeof window<"u"){const r=new URLSearchParams(window.location.search).get("fbclid");if(r){const s=`fb.1.${Math.floor(Date.now()/1e3)}.${r}`;try{sessionStorage.setItem("fbc",s),sessionStorage.setItem("fbclid",r)}catch{}return s}try{const n=sessionStorage.getItem("fbc");if(n)return n;const s=sessionStorage.getItem("fbclid");if(s)return`fb.1.${Math.floor(Date.now()/1e3)}.${s}`}catch{}}return null}function Zge(){return{fbp:Yge(),fbc:Xge()}}async function j8(e){const t=e.toLowerCase().trim(),n=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(s)).map(i=>i.toString(16).padStart(2,"0")).join("")}async function Jge(e){let t=e.replace(/\D/g,"");return t.startsWith("55")||(t=`55${t}`),j8(t)}const lj="__lv_lead_tracking_inspector_v1",E8=20;function B8(){try{const e=localStorage.getItem(lj);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function e0e(e){try{localStorage.setItem(lj,JSON.stringify(e.slice(0,E8)))}catch{}}function t0e(e){try{const{payload:t,rawCampaign:r,resolvedCampaign:n,warnings:s}=e,i=[{at:new Date().toISOString(),event_id:String(t.event_id??""),utm_source:t.utm_source??null,utm_medium:t.utm_medium??null,utm_campaign:t.utm_campaign??null,utm_campaign_raw:r??null,utm_campaign_resolved:n??null,utm_content:t.utm_content??null,utm_term:t.utm_term??null,gclid:t.gclid??null,fbclid:t.fbclid??null,landing_url:t.landing_url??null,tracking_uuid:t.tracking_uuid??null,warnings:Array.isArray(s)?s:[]},...B8()].slice(0,E8);if(e0e(i),typeof window<"u"){const l=window;l.__lvLeadTrackingInspector={entries:i,clear:N8};try{window.dispatchEvent(new CustomEvent("lv:lead-tracking-inspector:update"))}catch{}}}catch{}}function xS(){return B8()}function N8(){try{if(localStorage.removeItem(lj),typeof window<"u"){const e=window;e.__lvLeadTrackingInspector&&(e.__lvLeadTrackingInspector.entries=[]);try{window.dispatchEvent(new CustomEvent("lv:lead-tracking-inspector:update"))}catch{}}}catch{}}function r0e(){try{return typeof window>"u"||!(window.location.pathname||"").startsWith("/admin")?!1:localStorage.getItem("DEBUG_ATTRIBUTION")==="true"}catch{return!1}}async function ef(e,t){const r={event_id:crypto.randomUUID()},n=(()=>{try{return new URLSearchParams(window.location.search)}catch{return new URLSearchParams}})(),s=30*24*60*60*1e3,o=E=>{try{const O=localStorage.getItem(`utm_persist_${E}`);if(!O)return;const k=JSON.parse(O);if(k&&Date.now()-k.t<s&&k.v)return k.v}catch{}},i=E=>{try{const O=n.getAll(E);for(const k of O){const D=aA(k);if(D)return D}}catch{}try{const O=sessionStorage.getItem(E),k=aA(O);if(k)return k}catch{}return aA(o(E))??void 0},l=i("utm_source"),c=i("utm_medium"),u=i("utm_campaign"),d=u?hL(u)??void 0:void 0,f=i("utm_content"),h=i("utm_term");l&&(r.utm_source=l),c&&(r.utm_medium=c),d&&(r.utm_campaign=d),f&&(r.utm_content=f),h&&(r.utm_term=h);const m=i("gclid"),g=i("fbclid");m&&(r.gclid=m),g&&(r.fbclid=g);const p=gw();if(p.fbp&&(r.fbp=p.fbp),p.fbc&&(r.fbc=p.fbc),!r.fbp||!r.fbc){const E=Zge();!r.fbp&&E.fbp&&(r.fbp=E.fbp),!r.fbc&&E.fbc&&(r.fbc=E.fbc)}p.gclientid&&(r.gclientid=p.gclientid);const x=_8();if(!r.gclientid&&x.ga_client_id&&(r.gclientid=x.ga_client_id),x.ttclid&&(r.ttclid=x.ttclid),x.li_fat_id&&(r.li_fat_id=x.li_fat_id),x.ttp&&(r.ttp=x.ttp),r.fbclid&&!r.fbc&&(r.fbc=`fb.1.${Math.floor(Date.now()/1e3)}.${r.fbclid}`),!r.gclid)try{const E=document.cookie.match(/(?:^|;\s*)_gcl_aw=GCL\.\d+\.([\w-]+)/);E?.[1]&&(r.gclid=E[1])}catch{}try{if(typeof document<"u"&&document.referrer){const E=new URL(document.referrer).hostname;!E.includes("trainning.com.br")&&!E.includes("lovable.app")&&(r.referrer=document.referrer)}}catch{}r.gclid&&!r.utm_source&&(r.utm_source="google",r.utm_medium=r.utm_medium||"cpc"),(r.fbclid||r.fbc)&&!r.utm_source&&(r.utm_source="meta",r.utm_medium=r.utm_medium||"paid");const y=i("msclkid");y&&(r.msclkid=y);const b=i("gbraid");if(b){r.gbraid=b;try{sessionStorage.setItem("gbraid",b),localStorage.setItem("utm_persist_gbraid",JSON.stringify({v:b,t:Date.now()}))}catch{}r.utm_source||(r.utm_source="google",r.utm_medium=r.utm_medium||"cpc")}const j=i("wbraid");if(j){r.wbraid=j;try{sessionStorage.setItem("wbraid",j),localStorage.setItem("utm_persist_wbraid",JSON.stringify({v:j,t:Date.now()}))}catch{}r.utm_source||(r.utm_source="google",r.utm_medium=r.utm_medium||"cpc")}const C=see();C&&(r.tracking_uuid=C);const T=nee();T.first_utm_source&&(r.first_utm_source=T.first_utm_source),T.first_utm_medium&&(r.first_utm_medium=T.first_utm_medium),T.first_utm_campaign&&(r.first_utm_campaign=T.first_utm_campaign),T.first_utm_content&&(r.first_utm_content=T.first_utm_content),T.first_utm_term&&(r.first_utm_term=T.first_utm_term),T.first_referrer&&(r.first_referrer=T.first_referrer);try{const E=typeof document<"u"&&document.referrer||T.first_referrer;E&&(r.referrer=E)}catch{}r.last_utm_source=r.utm_source,r.last_utm_medium=r.utm_medium,r.last_utm_campaign=r.utm_campaign;const L=KJ();L.length>0&&(r.click_journey=L);const P=ree();P&&(r.landing_url=P);const I=[];if(e){const E=e.toLowerCase().trim();I.push(j8(E).then(O=>{r.email_hash=O}))}if(t&&I.push(Jge(t).then(E=>{r.phone_hash=E})),I.length>0&&await Promise.all(I),!r.utm_source&&typeof document<"u"&&document.referrer)try{const E=new URL(document.referrer).hostname.replace(/^www\./,"");E.includes("google.")?(r.utm_source="google",r.utm_medium=r.utm_medium||"organic"):E.includes("bing.")||E.includes("microsoft.")?(r.utm_source="bing",r.utm_medium="organic"):E.includes("linkedin.")?(r.utm_source="linkedin",r.utm_medium="organic"):E.includes("chatgpt.")||E.includes("openai.")?(r.utm_source="chatgpt",r.utm_medium="referral"):E.includes("trainning.com.br")||(r.utm_source="referral",r.utm_medium=E)}catch{}r.utm_source&&(r.last_utm_source=r.utm_source,r.last_utm_medium=r.utm_medium);try{const E=[],O=(r.utm_source||"").toLowerCase(),k=!!(r.gclid||r.gbraid||r.wbraid),D=!!(r.fbclid||r.fbc),H=["cpc","paid","paidsocial","paid_social","ppc"].includes((r.utm_medium||"").toLowerCase());k&&O&&O!=="google"&&E.push(`gclid/gbraid presente mas utm_source='${O}' (esperado 'google')`),D&&O&&!["meta","facebook","instagram"].includes(O)&&E.push(`fbclid/fbc presente mas utm_source='${O}' (esperado 'meta')`),O==="google"&&H&&!k&&E.push("utm_source='google' + medium pago, mas gclid/gbraid/wbraid ausentes"),O==="meta"&&H&&!D&&E.push("utm_source='meta' + medium pago, mas fbclid/fbc ausentes"),r.tracking_uuid||E.push("tracking_uuid ausente â deduplicação cross-platform comprometida"),r.landing_url||E.push("landing_url ausente â atribuição de entrada perdida");const U={event_id:r.event_id,utm_source:r.utm_source??null,utm_medium:r.utm_medium??null,utm_campaign:r.utm_campaign??null,gclid:r.gclid??null,fbclid:r.fbclid??null,gclientid:r.gclientid??null,fbp:r.fbp??null,fbc:r.fbc??null,landing_url:r.landing_url??null,tracking_uuid:r.tracking_uuid??null,warnings:E};if(E.length>0?console.warn("[UTM][integrity]",E,U):console.info("[UTM][integrity] OK",U),typeof window<"u"){const ee=window;ee.__lvSignals||(ee.__lvSignals={});const ae=ee.__lvSignals.attribution;ee.__lvSignals.attribution={lastPayload:U,warnings:(ae?.warnings??0)+(E.length>0?1:0),ok:(ae?.ok??0)+(E.length===0?1:0),at:new Date().toISOString()}}t0e({payload:r,rawCampaign:u??null,resolvedCampaign:d??null,warnings:E})}catch(E){console.warn("[UTM][integrity] check failed",E)}return r}async function cj(e,t,r=3e3){let n=!1;return Promise.race([ef(e,t).then(s=>(n=!0,s)).catch(s=>(n=!0,console.error("[UTM] captura de tracking falhou â lead segue sem atribuição:",s),{})),new Promise(s=>setTimeout(()=>{n||console.warn(`[UTM] captura de tracking excedeu ${r}ms â lead segue sem atribuição`),s({})},r))])}function N1(e,t=!1){const r=String(e??"").trim();return t?r.toLowerCase():r}function n0e(){if(!(typeof window>"u"))return window.location?.href||void 0}function a0e(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}async function s0e({name:e,email:t,whatsapp:r,source:n,formName:s,capturedData:o,fields:i={},trackingData:l,pageUrl:c}){const u=N1(e),d=N1(t,!0),f=N1(r),h=l??await cj(d,f);return a0e({...i,...h,name:u,email:d,whatsapp:f,source:n.trim(),page_url:c??n0e(),form_name:s.trim(),captured_data:o})}function o0e(e){if(!e||typeof e!="object")throw new Error("Cadastro não confirmado. Tente novamente.");const t=e,r=t.leadId??t.lead_id;if(t.success!==!0||t.skipped===!0||t.dry_run===!0||typeof r!="string"||!r.trim())throw new Error("Cadastro não confirmado. Tente novamente.");return r}const i0e=dfe,S8=A.createContext({}),S1=({...e})=>a.jsx(S8.Provider,{value:{name:e.name},children:a.jsx(hfe,{...e})}),Cv=()=>{const e=A.useContext(S8),t=A.useContext(k8),{getFieldState:r,formState:n}=gv(),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}},k8=A.createContext({}),i0=A.forwardRef(({className:e,...t},r)=>{const n=A.useId();return a.jsx(k8.Provider,{value:{id:n},children:a.jsx("div",{ref:r,className:je("space-y-2",e),...t})})});i0.displayName="FormItem";const l0e=A.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:s}=Cv();return a.jsx($t,{ref:r,className:je(n&&"text-destructive",e),htmlFor:s,...t})});l0e.displayName="FormLabel";const l0=A.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:s,formMessageId:o}=Cv();return a.jsx(w2,{ref:t,id:n,"aria-describedby":r?`${s} ${o}`:`${s}`,"aria-invalid":!!r,...e})});l0.displayName="FormControl";const c0e=A.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Cv();return a.jsx("p",{ref:r,id:n,className:je("text-sm text-muted-foreground",e),...t})});c0e.displayName="FormDescription";const c0=A.forwardRef(({className:e,children:t,...r},n)=>{const{error:s,formMessageId:o}=Cv(),i=s?String(s?.message):t;return i?a.jsx("p",{ref:n,id:o,className:je("text-sm font-medium text-destructive",e),...r,children:i}):null});c0.displayName="FormMessage";const u0e=[11,12,13,14,15,16,17,18,19,21,22,24,27,28,31,32,33,34,35,37,38,41,42,43,44,45,46,47,48,49,51,53,54,55,61,62,64,63,65,66,67,68,69,71,73,74,75,77,79,81,82,87,83,84,85,88,86,89,91,93,94,92,97,95,96,98,99];function u0(e){return e.replace(/\D/g,"")}function jv(e){const t=u0(e);let r=t;if(t.startsWith("55")&&t.length>=12&&(r=t.substring(2)),r.length<10)return{isValid:!1,error:"Número muito curto. Digite DDD + número."};if(r.length>11)return{isValid:!1,error:"Número muito longo."};const n=parseInt(r.substring(0,2));if(!u0e.includes(n))return{isValid:!1,error:`DDD ${n} inválido.`};const s=r.substring(2);return/^(\d)\1+$/.test(s)?{isValid:!1,error:"Número inválido (dÃgitos repetidos)."}:["12345678","87654321","00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999"].some(l=>s.includes(l))?{isValid:!1,error:"Número inválido."}:{isValid:!0,formatted:pm(r),digits:r}}function pm(e){let t=e;return e.startsWith("55")&&e.length>=12&&(t=e.substring(2)),t.length===11?`(${t.substring(0,2)}) ${t.substring(2,7)}-${t.substring(7)}`:t.length===10?`(${t.substring(0,2)}) ${t.substring(2,6)}-${t.substring(6)}`:t}const Rt={container:"bg-black/60 backdrop-blur-xl border border-white/10 rounded-2xl",containerPadding:"p-5 md:p-6",label:"text-[11px] md:text-xs uppercase tracking-widest text-white/70 font-medium",input:"bg-transparent border-0 border-b border-white/30 rounded-none text-white placeholder:text-white/30 focus:border-cyan-400 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none h-[52px] md:h-11 text-base md:text-sm px-0 transition-colors duration-300",textarea:"bg-transparent border-0 border-b border-white/30 rounded-none text-white placeholder:text-white/30 focus:border-cyan-400 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 px-0 text-base md:text-sm min-h-[52px] md:min-
1263h-[70px] resize-none w-full transition-colors duration-300",selectTrigger:"bg-transparent border-0 border-b border-white/30 rounded-none text-white h-[52px] md:h-11 text-base md:text-sm px-0 focus:ring-0 focus:border-cyan-400 transition-colors duration-300 [&>svg]:text-white/40",selectContent:"bg-[#1a1f2e] border-white/10 text-white",selectItem:"text-white/80 focus:bg-cyan-400/10 focus:text-cyan-300",cardActive:"border-cyan-400 bg-cyan-400/10 text-cyan-300 shadow-[0_0_12px_rgba(0,255,255,0.25)] scale-[1.02]",cardInactive:"border-white/20 bg-white/5 text-white/50 hover:border-white/40 hover:bg-white/10",cardBase:"px-3 py-2.5 md:px-4 md:py-3 rounded-lg border text-[13px] md:text-sm font-medium transition-all duration-200 cursor-pointer min-h-[42px] md:min-h-[48px] flex items-center justify-center text-center",chipsGrid:"grid grid-cols-2 md:grid-cols-3 gap-2 mt-1",button:"w-full h-[52px] md:h-12 text-sm md:text-base font-bold uppercase tracking-wider border border-cyan-400 bg-transparent text-cyan-300 hover:bg-cyan-400/10 shadow-[0_0_20px_rgba(0,255,255,0.3)] hover:shadow-[0_0_30px_rgba(0,255,255,0.5)] transition-all duration-300 relative overflow-hidden",error:"text-red-400 text-xs mt-1",title:"text-white uppercase tracking-[0.15em] md:tracking-[0.2em] font-bold text-sm md:text-xl text-center",formSpacing:"space-y-5 md:space-y-3",buttonWrapper:"pt-4 md:pt-3",conditionalBorder:"pl-3 border-l-2 border-cyan-400/30",dialogBg:"bg-[#0a0e1a] border-white/10",drawerBg:"bg-[#0a0e1a] border-t-white/10",discountBg:"bg-green-950/80 border-2 border-green-500/60 rounded-lg",headerTitle:"text-sm sm:text-base font-bold text-white uppercase tracking-[0.12em] text-center",headerSubtitle:"text-xs sm:text-sm text-white/50",loadingBg:"bg-black/40 backdrop-blur-xl rounded-lg"},Br={label:"text-[10px] uppercase tracking-[0.2em] text-white/50 font-semibold",inputWrapper:"relative",inputIcon:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-white/30 pointer-events-none",input:"bg-white/[0.04] border border-white/[0.08] rounded-xl pl-10 pr-4 h-12 text-white text-sm placeholder:text-white/20 focus:border-cyan-400/50 focus:bg-white/[0.06] focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none transition-all duration-300",button:"w-full h-12 text-sm font-bold uppercase tracking-wider bg-gradient-to-r from-cyan-500 to-cyan-400 text-black hover:from-cyan-400 hover:to-cyan-300 shadow-[0_4px_20px_rgba(0,255,255,0.35)] hover:shadow-[0_6px_30px_rgba(0,255,255,0.5)] transition-all duration-300 rounded-xl relative overflow-hidden",progressBar:"h-[2px] bg-gradient-to-r from-cyan-400 via-cyan-500/60 to-transparent",error:"text-red-400 text-[9px] mt-0.5"},d0e=e=>`${Rt.cardBase} ${e?Rt.cardActive:Rt.cardInactive}`,u_=` 1264 .cinematic-phone .react-international-phone-input-container { 1265 background: transparent !important; 1266 } 1267 .cinematic-phone .react-international-phone-input-container .react-international-phone-input { 1268 background: transparent !important; 1269 border: none !important; 1270 border-bottom: 1px solid rgba(255,255,255,0.3) !important; 1271 border-radius: 0 !important; 1272 color: white !important; 1273 font-size: 16px !important; 1274 height: 52px !important; 1275 } 1276 @media (min-width: 768px) { 1277 .cinematic-phone .react-international-phone-input-container .react-international-phone-input { 1278 font-size: 14px !important; 1279 height: 44px !important; 1280 } 1281 } 1282 .cinematic-phone .react-international-phone-input-container .react-international-phone-input:focus { 1283 border-bottom-color: #22d3ee !important; 1284 box-shadow: none !important; 1285 } 1286 .cinematic-phone .react-international-phone-input-container .react-international-phone-input::placeholder { 1287 color: rgba(255,255,255,0.30) !important; 1288 } 1289 .cinematic-phone .react-international-phone-input-container .react-international-phone-country-selector-button { 1290 background: transparent !important; 1291 border: none !important; 1292 border-bottom: 1px solid rgba(255,255,255,0.3) !important; 1293 border-radius: 0 !important; 1294 height: 52px !important; 1295 } 1296 @media (min-width: 768px) { 1297 .cinematic-phone .react-international-phone-input-container .react-international-phone-country-selector-button { 1298 height: 44px !important; 1299 } 1300 } 1301 .cinematic-phone .react-international-phone-input-container .react-international-phone-country-selector-button__dropdown-arrow { 1302 border-top-color: rgba(255,255,255,0.4) !important; 1303 } 1304 .cinematic-phone .react-international-phone-country-selector-dropdown { 1305 background: #1a1f2e !important; 1306 border-color: rgba(255,255,255,0.1) !important; 1307 color: white !important; 1308 } 1309 .cinematic-phone .react-international-phone-country-selector-dropdown__list-item:hover { 1310 background: rgba(34,211,238,0.1) !important; 1311 } 1312 /* Compact variant for V1 drawer/dialog â shorter height, keeps 16px on mobile to avoid iOS zoom */ 1313 .cinematic-phone--compact .react-international-phone-input-container .react-international-phone-input, 1314 .cinematic-phone--compact .react-international-phone-input-container .react-international-phone-country-selector-button { 1315 height: 38px !important; 1316 border-bottom-color: rgb(30 41 59) !important; 1317 } 1318 .cinematic-phone--compact .react-international-phone-input-container .react-international-phone-input:focus { 1319 border-bottom-color: #06b6d4 !important; 1320 } 1321`,eh=` 1322 @keyframes cinematic-lens-flare { 1323 0% { left: -30%;
1323 opacity: 0; } 1324 50% { opacity: 0.6; } 1325 100% { left: 130%; opacity: 0; } 1326 } 1327`,A0e=jge({email:B1().trim().email("Informe um e-mail válido."),nome:B1().trim().min(2,"Nome deve ter pelo menos 2 caracteres"),whatsapp:B1().refine(e=>jv(e).isValid,{message:"Telefone inválido. Digite DDD + número."})});function I8({open:e,onOpenChange:t,currentPage:r=window.location.pathname}){const[n,s]=A.useState(!1),{toast:o}=hh();A.useEffect(()=>(e&&mv(),()=>{e&&hv()}),[e]);const i=JU({resolver:Ipe(A0e),defaultValues:{nome:"",email:"",whatsapp:""}}),l=async u=>{s(!0);const d="551131712002",f=`Olá! Meu nome é ${u.nome}. Gostaria de mais informações!`,h=`https://wa.me/${d}?text=${encodeURIComponent(f)}`,m=window.open("","_blank");m&&(m.opener=null);let g,p=!1;try{const y=jv(u.whatsapp).digits||u.whatsapp.replace(/\D/g,""),b=await s0e({name:u.nome,email:u.email,whatsapp:y,source:"whatsapp_button",formName:"WhatsApp Button",capturedData:{...u},fields:{is_priority:!0}});g=typeof b.event_id=="string"?b.event_id:void 0;const{data:j,error:C}=await J.functions.invoke("submit-public-lead",{body:b});if(C)throw C;o0e(j),p=!0}catch(x){console.error("Erro ao enviar/registrar lead:",x)}finally{m&&!m.closed?m.location.href=h:window.open(h,"_blank")||(window.location.href=h),p?(o({title:"Redirecionando para WhatsApp...",description:"Em breve um consultor entrará em contato!"}),Ju("generate_lead",{form_name:"whatsapp_button",source:"whatsapp_button",page_path:r,event_id:g})):o({title:"Vamos te atender no WhatsApp",description:"Não conseguimos registrar seus dados agora â mencione seu interesse na conversa.",variant:"destructive"}),t(!1),i.reset(),s(!1)}},c=(u,d)=>{let f=u.target.value.replace(/\D/g,"");f.length>11&&(f=f.slice(0,11)),d(f.length>0?pm(f):"")};return a.jsx(Qa,{open:e,onOpenChange:t,children:a.jsxs(Ba,{className:`sm:max-w-[425px] ${Rt.dialogBg}`,children:[a.jsxs(Ks,{className:"text-center",children:[a.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-[#25D366]/10 border border-[#25D366]/30",children:a.jsx(qs,{className:"h-8 w-8 text-[#25D366]"})}),a.jsx(Va,{className:Rt.headerTitle,children:"Fale Conosco"}),a.jsx("p",{className:`${Rt.headerSubtitle} mt-1`,children:"Preencha seus dados para continuar para o WhatsApp"})]}),a.jsx(i0e,{...i,children:a.jsxs("form",{onSubmit:i.handleSubmit(l),className:Rt.formSpacing,children:[a.jsx(S1,{control:i.control,name:"nome",render:({field:u})=>a.jsxs(i0,{children:[a.jsx("label",{className:Rt.label,children:"Nome completo *"}),a.jsx(l0,{children:a.jsx(Jt,{placeholder:"Seu nome",...u,className:Rt.input})}),a.jsx(c0,{className:Rt.error})]})}),a.jsx(S1,{control:i.control,name:"email",render:({field:u})=>a.jsxs(i0,{children:[a.jsx("label",{className:Rt.label,children:"E-mail *"}),a.jsx(l0,{children:a.jsx(Jt,{type:"email",autoComplete:"email",placeholder:"[email protected]",...u,className:Rt.input})}),a.jsx(c0,{className:Rt.error})]})}),a.jsx(S1,{control:i.control,name:"whatsapp",render:({field:u})=>a.jsxs(i0,{children:[a.jsx("label",{className:Rt.label,children:"WhatsApp *"}),a.jsx(l0,{children:a.jsx(Jt,{type:"tel",placeholder:"(11) 99999-9999",value:u.value,onChange:d=>c(d,u.onChange),className:Rt.input})}),a.jsx(c0,{className:Rt.error})]})}),a.jsx("button",{type:"submit",className:`${Rt.button} !border-[#25D366] !text-[#25D366] !shadow-[0_0_20px_rgba(37,211,102,0.3)] hover:!shadow-[0_0_30px_rgba(37,211,102,0.5)] hover:!bg-[#25D366]/10`,disabled:n,children:n?a.jsx($r,{className:"h-4 w-4 animate-spin mx-auto"}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"absolute top-1/2 right-6 -translate-y-1/2 w-3 h-3 rounded-full bg-[#25D366]/60 blur-sm animate-pulse pointer-events-none"}),a.jsx(qs,{className:"inline mr-2 h-4 w-4"}),"CONTINUAR PARA O WHATSAPP"]})}),a.jsxs("div",{className:"flex items-center justify-center gap-2 text-[9px] md:text-xs text-white/30",children:[a.jsx(_i,{className:"h-3 w-3"}),a.jsx("span",{children:"Seus dados estão seguros conosco"})]})]})}),a.jsx("style",{children:eh})]})})}var F8={exports:{}};function f0e(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k1=f0e(A),m0e=IA;function h0e(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var s=r[n],o=Object.getOwnPropertyDescriptor(t,s);o&&o.configurable&&e[s]===void 0&&Object.defineProperty(e,s,o)}return e}function d_(){return(d_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1327for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p0e(e,t){e.prototype=Object.create(t.prototype),h0e(e.prototype.constructor=e,t)}function g0e(e,t){if(e==null)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(s[r]=e[r]);return s}function Sd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var x0e=function(e,t,r,n,s,o,i,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,s,o,i,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}},vS=x0e;function yS(e,t,r){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=r;else{var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t),n.moveEnd("character",r-t),n.select()}}function v0e(e){var t=0,r=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,r=e.selectionEnd;else{var n=document.selection.createRange();n.parentElement()===e&&(t=-n.moveStart("character",-e.value.length),r=-n.moveEnd("character",-e.value.length))}return{start:t,end:r,length:r-t}}var y0e={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},b0e="_";function bS(e,t,r){var n="",s="",o=null,i=[];if(t===void 0&&(t=b0e),r==null&&(r=y0e),!e||typeof e!="string")return{maskChar:t,formatChars:r,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var l=!1;return e.split("").forEach(function(c){l=!l&&c==="\\"||(l||!r[c]?(i.push(n.length),n.length===i.length-1&&(s+=c)):o=n.length+1,n+=c,!1)}),{maskChar:t,formatChars:r,prefix:s,mask:n,lastEditablePosition:o,permanents:i}}function ho(e,t){return e.permanents.indexOf(t)!==-1}function Ev(e,t,r){var n=e.mask,s=e.formatChars;if(!r)return!1;if(ho(e,t))return n[t]===r;var o=s[n[t]];return new RegExp(o).test(r)}function wS(e,t){return t.split("").every(function(r,n){return ho(e,n)||!Ev(e,n,r)})}function Wf(e,t){var r=e.maskChar,n=e.prefix;if(!r){for(;t.length>n.length&&ho(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var s=n.length,o=t.length;o>=n.length;o--){var i=t[o];if(!ho(e,o)&&Ev(e,o,i)){s=o+1;break}}return s}function T8(e,t){return Wf(e,t)===e.mask.length}function dl(e,t){var r=e.maskChar,n=e.mask,s=e.prefix;if(!r){for((t=A_(e,"",t,0)).length<s.length&&(t=s);t.length<n.length&&ho(e,t.length);)t+=n[t.length];return t}if(t)return A_(e,dl(e,""),t,0);for(var o=0;o<n.length;o++)ho(e,o)?t+=n[o]:t+=r;return t}function w0e(e,t,r,n){var s=r+n,o=e.maskChar,i=e.mask,l=e.prefix,c=t.split("");if(o)return c.map(function(d,f){return f<r||s<=f?d:ho(e,f)?i[f]:o}).join("");for(var u=s;u<c.length;u++)ho(e,u)&&(c[u]="");return r=Math.max(l.length,r),c.splice(r,s-r),t=c.join(""),dl(e,t)}function A_(e,t,r,n){var s=e.mask,o=e.maskChar,i=e.prefix,l=r.split(""),c=T8(e,t);return!o&&n>t.length&&(t+=s.slice(t.length,n)),l.every(function(u){for(;m=u,ho(e,h=n)&&m!==s[h];){if(n>=t.length&&(t+=s[n]),d=u,f=n,o&&ho(e,f)&&d===o)return!0;if(++n>=s.length)return!1}var d,f,h,m;return!Ev(e,n,u)&&u!==o||(n<t.length?t=o||c||n<i.length?t.slice(0,n)+u+t.slice(n+1):(t=t.slice(0,n)+u+t.slice(n),dl(e,t)):o||(t+=u),++n<s.length)}),t}function _0e(e,t,r,n){var s=e.mask,o=e.maskChar,i=r.split(""),l=n;return i.every(function(c){for(;d=c,ho(e,u=n)&&d!==s[u];)if(++n>=s.length)return!1;var u,d;return(Ev(e,n,c)||c===o)&&n++,n<s.length}),n-l}function C0e(e,t){for(var r=t;0<=r;--r)if(!ho(e,r))return r;return null}function gm(e,t){for(var r=e.mask,n=t;n<r.length;++n)if(!ho(e,n))return n;return null}function I1(e){return e||e===0?e+"":""}function j0e(e,t,r,n,s){var o=e.mask,i=e.prefix,l=e.lastEditablePosition,c=t,u="",d=0,f=0,h=Math.min(s.start,r.start);return r.end>s.start?f=(d=_0e(e,n,u=c.slice(s.start,r.end),h))?s.length:0:c.length<n.length&&(f=n.length-c.length),c=n,f&&(f===1&&!s.length&&(h=s.start===r.start?gm(e,r.start):C0e(e,r.start)),c=w0e(e,c,h,f)),c=A_(e,c,u,h),(h+=d)>=o.length?h=o.length:h<i.length&&!d?h=i.length:h>=i.length&&h<l&&d&&(h=gm(e,h)),u||(u=null),{value:c=dl(e,c),enteredString:u,selection:{start:h,end:h}}}function E0e(){var e=new RegExp("windows","i"),t=new RegExp("phone","i"),r=navigator.userAgent;return e.test(r)&&t.test(r)}function Ds(e){return typeof e=="function"}function B0e(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function P8(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function _S(e){return(P8()?B0e():function(){return setTimeout(e,1e3/60)})(e)}function F1(e){(P8()||clearTimeout)(e)}var N0e=function(e){function t(n){var s=e.call(this,n)||this;s.focused=!1,s.mounted=!1,s.previousSelection=null,s.selectionDeferId=null,s.saveSelectionLoopDeferId=null,s.saveSelectionLoop=function(){s.previousSelection=s.get
1327Selection(),s.saveSelectionLoopDeferId=_S(s.saveSelectionLoop)},s.runSaveSelectionLoop=function(){s.saveSelectionLoopDeferId===null&&s.saveSelectionLoop()},s.stopSaveSelectionLoop=function(){s.saveSelectionLoopDeferId!==null&&(F1(s.saveSelectionLoopDeferId),s.saveSelectionLoopDeferId=null,s.previousSelection=null)},s.getInputDOMNode=function(){if(!s.mounted)return null;var g=m0e.findDOMNode(Sd(Sd(s))),p=typeof window<"u"&&g instanceof window.Element;if(g&&!p)return null;if(g.nodeName!=="INPUT"&&(g=g.querySelector("input")),!g)throw new Error("react-input-mask: inputComponent doesn't contain input node");return g},s.getInputValue=function(){var g=s.getInputDOMNode();return g?g.value:null},s.setInputValue=function(g){var p=s.getInputDOMNode();p&&(s.value=g,p.value=g)},s.setCursorToEnd=function(){var g=Wf(s.maskOptions,s.value),p=gm(s.maskOptions,g);p!==null&&s.setCursorPosition(p)},s.setSelection=function(g,p,x){x===void 0&&(x={});var y=s.getInputDOMNode(),b=s.isFocused();y&&b&&(x.deferred||yS(y,g,p),s.selectionDeferId!==null&&F1(s.selectionDeferId),s.selectionDeferId=_S(function(){s.selectionDeferId=null,yS(y,g,p)}),s.previousSelection={start:g,end:p,length:Math.abs(p-g)})},s.getSelection=function(){return v0e(s.getInputDOMNode())},s.getCursorPosition=function(){return s.getSelection().start},s.setCursorPosition=function(g){s.setSelection(g,g)},s.isFocused=function(){return s.focused},s.getBeforeMaskedValueChangeConfig=function(){var g=s.maskOptions,p=g.mask,x=g.maskChar,y=g.permanents,b=g.formatChars;return{mask:p,maskChar:x,permanents:y,alwaysShowMask:!!s.props.alwaysShowMask,formatChars:b}},s.isInputAutofilled=function(g,p,x,y){var b=s.getInputDOMNode();try{if(b.matches(":-webkit-autofill"))return!0}catch{}return!s.focused||y.end<x.length&&p.end===g.length},s.onChange=function(g){var p=Sd(Sd(s)).beforePasteState,x=Sd(Sd(s)).previousSelection,y=s.props.beforeMaskedValueChange,b=s.getInputValue(),j=s.value,C=s.getSelection();s.isInputAutofilled(b,C,j,x)&&(j=dl(s.maskOptions,""),x={start:0,end:0,length:0}),p&&(x=p.selection,j=p.value,C={start:x.start+b.length,end:x.start+b.length,length:0},b=j.slice(0,x.start)+b+j.slice(x.end),s.beforePasteState=null);var T=j0e(s.maskOptions,b,C,j,x),L=T.enteredString,P=T.selection,I=T.value;if(Ds(y)){var E=y({value:I,selection:P},{value:j,selection:x},L,s.getBeforeMaskedValueChangeConfig());I=E.value,P=E.selection}s.setInputValue(I),Ds(s.props.onChange)&&s.props.onChange(g),s.isWindowsPhoneBrowser?s.setSelection(P.start,P.end,{deferred:!0}):s.setSelection(P.start,P.end)},s.onFocus=function(g){var p=s.props.beforeMaskedValueChange,x=s.maskOptions,y=x.mask,b=x.prefix;if(s.focused=!0,s.mounted=!0,y){if(s.value)Wf(s.maskOptions,s.value)<s.maskOptions.mask.length&&s.setCursorToEnd();else{var j=dl(s.maskOptions,b),C=dl(s.maskOptions,j),T=Wf(s.maskOptions,C),L=gm(s.maskOptions,T),P={start:L,end:L};if(Ds(p)){var I=p({value:C,selection:P},{value:s.value,selection:null},null,s.getBeforeMaskedValueChangeConfig());C=I.value,P=I.selection}var E=C!==s.getInputValue();E&&s.setInputValue(C),E&&Ds(s.props.onChange)&&s.props.onChange(g),s.setSelection(P.start,P.end)}s.runSaveSelectionLoop()}Ds(s.props.onFocus)&&s.props.onFocus(g)},s.onBlur=function(g){var p=s.props.beforeMaskedValueChange,x=s.maskOptions.mask;if(s.stopSaveSelectionLoop(),s.focused=!1,x&&!s.props.alwaysShowMask&&wS(s.maskOptions,s.value)){var y="";Ds(p)&&(y=p({value:y,selection:null},{value:s.value,selection:s.previousSelection},null,s.getBeforeMaskedValueChangeConfig()).value);var b=y!==s.getInputValue();b&&s.setInputValue(y),b&&Ds(s.props.onChange)&&s.props.onChange(g)}Ds(s.props.onBlur)&&s.props.onBlur(g)},s.onMouseDown=function(g){if(!s.focused&&document.addEventListener){s.mouseDownX=g.clientX,s.mouseDownY=g.clientY,s.mouseDownTime=new Date().getTime();var p=function x(y){if(document.removeEventListener("mouseup",x),s.focused){var b=Math.abs(y.clientX-s.mouseDownX),j=Math.abs(y.clientY-s.mouseDownY),C=Math.max(b,j),T=new Date().getTime()-s.mouseDownTime;(C<=10&&T<=200||C<=5&&T<=300)&&s.setCursorToEnd()}};document.addEventListener("mouseup",p)}Ds(s.props.onMouseDown)&&s.props.onMouseDown(g)},s.onPaste=function(g){Ds(s.props.onPaste)&&s.props.onPaste(g),g.defaultPrevented||(s.beforePasteState={value:s.getInputValue(),selection:s.get
1327Selection()},s.setInputValue(""))},s.handleRef=function(g){s.props.children==null&&Ds(s.props.inputRef)&&s.props.inputRef(g)};var o=n.mask,i=n.maskChar,l=n.formatChars,c=n.alwaysShowMask,u=n.beforeMaskedValueChange,d=n.defaultValue,f=n.value;s.maskOptions=bS(o,i,l),d==null&&(d=""),f==null&&(f=d);var h=I1(f);if(s.maskOptions.mask&&(c||h)&&(h=dl(s.maskOptions,h),Ds(u))){var m=n.value;n.value==null&&(m=d),h=u({value:h,selection:null},{value:m=I1(m),selection:null},null,s.getBeforeMaskedValueChangeConfig()).value}return s.value=h,s}p0e(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=E0e(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},r.componentDidUpdate=function(){var n=this.previousSelection,s=this.props,o=s.beforeMaskedValueChange,i=s.alwaysShowMask,l=s.mask,c=s.maskChar,u=s.formatChars,d=this.maskOptions,f=i||this.isFocused(),h=this.props.value!=null,m=h?I1(this.props.value):this.value,g=n?n.start:null;if(this.maskOptions=bS(l,c,u),this.maskOptions.mask){!d.mask&&this.isFocused()&&this.runSaveSelectionLoop();var p=this.maskOptions.mask&&this.maskOptions.mask!==d.mask;if(d.mask||h||(m=this.getInputValue()),(p||this.maskOptions.mask&&(m||f))&&(m=dl(this.maskOptions,m)),p){var x=Wf(this.maskOptions,m);(g===null||x<g)&&(g=T8(this.maskOptions,m)?x:gm(this.maskOptions,x))}!this.maskOptions.mask||!wS(this.maskOptions,m)||f||h&&this.props.value||(m="");var y={start:g,end:g};if(Ds(o)){var b=o({value:m,selection:y},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());m=b.value,y=b.selection}this.value=m;var j=this.getInputValue()!==this.value;j?(this.setInputValue(this.value),this.forceUpdate()):p&&this.forceUpdate();var C=!1;y.start!=null&&y.end!=null&&(C=!n||n.start!==y.start||n.end!==y.end),(C||j)&&this.setSelection(y.start,y.end)}else d.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},r.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&F1(this.selectionDeferId),this.stopSaveSelectionLoop()},r.render=function(){var n,s=this.props,o=(s.mask,s.alwaysShowMask,s.maskChar,s.formatChars,s.inputRef,s.beforeMaskedValueChange,s.children),i=g0e(s,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(o){Ds(o)||vS(!1);var l=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],c=d_({},i);l.forEach(function(d){return delete c[d]}),n=o(c),l.filter(function(d){return n.props[d]!=null&&n.props[d]!==i[d]}).length&&vS(!1)}else n=k1.createElement("input",d_({ref:this.handleRef},i));var u={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(i.disabled||i.readOnly||(u.onChange=this.onChange,u.onPaste=this.onPaste,u.onMouseDown=this.onMouseDown),i.value!=null&&(u.value=this.value)),n=k1.cloneElement(n,u)},t}(k1.Component),S0e=N0e;F8.exports=S0e;var k0e=F8.exports;const Jp=tH(k0e);function I0e(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const L8=Ne.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Gh=()=>{const e=Ne.useContext(L8);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};I0e(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not( 1328[data-state=closed] 1329){opacity:0}
1329[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const F0e=24,T0e=typeof window<"u"?A.useLayoutEffect:A.useEffect;function CS(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function P0e(){return uj(/^Mac/)}function L0e(){return uj(/^iPhone/)}function jS(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function D0e(){return uj(/^iPad/)||P0e()&&navigator.maxTouchPoints>1}function D8(){return L0e()||D0e()}function uj(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const T1=typeof document<"u"&&window.visualViewport;function ES(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function R8(e){for(ES(e)&&(e=e.parentElement);e&&!ES(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const R0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let eg=0,P1;function M0e(e={}){let{isDisabled:t}=e;T0e(()=>{if(!t)return eg++,eg===1&&D8()&&(P1=O0e()),()=>{eg--,eg===0&&P1?.()}},[t])}function O0e(){let e,t=0,r=f=>{e=R8(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},n=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let h=f.changedTouches[0].pageY,m=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((m<=0&&h>t||m>=g&&h<t)&&f.preventDefault(),t=h)},s=f=>{let h=f.target;f_(h)&&h!==document.activeElement&&(f.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},o=f=>{let h=f.target;f_(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",T1&&(T1.height<window.innerHeight?requestAnimationFrame(()=>{BS(h)}):T1.addEventListener("resize",()=>BS(h),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=CS(U0e(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=CS(If(document,"touchstart",r,{passive:!1,capture:!0}),If(document,"touchmove",n,{passive:!1,capture:!0}),If(document,"touchend",s,{passive:!1,capture:!0}),If(document,"focus",o,!0),If(window,"scroll",i));return()=>{u(),d(),window.scrollTo(l,c)}}function U0e(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function If(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function BS(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let r=R8(e);if(r!==document.documentElement&&r!==document.body&&r!==e){let n=r.getBoundingClientRect().top,s=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom;const i=r.getBoundingClientRect().bottom+F0e;o>i&&(r.scrollTop+=s-n)}e=r.parentElement}}function f_(e){return e instanceof HTMLInputElement&&!R0e.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Q0e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function V0e(...e){return t=>e.forEach(r=>Q0e(r,t))}function M8(...e){return A.useCallback(V0e(...e),e)}const O8=new WeakMap;function ga(e,t,r=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([s,o])=>{if(s.startsWith("--")){e.style.setProperty(s,o);return}n[s]=e.style[s],e.style[s]=o}),!r&&O8.set(e,n)}function H0e(e,t){if(!e||!(e instanceof HTMLElement))return;let r=O8.get(e);r&&(e.style[t]=r[t])}const xa=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function tg(e,t){if(!e)return null;const r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform;let s=n.match(/^matrix3d\((.+)\)$/);return s?parseFloat(s[1].split(", ")[xa(t)?13:12]):(s=n.match(/^matrix\((.+)\)$/),s?parseFloat(s[1].split(", ")[xa(t)?5:4]):null)}function z0e(e){return 8*(Math.log(e+1)-2)}function L1(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function $0e(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}const En={DURATION:.5,EASE:[.32,.72,0,1]},U8=.4,q0e=.25,K0e=100,Q8=8,nu=16,m_=26,D1="vaul-dragging";function V8(e){const t=Ne.useRef(e);return Ne.useEffect(()=>{t.current=e}),Ne.useMemo(()=>(...r)=>t.current==null?void 0:t.current.call(t,...r),[])}function G0e({defaultProp:e,onChange:t}){const r=Ne.useState(e),[n]=r,s=Ne.useRef(n),o=V8(t);return Ne.useEffect(()=>{s.current!==n&&(o(n),s.current=n)}
1329,[n,s,o]),r}function H8({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,s]=G0e({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,l=V8(r),c=Ne.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else s(u)},[o,e,s,l]);return[i,c]}function W0e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:n,overlayRef:s,fadeFromIndex:o,onSnapPointChange:i,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[d,f]=H8({prop:e,defaultProp:r?.[0],onChange:t}),[h,m]=Ne.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);Ne.useEffect(()=>{function P(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const g=Ne.useMemo(()=>d===r?.[r.length-1]||null,[r,d]),p=Ne.useMemo(()=>r?.findIndex(P=>P===d),[r,d]),x=r&&r.length>0&&(o||o===0)&&!Number.isNaN(o)&&r[o]===d||!r,y=Ne.useMemo(()=>{const P=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var I;return(I=r?.map(E=>{const O=typeof E=="string";let k=0;if(O&&(k=parseInt(E,10)),xa(l)){const H=O?k:h?E*P.height:0;return h?l==="bottom"?P.height-H:-P.height+H:H}const D=O?k:h?E*P.width:0;return h?l==="right"?P.width-D:-P.width+D:D}))!=null?I:[]},[r,h,c]),b=Ne.useMemo(()=>p!==null?y?.[p]:null,[y,p]),j=Ne.useCallback(P=>{var I;const E=(I=y?.findIndex(O=>O===P))!=null?I:null;i(E),ga(n.current,{transition:`transform ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,transform:xa(l)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`}),y&&E!==y.length-1&&E!==o&&E<o?ga(s.current,{transition:`opacity ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,opacity:"0"}):ga(s.current,{transition:`opacity ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,opacity:"1"}),f(r?.[Math.max(E,0)])},[n.current,r,y,o,s,f]);Ne.useEffect(()=>{if(d||e){var P;const I=(P=r?.findIndex(E=>E===e||E===d))!=null?P:-1;y&&I!==-1&&typeof y[I]=="number"&&j(y[I])}},[d,e,r,y,j]);function C({draggedDistance:P,closeDrawer:I,velocity:E,dismissible:O}){if(o===void 0)return;const k=l==="bottom"||l==="right"?(b??0)-P:(b??0)+P,D=p===o-1,H=p===0,U=P>0;if(D&&ga(s.current,{transition:`opacity ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`}),!u&&E>2&&!U){O?I():j(y[0]);return}if(!u&&E>2&&U&&y&&r){j(y[r.length-1]);return}const ee=y?.reduce((V,q)=>typeof V!="number"||typeof q!="number"?V:Math.abs(q-k)<Math.abs(V-k)?q:V),ae=xa(l)?window.innerHeight:window.innerWidth;if(E>U8&&Math.abs(P)<ae*.4){const V=U?1:-1;if(V>0&&g){j(y[r.length-1]);return}if(H&&V<0&&O&&I(),p===null)return;j(y[p+V]);return}j(ee)}function T({draggedDistance:P}){if(b===null)return;const I=l==="bottom"||l==="right"?b-P:b+P;(l==="bottom"||l==="right")&&I<y[y.length-1]||(l==="top"||l==="left")&&I>y[y.length-1]||ga(n.current,{transform:xa(l)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`})}function L(P,I){if(!r||typeof p!="number"||!y||o===void 0)return null;const E=p===o-1;if(p>=o&&I)return 0;if(E&&!I)return 1;if(!x&&!E)return null;const k=E?p+1:p-1,D=E?y[k]-y[k-1]:y[k+1]-y[k],H=P/Math.abs(D);return E?1-H:H}return{isLastSnapPoint:g,activeSnapPoint:d,shouldFade:x,getPercentageDragged:L,setActiveSnapPoint:f,activeSnapPointIndex:p,onRelease:C,onDrag:T,snapPointsOffset:y}}const Y0e=()=>()=>{};function X0e(){const{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:n,noBodyStyles:s}=Gh(),o=Ne.useRef(null),i=A.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-m_)/window.innerWidth}Ne.useEffect(()=>{if(t&&r){o.current&&clearTimeout(o.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;$0e(n&&!s?L1(document.body,{background:"black"}):Y0e,L1(c,{transformOrigin:xa(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${En.DURATION}s`,transitionTimingFunction:`cubic-bezier(${En.EASE.join(",")})`}));const u=L1(c,{borderRadius:`${Q8}px`,overflow:"hidden",...xa(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}}
1329);return()=>{u(),o.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},En.DURATION*1e3)}}},[t,r,i])}let Ff=null;function Z0e({isOpen:e,modal:t,nested:r,hasBeenOpened:n,preventScrollRestoration:s,noBodyStyles:o}){const[i,l]=Ne.useState(()=>typeof window<"u"?window.location.href:""),c=Ne.useRef(0),u=Ne.useCallback(()=>{if(jS()&&Ff===null&&e&&!o){Ff={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:f,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-f}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=h-window.innerHeight;m&&c.current>=h&&(document.body.style.top=`${-(c.current+m)}px`)}),300)}},[e]),d=Ne.useCallback(()=>{if(jS()&&Ff!==null&&!o){const f=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Ff),window.requestAnimationFrame(()=>{if(s&&i!==window.location.href){l(window.location.href);return}window.scrollTo(h,f)}),Ff=null}},[i]);return Ne.useEffect(()=>{function f(){c.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),Ne.useEffect(()=>{r||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{d()},500)):d())},[e,n,i,t,r,u,d]),{restorePositionSetting:d}}function J0e({open:e,onOpenChange:t,children:r,onDrag:n,onRelease:s,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=q0e,scrollLockTimeout:u=K0e,dismissible:d=!0,handleOnly:f=!1,fadeFromIndex:h=o&&o.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:p,modal:x=!0,onClose:y,nested:b,noBodyStyles:j,direction:C="bottom",defaultOpen:T=!1,disablePreventScroll:L=!0,snapToSequentialPoint:P=!1,preventScrollRestoration:I=!1,repositionInputs:E=!0,onAnimationEnd:O,container:k,autoFocus:D=!1}){var H,U;const[ee=!1,ae]=H8({defaultProp:T,prop:e,onChange:ft=>{t?.(ft),!ft&&!b&&$e(),setTimeout(()=>{O?.(ft)},En.DURATION*1e3),ft&&!x&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ft||(document.body.style.pointerEvents="auto")}}),[V,q]=Ne.useState(!1),[G,Ae]=Ne.useState(!1),[se,S]=Ne.useState(!1),Q=Ne.useRef(null),z=Ne.useRef(null),W=Ne.useRef(null),ne=Ne.useRef(null),X=Ne.useRef(null),te=Ne.useRef(!1),fe=Ne.useRef(null),pe=Ne.useRef(0),_e=Ne.useRef(!1),xe=Ne.useRef(0),Be=Ne.useRef(null),He=Ne.useRef(((H=Be.current)==null?void 0:H.getBoundingClientRect().height)||0),R=Ne.useRef(((U=Be.current)==null?void 0:U.getBoundingClientRect().width)||0),be=Ne.useRef(0),tt=Ne.useCallback(ft=>{o&&ft===we.length-1&&(z.current=new Date)},[]),{activeSnapPoint:at,activeSnapPointIndex:De,setActiveSnapPoint:le,onRelease:me,snapPointsOffset:we,onDrag:Fe,shouldFade:ze,getPercentageDragged:Pe}=W0e({snapPoints:o,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:Be,fadeFromIndex:h,overlayRef:Q,onSnapPointChange:tt,direction:C,container:k,snapToSequentialPoint:P});M0e({isDisabled:!ee||G||!x||se||!V||!E||!L});const{restorePositionSetting:$e}=Z0e({isOpen:ee,modal:x,nested:b,hasBeenOpened:V,preventScrollRestoration:I,noBodyStyles:j});function ct(){return(window.innerWidth-m_)/window.innerWidth}function pt(ft){var ie,Ue;!d&&!o||Be.current&&!Be.current.contains(ft.target)||(He.current=((ie=Be.current)==null?void 0:ie.getBoundingClientRect().height)||0,R.current=((Ue=Be.current)==null?void 0:Ue.getBoundingClientRect().width)||0,Ae(!0),W.current=new Date,D8()&&window.addEventListener("touchend",()=>te.current=!1,{once:!0}),ft.target.setPointerCapture(ft.pointerId),pe.current=xa(C)?ft.pageY:ft.pageX)}function it(ft,ie){var Ue,dt;let Re=ft;const Xe=(Ue=window.getSelection())==null?void 0:Ue.toString(),lt=Be.current?tg(Be.current,C):null,Le=new Date;if(Re.hasAttribute("data-vaul-no-drag")||Re.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;
1329if(z.current&&Le.getTime()-z.current.getTime()<500)return!1;if(lt!==null&&(C==="bottom"?lt>0:lt<0))return!0;if(Xe&&Xe.length>0)return!1;if(Le.getTime()-((dt=X.current)==null?void 0:dt.getTime())<u&<===0||ie)return X.current=Le,!1;for(;Re;){if(Re.scrollHeight>Re.clientHeight){if(Re.scrollTop!==0)return X.current=new Date,!1;if(Re.getAttribute("role")==="dialog")return!0}Re=Re.parentNode}return!0}function gt(ft){if(Be.current&&G){const ie=C==="bottom"||C==="right"?1:-1,Ue=(pe.current-(xa(C)?ft.pageY:ft.pageX))*ie,dt=Ue>0,Re=o&&!d&&!dt;if(Re&&De===0)return;const Xe=Math.abs(Ue),lt=document.querySelector("[data-vaul-drawer-wrapper]"),Le=C==="bottom"||C==="top"?He.current:R.current;let ut=Xe/Le;const Qt=Pe(Xe,dt);if(Qt!==null&&(ut=Qt),Re&&ut>=1||!te.current&&!it(ft.target,dt))return;if(Be.current.classList.add(D1),te.current=!0,ga(Be.current,{transition:"none"}),ga(Q.current,{transition:"none"}),o&&Fe({draggedDistance:Ue}),dt&&!o){const ot=z0e(Ue),or=Math.min(ot*-1,0)*ie;ga(Be.current,{transform:xa(C)?`translate3d(0, ${or}px, 0)`:`translate3d(${or}px, 0, 0)`});return}const mt=1-ut;if((ze||h&&De===h-1)&&(n?.(ft,ut),ga(Q.current,{opacity:`${mt}`,transition:"none"},!0)),lt&&Q.current&&i){const ot=Math.min(ct()+ut*(1-ct()),1),or=8-ut*8,Fr=Math.max(0,14-ut*14);ga(lt,{borderRadius:`${or}px`,transform:xa(C)?`scale(${ot}) translate3d(0, ${Fr}px, 0)`:`scale(${ot}) translate3d(${Fr}px, 0, 0)`,transition:"none"},!0)}if(!o){const ot=Xe*ie;ga(Be.current,{transform:xa(C)?`translate3d(0, ${ot}px, 0)`:`translate3d(${ot}px, 0, 0)`})}}}Ne.useEffect(()=>{var ft;function ie(){if(!Be.current||!E)return;const Ue=document.activeElement;if(f_(Ue)||_e.current){var dt;const Re=((dt=window.visualViewport)==null?void 0:dt.height)||0,Xe=window.innerHeight;let lt=Xe-Re;const Le=Be.current.getBoundingClientRect().height||0,ut=Le>Xe*.8;be.current||(be.current=Le);const Qt=Be.current.getBoundingClientRect().top;if(Math.abs(xe.current-lt)>60&&(_e.current=!_e.current),o&&o.length>0&&we&&De){const mt=we[De]||0;lt+=mt}if(xe.current=lt,Le>Re||_e.current){const mt=Be.current.getBoundingClientRect().height;let ot=mt;mt>Re&&(ot=Re-(ut?Qt:m_)),p?Be.current.style.height=`${mt-Math.max(lt,0)}px`:Be.current.style.height=`${Math.max(ot,Re-Qt)}px`}else Be.current.style.height=`${be.current}px`;o&&o.length>0&&!_e.current?Be.current.style.bottom="0px":Be.current.style.bottom=`${Math.max(lt,0)}px`}}return(ft=window.visualViewport)==null||ft.addEventListener("resize",ie),()=>{var Ue;return(Ue=window.visualViewport)==null?void 0:Ue.removeEventListener("resize",ie)}},[De,o,we]);function st(ft){Lt(),y?.(),ft||ae(!1),setTimeout(()=>{o&&le(o[0])},En.DURATION*1e3)}function Ut(){if(!Be.current)return;const ft=document.querySelector("[data-vaul-drawer-wrapper]"),ie=tg(Be.current,C);ga(Be.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`}),ga(Q.current,{transition:`opacity ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,opacity:"1"}),i&&ie&&ie>0&&ee&&ga(ft,{borderRadius:`${Q8}px`,overflow:"hidden",...xa(C)?{transform:`scale(${ct()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ct()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${En.DURATION}s`,transitionTimingFunction:`cubic-bezier(${En.EASE.join(",")})`},!0)}function Lt(){!G||!Be.current||(Be.current.classList.remove(D1),te.current=!1,Ae(!1),ne.current=new Date)}function St(ft){if(!G||!Be.current)return;Be.current.classList.remove(D1),te.current=!1,Ae(!1),ne.current=new Date;const ie=tg(Be.current,C);
1329if(!it(ft.target,!1)||!ie||Number.isNaN(ie)||W.current===null)return;const Ue=ne.current.getTime()-W.current.getTime(),dt=pe.current-(xa(C)?ft.pageY:ft.pageX),Re=Math.abs(dt)/Ue;if(Re>.05&&(S(!0),setTimeout(()=>{S(!1)},200)),o){me({draggedDistance:dt*(C==="bottom"||C==="right"?1:-1),closeDrawer:st,velocity:Re,dismissible:d}),s?.(ft,!0);return}if(C==="bottom"||C==="right"?dt>0:dt<0){Ut(),s?.(ft,!0);return}if(Re>U8){st(),s?.(ft,!1);return}var Xe;const lt=Math.min((Xe=Be.current.getBoundingClientRect().height)!=null?Xe:0,window.innerHeight);var Le;const ut=Math.min((Le=Be.current.getBoundingClientRect().width)!=null?Le:0,window.innerWidth),Qt=C==="left"||C==="right";if(Math.abs(ie)>=(Qt?ut:lt)*c){st(),s?.(ft,!1);return}s?.(ft,!0),Ut()}Ne.useEffect(()=>(ee&&(ga(document.documentElement,{scrollBehavior:"auto"}),z.current=new Date),()=>{H0e(document.documentElement,"scrollBehavior")}),[ee]);function Mt(ft){const ie=ft?(window.innerWidth-nu)/window.innerWidth:1,Ue=ft?-nu:0;fe.current&&window.clearTimeout(fe.current),ga(Be.current,{transition:`transform ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,transform:`scale(${ie}) translate3d(0, ${Ue}px, 0)`}),!ft&&Be.current&&(fe.current=setTimeout(()=>{const dt=tg(Be.current,C);ga(Be.current,{transition:"none",transform:xa(C)?`translate3d(0, ${dt}px, 0)`:`translate3d(${dt}px, 0, 0)`})},500))}function tr(ft,ie){if(ie<0)return;const Ue=(window.innerWidth-nu)/window.innerWidth,dt=Ue+ie*(1-Ue),Re=-nu+ie*nu;ga(Be.current,{transform:xa(C)?`scale(${dt}) translate3d(0, ${Re}px, 0)`:`scale(${dt}) translate3d(${Re}px, 0, 0)`,transition:"none"})}function wt(ft,ie){const Ue=xa(C)?window.innerHeight:window.innerWidth,dt=ie?(Ue-nu)/Ue:1,Re=ie?-nu:0;ie&&ga(Be.current,{transition:`transform ${En.DURATION}s cubic-bezier(${En.EASE.join(",")})`,transform:xa(C)?`scale(${dt}) translate3d(0, ${Re}px, 0)`:`scale(${dt}) translate3d(${Re}px, 0, 0)`})}return Ne.createElement(Eh,{defaultOpen:T,onOpenChange:ft=>{!d&&!ft||(ft?q(!0):st(!0),ae(ft))},open:ee},Ne.createElement(L8.Provider,{value:{activeSnapPoint:at,snapPoints:o,setActiveSnapPoint:le,drawerRef:Be,overlayRef:Q,onOpenChange:t,onPress:pt,onRelease:St,onDrag:gt,dismissible:d,handleOnly:f,isOpen:ee,isDragging:G,shouldFade:ze,closeDrawer:st,onNestedDrag:tr,onNestedOpenChange:Mt,onNestedRelease:wt,keyboardIsOpen:_e,modal:x,snapPointsOffset:we,direction:C,shouldScaleBackground:i,setBackgroundColorOnScale:l,noBodyStyles:j,container:k,autoFocus:D}},r))}const z8=Ne.forwardRef(function({...e},t){const{overlayRef:r,snapPoints:n,onRelease:s,shouldFade:o,isOpen:i,modal:l}=Gh(),c=M8(t,r),u=n&&n.length>0;return l?Ne.createElement(ed,{onMouseUp:s,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&u?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});z8.displayName="Drawer.Overlay";const $8=Ne.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...n},s){const{drawerRef:o,onPress:i,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:d,modal:f,isOpen:h,direction:m,snapPoints:g,container:p,handleOnly:x,autoFocus:y}=Gh(),[b,j]=Ne.useState(!1),C=M8(s,o),T=Ne.useRef(null),L=Ne.useRef(null),P=Ne.useRef(!1),I=g&&g.length>0;X0e();const E=(k,D,H=0)=>{if(P.current)return!0;const U=Math.abs(k.y),ee=Math.abs(k.x),ae=ee>U,V=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(k.x*V<0)&&ee>=0&&ee<=H)return ae}else if(!(k.y*V<0)&&U>=0&&U<=H)return!ae;return P.current=!0,!0};Ne.useEffect(()=>{I&&window.requestAnimationFrame(()=>{j(!0)})},[]);function O(k){T.current=null,P.current=!1,l(k)}return Ne.createElement(td,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":b?"true":"false","data-vaul-snap-points":h&&I?"true":"false","data-vaul-custom-container":p?"true":"false",...n,ref:C,style:d&&d.length>0?{"--snap-point-height":`${d[0]}px`,...t}:t,onPointerDown:k=>{x||(n.onPointerDown==null||n.onPointerDown.call(n,k),T.current={x:k.pageX,y:k.pageY},i(k))},onOpenAutoFocus:k=>{r?.(k),y||k.preventDefault()},onPointerDownOutside:k=>{if(e?.(k),!f||k.defaultPrevented){k.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:k=>{if(!f){k.preventDefault();return}},onPointerMove:k=>{if(L.current=k,x||(n.onPointerMove==null||n.onPointerMove.call(n,k),!T.current))return;const D=k.pageY-T.current.y,H=k.pageX-T.current.x,U=k.pointerType==="touch"?10:2;E({x:H,y:D},m,U)?c(k):(Math.abs(H)>U||Math.abs(D)>U)&&(T.current=null)},onPointerUp:k=>{n.onPointerUp==null||n.onPointerUp.call(n,k),T.current=null,P.current=!1,l(k)},onPointerOut:k=>{n.onPointerOut==null||n.onPointerOut.call(n,k),O(L.current)},onContextMenu:k=>{n.onContextMenu==null||n.onContextMenu.call(n,k),O(L.current)}})});$8.displayName="Drawer.Content";const exe=250,txe=120,rxe=Ne.forwardRef(function({preventCycle:e=!1,children:t,...r},n){const{closeDrawer:s,isDragging:o,snapPoints:i,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:d,isOpen:f,onPress:h,onDrag:m}=Gh(),g=Ne.useRef(null),p=Ne.useRef(!1);function x(){if(p.current){j();return}window.setTimeout(()=>{y()},txe)}function y(){if(o||e||p.current){j();return}if(j(),(!i||i.length===0)&&u){s();return}if(l===i[i.length-1]&&u){s();return}const T=i.findIndex(P=>P===l);if(T===-1)return;const L=i[T+1];c(L)}function b(){g.current=window.setTimeout(()=>{p.current=!0},exe)}function j(){window.clearTimeout(g.current),p.current=!1}return Ne.createElement("div",{onClick:x,onPointerCancel:j,onPointerDown:C=>{d&&h(C),b()},onPointerMove:C=>{d&&m(C)},ref:n,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},Ne.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});rxe.displayName="Drawer.Handle";function nxe(e){const t=Gh(),{container:r=t.container,...n}=e;return Ne.createElement(Bh,{container:r,...n})}const Oi={Root:J0e,Content:$8,Overlay:z8,Portal:nxe,Close:Nh,Title:VA,Description:HA}
1329,dj=({shouldScaleBackground:e=!0,...t})=>a.jsx(Oi.Root,{shouldScaleBackground:e,...t});dj.displayName="Drawer";const axe=Oi.Portal,N8e=Oi.Close,q8=A.forwardRef(({className:e,...t},r)=>a.jsx(Oi.Overlay,{ref:r,className:je("fixed inset-0 z-50 bg-black/80",e),...t}));q8.displayName=Oi.Overlay.displayName;const Aj=A.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(axe,{children:[a.jsx(q8,{}),a.jsxs(Oi.Content,{ref:n,className:je("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90vh] flex-col rounded-t-[10px] border bg-background overflow-y-auto",e),...r,children:[a.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Aj.displayName="DrawerContent";const fj=({className:e,...t})=>a.jsx("div",{className:je("grid gap-1.5 p-4 text-center sm:text-left",e),...t});fj.displayName="DrawerHeader";const sxe=({className:e,...t})=>a.jsx("div",{className:je("mt-auto flex flex-col gap-2 p-4",e),...t});sxe.displayName="DrawerFooter";const mj=A.forwardRef(({className:e,...t},r)=>a.jsx(Oi.Title,{ref:r,className:je("text-lg font-semibold leading-none tracking-tight",e),...t}));mj.displayName=Oi.Title.displayName;const hj=A.forwardRef(({className:e,...t},r)=>a.jsx(Oi.Description,{ref:r,className:je("text-sm text-muted-foreground",e),...t}));hj.displayName=Oi.Description.displayName;const NS=({location:e="all"})=>{const[t,r]=A.useState(null),[n,s]=A.useState(!0),{config:o,isLoading:i}=QU();A.useEffect(()=>{l()},[e]);const l=async()=>{try{const{data:c}=await J.from("system_settings").select("value").eq("key","promo_banner").maybeSingle();if(c?.value){const u=c.value;if(!u.is_active){r(null);return}const d=u.locations||["all"];if(!d.includes("all")&&!d.includes(e)){r(null);return}r(u)}}catch(c){console.error("Erro ao carregar banner promocional:",c)}finally{s(!1)}};return n||i||!t||!o.isEnabled?null:a.jsx("div",{className:"w-full py-3 px-4 border-b",style:{backgroundColor:t.background_color||"hsl(var(--primary))",color:t.text_color||"hsl(var(--primary-foreground))"},children:a.jsx("div",{className:"container mx-auto",children:a.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm md:text-base font-medium",children:[a.jsx(L2,{className:"w-4 h-4 flex-shrink-0"}),a.jsx("span",{className:"text-center",children:t.message})]})})})},R1=768;function pj(){const[e,t]=A.useState(void 0);return A.useEffect(()=>{const r=window.matchMedia(`(max-width: ${R1-1}px)`),n=()=>{t(window.innerWidth<R1)};return r.addEventListener("change",n),t(window.innerWidth<R1),()=>r.removeEventListener("change",n)},[]),!!e}const SS=()=>{let e=sessionStorage.getItem("analytics_session_id");return e||(e=`${Date.now()}_${Math.random().toString(36).substr(2,9)}`,sessionStorage.setItem("analytics_session_id",e)),e};function oxe(){const{user:e}=Zn(),t=async(i,l,c,u)=>{try{if(i==="schedule_specialist_popup"){const f=J,{error:h}=await f.rpc("track_specialist_popup_event",{p_event_type:l,p_session_id:SS(),p_form_type:c??null,p_url:typeof u?.url=="string"?u.url:null});if(h)throw h;return}const{error:d}=await J.from("automation_analytics").insert({automation_type:i,event_type:l,form_type:c,session_id:SS(),user_id:e?.id,metadata:u||{}});if(d)throw d}catch(d){console.error("Error tracking automation event:",d)}};return{trackEvent:t,trackPopupView:i=>t("schedule_specialist_popup","view",i),trackPopupAccept:(i,l)=>t("schedule_specialist_popup","click_yes",i,{url:l}),trackPopupDecline:i=>t("schedule_specialist_popup","click_no",i),trackPopupDismiss:i=>t("schedule_specialist_popup","dismiss",i)}}const S8e=()=>{const e=vn(),{data:t,isLoading:r,error:n}=jt({queryKey:["scheduling-services"],queryFn:async()=>{const{data:l,error:c}=await J.from("scheduling_services").select("*").order("display_order",{ascending:!0});if(c)throw c;return l}}),s=Dr({mutationFn:async l=>{const{data:c,error:u}=await J.from("scheduling_services").insert(l).select().single();if(u)throw u;return c},onSuccess:()=>{e.invalidateQueries({queryKey:["scheduling-services"]}),et.success("Serviço criado com sucesso!")},onError:l=>{et.error(`Erro ao criar serviço: ${l.message}`)}}),o=Dr({mutationFn:async({id:l,...c})=>{const{data:u,error:d}=await J.from("scheduling_services").update(c).eq("id",l).select().single();if(d)throw d;return u},onSuccess:()=>
1329{e.invalidateQueries({queryKey:["scheduling-services"]}),et.success("Serviço atualizado com sucesso!")},onError:l=>{et.error(`Erro ao atualizar serviço: ${l.message}`)}}),i=Dr({mutationFn:async l=>{const{error:c}=await J.from("scheduling_services").delete().eq("id",l);if(c)throw c},onSuccess:()=>{e.invalidateQueries({queryKey:["scheduling-services"]}),et.success("Serviço excluÃdo com sucesso!")},onError:l=>{et.error(`Erro ao excluir serviço: ${l.message}`)}});return{services:t,isLoading:r,error:n,createService:s,updateService:o,deleteService:i}},ixe=e=>{const t=vn(),{data:r,isLoading:n}=jt({queryKey:["calendar-services",e],queryFn:async()=>{if(!e)return[];const{data:i,error:l}=await J.from("calendar_services").select(` 1330 *, 1331 service:scheduling_services(*) 1332 `).eq("calendar_id",e);if(l)throw l;return i},enabled:!!e}),s=Dr({mutationFn:async({calendarId:i,serviceId:l,customDuration:c,customPrice:u})=>{const{data:d,error:f}=await J.from("calendar_services").insert({calendar_id:i,service_id:l,custom_duration_minutes:c,custom_price:u}).select().single();if(f)throw f;return d},onSuccess:()=>{t.invalidateQueries({queryKey:["calendar-services",e]}),et.success("Serviço adicionado ao calendário!")},onError:i=>{et.error(`Erro ao adicionar serviço: ${i.message}`)}}),o=Dr({mutationFn:async i=>{const{error:l}=await J.from("calendar_services").delete().eq("id",i);if(l)throw l},onSuccess:()=>{t.invalidateQueries({queryKey:["calendar-services",e]}),et.success("Serviço removido do calendário!")},onError:i=>{et.error(`Erro ao remover serviço: ${i.message}`)}});return{calendarServices:r,isLoading:n,addServiceToCalendar:s,removeServiceFromCalendar:o}},lxe=e=>{const t=e.toLowerCase();return t.includes("consultoria")||t.includes("consultor")?a.jsx(zs,{className:"h-6 w-6"}):t.includes("treinamento")||t.includes("curso")||t.includes("aula")?a.jsx(B$,{className:"h-6 w-6"}):t.includes("reunião")||t.includes("meeting")||t.includes("equipe")?a.jsx(wa,{className:"h-6 w-6"}):a.jsx(uT,{className:"h-6 w-6"})};function cxe({services:e,selectedServiceId:t,onSelectService:r}){const n=o=>{if(o<60)return`${o} min`;const i=Math.floor(o/60),l=o%60;return l>0?`${i}h ${l}min`:`${i}h`},s=o=>o?new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(o):null;return e.length===0?a.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[a.jsx(zs,{className:"h-12 w-12 mx-auto mb-3 opacity-50"}),a.jsx("p",{children:"Nenhum serviço disponÃvel para agendamento"})]}):a.jsx("div",{className:"grid gap-4",children:e.map((o,i)=>{const l=t===o.id,c=s(o.price),u=o.is_popular||i===0;return a.jsxs(us,{className:je("group relative overflow-hidden cursor-pointer transition-all duration-300","hover:shadow-lg hover:-translate-y-0.5",l?"ring-2 ring-primary shadow-lg shadow-primary/10 bg-primary/5":"hover:border-primary/30"),onClick:()=>r(o.id),children:[a.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 transition-all duration-300",style:{backgroundColor:o.color}}),u&&!l&&a.jsx("div",{className:"absolute -top-0 right-3",children:a.jsxs(Vt,{className:"bg-amber-500 text-white border-0 rounded-t-none text-[10px] px-2 py-0.5",children:[a.jsx(os,{className:"h-3 w-3 mr-0.5 fill-current"}),"Popular"]})}),a.jsx(ds,{className:"p-5",children:a.jsxs("div",{className:"flex gap-4",children:[a.jsx("div",{className:je("w-14 h-14 rounded-xl flex items-center justify-center shrink-0","transition-all duration-300 group-hover:scale-105",l?"bg-primary text-primary-foreground":"bg-gradient-to-br from-muted to-muted/50 text-muted-foreground"),style:l?{backgroundColor:o.color}:{},children:lxe(o.name)}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsx("h4",{className:"font-semibold text-lg leading-tight",children:o.name}),a.jsx("div",{className:je("w-6 h-6 rounded-full border-2 flex items-center justify-center shrink-0","transition-all duration-200",l?"bg-primary border-primary":"border-muted-foreground/30 group-hover:border-primary/50"),children:l&&a.jsx($s,{className:"h-4 w-4 text-primary-foreground"})})]}),o.description&&a.jsx("p",{className:"text-sm text-muted-foreground mt-1.5 line-clamp-2",children:o.description}),a.jsxs("div",{className:"flex items-center gap-3 mt-3",children:[a.jsxs(Vt,{variant:"secondary",className:je("gap-1 transition-colors",l&&"bg-primary/10 text-primary"),children:[a.jsx(Vr,{className:"h-3 w-3"}),n(o.duration_minutes)]}),c&&a.jsx("span",{className:"text-sm font-bold text-primary",children:c})]})]})]})})]},o.id)})})}function uxe({slots:e,selectedSlot:t,onSelectSlot:r,isLoading:n}){const s=e.filter(l=>l.available),o=A.useMemo(()=>e.reduce((l,c)=>{const u=Ir(c.start).getHours();return u<12?l.morning.push(c):u<18?l.afternoon.push(c):l.evening.push(c),l},{morning:[],afternoon:[],evening:[]}),[e]);if(n)return a.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground border rounded-lg bg-muted/30",children:[a.jsx($r,{className:"h-8 w-8 animate-spin mb
1332-2 text-primary"}),a.jsx("span",{className:"text-sm",children:"Carregando horários..."})]});if(e.length===0)return a.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground border rounded-lg bg-muted/30",children:[a.jsx(Vr,{className:"h-12 w-12 mb-2 opacity-50"}),a.jsx("span",{className:"text-sm",children:"Nenhum horário disponÃvel nesta data"})]});if(s.length===0)return a.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground border rounded-lg bg-muted/30",children:[a.jsx(Vr,{className:"h-12 w-12 mb-2 opacity-50"}),a.jsx("span",{className:"text-sm text-center px-4",children:"Todos os horários estão ocupados"}),a.jsx("span",{className:"text-xs mt-1",children:"Tente selecionar outra data"})]});const i=(l,c,u)=>{if(u.length===0)return null;const d=u.filter(f=>f.available).length;return a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("h5",{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[c,l]}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:[d," disponÃveis"]})]}),a.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 gap-2",children:u.map(f=>{const h=Kt(Ir(f.start),"HH:mm"),m=t?.start===f.start,g=f.spotsAvailable??1,p=g===1&&f.available,x=f.unavailableReason==="past",y=f.unavailableReason==="booked";return a.jsxs(Oe,{variant:m?"default":"outline",size:"sm",disabled:!f.available,onClick:()=>r(f),className:je("h-auto min-h-12 flex flex-col py-2 transition-all duration-200",!f.available&&x&&"opacity-30 cursor-not-allowed bg-muted/30",!f.available&&y&&"opacity-50 cursor-not-allowed bg-destructive/10 border-destructive/30",!f.available&&!x&&!y&&"opacity-40 cursor-not-allowed bg-muted/50",m&&"ring-2 ring-primary ring-offset-2 shadow-lg",p&&!m&&"border-amber-500/50 bg-amber-50 dark:bg-amber-950/20",f.available&&!m&&"hover:border-primary hover:bg-primary/5"),children:[a.jsx("span",{className:je("text-base font-semibold",!f.available&&x&&"text-muted-foreground/50",!f.available&&y&&"line-through text-destructive/70"),children:h}),f.available&&g>0&&g<10&&a.jsx("span",{className:je("text-[10px] font-normal mt-0.5",p?"text-amber-600 dark:text-amber-400 font-medium":"text-muted-foreground"),children:g===1?"Ãltima vaga!":`${g} vagas`}),!f.available&&y&&a.jsx("span",{className:"text-[10px] text-destructive/70 mt-0.5",children:"Lotado"})]},f.start)})})]})};return a.jsx("div",{className:"md:h-[320px] md:overflow-y-auto md:pr-4",children:a.jsxs("div",{className:"space-y-6",children:[i("Manhã",a.jsx(om,{className:"h-4 w-4 text-amber-500"}),o.morning),i("Tarde",a.jsx(G$,{className:"h-4 w-4 text-orange-500"}),o.afternoon),i("Noite",a.jsx(sm,{className:"h-4 w-4 text-indigo-500"}),o.evening)]})})}function K8({calendarId:e,leadId:t,leadData:r,courseTitle:n,formData:s,open:o,onClose:i,onSuccess:l}){const[c,u]=A.useState("service"),[d,f]=A.useState(null),[h,m]=A.useState(void 0),[g,p]=A.useState(null),[x,y]=A.useState(!1),[b,j]=A.useState(null),{data:C,isLoading:T}=Nse(e),{calendarServices:L,isLoading:P}=ixe(e),I=A.useMemo(()=>L?.map(G=>G.service).filter(Boolean)||[],[L]),E=I.length>0;A.useEffect(()=>{!P&&!E&&c==="service"&&u("datetime")},[P,E,c]),A.useEffect(()=>{o&&(u(E?"service":"datetime"),f(null),m(void 0),p(null),j(null))},[o,E]);const O=A.useMemo(()=>{const G=new Date,Ae=Fo(G,2);return{start:Kt(G,"yyyy-MM-dd"),end:Kt(Ae,"yyyy-MM-dd")}},[]),{data:k}=U5(e,O.start,O.end),{data:D,isLoading:H}=O5({calendarId:e,date:h?Kt(h,"yyyy-MM-dd"):"",serviceId:d||void 0}),U=A.useMemo(()=>!d||!L?null:L.find(G=>G.service?.id===d)?.service||null,[d,L]),ee=G=>k?k.includes(Kt(G,"yyyy-MM-dd")):!1,ae=async()=>{if(!(!g||!C)){y(!0),u("confirming");try{const G=await ef(),{data:Ae,error:se}=await J.functions.invoke("public-create-appointment",{body:{calendar_id:e,service_id:d||void 0,start_datetime:g.start,end_datetime:g.end,lead_id:t,attendee:{name:r.name,email:r.email,phone:r.phone},form_data:{interesse_curso:n,...s,...G,page_url:sessionStorage.getItem("landing_url")||window.location.href}}});if(se)throw se;if(Ae?.error)throw new Error(Ae.error);j({searchCode:Ae.appointment.search_code}),u("success"),l?.(Ae.appointment)}catch(G){console.error("Error creating appointment:",G),et.error(G.message||"Erro ao criar agendamento"),u("datetime")}finally{y(!1)}}},V=async()=>
1332{if(c!=="success"&&t)try{await J.functions.invoke("update-lead-agendou",{body:{leadId:t,agendou_contato:!1,cancelou_agendamento:!0}}),console.log("Lead marcado como cancelou agendamento:",t)}catch(G){console.error("Erro ao registrar cancelamento:",G)}i()},q=()=>{c==="datetime"&&E&&(u("service"),f(null)),p(null)};return T||P?a.jsx(Qa,{open:o,onOpenChange:i,children:a.jsx(Ba,{className:"max-w-lg",children:a.jsx("div",{className:"flex items-center justify-center py-12",children:a.jsx($r,{className:"h-8 w-8 animate-spin text-primary"})})})}):a.jsx(Qa,{open:o,onOpenChange:G=>!G&&V(),children:a.jsxs(Ba,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Ks,{children:a.jsxs(Va,{className:"flex items-center gap-2",children:[a.jsx(dn,{className:"h-5 w-5 text-primary"}),c==="success"?"Agendamento Confirmado!":`Agendar - ${C?.name||"Calendário"}`]})}),c!=="success"&&a.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 text-sm",children:[a.jsx("p",{className:"font-medium",children:r.name}),r.email&&a.jsx("p",{className:"text-muted-foreground",children:r.email}),r.phone&&a.jsx("p",{className:"text-muted-foreground",children:r.phone})]}),c==="service"&&E&&a.jsxs("div",{className:"space-y-4",children:[a.jsx("p",{className:"text-sm text-muted-foreground",children:"Escolha o serviço desejado:"}),a.jsx(cxe,{services:I,selectedServiceId:d,onSelectService:G=>{f(G),u("datetime")}})]}),c==="datetime"&&a.jsxs("div",{className:"space-y-4",children:[E&&a.jsxs(Oe,{variant:"ghost",size:"sm",onClick:q,className:"-ml-2",children:[a.jsx(TA,{className:"h-4 w-4 mr-1"}),"Voltar"]}),U&&a.jsxs("div",{className:"flex items-center gap-2 p-2 bg-muted/50 rounded",children:[a.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:U.color}}),a.jsx("span",{className:"font-medium text-sm",children:U.name}),a.jsxs(Vt,{variant:"secondary",className:"ml-auto",children:[a.jsx(Vr,{className:"h-3 w-3 mr-1"}),U.duration_minutes," min"]})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsxs("h4",{className:"font-medium mb-2 text-sm flex items-center gap-1",children:[a.jsx(dn,{className:"h-4 w-4 text-primary"}),"Data"]}),a.jsx(CA,{mode:"single",selected:h,onSelect:G=>{m(G),p(null)},disabled:G=>!ee(G),locale:cn,className:"rounded-lg border p-2"})]}),a.jsxs("div",{children:[a.jsxs("h4",{className:"font-medium mb-2 text-sm flex items-center gap-1",children:[a.jsx(Vr,{className:"h-4 w-4 text-primary"}),"Horário",h&&a.jsx(Vt,{variant:"outline",className:"ml-auto text-xs",children:Kt(h,"dd/MM")})]}),h?a.jsx(uxe,{slots:D||[],selectedSlot:g,onSelectSlot:p,isLoading:H}):a.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground border rounded-lg",children:[a.jsx(dn,{className:"h-10 w-10 mb-2 opacity-50"}),a.jsx("span",{className:"text-sm",children:"Selecione uma data"})]})]})]}),g&&a.jsx(us,{className:"bg-primary/5 border-primary/20",children:a.jsxs(ds,{className:"p-3 flex items-center justify-between",children:[a.jsxs("div",{className:"text-sm",children:[a.jsx("p",{className:"font-medium",children:Kt(Ir(g.start),"EEEE, dd 'de' MMMM",{locale:cn})}),a.jsxs("p",{className:"text-muted-foreground",children:[Kt(Ir(g.start),"HH:mm")," - ",Kt(Ir(g.end),"HH:mm")]})]}),a.jsxs(Oe,{onClick:ae,disabled:x,children:[x?a.jsx($r,{className:"h-4 w-4 animate-spin mr-1"}):a.jsx(Vf,{className:"h-4 w-4 mr-1"}),"Confirmar Agendamento"]})]})})]}),c==="confirming"&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[a.jsx($r,{className:"h-10 w-10 animate-spin text-primary mb-4"}),a.jsx("p",{className:"text-muted-foreground",children:"Criando agendamento..."})]}),c==="success"&&b&&g&&a.jsx(yC,{searchCode:b.searchCode,appointmentStart:g.
1332start,appointmentEnd:g.end,courseTitle:n||s?.interesse_curso,areaInteresse:s?.area_interesse,quandoFazer:s?.interest,leadId:t,onClose:i})]})})}function G8(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[s,o]=A.useState(!1),[i,l]=A.useState(null),c=A.useCallback(async(h,m,g)=>{try{o(!0);const{data:p,error:x}=await J.from("form_upsell_configs").select("*").eq("is_active",!0).order("priority",{ascending:!0});if(x)return console.error("Error fetching upsell configs:",x),!1;if(!p||p.length===0)return!1;const y=p.find(b=>{if((b.excluded_forms||[]).includes(h)||m==="submit"&&!b.trigger_on_submit||m==="close"&&!b.trigger_on_close)return!1;const C=b.trigger_forms||[];return!!(C.includes("*")||C.includes(h))});return y?(n(y),t(!0),g&&l(g),g&&await J.from("leads").update({upsell_config_id:y.id,upsell_shown_at:new Date().toISOString()}).eq("id",g),!0):!1}catch(p){return console.error("Error checking for upsell:",p),!1}finally{o(!1)}},[]),u=A.useCallback(async(h,m)=>{const g=m||i;try{if(g&&r){const p={config_id:r.id,config_name:r.name,upsell_type:r.upsell_type,action:h,accepted_at:new Date().toISOString(),discount_offered:r.discount_percentage};h==="contact"?(await J.from("leads").update({is_priority:!0,priority_set_at:new Date().toISOString(),upsell_interest:p,upsell_response:"accepted",notes:`[UPSELL] Solicitou contato urgente sobre ${r.name}`}).eq("id",g),await J.from("priority_lead_alerts").insert({lead_id:g,message:`Lead solicitou contato urgente via upsell: ${r.name}`,is_read:!1}),et.success("Solicitação enviada! Um especialista entrará em contato em breve.",{duration:5e3})):await J.from("leads").update({upsell_interest:p,upsell_response:"accepted"}).eq("id",g)}h==="page"&&r?.cta_options?.secondary?.url&&(window.location.href=r.cta_options.secondary.url)}catch(p){console.error("Error handling upsell accept:",p),et.error("Ocorreu um erro. Tente novamente.")}finally{t(!1),n(null),l(null)}},[i,r]),d=A.useCallback(async h=>{const m=h||i;try{m&&await J.from("leads").update({upsell_response:"declined"}).eq("id",m)}catch(g){console.error("Error handling upsell decline:",g)}finally{t(!1),n(null),l(null)}},[i]),f=A.useCallback(()=>{t(!1),n(null),l(null)},[]);return{showUpsell:e,upsellConfig:r,isLoading:s,checkForUpsell:c,handleUpsellAccept:u,handleUpsellDecline:d,closeUpsell:f,currentLeadId:i,setCurrentLeadId:l}}const cA=[{id:"elegante",name:"Elegante",description:"Gradiente premium roxo/dourado",preview_gradient:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%)",colors:{primary:"#6366f1",secondary:"#8b5cf6",accent:"#d946ef",highlight:"#fbbf24",background:"#FFFFFF"}},{id:"futuristico",name:"FuturÃstico",description:"Neon cyber com sombras brilhantes",preview_gradient:"linear-gradient(135deg, #0D0D0D 0%, #00F5FF 50%, #FF00FF 100%)",colors:{primary:"#00F5FF",secondary:"#FF00FF",accent:"#39FF14",highlight:"#FFFF00",background:"#0D0D0D"}},{id:"minimalista",name:"Minimalista",description:"Clean e focado em conteúdo",preview_gradient:"linear-gradient(135deg, #FFFFFF 0%, #F3F4F6 50%, #E5E7EB 100%)",colors:{primary:"#212529",secondary:"#495057",accent:"#6366f1",highlight:"#10B981",background:"#FFFFFF"}},{id:"brutalist",name:"Brutalist",description:"Formas geométricas ousadas",preview_gradient:"linear-gradient(135deg, #000000 0%, #DC2626 50%, #000000 100%)",colors:{primary:"#DC2626",secondary:"#000000",accent:"#FBBF24",highlight:"#FFFFFF",background:"#000000"}},{id:"glass",name:"Glass Morphism",description:"Blur e transparência elegante",preview_gradient:"linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%)",colors:{primary:"#8B5CF6",secondary:"#06B6D4",accent:"#F472B6",highlight:"#FFFFFF",background:"rgba(255,255,255,0.1)"}},{id:"gradient_suave",name:"Gradiente Suave",description:"Transições suaves e modernas",preview_gradient:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",colors:{primary:"#667eea",secondary:"#764ba2",accent:"#f093fb",highlight:"#f5576c",background:"#FFFFFF"}}],h_=[{id:"trainning",name:"Trainning (Padrão)",colors:["#6366f1","#8b5cf6","#d946ef","#fbbf24","#FFFFFF"]},{id:"ouro_preto",name:"Ouro & Preto",colors:["#D4AF37","#1A1A1A","#F5F5F5","#C9B037","#0D0D0D"]},{id:"neon_tech",name:"Neon Tech",colors:["#00F5FF","#FF00FF","#39FF14","#0D0D0D","#FFFFFF"]},{id:"ocean",name:"Oceano",colors:["#0077B6","#00B4D8","#90E0EF","#CAF0F8","#FFFFFF"]},{id:"sunset",name:"Pôr do Sol",colors:["#FF6B6B","#FFA07A","#FFD93D","#6BCB77","#FFFFFF"]},{id:"corporate",name:"Corporativo",colors:["#1E3A5F","#3D5A80","#98C1D9","#E0FBFC","#FFFFFF"]}];function k8e({selectedTemplateId:e,selectedPaletteId:t,customColors:r,onTemplateChange:n,onPaletteChange:s,onCustomColorsChange:o}){const i=cA.find(u=>u.id===e),l=h_.find(u=>u.id===t),c=(u,d)=>{const h=[...r||l?.colors||[]];h[u]=d,o(h),t!=="custom"&&s("custom")};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Nr,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"font-semibold",children:"Estilo do Modal"})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:cA.map(u=>a.jsx(us,{className:je("cursor-pointer transition-all hover:shadow-md",e===u.id&&"ring-2 ring-primary"),onClick:()=>n(u.id),children:a.jsxs(ds,{className:"p-3",children:[a.jsx("div",{className:"h-16 rounded-md mb-2",style:{background:u.preview_gradient}}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:u.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:u.description})]}),e===u.id&&a.jsx($s,{className:"w-4 h-4 text-primary"})]})]})},u.id))})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ET,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"font-semibold",children:"Paleta de Cores"})]}),a.jsxs("div",{className:"space-y-2",children:[h_.map(u=>a.jsxs("div",{className:je("flex items-center gap-3 p-3 rounded-lg border cursor-pointer transition-all hover:bg-muted/50",t===u.id&&"ring-2 ring-primary bg-muted/30"),onClick:()=>s(u.id),children:[a.jsx("input",{type:"radio",checked:t===u.id,onChange:()=>s(u.id),className:"w-4 h-4"}),a.jsx("span",{className:"flex-1 text-sm font-medium",children:u.name}),a.jsx("div",{className:"flex gap-1",children:u.colors.map((d,f)=>a.jsx("div",{className:"w-6 h-6 rounded border shadow-sm",style:{backgroundColor:d}},f))})]},u.id)),a.jsxs("div",{className:je("flex items-center gap-3 p-3 rounded-lg border cursor-pointer transition-all hover:bg-muted/50",t==="custom"&&"ring-2 ring-primary bg-muted/30"),onClick:()=>s("custom"),children:[a.jsx("input",{type:"radio",checked:t==="custom",onChange:()=>s("custom"),className:"w-4 h-4"}),a.jsx("span",{className:"flex-1 text-sm font-medium",children:"Personalizada"}),a.jsx("div",{className:"flex gap-1",children:(r||i?.colors?Object.values(i?.colors||{}):["#6366f1","#8b5cf6","#d946ef","#fbbf24","#FFFFFF"]).slice(0,5).map((u,d)=>a.jsx("input",{type:"color",value:u,onChange:f=>c(d,f.target.value),onClick:f=>f.stopPropagation(),className:"w-6 h-6 rounded border shadow-sm cursor-pointer p-0"},d))})]})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("h4",{className:"font-semibold",children:"Preview"}),a.jsx("div",{className:"rounded-xl p-6 text-white relative overflow-hidden",style:{background:i?.preview_gradient||cA[0].preview_gradient},children:a.jsxs("div",{className:"relative z-10",children:[a.jsxs(Vt,{className:"bg-yellow-500/90 text-black mb-3",children:[a.jsx(Nr,{className:"w-3 h-3 mr-1"}),"OFERTA EXCLUSIVA"]}),a.jsx("h3",{className:"text-xl font-bold mb-2",children:"TÃtulo do Modal"}),a.jsx("p",{className:"text-white/80 text-sm mb-4",children:"SubtÃtulo descritivo da oferta"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(Vt,{className:"bg-white/20 text-white text-xs",children:"Badge 1"}),a.jsx(Vt,{className:"bg-white/20 text-white text-xs",children:"Badge 2"})]})]})})]})]})}function dxe({open:e,onOpenChange:t,config:r,onAccept:n,onDecline:s}){const[o,i]=A.useState(!1),l=r.modal_config,c=r.cta_options,u=r.style_config,d=r.original_price||19990,f=r.discounted_price||d*(1-r.discount_percentage/100),h=d-f,m=r.installment_count||12,g=r.installment_price||f/m,p=r.price_display_mode||"both",x=A.useMemo(()=>{const L=cA.find(I=>I.id===u?.template_id)||cA[0],P=h_.find(I=>I.id===u?.palette_id);return u?.palette_id==="custom"&&u?.custom_colors&&u.custom_colors.length>=5?{primary:u.custom_colors[0],secondary:u.custom_colors[1],accent:u.custom_colors[2],highlight:u.custom_colors[3],background:u.custom_colors[4]}:P?{primary:P.colors[0],secondary:P.colors[1],accent:P.colors[2],highlight:P.colors[3],background:P.colors[4]}:L.colors},[u]),y=A.useMemo(()=>cA.find(P=>P.id===u?.template_id)?`linear-gradient(135deg, ${x.primary} 0%, ${x.secondary} 50%, ${x.accent} 100%)`:`linear-gradient(135deg, ${x.primary} 0%, ${x.secondary} 50%, ${x.accent} 100%)`,[u,x]),b=A.useMemo(()=>[x.primary,x.secondary,x.accent,x.highlight],[x]),j=async()=>{i(!0),Zw({particleCount:100,spread:70,origin:{y:.6},colors:b}),setTimeout(()=>{n("contact")},500)},C=()=>{n("page")},T=()=>{s(),t(!1)};return a.jsx(Qa,{open:e,onOpenChange:t,children:a.jsx(Ba,{className:"max-w-3xl p-0 border-0 bg-transparent max-h-[95vh] overflow-y-auto",children:a.jsx(Vw,{children:e&&a.jsxs(Ze.div,{initial:{opacity:0,scale:.9}
1332,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3,ease:"easeOut"},className:"relative overflow-hidden rounded-2xl",children:[a.jsx("div",{className:"absolute inset-0",style:{background:y}}),a.jsxs("div",{className:"absolute inset-0 opacity-20",children:[a.jsx("div",{className:"absolute top-0 left-0 w-72 h-72 rounded-full blur-3xl animate-pulse",style:{backgroundColor:x.background}}),a.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 rounded-full blur-3xl animate-pulse delay-1000",style:{backgroundColor:x.highlight}})]}),a.jsxs("div",{className:"relative z-10 p-6 md:p-8",children:[a.jsx("button",{onClick:T,className:"absolute top-4 right-4 p-2 rounded-full bg-white/10 hover:bg-white/20 transition-colors",children:a.jsx(Ua,{className:"w-5 h-5 text-white"})}),a.jsx(Ze.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},className:"flex justify-center mb-4",children:a.jsxs(Vt,{className:"font-bold px-4 py-2 text-sm border-0",style:{background:`linear-gradient(to right, ${x.highlight}, ${x.accent})`,color:x.background==="#0D0D0D"||x.background==="#000000"?"#fff":"#000"},children:[a.jsx(Nr,{className:"w-4 h-4 mr-2"}),l.highlight_badge||"OFERTA EXCLUSIVA"]})}),a.jsxs(Ze.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"text-center mb-6",children:[a.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-white mb-3 leading-tight",children:l.title||"A Maior Formação de Tecnologia da América Latina"}),a.jsx("p",{className:"text-white/80 text-lg",children:l.subtitle||"Transforme sua carreira com acesso ilimitado"})]}),a.jsx(Ze.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3},className:"flex flex-wrap justify-center gap-2 mb-6",children:(l.badges||["+200 Cursos","+1500h","Aulas ao Vivo"]).map((L,P)=>a.jsx(Ze.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.4+P*.1},children:a.jsx(Vt,{variant:"secondary",className:"bg-white/20 text-white border-white/30 backdrop-blur-sm px-3 py-1.5 text-sm",children:L})},L))}),a.jsx(Ze.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5},className:"bg-white/10 backdrop-blur-md rounded-xl p-5 mb-6 border border-white/20",children:a.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:(l.benefits||["Acesso completo por 12 meses","Aulas ao vivo ilimitadas","Plataforma T360 com IA","Certificados reconhecidos"]).map((L,P)=>a.jsxs(Ze.div,{initial:{x:-20,opacity:0},animate:{x:0,opacity:1},transition:{delay:.6+P*.1},className:"flex items-start gap-2",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-green-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx($s,{className:"w-3 h-3 text-white"})}),a.jsx("span",{className:"text-white/90 text-sm",children:L})]},L))})}),a.jsxs(Ze.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.7},className:"text-center mb-6",children:[p==="installments"&&a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"inline-flex flex-col items-center gap-2 bg-white/10 backdrop-blur-md rounded-xl px-8 py-5 border border-white/20",children:[a.jsxs("p",{className:"text-white/60 text-sm",children:[m,"x de"]}),a.jsx("p",{className:"text-white text-4xl md:text-5xl font-bold",children:g.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}),a.jsxs("p",{className:"text-white/60 text-sm",children:["ou ",f.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})," à vista"]}),a.jsxs(Vt,{className:"font-bold text-lg px-3 py-1.5 border-0 mt-2",style:{backgroundColor:x.highlight,color:x.background==="#0D0D0D"||x.background==="#000000"?"#fff":"#000"},children:[r.discount_percentage,"% OFF"]})]}),a.jsxs("p",{className:"font-semibold",style:{color:x.highlight},children:["Economia de ",h.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]})]}),p==="full"&&a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"inline-flex items-center gap-3 bg-white/10 backdrop-blur-md rounded-xl px-6 py-4 border border-white/20",children:[a.jsxs("div",{className:"text-left",children:[a.jsxs("p",{className:"text-white/60 text-sm line-through",children:["De ",d.toLocaleStr
1332ing("pt-BR",{style:"currency",currency:"BRL"})]}),a.jsx("p",{className:"text-white text-2xl md:text-3xl font-bold",children:f.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})})]}),a.jsxs(Vt,{className:"font-bold text-lg px-3 py-1.5 border-0",style:{backgroundColor:x.highlight,color:x.background==="#0D0D0D"||x.background==="#000000"?"#fff":"#000"},children:[r.discount_percentage,"% OFF"]})]}),a.jsxs("p",{className:"font-semibold",style:{color:x.highlight},children:["Economia de ",h.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]})]}),p==="both"&&a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"inline-flex flex-col items-center gap-2 bg-white/10 backdrop-blur-md rounded-xl px-8 py-5 border border-white/20",children:[a.jsxs("div",{className:"flex items-center gap-2 text-white/60 text-sm",children:[a.jsxs("span",{className:"line-through",children:["De ",d.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]}),a.jsxs(Vt,{className:"font-bold px-2 py-0.5 border-0 text-xs",style:{backgroundColor:x.highlight,color:x.background==="#0D0D0D"||x.background==="#000000"?"#fff":"#000"},children:[r.discount_percentage,"% OFF"]})]}),a.jsxs("p",{className:"text-white/80 text-lg font-semibold",children:[m,"x de"]}),a.jsx("p",{className:"text-white text-4xl md:text-5xl font-bold",children:g.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}),a.jsxs("p",{className:"text-white/70 text-sm mt-1",children:["ou ",f.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})," Ã vista"]})]}),a.jsxs("p",{className:"font-semibold",style:{color:x.highlight},children:["Economia de ",h.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]})]})]}),l.urgency_text&&a.jsx(Ze.p,{initial:{opacity:0}
1332,animate:{opacity:1},transition:{delay:.8},className:"text-center font-semibold mb-6 animate-pulse",style:{color:x.highlight},children:l.urgency_text}),a.jsxs(Ze.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.9},className:"flex flex-col sm:flex-row gap-3",children:[a.jsxs(Oe,{onClick:j,disabled:o,size:"lg",className:"flex-1 h-14 text-lg font-bold border-0 shadow-lg",style:{background:`linear-gradient(to right, ${x.highlight}, ${x.accent})`,color:x.background==="#0D0D0D"||x.background==="#000000"?"#fff":"#000",boxShadow:`0 10px 15px -3px ${x.accent}40`},children:[a.jsx(qs,{className:"w-5 h-5 mr-2"}),c.primary?.text||"Quero Falar com Especialista"]}),a.jsxs(Oe,{onClick:C,variant:"outline",size:"lg",className:"flex-1 h-14 text-lg font-semibold bg-white/10 hover:bg-white/20 text-white border-white/30",children:[a.jsx(LA,{className:"w-5 h-5 mr-2"}),c.secondary?.text||"Conhecer o MasterTech"]})]}),c.primary?.description&&a.jsx(Ze.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},className:"text-center text-white/60 text-sm mt-3",children:c.primary.description}),a.jsx(Ze.button,{initial:{opacity:0}
1332,animate:{opacity:1},transition:{delay:1.1},onClick:T,className:"w-full text-center text-white/50 hover:text-white/70 text-sm mt-4 transition-colors",children:"Não tenho interesse agora"}),l.trust_badges&&l.trust_badges.length>0&&a.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2},className:"flex flex-wrap justify-center gap-4 mt-6 pt-4 border-t border-white/10",children:l.trust_badges.map(L=>a.jsx("span",{className:"text-white/60 text-xs",children:L},L))})]})]})})})})}function Axe({open:e,onOpenChange:t,config:r,onAccept:n,onDecline:s}){const o=r.modal_config,i=r.cta_options,l=r.original_price||0,c=r.discounted_price||l*(1-r.discount_percentage/100),u=l-c,d=()=>{s(),t(!1)};return a.jsx(Qa,{open:e,onOpenChange:t,children:a.jsxs(Ba,{className:"max-w-2xl p-0 overflow-hidden border-primary/20",children:[a.jsx("div",{className:"bg-gradient-to-br from-primary/15 via-primary/10 to-accent/10 px-6 pt-6 pb-4",children:a.jsxs(Ks,{children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(Nr,{className:"w-6 h-6 text-primary animate-pulse"}),o.highlight_badge&&a.jsx(Vt,{className:"bg-primary/10 text-primary border-primary/20",children:o.highlight_badge})]}),a.jsx(Va,{className:"text-2xl font-bold",children:o.title||r.name}),o.subtitle&&a.jsx(Po,{className:"text-base",children:o.subtitle})]})}),a.jsxs("div",{className:"space-y-6 px-6 pb-6",children:[o.badges&&o.badges.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:o.badges.map(f=>a.jsx(Vt,{variant:"secondary",children:f},f))}),o.benefits&&o.benefits.length>0&&a.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[a.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[a.jsx($s,{className:"w-5 h-5 text-primary"}),"Por que aproveitar?"]}),a.jsx("ul",{className:"space-y-2",children:o.benefits.map((f,h)=>a.jsxs(Ze.li,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:h*.1},className:"flex items-start gap-2 text-sm text-muted-foreground",children:[a.jsx($s,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),a.jsx("span",{children:f})]},f))})]}),l>0&&a.jsxs("div",{className:"flex items-center justify-center gap-4 p-4 bg-gradient-to-r from-primary/5 to-accent/5 rounded-lg border border-primary/20 shadow-[0_2px_12px_hsl(var(--primary)/0.1)]",children:[a.jsxs("div",{className:"text-center",children:[r.discount_percentage>0&&a.jsxs("p",{className:"text-sm text-muted-foreground line-through",children:["De ",l.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]}),a.jsx("p",{className:"text-3xl font-bold text-primary",children:c.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}),u>0&&a.jsxs("p",{className:"text-sm text-green-600 font-semibold",children:["Economia de ",u.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})]})]}),r.discount_percentage>0&&a.jsxs(Vt,{className:"bg-green-500 text-white text-lg px-3 py-1",children:[r.discount_percentage,"% OFF"]})]}),o.urgency_text&&a.jsx("p",{className:"text-center text-orange-600 font-semibold animate-pulse",children:o.urgency_text}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[i.primary&&a.jsxs(Oe,{onClick:()=>n(i.primary.action==="urgent_contact"?"contact":"page"),size:"lg",className:"flex-1 h-12 bg-gradient-to-r from-primary to-primary/80 shadow-[0_4px_20px_hsl(var(--primary)/0.25)] hover:shadow-[0_6px_28px_hsl(var(--primary)/0.35)] transition-all duration-300",children:[i.primary.action==="urgent_contact"?a.jsx(qs,{className:"w-5 h-5 mr-2"}):a.jsx(Iu,{className:"w-5 h-5 mr-2"}),i.primary.text]}),i.secondary&&a.jsxs(Oe,{onClick:()=>n(i.secondary.action==="urgent_contact"?"contact":"page"),variant:"outline",size:"lg",className:"flex-1 h-12",children:[i.secondary.action==="page"?a.jsx(Iu,{className:"w-5 h-5 mr-2"}):a.jsx(qs,{className:"w-5 h-5 mr-2"}),i.secondary.text]})]}),a.jsx("button",{onClick:d,className:"w-full text-center text-muted-foreground hover:text-foreground text-sm transition-colors",children:"Não, obrigado"}),o.trust_badges&&o.trust_badges.length>0&&a.jsx("div",{className:"flex flex-wrap justify-center gap-4 pt-4 border-t",children:o.trust_badges.map(f=>a.jsx("span",{className:"text-muted-foreground text-xs",children:f},f))})]})]})})}function W8({open:e,onOpenChange:t,config:r,onAccept:n,onDecline:s}){return r?r.upsell_type==="mastertech"?a.jsx(dxe,{open:e,onOpenChange:t,config:r,onAccept:n,onDecline:s}):a.jsx(Axe,{open:e,onOpenChange:t,config:r,onAccept:n,onDecline:s}):null}function gj({open:e,onOpenChange:t,config:r,formType:n,leadId:s,leadName:o,leadEmail:i,leadPhone:l,onAccept:c,onDecline:u}){const{trackPopupView:d,trackPopupAccept:f,trackPopupDecline:h,trackPopupDismiss:m}=oxe(),g=A.useRef(!1),[p,x]=A.useState(!1),{showUpsell:y,upsellConfig:b,checkForUpsell:j,handleUpsellAccept:C,handleUpsellDecline:T,closeUpsell:L,setCurrentLead
1332Id:P}=G8();A.useEffect(()=>{e&&!g.current&&(d(n),g.current=!0,console.log("[ScheduleSpecialistPopup] Popup aberto, leadId:",s)),e||(g.current=!1)},[e,n,d,s]);const I=async U=>{if(!s){console.warn("[ScheduleSpecialistPopup] leadId não disponÃvel para atualização");return}console.log("[ScheduleSpecialistPopup] Atualizando lead:",s,"agendou_contato:",U);try{const{data:ee,error:ae}=await J.functions.invoke("update-lead-agendou",{body:{leadId:s,agendou_contato:U}});ae?console.error("[ScheduleSpecialistPopup] Erro ao atualizar lead:",ae):console.log("[ScheduleSpecialistPopup] Lead atualizado com sucesso:",ee)}catch(ee){console.error("[ScheduleSpecialistPopup] Erro ao invocar update-lead-agendou:",ee)}},E=async()=>{const U=r?.use_internal_scheduling!==!1,ee=r?.url||"https://cpnow.me/d/dXK6";if(f(n,ee),c){c();return}await I(!0),U&&s?(t(!1),P(s),x(!0)):(window.open(ee,"_blank"),t(!1))},O=async()=>{if(h(n),u){u();return}await I(!1),t(!1)},k=U=>{!U&&e&&m(n),t(U)},D=async U=>{if(console.log("[ScheduleSpecialistPopup] Agendamento criado:",U),s){const ee=n||"agendamento-interno";console.log("[ScheduleSpecialistPopup] Verificando upsell para:",ee,"leadId:",s);const ae=await j(ee,"submit",s);console.log("[ScheduleSpecialistPopup] Upsell encontrado:",ae)}},H=U=>{x(U),!y&&s&&j(n||"agendamento-interno","close",s)};return a.jsxs(a.Fragment,{children:[a.jsx(Qa,{open:e,onOpenChange:k,children:a.jsxs(Ba,{className:"max-w-md p-0 overflow-hidden border-primary/20",children:[a.jsxs("div",{className:"bg-gradient-to-br from-primary/20 via-primary/10 to-accent/10 px-6 pt-8 pb-4",children:[a.jsx(Ze.div,{initial:{scale:.8,opacity:0}
1332,animate:{scale:1,opacity:1},transition:{duration:.4,type:"spring"},className:"flex items-center justify-center mb-4",children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"p-4 bg-primary/15 rounded-2xl border border-primary/20 shadow-[0_0_30px_hsl(var(--primary)/0.2)]",children:a.jsx(sq,{className:"h-8 w-8 text-primary"})}),a.jsx(Nr,{className:"absolute -top-1 -right-1 w-4 h-4 text-primary animate-pulse"})]})}),a.jsxs(Ks,{children:[a.jsx(Va,{className:"text-center text-xl font-bold",children:r?.title||"Agende com um Especialista!"}),a.jsx(Po,{className:"text-center text-sm text-muted-foreground mt-2",children:r?.description||"Gostaria de agendar um atendimento exclusivo com um de nossos especialistas?"})]})]}),a.jsxs("div",{className:"px-6 pb-6 pt-2 flex flex-col gap-3",children:[a.jsx(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},children:a.jsxs(Oe,{onClick:E,className:"w-full h-12 gap-2 bg-gradient-to-r from-primary to-primary/80 shadow-[0_4px_20px_hsl(var(--primary)/0.25)] hover:shadow-[0_6px_28px_hsl(var(--primary)/0.35)] transition-all duration-300 text-base font-semibold",children:[a.jsx(dn,{className:"h-5 w-5"}),r?.button_yes||"Sim, quero agendar!"]})}),a.jsx(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},children:a.jsx(Oe,{variant:"outline",onClick:O,className:"w-full h-10 text-muted-foreground hover:text-foreground transition-all",children:r?.button_no||"Não, obrigado"})})]})]})}),r?.default_calendar_id&&s&&a.jsx(K8,{open:p,calendarId:r.default_calendar_id,leadId:s,leadData:{name:o||"",email:i,phone:l},onClose:()=>H(!1),onSuccess:U=>{D(U?.search_code||U?.id||"")}}),a.jsx(W8,{open:y,onOpenChange:U=>!U&&L(),config:b,onAccept:C,onDecline:T})]})}function fxe(e){const{data:t,isLoading:r,error:n}=jt({queryKey:["system-setting",e],queryFn:async()=>{const{data:s,error:o}=await J.from("system_settings").select("value").eq("key",e).maybeSingle();if(o)throw o;return s?.value??null},staleTime:6e5,gcTime:18e5});return{data:t??null,isLoading:r,error:n}}function mxe(){const e=vn();return{updateSetting:async(r,n)=>{const{error:s}=await J.from("system_settings").upsert({key:r,value:n},{onConflict:"key"});if(s)throw s;e.invalidateQueries({queryKey:["system-setting",r]})}}}const hxe={enabled:!0,url:"https://cpnow.me/d/dXK6",title:"Agende com um Especialista!",description:"Gostaria de agendar um atendimento exclusivo com um de nossos especialistas?",button_yes:"Sim, quero agendar!",button_no:"Não, obrigado",excluded_forms:[],show_on_close:!1,show_on_submit:!0,use_internal_scheduling:!0,default_calendar_id:void 0};function xj(){const{data:e,isLoading:t}=fxe("schedule_specialist_popup"),{updateSetting:r}=mxe(),n=A.useMemo(()=>({...hxe,...e??{}}),[e]),s=A.useCallback((l,c)=>!(!n.enabled||n.excluded_forms.includes(l)||c==="submit"&&!n.show_on_submit||c==="close"&&!n.show_on_close),[n]),o=A.useCallback(async l=>{try{const c={...n,...l};return await r("schedule_specialist_popup",c),!0}catch(c){return console.error("Error updating schedule specialist config:",c),!1}},[n,r]),i=A.useCallback(()=>{},[]);return{config:n,loading:t,shouldShowPopup:s,updateConfig:o,reload:i}}const vs={VALIDATION_REQUIRED_FIELD:"VALIDATION_REQUIRED_FIELD",VALIDATION_INVALID_EMAIL:"VALIDATION_INVALID_EMAIL",VALIDATION_INVALID_PHONE:"VALIDATION_INVALID_PHONE",VALIDATION_INVALID_TLD:"VALIDATION_INVALID_TLD",LEAD_DUPLICATE_EMAIL:"LEAD_DUPLICATE_EMAIL",LEAD_DUPLICATE_PHONE:"LEAD_DUPLICATE_PHONE",APPOINTMENT_SLOT_TAKEN:"APPOINTMENT_SLOT_TAKEN",APPOINTMENT_CALENDAR_NOT_FOUND:"APPOINTMENT_CALENDAR_NOT_FOUND",APPOINTMENT_PAST_DATE:"APPOINTMENT_PAST_DATE",AUTOMATION_WHATSAPP_DISCONNECTED:"AUTOMATION_WHATSAPP_DISCONNECTED",AUTOMATION_EMAIL_FAILED:"AUTOMATION_EMAIL_FAILED",RATE_LIMIT_EXCEEDED:"RATE_LIMIT_EXCEEDED",SERVER_INTERNAL_ERROR:"SERVER_INTERNAL_ERROR",PERMISSION_DENIED:"PERMISSION_DENIED",SESSION_EXPIRED:"SESSION_EXPIRED"},kS={[vs.VALIDATION_INVALID_EMAIL]:{error_type:"validation",severity:"warning",user_title:"E-mail inválido",user_description:"Por favor, verifique se o e-mail foi digitado corretamente.",primary_cta:{label:"Corrigir",action:"close"}}
1332,[vs.VALIDATION_INVALID_PHONE]:{error_type:"validation",severity:"warning",user_title:"Telefone inválido",user_description:"O número precisa ter 11 dÃgitos (DDD + número).",primary_cta:{label:"Corrigir",action:"close"}},[vs.VALIDATION_INVALID_TLD]:{error_type:"validation",severity:"warning",user_title:"DomÃnio de e-mail inválido",user_description:"Verifique a extensão do e-mail (.com, .com.br, etc.).",primary_cta:{label:"Corrigir",action:"close"}},[vs.VALIDATION_REQUIRED_FIELD]:{error_type:"validation",severity:"warning",user_title:"Campo obrigatório",user_description:"Por favor, preencha todos os campos obrigatórios.",primary_cta:{label:"Corrigir",action:"close"}},[vs.LEAD_DUPLICATE_EMAIL]:{error_type:"duplicate",severity:"info",user_title:"E-mail já cadastrado",user_description:"Este e-mail já está em nossa base. Quer falar com nosso consultor?",primary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},secondary_cta:{label:"Fechar",action:"close"},show_support:!0},[vs.LEAD_DUPLICATE_PHONE]:{error_type:"duplicate",severity:"info",user_title:"Telefone já cadastrado",user_description:"Este número já está em nossa base. Quer falar com nosso consultor?",primary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},secondary_cta:{label:"Fechar",action:"close"},show_support:!0},[vs.APPOINTMENT_SLOT_TAKEN]:{error_type:"validation",severity:"warning",user_title:"Horário indisponÃvel",user_description:"Este horário acabou de ser reservado. Por favor, escolha outro horário.",primary_cta:{label:"Escolher outro",action:"close"}},[vs.APPOINTMENT_CALENDAR_NOT_FOUND]:{error_type:"not_found",severity:"error",user_title:"Agenda não encontrada",user_description:"Este link de agendamento é inválido ou expirou.",primary_cta:{label:"Voltar",action:"redirect"},show_support:!0},[vs.APPOINTMENT_PAST_DATE]:{error_type:"validation",severity:"warning",user_title:"Data inválida",user_description:"Não é possÃvel agendar para datas passadas.",primary_cta:{label:"Escolher outra data",action:"close"}},[vs.AUTOMATION_WHATSAPP_DISCONNECTED]:{error_type:"server",severity:"error",user_title:"Serviço de mensagens indisponÃvel",user_description:"O serviço de WhatsApp está temporariamente offline.",primary_cta:{label:"Tentar novamente",action:"retry"}},[vs.AUTOMATION_EMAIL_FAILED]:{error_type:"server",severity:"warning",user_title:"Não foi possÃvel enviar o e-mail",user_description:"Houve um problema ao enviar. Tente novamente em instantes.",primary_cta:{label:"Tentar novamente",action:"retry"}},[vs.RATE_LIMIT_EXCEEDED]:{error_type:"rate_limit",severity:"warning",user_title:"Muitas tentativas",user_description:"Aguarde alguns segundos antes de tentar novamente."},[vs.PERMISSION_DENIED]:{error_type:"permission",severity:"error",user_title:"Acesso negado",user_description:"Você não tem permissão para realizar esta ação.",primary_cta:{label:"Voltar",action:"redirect"}},[vs.SESSION_EXPIRED]:{error_type:"permission",severity:"warning",user_title:"Sessão expirada",user_description:"Por favor, faça login novamente para continuar.",primary_cta:{label:"Fazer login",action:"login"}},[vs.SERVER_INTERNAL_ERROR]:{error_type:"server",severity:"error",user_title:"Erro temporário",user_description:"Nosso sistema está passando por uma manutenção rápida. Tente novamente.",primary_cta:{label:"Tentar novamente",action:"retry"},secondary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},show_support:!0}},pxe=[{pattern:/failed to fetch|networkerror|net::err|econnrefused/i,error:{error_type:"network",severity:"warning",user_title:"Sem conexão com a internet",user_description:"Verifique sua conexão e tente novamente.",primary_cta:{label:"Tentar novamente",action:"retry"}}},{pattern:/failed to send a request|edge function/i,error:{error_type:"server",severity:"error",user_title:"Serviço temporariamente indisponÃvel",user_description:"Aguarde alguns segundos e tente novamente.",primary_cta:{label:"Tentar novamente",action:"retry"},secondary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},show_support:!0}},{pattern:/timeout|timed out/i,error:{error_type:"network",severity:"warning",user_title:"Conexão lenta",user_description:"A operação está demorando mais que o esperado. Tente novamente.",primary_cta:{label:"Tentar novamente",action:"retry"}}},{pattern:/e-?mail.*inválid|invalid.*email|domÃnio.*inválid/i,error:{error_type:"validation",severity:"warning",user_title:"E-mail inválido",user_description:"Verifique se o e-mail foi digitado corretamente.",primary_cta:{label:"Corrigir",action:"close"}}},{pattern:/telefone.*inválid|whatsapp.*inválid|phone.*invalid/i,error:{error_type:"validation",severity:"warning",user_title:"Telefone inválido",user_description:"O número precisa ter 11 dÃgitos (DDD + número).",primary_cta:{label:"Corrigir",action:"close"}}},{pattern:/campos? obrigatórios?|required field/i,error:{error_type:"validation",severity:"warning",user_title:"Dados incompletos",user_description:"Por favor, preencha todos os campos obrigatórios.",primary_cta:{label:"Corrigir",action:"close"}}},{pattern:/já.*cadastrad|already.*exist|duplicate/i,error:{error_type:"duplicate",severity:"info",user_title:"Dados já cadastrados",user_description:"Este contato já está em nossa base. Quer falar c
1332om nosso consultor?",primary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},secondary_cta:{label:"Fechar",action:"close"},show_support:!0}},{pattern:/calendário.*não encontrad|calendar.*not found|agenda.*inativ/i,error:{error_type:"not_found",severity:"error",user_title:"Agenda não disponÃvel",user_description:"Este link de agendamento não está mais ativo.",primary_cta:{label:"Voltar",action:"redirect"},show_support:!0}},{pattern:/horário.*indisponÃvel|slot.*taken|already.*booked/i,error:{error_type:"validation",severity:"warning",user_title:"Horário indisponÃvel",user_description:"Este horário acabou de ser reservado. Escolha outro.",primary_cta:{label:"Escolher outro",action:"close"}}},{pattern:/unauthorized|não autorizado|403|permission denied/i,error:{error_type:"permission",severity:"warning",user_title:"Sessão expirada",user_description:"Faça login novamente para continuar.",primary_cta:{label:"Fazer login",action:"login"}}},{pattern:/401|unauthenticated/i,error:{error_type:"permission",severity:"warning",user_title:"Sessão expirada",user_description:"Faça login novamente para continuar.",primary_cta:{label:"Fazer login",action:"login"}}},{pattern:/rate.*limit|too many requests|429/i,error:{error_type:"rate_limit",severity:"warning",user_title:"Muitas tentativas",user_description:"Aguarde alguns segundos antes de tentar novamente."}},{pattern:/500|internal.*server|erro.*interno/i,error:{error_type:"server",severity:"error",user_title:"Erro temporário",user_description:"Estamos trabalhando para resolver. Tente novamente em instantes.",primary_cta:{label:"Tentar novamente",action:"retry"},secondary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},show_support:!0}}],M1={formulario_lead:{secondary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},show_support:!0},agendamento:{secondary_cta:{label:"Escolher outro horário",action:"close"}},automacao:{show_support:!0},checkout:{secondary_cta:{label:"Falar no WhatsApp",action:"whatsapp"},show_support:!0},geral:{}};function rg(e,t="geral"){let r,n;if(typeof e=="string"?r=e:e instanceof Error?r=e.message:(r=e.error||e.message||"Unknown error",n=e.error_code),console.error("[Error Handler] Technical error:",{errorMessage:r,errorCode:n,context:t}),n&&kS[n]){const o=kS[n],i=M1[t]||{};return{error_type:"unknown",severity:"error",user_title:"Algo deu errado",user_description:"Tente novamente.",...o,...i,technical_log:r}}for(const{pattern:o,error:i}of pxe)if(typeof o=="string"?r.toLowerCase().includes(o.toLowerCase()):o.test(r)){const c=M1[t]||{};return{error_type:"unknown",severity:"error",user_title:"Algo deu errado",user_description:"Tente novamente.",...i,...c,technical_log:r}}const s=M1[t]||{};return{error_type:"unknown",severity:"error",user_title:"Algo deu errado",user_description:"Tente novamente ou entre em contato conosco.",primary_cta:{label:"Tentar novamente",action:"retry"},show_support:!0,technical_log:r,...s}}function gxe(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{return{message:e}}return{error_code:e?.error_code||e?.code,message:e?.error||e?.message||e?.error_message||"Erro desconhecido"}}function xxe(e){return`https://wa.me/5511999999999?text=${encodeURIComponent(e?`Olá! Preciso de ajuda com ${e}.`:"Olá! Preciso de ajuda.")}`}const vxe={info:bT,warning:vh,error:Cx,critical:B2},yxe={info:"text-blue-500",warning:"text-amber-500",error:"text-red-500",critical:"text-red-700"};function ng({error:e,onRetry:t,onClose:r,context:n}){const s=vxe[e.severity]||Cx,o=yxe[e.severity]||"text-red-500",i=c=>{switch(c){case"retry":t&&t();break;case"whatsapp":case"contact":window.open(xxe(n),"_blank");break;case"login":window.location.href="/auth";break;case"redirect":window.history.back();break}r?.()},l=e.severity==="critical"?1e4:e.severity==="error"?6e3:4e3;et.custom(c=>a.jsx("div",{className:"bg-background border rounded-lg shadow-lg p-4 max-w-md w-full animate-in slide-in-from-right",children:a.jsxs("div",{className:"flex gap-3",children:[a.jsx(s,{className:`h-5 w-5 mt-0.5 flex-shrink-0 ${o}`}),a.jsxs("div",{className:"flex-1 space-y-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-foreground",children:e.user_title}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.user_description})]}),(e.primary_cta||e.secondary_cta||e.show_support)&&a.jsxs("div",{className:"flex flex-wrap gap-2 pt-1",children:[e.primary_cta&&a.jsxs(Oe,{size:"sm",variant:e.primary_cta.action==="retry"?"default":"outline",onClick:()=>i(e.primary_cta.action),className:"h-7 text-xs",children:[e.primary_cta.action==="retry"&&a.jsx(xc,{className:"h-3 w-3 mr-1"}),e.primary_cta.label]}),e.secondary_cta&&a.jsxs(Oe,{size:"sm",variant:"ghost",onClick:()=>i(e.secondary_cta.action),className:"h-7 text-xs",children:[e.secondary_cta.action==="whatsapp"&&a.jsx(qs,{className:"h-3 w-3 mr-1"}),e.secondary_cta.label]}),e.show_support&&!e.secondary_cta&&a.jsxs(Oe,{size:"sm",variant:"ghost",onClick:()=>i("whatsapp"),className:"h-7 text-xs text-muted-foreground",children:[a.jsx(Iu,{className:"h-3 w-3 mr-1"}
1332),"Precisa de ajuda?"]})]})]})]})}),{duration:l,position:"top-right"})}const bxe={compact:"h-11",medium:"h-[46px]",full:"h-12"},wxe={compact:"h-12",medium:"h-[52px]",full:"h-14"},_xe={compact:"space-y-2",medium:"space-y-2.5",full:"space-y-3"},gu={title:"text-[15px] sm:text-base font-bold text-white leading-tight",subtitle:"text-xs text-white/50 leading-snug",product:"text-[13px] font-semibold text-[#F26522] leading-tight truncate",socialProof:"text-[11px] text-white/40 leading-snug",cohortChip:"flex items-center justify-between gap-2 rounded-lg border border-white/[0.10] bg-white/[0.04] px-2.5 py-1.5",cohortLabel:"text-[10px] uppercase tracking-[0.18em] text-white/40 leading-none",cohortValue:"text-[12.5px] text-white/85 leading-tight truncate",cohortAction:"shrink-0 text-[11px] font-semibold text-[#F26522] hover:text-[#ff8046] underline underline-offset-2 transition-colors",label:"block text-[11px] font-medium text-white/55 leading-none",inputWrapper:"relative",inputIcon:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-white/25 pointer-events-none",input:"w-full bg-white/[0.04] border border-white/[0.10] rounded-lg pl-10 pr-3 text-white text-base sm:text-sm placeholder:text-white/25 focus:border-[#F26522]/60 focus:bg-white/[0.06] focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none transition-colors",inputNoIcon:"pl-3",inputError:"border-red-400/50",error:"text-red-400 text-[11px] leading-none",chipsRow:"flex flex-wrap gap-1.5",chipBase:"px-3 rounded-lg border text-[12.5px] font-medium transition-colors min-h-[40px] flex items-center justify-center text-center",chipActive:"bg-[#F26522]/15 border-[#F26522] text-[#F26522]",chipIdle:"bg-white/[0.03] border-white/[0.12] text-white/55 hover:border-white/30",cta:"w-full text-sm font-bold uppercase tracking-wider rounded-xl relative overflow-hidden transition-colors disabled:opacity-60"},Cxe=e=>bxe[e],I8e=e=>wxe[e],F8e=e=>_xe[e],T8e=e=>`${gu.chipBase} ${e?gu.chipActive:gu.chipIdle}`,IS=` 1333 .one-screen-compact .react-international-phone-input-container .react-international-phone-input, 1334 .one-screen-compact .react-international-phone-input-container .react-international-phone-country-selector-button { 1335 height: 44px !important; 1336 } 1337 /* Chips: 40px continua confortável ao toque e devolve altura ao formulário. */ 1338 .one-screen-compact-chips button { 1339 min-height: 40px !important; 1340 padding-top: 0.375rem !important; 1341 padding-bottom: 0.375rem !important; 1342 /* 1343 Em 320px um rótulo longo ("Apenas pesquisando") quebra em duas linhas e o 1344 chip pula de 40px para 53px â o suficiente para empurrar o CTA para fora 1345 da tela. Pior: isso depende de QUANDO a fonte carrega, então o layout 1346 variava entre carregamentos e o teste de viewport oscilava. Reduzir o 1347 corpo mantém uma linha só e torna a altura determinÃstica. 1348 */ 1349 font-size: 11.5px !important; 1350 line-height: 1.15 !important; 1351 padding-left: 0.5rem !important; 1352 padding-right: 0.5rem !important; 1353 } 1354`;var FS=1,jxe=.9,Exe=.8,Bxe=.17,O1=.1,U1=.999,Nxe=.9999,Sxe=.99,kxe=/[\\\/_+.#"@\[\(\{&]/,Ixe=/[\\\/_+.#"@\[\(\{&]/g,Fxe=/[\s-]/,Y8=/[\s-]/g;function p_(e,t,r,n,s,o,i){if(o===t.length)return s===e.length?FS:Sxe;var l=`${s},${o}`;if(i[l]!==void 0)return i[l];for(var c=n.charAt(o),u=r.indexOf(c,s),d=0,f,h,m,g;u>=0;)f=p_(e,t,r,n,u+1,o+1,i),f>d&&(u===s?f*=FS:kxe.test(e.charAt(u-1))?(f*=Exe,m=e.slice(s,u-1).match(Ixe),m&&s>0&&(f*=Math.pow(U1,m.length))):Fxe.test(e.charAt(u-1))?(f*=jxe,g=e.slice(s,u-1).match(Y8),g&&s>0&&(f*=Math.pow(U1,g.length))):(f*=Bxe,s>0&&(f*=Math.pow(U1,u-s))),e.charAt(u)!==t.charAt(o)&&(f*=Nxe)),(f<O1&&r.charAt(u-1)===n.charAt(o+1)||n.charAt(o+1)===n.charAt(o)&&r.charAt(u-1)!==n.charAt(o))&&(h=p_(e,t,r,n,u+1,o+2,i),h*O1>f&&(f=h*O1)),f>d&&(d=f),u=r.indexOf(c,u+1);return i[l]=d,d}function TS(e){return e.toLowerCase().replace(Y8," ")}function Txe(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,p_(e,t,TS(e),TS(t),0,0,{})}var Tf='[cmdk-group=""]',Q1='[cmdk-group-items=""]',Pxe='[cmdk-group-heading=""]',X8='[cmdk-item=""]',PS=`${X8}:not([aria-disabled="true"])`,g_="cmdk-item-select",Qd="data-value",Lxe=(e,t,r)=>Txe(e,t,r),Z8=A.createContext(void 0),Wh=()=>A.useContext(Z8),J8=A.createContext(void 0),vj=()=>A.useContext(J8),eQ=A.createContext(void 0),tQ=A.forwardRef((e,t)=>
1354{let r=Vd(()=>{var S,Q;return{search:"",value:(Q=(S=e.value)!=null?S:e.defaultValue)!=null?Q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Vd(()=>new Set),s=Vd(()=>new Map),o=Vd(()=>new Map),i=Vd(()=>new Set),l=rQ(e),{label:c,children:u,value:d,onValueChange:f,filter:h,shouldFilter:m,loop:g,disablePointerSelection:p=!1,vimBindings:x=!0,...y}=e,b=la(),j=la(),C=la(),T=A.useRef(null),L=qxe();$u(()=>{if(d!==void 0){let S=d.trim();r.current.value=S,P.emit()}},[d]),$u(()=>{L(6,H)},[]);let P=A.useMemo(()=>({subscribe:S=>(i.current.add(S),()=>i.current.delete(S)),snapshot:()=>r.current,setState:(S,Q,z)=>{var W,ne,X,te;if(!Object.is(r.current[S],Q)){if(r.current[S]=Q,S==="search")D(),O(),L(1,k);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let fe=document.getElementById(C);fe?fe.focus():(W=document.getElementById(b))==null||W.focus()}if(L(7,()=>{var fe;r.current.selectedItemId=(fe=U())==null?void 0:fe.id,P.emit()}),z||L(5,H),((ne=l.current)==null?void 0:ne.value)!==void 0){let fe=Q??"";(te=(X=l.current).onValueChange)==null||te.call(X,fe);return}}P.emit()}},emit:()=>{i.current.forEach(S=>S())}}),[]),I=A.useMemo(()=>({value:(S,Q,z)=>{var W;Q!==((W=o.current.get(S))==null?void 0:W.value)&&(o.current.set(S,{value:Q,keywords:z}),r.current.filtered.items.set(S,E(Q,z)),L(2,()=>{O(),P.emit()}))},item:(S,Q)=>(n.current.add(S),Q&&(s.current.has(Q)?s.current.get(Q).add(S):s.current.set(Q,new Set([S]))),L(3,()=>{D(),O(),r.current.value||k(),P.emit()}),()=>{o.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let z=U();L(4,()=>{D(),z?.getAttribute("id")===S&&k(),P.emit()})}),group:S=>(s.current.has(S)||s.current.set(S,new Set),()=>{o.current.delete(S),s.current.delete(S)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:C,labelId:j,listInnerRef:T}),[]);function E(S,Q){var z,W;let ne=(W=(z=l.current)==null?void 0:z.filter)!=null?W:Lxe;return S?ne(S,r.current.search,Q):0}function O(){if(!r.current.search||l.current.shouldFilter===!1)return;let S=r.current.filtered.items,Q=[];r.current.filtered.groups.forEach(W=>{let ne=s.current.get(W),X=0;ne.forEach(te=>{let fe=S.get(te);X=Math.max(fe,X)}),Q.push([W,X])});let z=T.current;ee().sort((W,ne)=>{var X,te;let fe=W.getAttribute("id"),pe=ne.getAttribute("id");return((X=S.get(pe))!=null?X:0)-((te=S.get(fe))!=null?te:0)}).forEach(W=>{let ne=W.closest(Q1);ne?ne.appendChild(W.parentElement===ne?W:W.closest(`${Q1} > *`)):z.appendChild(W.parentElement===z?W:W.closest(`${Q1} > *`))}),Q.sort((W,ne)=>ne[1]-W[1]).forEach(W=>{var ne;let X=(ne=T.current)==null?void 0:ne.querySelector(`${Tf}[${Qd}="${encodeURIComponent(W[0])}"]`);X?.parentElement.appendChild(X)})}function k(){let S=ee().find(z=>z.getAttribute("aria-disabled")!=="true"),Q=S?.getAttribute(Qd);P.setState("value",Q||void 0)}function D(){var S,Q,z,W;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let ne=0;for(let X of n.current){let te=(Q=(S=o.current.get(X))==null?void 0:S.value)!=null?Q:"",fe=(W=(z=o.current.get(X))==null?void 0:z.keywords)!=null?W:[],pe=E(te,fe);r.current.filtered.items.set(X,pe),pe>0&&ne++}for(let[X,te]of s.current)for(let fe of te)if(r.current.filtered.items.get(fe)>0){r.current.filtered.groups.add(X);break}r.current.filtered.count=ne}function H(){var S,Q,z;let W=U();W&&(((S=W.parentElement)==null?void 0:S.firstChild)===W&&((z=(Q=W.closest(Tf))==null?void 0:Q.querySelector(Pxe))==null||z.scrollIntoView({block:"nearest"})),W.scrollIntoView({block:"nearest"}))}function U(){var S;return(S=T.current)==null?void 0:S.querySelector(`${X8}[aria-selected="true"]`)}function ee(){var S;return Array.from(((S=T.current)==null?void 0:S.querySelectorAll(PS))||[])}function ae(S){let Q=ee()[S];Q&&P.setState("value",Q.getAttribute(Qd))}function V(S){var Q;let z=U(),W=ee(),ne=W.findIndex(te=>te===z),X=W[ne+S];(Q=l.current)!=null&&Q.loop&&(X=ne+S<0?W[W.length-1]:ne+S===W.length?W[0]:W[ne+S]),X&&P.setState("value",X.getAttribute(Qd))}function q(S){let Q=U(),z=Q?.closest(Tf),W;for(;z&&!W;)z=S>0?zxe(z,Tf):$xe(z,Tf),W=z?.querySelector(PS);W?P.setState("value",W.getAttribute(Qd)):V(S)}let G=()=>ae(ee().length-1),Ae=S=>{S.preventDefault(),S.metaKey?G():S.altKey?q(1):V(1)},se=S=>{S.preventDefault(),S.metaKey?ae(0):S.altKey?q(-1):V(-1)};return A.createElement(_t.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var Q;(Q=y.onKeyDown)==null||Q.call(y,S);let z=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||z))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&Ae(S);break}case"ArrowDown":{Ae(S);break}case"p":case"k":{x&&S.ctrlKey&&se(S);break}case"ArrowUp":{se(S);break}case"Home":{S.preventDefault(),ae(0);break}case"End":{S.preventDefault(),G();break}case"Enter":{S.preventDefault();let W=U();if(W){let ne=new Event(g_);W.dispatchEvent(ne)}}}}},A.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:Gxe},c),Bv(e,S=>A.createElement(J8.Provider,{value:P},A.createElement(Z8.Provider,{value:I},S))))}),Dxe=A.forwardRef((e,t)=>
vendor: 4,453 bytes, line 1354
1354{var r,n;let s=la(),o=A.useRef(null),i=A.useContext(eQ),l=Wh(),c=rQ(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:i?.forceMount;$u(()=>{if(!u)return l.item(s,i?.id)},[u]);let d=nQ(s,o,[e.value,e.children,o],e.keywords),f=vj(),h=jc(L=>L.value&&L.value===d.current),m=jc(L=>u||l.filter()===!1?!0:L.search?L.filtered.items.get(s)>0:!0);A.useEffect(()=>{let L=o.current;if(!(!L||e.disabled))return L.addEventListener(g_,g),()=>L.removeEventListener(g_,g)},[m,e.onSelect,e.disabled]);function g(){var L,P;p(),(P=(L=c.current).onSelect)==null||P.call(L,d.current)}function p(){f.setState("value",d.current,!0)}if(!m)return null;let{disabled:x,value:y,onSelect:b,forceMount:j,keywords:C,...T}=e;return A.createElement(_t.div,{ref:xl(o,t),...T,id:s,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||l.getDisablePointerSelection()?void 0:p,onClick:x?void 0:g},e.children)}),Rxe=A.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:s,...o}=e,i=la(),l=A.useRef(null),c=A.useRef(null),u=la(),d=Wh(),f=jc(m=>s||d.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);$u(()=>d.group(i),[]),nQ(i,l,[e.value,e.heading,c]);let h=A.useMemo(()=>({id:i,forceMount:s}),[s]);return A.createElement(_t.div,{ref:xl(l,t),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&A.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Bv(e,m=>A.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},A.createElement(eQ.Provider,{value:h},m))))}),Mxe=A.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,s=A.useRef(null),o=jc(i=>!i.search);return!r&&!o?null:A.createElement(_t.div,{ref:xl(s,t),...n,"cmdk-separator":"",role:"separator"})}),Oxe=A.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,s=e.value!=null,o=vj(),i=jc(u=>u.search),l=jc(u=>u.selectedItemId),c=Wh();return A.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),A.createElement(_t.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:s?e.value:i,onChange:u=>{s||o.setState("search",u.target.value),r?.(u.target.value)}})}),Uxe=A.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...s}=e,o=A.useRef(null),i=A.useRef(null),l=jc(u=>u.selectedItemId),c=Wh();return A.useEffect(()=>{if(i.current&&o.current){let u=i.current,d=o.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let m=u.offsetHeight;d.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(f),h.unobserve(u)}}},[]),A.createElement(_t.div,{ref:xl(o,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},Bv(e,u=>A.createElement("div",{ref:xl(i,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Qxe=A.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:s,contentClassName:o,container:i,...l}=e;return A.createElement(Eh,{open:r,onOpenChange:n},A.createElement(Bh,{container:i},A.createElement(ed,{"cmdk-overlay":"",className:s}),A.createElement(td,{"aria-label":e.label,"cmdk-dialog":"",className:o},A.createElement(tQ,{ref:t,...l}))))}),Vxe=A.forwardRef((e,t)=>jc(r=>r.filtered.count===0)?A.createElement(_t.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Hxe=A.forwardRef((e,t)=>{let{progress:r,children:n,label:s="Loading...",...o}=e;return A.createElement(_t.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},Bv(e,i=>A.createElement("div",{"aria-hidden":!0},i)))}),Ws=Object.assign(tQ,{List:Uxe,Item:Dxe,Input:Oxe,Group:Rxe,Separator:Mxe,Dialog:Qxe,Empty:Vxe,Loading:Hxe});function zxe(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function $xe(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function rQ(e){let t=A.useRef(e);return $u(()=>{t.current=e}),t}var $u=typeof window>"u"?A.useEffect:A.useLayoutEffect;function Vd(e){let t=A.useRef();return t.current===void 0&&(t.current=e()),t}function jc(e){let t=vj(),r=()=>e(t.snapshot());return A.useSyncExternalStore(t.subscribe,r,r)}function nQ(e,t,r,n=[]){let s=A.useRef(),o=Wh();return $u(()=>{var i;let l=(()=>{var u;
1354for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():s.current}})(),c=n.map(u=>u.trim());o.value(e,l,c),(i=t.current)==null||i.setAttribute(Qd,l),s.current=l}),s}var qxe=()=>{let[e,t]=A.useState(),r=Vd(()=>new Map);return $u(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,s)=>{r.current.set(n,s),t({})}};function Kxe(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Bv({asChild:e,children:t},r){return e&&A.isValidElement(t)?A.cloneElement(Kxe(t),{ref:t.ref},r(t.props.children)):r(t)}var Gxe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const yj=A.forwardRef(({className:e,...t},r)=>a.jsx(Ws,{ref:r,className:je("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));yj.displayName=Ws.displayName;const P8e=({children:e,...t})=>a.jsx(Qa,{...t,children:a.jsx(Ba,{className:"overflow-hidden p-0 shadow-lg",children:a.jsx(yj,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),aQ=A.forwardRef(({className:e,...t},r)=>a.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[a.jsx(vc,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsx(Ws.Input,{ref:r,className:je("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));aQ.displayName=Ws.Input.displayName;const sQ=A.forwardRef(({className:e,...t},r)=>a.jsx(Ws.List,{ref:r,className:je("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));sQ.displayName=Ws.List.displayName;const oQ=A.forwardRef((e,t)=>a.jsx(Ws.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));oQ.displayName=Ws.Empty.displayName;const iQ=A.forwardRef(({className:e,...t},r)=>a.jsx(Ws.Group,{ref:r,className:je("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));iQ.displayName=Ws.Group.displayName;const Wxe=A.forwardRef(({className:e,...t},r)=>a.jsx(Ws.Separator,{ref:r,className:je("-mx-1 h-px bg-border",e),...t}));Wxe.displayName=Ws.Separator.displayName;const lQ=A.forwardRef(({className:e,...t},r)=>a.jsx(Ws.Item,{ref:r,className:je("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));lQ.displayName=Ws.Item.displayName;const Pf=[{code:"BR",name:"Brasil",flag:"ð§ð·",dialCode:"+55",mask:"(99) 99999-9999"},{code:"US",name:"Estados Unidos",flag:"ðºð¸",dialCode:"+1",mask:"(999) 999-9999"},{code:"PT",name:"Portugal",flag:"ðµð¹",dialCode:"+351",mask:"999 999 999"},{code:"AR",name:"Argentina",flag:"ð¦ð·",dialCode:"+54",mask:"(99) 9999-9999"},{code:"MX",name:"México",flag:"ð²ð½",dialCode:"+52",mask:"(99) 9999-9999"},{code:"CO",name:"Colômbia",flag:"ð¨ð´",dialCode:"+57",mask:"(999) 999-9999"},{code:"CL",name:"Chile",flag:"ð¨ð±",dialCode:"+56",mask:"9 9999-9999"},{code:"PE",name:"Peru",flag:"ðµðª",dialCode:"+51",mask:"999 999 999"},{code:"ES",name:"Espanha",flag:"ðªð¸",dialCode:"+34",mask:"999 999 999"},{code:"DE",name:"Alemanha",flag:"ð©ðª",dialCode:"+49",mask:"9999 9999999"},{code:"FR",name:"França",flag:"ð«ð·",dialCode:"+33",mask:"9 99 99 99 99"},{code:"GB",name:"Reino Unido",flag:"ð¬ð§",dialCode:"+44",mask:"9999 999999"},{code:"IT",name:"Itália",flag:"ð®ð¹",dialCode:"+39",mask:"999 999 9999"}
1354,{code:"AO",name:"Angola",flag:"ð¦ð´",dialCode:"+244",mask:"999 999 999"},{code:"MZ",name:"Moçambique",flag:"ð²ð¿",dialCode:"+258",mask:"99 999 9999"}],th=A.forwardRef(({className:e,value:t="",onChange:r,defaultCountry:n="BR",allowCountryChange:s=!0,error:o,showValidation:i=!0,compact:l=!1,disabled:c,...u},d)=>{const[f,h]=A.useState(Pf.find(I=>I.code===n)||Pf[0]),[m,g]=A.useState(!1),[p,x]=A.useState(""),[y,b]=A.useState(null),[j,C]=A.useState(!1);A.useEffect(()=>{if(t){const I=u0(t);I.startsWith("55")&&I.length>=12?(h(Pf.find(E=>E.code==="BR")||Pf[0]),x(pm(I.substring(2)))):I.length>=10?x(pm(I)):x(t)}},[]);const T=I=>{let E=I.target.value;const O=f.code==="BR",k=u0(E);if(k.length>(O?11:15))return;O&&(E=pm(k)),x(E);const D=u0(f.dialCode);if(O&&k.length>=10){const H=jv(k);b(H.error||null),C(H.isValid);const U=`${f.dialCode} ${E}`;r?.(k,H.isValid,U)}else if(k.length>0){const H=O?!1:k.length>=6;C(H),b(O||H?null:"Número muito curto");const U=`${f.dialCode} ${E}`,ee=O?k:`${D}${k}`;r?.(ee,H,U)}else C(!1),b(null),r?.("",!1,"")},L=I=>{h(I),g(!1),x(""),b(null),C(!1),r?.("",!1,"")},P=o||i&&y;return a.jsxs("div",{className:"w-full",children:[a.jsxs("div",{className:je("flex",l?"gap-1":"gap-2"),children:[s?a.jsxs(kC,{open:m,onOpenChange:g,children:[a.jsx(IC,{asChild:!0,children:a.jsxs(Oe,{variant:"outline",role:"combobox","aria-expanded":m,disabled:c,className:je("justify-between shrink-0 bg-background/80",l?"w-[65px] h-8 px-1.5":"w-[75px] h-8 md:h-11 md:w-[85px] px-2"),children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:l?"text-base":"text-lg",children:f.flag}),!l&&a.jsx("span",{className:"text-xs text-muted-foreground",children:f.dialCode})]}),a.jsx(rs,{className:"h-3 w-3 shrink-0 opacity-50"})]})}),a.jsx(dv,{className:"w-[250px] p-0 z-[9999] bg-popover",align:"start",children:a.jsxs(yj,{children:[a.jsx(aQ,{placeholder:"Buscar paÃs..."}),a.jsxs(sQ,{children:[a.jsx(oQ,{children:"PaÃs não encontrado."}),a.jsx(iQ,{children:Pf.map(I=>a.jsxs(lQ,{value:`${I.name} ${I.dialCode}`,onSelect:()=>L(I),children:[a.jsx($s,{className:je("mr-2 h-4 w-4",f.code===I.code?"opacity-100":"opacity-0")}),a.jsx("span",{className:"mr-2",children:I.flag}),a.jsx("span",{className:"flex-1",children:I.name}),a.jsx("span",{className:"text-muted-foreground text-xs",children:I.dialCode})]},I.code))})]})]})})]}):a.jsxs("div",{className:je("flex items-center justify-center shrink-0 border rounded-md bg-muted",l?"w-[55px] h-8 px-1.5":"w-[70px] h-8 md:h-11 md:w-[85px] px-2"),children:[a.jsx("span",{className:l?"text-base":"text-lg",children:f.flag}),a.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:f.dialCode})]}),a.jsxs("div",{className:"relative flex-1",children:[a.jsx(Jt,{ref:d,type:"tel",inputMode:"numeric",value:p,onChange:T,disabled:c,placeholder:f.code==="BR"?"(11) 99999-9999":"Número",className:je(l?"h-8":"h-8 md:h-11",P&&"border-destructive focus-visible:ring-destructive",j&&i&&p&&"border-green-500 focus-visible:ring-green-500",e),...u}),i&&p&&a.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:j?a.jsx($s,{className:"h-4 w-4 text-green-500"}):y?a.jsx("span",{className:"text-destructive text-xs",children:"!"}):null})]})]}),P&&a.jsx("p",{className:"text-xs text-destructive mt-1",children:P})]})});th.displayName="PhoneInput";function Yxe({cohort:e,onChange:t,className:r=""}){const n=fne(e);return n?a.jsxs("div",{className:`${gu.cohortChip} ${r}`,children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:gu.cohortLabel,children:"Turma"}),a.jsx("p",{className:gu.cohortValue,title:n,children:n})]}),t&&a.jsx("button",{type:"button",onClick:t,className:gu.cohortAction,children:"Alterar"})]}):null}const LS={full:780,medium:660};function d0(e){return e>=LS.full?"full":e>=LS.medium?"medium":"compact"}const Xxe={full:{input:48,label:16,labelGap:4,stackGap:12,chipRow:44,cta:56,ctaGap:14,containerPadding:40,handle:28,title:26,product:22,cohortChip:38,subtitle:20,socialProof:40},medium:{input:46,label:15,labelGap:3,stackGap:10,chipRow:42,cta:52,ctaGap:12,containerPadding:32,handle:24,title:24,product:20,cohortChip:36,subtitle:18,socialProof:0},compact:{input:44,label:14,labelGap:2,stackGap:8,chipRow:40,cta:48,ctaGap:10,containerPadding:24,handle:20,title:22,product:18,cohortChip:34,subt
1354itle:0,socialProof:0}},Zxe={density:"compact",show_social_proof:!1,show_subtitle:!0,show_cohort:!0,sticky_cta:!0,desktop_columns:2};function cQ(e,t,r){const n={...Zxe,...t??{}};return{showTitle:!0,showProduct:r.hasProduct,showCohortChip:r.hasCohort&&n.show_cohort!==!1,showSubtitle:e==="full"&&n.show_subtitle!==!1,showSocialProof:e==="full"&&n.show_social_proof===!0}}const Jxe={interesse_curso:e=>!!(e.courseId||e.courseTitle),curso:e=>!!(e.courseId||e.courseTitle),interesse:e=>!!(e.courseId||e.categoryName),area_interesse:e=>!!(e.courseId||e.categoryName),turma:e=>!!(e.cohortId||e.cohortCode),cohort:e=>!!(e.cohortId||e.cohortCode),modalidade:e=>!!e.modality,formato:e=>!!e.modality,format:e=>!!e.modality,lead_type:e=>e.audience==="pf",tipo_pessoa:e=>e.audience==="pf"};function uQ(e,t){const r=Jxe[e];return!!r?.(t)}const eve={curso_com_turma:["name","whatsapp","email","quando_fazer"],curso_sem_turma:["name","whatsapp","email","turma","quando_fazer"],digital:["name","whatsapp","email"],b2b:["name","whatsapp","email","company","quantidade_pessoas"],full_access:["name","whatsapp","email","objetivo"],generico:["name","whatsapp","email","quando_fazer"]},DS=["name","nome_completo","whatsapp","telefone","email","company","quantidade_pessoas","objetivo","turma","modalidade","quando_fazer","quando_pretende"];function RS(e){const t=DS.indexOf(e);return t===-1?DS.length:t}function L8e(e,t){const r=t.variant??"generico",n=new Set(eve[r]);return[...e.filter(o=>!(uQ(o.name,t)||!n.has(o.name)&&!o.required))].sort((o,i)=>RS(o.name)-RS(i.name))}function tve({fields:e,chrome:t,tier:r,columns:n=1}){const s=Xxe[r];let o=s.containerPadding+s.handle;t.showTitle&&(o+=s.title),t.showProduct&&(o+=s.product),t.showCohortChip&&(o+=s.cohortChip),t.showSubtitle&&(o+=s.subtitle),t.showSocialProof&&(o+=s.socialProof);const i=e.filter(f=>f.type==="chips"),l=e.filter(f=>f.type!=="chips"),c=Math.max(1,n),u=Math.ceil(l.length/c),d=s.label+s.labelGap+s.input;u>0&&(o+=u*d+(u-1)*s.stackGap);for(const f of i)o+=s.stackGap+s.label+s.labelGap+s.chipRow;return(u>0||i.length>0)&&(o+=s.stackGap),o+=s.ctaGap+s.cta,o}const rve=[{id:"iphone-se-1",label:"iPhone SE (1ª ger.)",width:320,height:568,browserChrome:113,safeBottom:0},{id:"android-small",label:"Android pequeno",width:360,height:740,browserChrome:116,safeBottom:24},{id:"iphone-se-3",label:"iPhone SE (2ª/3ª ger.)",width:375,height:667,browserChrome:115,safeBottom:0},{id:"iphone-14",label:"iPhone 13/14",width:390,height:844,browserChrome:116,safeBottom:34},{id:"iphone-16",label:"iPhone 15/16",width:393,height:852,browserChrome:116,safeBottom:34},{id:"iphone-xr",label:"iPhone XR/11",width:414,height:896,browserChrome:116,safeBottom:34},{id:"iphone-pro-max",label:"iPhone Pro Max",width:430,height:932,browserChrome:116,safeBottom:34}];function nve(e){return e.height-e.browserChrome-e.safeBottom}const ave=.92;function sve(e,t){return e<=t*ave?"fits":e<=t?"tight":"overflow"}function D8e({fields:e,config:t,context:r,devices:n=rve}){return n.map(s=>{const o=nve(s),i=d0(o),l=cQ(i,t,r),c=tve({fields:e,chrome:l,tier:i,columns:1});return{device:s,tier:i,needed:c,available:o,verdict:sve(c,o)}})}function R8e(e){return e.some(t=>t.verdict==="overflow")?"overflow":e.some(t=>t.verdict==="tight")?"tight":"fits"}const M8e={fits:{emoji:"ð¢",label:"Cabe em uma tela",tone:"success"},tight:{emoji:"ð¡",label:"Próximo ao limite",tone:"warning"},overflow:{emoji:"ð´",label:"Necessita rolagem",tone:"danger"}};function ove(){const[e,t]=A.useState(()=>{if(typeof window>"u")return{height:700,width:390,tier:d0(700),keyboardOpen:!1,keyboardInset:0};const r=window.visualViewport?.height??window.innerHeight;return{height:r,width:window.innerWidth,tier:d0(r),keyboardOpen:!1,keyboardInset:0}});return A.useEffect(()=>{if(typeof window>"u")return;const r=()=>{const s=window.visualViewport,o=window.innerHeight,i=s?.height??o,l=Math.max(0,Math.round(o-i)),c=l>120;t({height:Math.round(i),width:window.innerWidth,tier:d0(c?o:i),keyboardOpen:c,keyboardInset:l})};r();const n=window.visualViewport;return n?.addEventListener("resize",r),n?.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{n?.removeEventListener("resize",r),n?.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r)}},[]),e}const dQ=["name","nome_completo","email","whatsapp","company_name","company"];function AQ(e,t){return dQ.includes(e.name)?!0:!(!t.conditionMet||uQ(e.name,t.conversion)||t.isFormatField(e.name)&&!t.shouldAskFormat||t.formType!=="proposta_corporativa"&&t.hasCourseOrCategory&&(e.name==="interesse"||e.name==="interest"||e.name==="area_interesse"))}function ive(e,t){return e.filter(r=>r.required&&AQ(r,t(r)))}const lve=e=>({online_ao_vivo:"Online ao Vivo",online_ou_presencial:"Online ou Presencial",presencial_sp:"Presencial em SP",curs
1354o_digital:"Curso Digital",ead:"EAD",online:"Online",presencial:"Presencial"})[e]||e,O8e=e=>({iniciante:"Iniciante",intermediario:"Intermediário",avancado:"Avançado"})[e]||e,cve=["online","presencial","ead","online_ao_vivo","online_ou_presencial","presencial_sp","curso_digital"],uve=new Set(cve);function MS(e){return typeof e=="string"&&uve.has(e)}function A0(e){if(MS(e))return e;if(typeof e!="string")return null;const t=e.trim().toLowerCase().replace(/[\s-]+/g,"_");return MS(t)?t:{mentored:"online_ao_vivo",digital:"curso_digital",ao_vivo:"online_ao_vivo",online_live:"online_ao_vivo"}[t]??null}const dve=e=>lve(e),Ave=[{value:"online_ao_vivo",label:"Turma com data"},{value:"curso_digital",label:dve("curso_digital")}],fve=new Set(["format","formato","modalidade","modality"]),OS=e=>fve.has(e.trim().toLowerCase());function mve(e){const t=A0(e.selectedFormat);if(t)return{kind:"known",value:t};const r=A0(e.cohortFormat);if(r)return{kind:"known",value:r};if(e.hasDigitalVersion===!0)return{kind:"ask"};const n=A0(e.courseFormat);return n?{kind:"known",value:n}:{kind:"unknown"}}let f0=null;function hve(){return f0||(f0=`fs_${Date.now()}_${Math.random().toString(36).slice(2,8)}`),f0}function pve(){f0=null}function gve(e){if(typeof window>"u")return;const t=window;t.__lvSignals||(t.__lvSignals={formTrackFailures:0,lastFormTrackError:null}),t.__lvSignals.formTrackFailures+=1;const r=e;t.__lvSignals.lastFormTrackError={code:r?.code,message:r?.message,at:new Date().toISOString()}}function US(e,t){const r=t;console.warn(`[FormTracker] ${e} failed`,{code:r?.code,message:r?.message,details:r?.details}),gve(t)}async function fQ(e){const t=hve();try{const r={session_id:t,form_type:e.formType,source_component:e.sourceComponent,step_reached:e.stepReached,total_steps:e.totalSteps,completed:e.completed??!1,scheduled:e.scheduled??!1,priority_requested:e.priorityRequested??!1,page_url:e.pageUrl||(typeof window<"u"?window.location.href:null)};e.formConfigId&&(r.form_config_id=e.formConfigId),e.leadId&&(r.lead_id=e.leadId),e.submissionData&&(r.submission_data=e.submissionData);const{data:n,error:s}=await J.rpc("track_form_submission",{p_payload:r});return s?(US("rpc",s),null):n??null}catch(r){return US("exception",r),null}}const mQ=Object.freeze(Object.defineProperty({__proto__:null,resetFormSession:pve,trackFormStep:fQ},Symbol.toStringTag,{value:"Module"}));class xve{constructor(t){this.options=t}events=[];startedAt=Date.now();completedFields=new Set;firstFocusSent=!1;finished=!1;flushTimer=null;push(t,r,n){this.events.push({event:t,field:r,missing:n,at:Date.now()-this.startedAt})}scheduleFlush(t=4e3){this.flushTimer&&clearTimeout(this.flushTimer),this.flushTimer=setTimeout(()=>void this.flush(),t)}open(){this.startedAt=Date.now(),this.push("form_open"),this.flush()}focus(t){this.push("field_focus",t),this.firstFocusSent||(this.firstFocusSent=!0,Ju("form_start",{form_type:this.options.formType})),this.scheduleFlush()}complete(t,r){!(typeof r=="string"?r.trim().length>0:r!=null)||this.completedFields.has(t)||(this.completedFields.add(t),this.push("field_complete",t),this.scheduleFlush())}intentSelected(t){this.push("intent_selected",t),this.scheduleFlush(1500)}submit(){this.finished=!0,this.push("form_submit"),this.flush(!0)}blocked(t){this.push("form_blocked",void 0,t),this.flush(!0)}abandon(){this.finished||!this.firstFocusSent||(this.finished=!0,this.push("form_abandon"),this.flush(!0))}get lastCompletedField(){for(let t=this.events.length-1;t>=0;t-=1){const r=this.events[t];if(r.event==="field_complete"&&r.field)return r.field}return null}async flush(t=!1){this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null),this.events.length&&await fQ({formType:this.options.formType,formConfigId:this.options.formConfigId,sourceComponent:this.options.sourceComponent,stepReached:1,totalSteps:1,completed:!1,pageUrl:this.options.pageUrl,submissionData:{field_events:this.events,fields_completed:[...this.completedFields],last_completed_field:this.lastCompletedField,abandoned:this.events.some(r=>r.event==="form_abandon"),blocked:this.events.some(r=>r.event==="form_blocked"),blocked_fields:[...new Set(this.events.flatMap(r=>r.missing??[]))],elapsed_ms:Date.now()-this.startedAt}})}}function vve(e){if(typeof window>"u")return()=>{};const t=()=>{document.visibilityState==="hidden"&&e.abandon()},r=()=>e.abandon();return document.addEventListener("visibilitychange",t),window.addEventListener("pagehide",r),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("pagehide",r)}}function QS(e){const t=e;return!t||typeof t.name!="string"||!t.name?null:{name:t.name,value:typeof t.value=="string"?t.value:""}}const ag=e=>{const t=String(e??"").toLowerCase();return t.includes("pj")||t.includes("empresa")||t.includes("corporativ")},sd=({formType:e,isOpen:t,onClose:r,courseTitle:n,categoryName:s,itemType:
1354o,cohortInfo:i,courseId:l,discountInfo:c,selectedCourseFormat:u,hasDigitalVersion:d,courseFormat:f,quizAnswers:h,jobAccess:m,onJobAccessGranted:g})=>{const p=pj(),{tier:x}=ove(),[y,b]=A.useState(!1),j=A.useRef(!1),[C,T]=A.useState(null),[L,P]=A.useState(!1),[I,E]=A.useState(!1),[O,k]=A.useState(!1),[D,H]=A.useState(null),[U,ee]=A.useState(null),[ae,V]=A.useState(null),[q,G]=A.useState([]),[Ae,se]=A.useState([]),{config:S,shouldShowPopup:Q}=xj(),{showUpsell:z,upsellConfig:W,checkForUpsell:ne,handleUpsellAccept:X,handleUpsellDecline:te,closeUpsell:fe}=G8(),{register:pe,handleSubmit:_e,formState:{errors:xe},setValue:Be,watch:He,reset:R}=JU({mode:"onTouched",reValidateMode:"onChange"}),be=He(),tt=Cxe(x),at=e==="proposta_corporativa"||e==="team_pass",De={courseId:l,courseTitle:n,categoryName:s,cohortId:i?.cohort_id,cohortCode:i?.cohort_code,modality:i?.format,audience:at?null:"pf"},le=ie=>AQ(ie,{...Fe,conditionMet:ct(ie,be)}),me=mve({cohortFormat:i?.format,selectedFormat:u,hasDigitalVersion:d,courseFormat:f}),we=me.kind==="ask",Fe={conversion:De,conditionMet:!0,shouldAskFormat:we,isFormatField:OS,formType:e,hasCourseOrCategory:!!(n||s)},ze=cQ(x,null,{hasCohort:!!i,hasProduct:!!(n||s)}),Pe=A.useRef(null);A.useEffect(()=>{if(!t)return;const ie=new xve({formType:e,formConfigId:C?.id,sourceComponent:"unified-modal"});Pe.current=ie,ie.open();const Ue=vve(ie);return()=>{ie.abandon(),Ue(),Pe.current=null}},[t,e]);const $e={onFocusCapture:ie=>{const Ue=QS(ie.target);Ue?.name&&Pe.current?.focus(Ue.name)},onBlurCapture:ie=>{const Ue=QS(ie.target);Ue?.name&&Pe.current?.complete(Ue.name,Ue.value)}},ct=(ie,Ue)=>{const dt=ie.conditional_logic;return dt?.show_when?.length?dt.show_when.every(Re=>{const Xe=Ue?.[Re.field_key];switch(Re.operator){case"equals":return Xe===Re.value;case"not_equals":return Xe!==Re.value;case"contains":return Array.isArray(Xe)?Xe.includes(Re.value):String(Xe||"").includes(Re.value);default:return!0}}):!0};A.useEffect(()=>{if(t)return mv(),()=>hv()},[t]),A.useEffect(()=>{t&&Promise.all([gt(),pt(),it()])},[t,e]),A.useEffect(()=>{C?.fields_config&&C.fields_config.forEach(ie=>{ie.type==="radio"&&ie.options&&ie.options.length>0&&(He(ie.name)||Be(ie.name,ie.options[0].value))})},[C?.id]);const pt=async()=>{try{const{data:ie,error:Ue}=await J.from("categories").select("id, name").eq("approval_status","approved").order("display_order",{ascending:!0});if(Ue)throw Ue;ie&&ie.length>0&&G(ie)}catch(ie){console.error("Erro ao carregar categorias:",ie)}},it=async()=>{try{const{data:ie,error:Ue}=await J.from("courses").select("id, title, slug").eq("is_active",!0).order("title",{ascending:!0});if(Ue)throw Ue;ie&&ie.length>0&&se(ie)}catch(ie){console.error("Erro ao carregar cursos:",ie)}},gt=async()=>{P(!1);try{const{data:ie,error:Ue}=await J.from("form_configs").select("id, type, title, subtitle, fields_config, button_text, scheduling_config, success_message").eq("type",e).eq("is_active",!0).maybeSingle();if(Ue){P(!0),console.error("Erro ao carregar configuração:",Ue),et.error("Erro ao carregar formulário");return}if(!ie){P(!0),console.error("Configuração não encontrada para tipo:",e),et.error("Formulário não configurado");return}const dt=ie,Re=!!(n||s),Xe=(dt.fields_config||[]).some(lt=>lt.name==="interesse"||lt.name==="interest"||lt.name==="area_interesse");!Re&&!Xe&&(dt.fields_config=[...dt.fields_config||[],{name:"interesse",label:"Ãrea de interesse",type:"select",required:!0,options:[]}]),T(dt)}catch(ie){P(!0),console.error("Erro ao carregar configuração:",ie)}},st=async ie=>{Pe.current?.submit();let Ue=null;const dt={name:["nome_completo"],nome_completo:["name"],company_name:["company","nomeempresa"],company:["company_name","nomeempresa"],nomeempresa:["company_name","company"]},Re=mt=>{const ot=ie[mt];if(ot!=null&&!(typeof ot=="string"&&ot.trim()===""))return ot;const or=dt[mt]||[];for(const Fr of or){const Ar=ie[Fr];if(Ar!=null&&!(typeof Ar=="string"&&Ar.trim()===""))return Ar}},Xe=ive(C?.fields_config||[],mt=>({...Fe,conditionMet:ct(mt,be)})),lt=mt=>mt==null||typeof mt=="string"&&mt.trim()==="",Le=Xe.filter(mt=>lt(Re(mt.name)));if(Le.length>0){const mt=Le.map(or=>or.label||or.name);Pe.current?.blocked(Le.map(or=>or.name)),console.error("[UnifiedFormModal] envio bloqueado. Campos faltando:",Le.map(or=>or.name)),et.error(mt.length===1?`Falta preencher: ${mt[0]}`:`Faltam preencher: ${mt.join(", ")}`);const ot=document.querySelector(`[name="${Le[0].name}"]`);ot?.scrollIntoView({block:"center",behavior:"smooth"}),ot?.focus?.();return}const ut=C?.fields_config.find(mt=>mt.type==="email");if(ut&&ie[ut.name]&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(ie[ut.name])){et.error("Por favor, insira um email válido");return}const Qt=C?.fields_config.find(mt=>
1354mt.name==="whatsapp"||mt.name==="phone"||mt.label.toLowerCase().includes("whatsapp"));if(Qt&&ie[Qt.name]&&String(ie[Qt.name]).replace(/\D/g,"").length<10){et.error("Por favor, insira um WhatsApp válido");return}if(!(m&&j.current)){m&&(j.current=!0),b(!0);try{const mt={nome_completo:"name",company:"company_name",nomeempresa:"company_name"},ot=C?.fields_config.find(Ft=>Ft.type==="text"&&(Ft.name==="name"||Ft.name==="nome_completo"||Ft.label.toLowerCase().includes("nome completo"))),or=C?.fields_config.find(Ft=>Ft.type==="email"),Fr=C?.fields_config.find(Ft=>Ft.name==="whatsapp"||Ft.name==="phone"||Ft.label.toLowerCase().includes("whatsapp")),Ar=C?.fields_config.find(Ft=>Ft.name==="tipo_pessoa"||Ft.name==="lead_type"),Sr=C?.fields_config.find(Ft=>Ft.name==="interesse"||Ft.name==="interest"),Tr=C?.fields_config.find(Ft=>Ft.name==="nomeempresa"||Ft.name==="company_name"||Ft.name==="empresa"||Ft.label.toLowerCase().includes("empresa")),Pr=C?.fields_config.find(Ft=>Ft.name==="quando_fazer"||Ft.name==="quando_pretende"),fr=C?.fields_config.find(Ft=>Ft.name==="investimento"||Ft.name==="budget"||Ft.label.toLowerCase().includes("investimento")||Ft.label.toLowerCase().includes("investir")),Ns={pedir_informacoes:"contato",fazer_inscricao:"inscricao",download_ebook:"download_ementa",garantir_vaga:"inscricao",team_pass:"contato",proposta_corporativa:"contato"}[e]||"contato";let Qn="imediato";Pr&&ie[Pr.name]?Qn=ie[Pr.name]:Sr&&ie[Sr.name]&&(Qn=ie[Sr.name]);let Tn=n||s||null;const qt=(Ft,po)=>{if(Ft){const Xr=mt[Ft.name],ta=ie[Ft.name]??(Xr?ie[Xr]:void 0);if(ta!=null)return String(ta)}return String(ie[po]??"")},bn=qt(ot,"name").trim(),wn=qt(or,"email").trim().toLowerCase(),ir=qt(Fr,"whatsapp").trim();if(!bn||bn===""){et.error("Por favor, preencha seu nome completo");return}if(!wn||wn===""){et.error("Por favor, preencha seu email");return}if(!ir||ir===""){et.error("Por favor, preencha seu WhatsApp");return}let Yr=at?"pj":"pf";if(Ar){const Ft=String(ie[Ar.name]||"").toLowerCase();(Ft.includes("empresa")||Ft.includes("pj")||Ft.includes("corporativ"))&&(Yr="pj")}const za=me.kind==="known"?me.value:A0(ie.format??ie.modalidade??ie.formato),mn={name:bn,email:wn,whatsapp:ir,lead_type:Yr,interest:Qn,course_title:Tn,source:m?"vagas":Ns,...m&&{job_access:{job_id:m.id}},page_url:window.location.href,form_name:C?.title||"Formulário Unificado",...l&&{course_id:l},...i?.cohort_id&&{cohort_id:i.cohort_id},...i?.cohort_code&&{cohort_code:i.cohort_code},...i?.start_date&&{cohort_start_date:i.start_date},...i?.format&&{modalidade:i.format},...C?.button_text&&{cta_text:C.button_text},...za&&{course_format:za},...c&&{notes:c.tipo==="curso_gratis"?`Cupom: ${c.couponCode} | Comprando: ${c.purchasedCourseTitle} (R$ ${c.originalPrice.toFixed(2)}) | Ganha grátis: ${c.freeCourseName}`:`Cupom: ${c.couponCode} | Desconto: R$ ${c.discount.toFixed(2)} | Valor final: R$ ${c.finalPriceCash.toFixed(2)}`}};if(Tr){const Ft=ie[Tr.name]??ie.empresa??ie.nomeempresa??ie.company_name;Ft&&(mn.company_name=String(Ft).trim())}if(fr&&ie[fr.name]&&(mn.budget=ie[fr.name]),Pr&&ie[Pr.name]&&(mn.quando_pretende=ie[Pr.name]),h&&typeof h=="object"){mn.skillmap_quiz_data=h;const Ft=Array.isArray(h.goals)?h.goals:[],po=Array.isArray(h.interest_areas)?h.interest_areas:[];Ft.length&&(mn.qualification_goal=Ft.join(", ")),h.role&&(mn.cargo=String(h.role)),h.experience_level&&(mn.seniority=String(h.experience_level));const Xr=[`[SkillMap - ${h.source||"widget"} - ${tv()}]`,`Objetivos: ${Ft.join(", ")||"N/A"}`,`Ãreas de interesse: ${po.join(", ")||"N/A"}`,`NÃvel: ${h.experience_level||"N/A"}`,`Cargo: ${h.role||"N/A"}`,`Formato preferido: ${h.preferred_format||"N/A"}`,`Tempo disponÃvel: ${h.time_commitment||"N/A"}`,h.entity_title?`Contexto: ${h.entity_title}`:null].filter(Boolean).join(` 1355`);mn.observacoes=[mn.observacoes,Xr].filter(Boolean).join(` 1356 1357`)}const Ca=await cj(wn,ir);Object.assign(mn,Ca);const qr=C?.scheduling_config,ea=e==="pedir_informacoes"||qr?.enabled||Q(e,"submit");Ue=mn;const $a=await Ut(mn);if(m){g?.($a.jobAccess),R(),r();return}if(R(),ea){const Ft=$a?.lead?.id||$a?.leadId||null;Ft&&H(Ft),V(mn),E(!0)}else r()}catch(mt){if(console.error("Erro ao enviar formulário:",mt),!mt?.__toasted){const ot=rg(mt,"formulario_lead");ng({error:ot,onRetry:m||!Ue?()=>_e(st)():()=>Ut(Ue),context:"formulário de contato"})}}finally{j.current=!1,b(!1)}}},Ut=async(ie,Ue)=>{const dt={...ie,...Ue!==void 0};let Re;try{Re=await MR("submit-public-lead",dt)}catch(lt){console.error("Erro ao inserir lead via edge function:",lt);const Le=rg(lt,"formulario_lead");throw ng({error:Le,onRetry:m?()=>_e(st)():()=>Ut(ie,Ue),context:"cadastro de lead"}),lt.__toasted=!0,lt}if(Re?.error){console.error("Erro retornado pela edge function:",Re.error);const lt=gxe(Re),Le=rg(lt,"formulario_lead");ng({error:Le,onRetry:m?()=>_e(st)():()=>Ut(ie,Ue),context:"cadastro de lead"});const ut=new Error(Re.error);throw ut.__toasted=!0,ut}if(Re&&Re.success===!1){console.error("Edge recusou o lead:",Re);const lt=new Error(typeof Re.message=="string"&&Re.message?Re.message:"Não foi possÃvel registrar sua solicitação.");throw ng({error:rg(lt,"formulario_lead"),onRetry:m?()=>_e(st)():()=>Ut(ie,Ue),context:"cadastro de lead"}),lt.__toasted=!0,lt}if(m){const lt=Re?.jobAccess;if(Re?.success!==!0||!(Re?.leadId||Re?.lead?.id)||!lt||!/^[a-f0-9]{64}$/.test(lt.token)||!(Date.parse(lt.expiresAt)>Date.now()))throw new Error("Cadastro ainda não confirmado. Tente novamente para liberar a vaga.")}et.success(m?"Acesso à s vagas liberado!":C?.success_message||"Solicitação enviada com sucesso!"),Ju("generate_lead",{form_name:C?.title||e,form_type:e,content_name:n||s||void 0,source:ie.source,page_path:window.location.pathname,event_id:ie.event_id});const Xe=Re?.lead?.id||Re?.leadId;Xe&&(H(Xe),m||await ne(e,"submit",Xe));try{const{trackFormStep:lt}=await B(async()=>{const{trackFormStep:Le}=await Promise.resolve().then(()=>mQ);return{trackFormStep:Le}},void 0);await lt({formConfigId:C?.id,formType:e,sourceComponent:"UnifiedFormModal",stepReached:1,totalSteps:1,completed:!0,leadId:Xe??null,pageUrl:window.location.href})}catch(lt){console.warn("[UnifiedFormModal] form_submissions tracking falhou:",lt)}return Re},Lt=async ie=>{const Ue=ae;if(V(null),D&&J.functions.invoke("update-lead-agendou",{body:{leadId:D,agendou_contato:ie}}).then(({error:dt})=>{dt&&console.warn("[UnifiedFormModal] agendou_contato não gravado:",dt)}),ie&&Ue){const dt=C?.scheduling_config;if(dt?.enabled)if(dt.type==="internal"&&dt.calendar_id){ee({name:Ue.name,email:Ue.email,phone:Ue.whatsapp,courseTitle:Ue.course_title,formData:Ue}),E(!1),k(!0);return}else dt.type==="external"&&dt.external_url?window.open(dt.external_url,"_blank"):dt.furar_fila_url&&window.open(dt.furar_fila_url,"_blank");else{const Re=S?.url||"https://cpnow.me/d/dXK6";window.open(Re,"_blank")}}E(!1),r()},St=async()=>{V(null),E(!1),r()},Mt=a.jsxs("div",{className:"relative w-full h-16 sm:h-20 overflow-hidden flex-shrink-0 bg-gradient-to-br from-[#0c1530] via-[#0a1126] to-[#070b18]",children:[a.jsx("div",{className:"absolute -top-10 -left-10 w-40 h-40 rounded-full bg-cyan-500/20 blur-3xl"}),a.jsx("div",{className:"absolute -bottom-12 right-0 w-48 h-48 rounded-full bg-blue-500/15 blur-3xl"}),a.jsx("div",{className:"absolute inset-0 opacity-[0.12]",style:{backgroundImage:"radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px)",backgroundSize:"14px 14px"}}),a.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(110deg, transparent 30%, rgba(56,189,248,0.18) 50%, transparent 70%)",animation:"cinematic-lens-flare 6s ease-in-out infinite"}}),a.jsxs("div",{className:"relative h-full flex items-center justify-between px-4 sm:px-5",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"flex items-center justify-center w-7 h-7 rounded-md bg-cyan-400/15 border border-cyan-300/30",children:a.jsx(Nr,{className:"h-3.5 w-3.5 text-cyan-300"})}),a.jsxs("div",{className:"leading-tight",children:[a.jsxs("p",{className:"text-[11px] sm:text-xs font-semibold tracking-wide text-white",children:["Trainning ",a.jsx("span",{className:"text-cyan-300/90",children:"·"})," Education Center"]}),a.jsx("p",{className:"text-[10px] sm:text-[11px] text-white/55",children:"Resposta em até 24h"})]})]}),a.jsxs("div",{className:"hidden sm:flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-white/5 border border-white/10",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),a.jsx("span",{className:"text-[10px] uppercase tracking-wider text-white/70",children:"Online"})]})]}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-cyan-400/60 to-transparent"})]}),tr=a.jsxs("div",{className:"space-y-1",children:[a.jsx("h2",{className:Rt.headerTitle,children:m?"Sua próxima oportunidade começa aqui":C?.title}),m&&a.jsxs("p",{className:Rt.headerSubtitle,children:["Preencha o cadastro para acessar ",m.title,". A candidatura é uma etapa separada. ",a.jsx("a",{href:"/privacidade",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Privacidade"})]}),ze.showSubtitle&&C?.subtitle&&a.jsx("p",{className:Rt.headerSubtitle,children:C.subtitle}),ze.showProduct&&(n||s)&&a.jsx("p",{className:"text-[13px] font-semibold text-[#F26522] leading-tight truncate",children:n||s}),i&&a.jsx(Yxe,{cohort:i,className:"mt-2"}),c&&a.jsxs("div",{className:`mt-2 p-4 ${Rt.discountBg}`,children:[a.jsxs("div",{className:"flex items-start gap-2 mb-3",children:[a.jsx("div",{className:"p-1.5 bg-green-500/20 rounded-full shrink-0",children:a.jsx(L2,{className:"h-4 w-4 text-green-400"})}),a.jsx("div",{children:a.jsxs("p",{className:"text-sm font-bold text-green-200",children:["â Cupom aplicado: ",c.c
1357ouponCode]})})]}),c.tipo==="curso_gratis"?a.jsxs("div",{className:"space-y-3",children:[c.purchasedCourseTitle&&a.jsxs("div",{className:"p-3 bg-black/30 rounded-lg border border-green-800",children:[a.jsx("p",{className:"text-xs text-green-300 mb-1 font-medium",children:"ð Você está comprando:"}),a.jsx("p",{className:"text-sm font-bold text-green-100",children:c.purchasedCourseTitle}),a.jsxs("p",{className:"text-lg font-bold text-green-200 mt-1",children:["R$ ",c.originalPrice.toFixed(2)]})]}),c.freeCourseName&&a.jsxs("div",{className:"p-3 bg-gradient-to-r from-green-900/50 to-cyan-900/50 rounded-lg border-2 border-green-600",children:[a.jsx("p",{className:"text-xs text-green-300 mb-1 font-medium",children:"ð Ganha GRÃTIS:"}),a.jsx("p",{className:"text-sm font-bold text-green-100",children:c.freeCourseName}),a.jsxs("p",{className:"text-xs text-green-400 mt-1 font-semibold",children:["Valor do bônus: R$ ",(c.freeCoursePrice||c.discount).toFixed(2)]})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("p",{className:"text-xs text-green-400 font-semibold mb-2",children:["Economia: R$ ",c.discount.toFixed(2)]}),a.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-1.5 border-t border-green-800",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-green-300 mb-0.5",children:"Valor à Vista"}),a.jsxs("p",{className:"text-sm font-bold text-green-200",children:["R$ ",c.finalPriceCash.toFixed(2)]})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-green-300 mb-0.5",children:"12x de"}),a.jsxs("p",{className:"text-sm font-bold text-green-200",children:["R$ ",c.finalPriceInstallments.toFixed(2)]})]})]})]})]})]}),wt=()=>C?C.fields_config.filter(ie=>!dQ.includes(ie.name)).map(ie=>{if(!le(ie))return null;const Ue=Array.isArray(ie.conditional_fields)?ie.conditional_fields:[],dt=ie.conditional_field,Xe=[...Ue.filter(Le=>Le?.field&&He(ie.name)===Le.trigger_option),...dt&&He(ie.name)===dt.trigger_option?[dt]:[]][0],lt=!!Xe;return a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsxs($t,{htmlFor:ie.name,className:Rt.label,children:[ie.label," ",ie.required&&"*"]}),ie.type==="textarea"?a.jsxs(a.Fragment,{children:[a.jsx("textarea",{id:ie.name,placeholder:ie.label,className:Rt.textarea,...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):ie.type==="text"||ie.type==="email"||ie.type==="tel"?a.jsxs(a.Fragment,{children:[ie.name.toLowerCase().includes("whatsapp")||ie.name.toLowerCase().includes("celular")||ie.type==="tel"&&ie.name.toLowerCase().includes("telefone")?a.jsx(Jp,{mask:"+99 (99) 99999-9999",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1,minLength:{value:14,message:"Telefone inválido"}}),defaultValue:"+55 ",children:Le=>a.jsx(Jt,{...Le,id:ie.name,type:"tel",placeholder:"+55 (11) 99999-9999",className:`${Rt.input} ${tt}`})}):ie.name.toLowerCase().includes("cpf")?a.jsx(Jp,{mask:"999.999.999-99",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1,minLength:{value:14,message:"CPF inválido"}}),children:Le=>a.jsx(Jt,{...Le,id:ie.name,type:"text",placeholder:ie.label,className:`${Rt.input} ${tt}`})}):ie.name.toLowerCase().includes("cnpj")?a.jsx(Jp,{mask:"99.999.999/9999-99",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1,minLength:{value:18,message:"CNPJ inválido"}}),children:Le=>a.jsx(Jt,{...Le,id:ie.name,type:"text",placeholder:ie.label,className:`${Rt.input} ${tt}`})}):ie.name.toLowerCase().includes("cep")?a.jsx(Jp,{mask:"99999-999",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1,minLength:{value:9,message:"CEP inválido"}}),children:Le=>a.jsx(Jt,{...Le,id:ie.name,type:"text",placeholder:ie.label,className:`${Rt.input} ${tt}`})}):a.jsx(Jt,{id:ie.name,type:ie.type,placeholder:ie.label,className:`${Rt.input} ${tt}`,...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1,validate:ie.type==="email"?Le=>!Le&&!ie.required?!0:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(Le)||"Email inválido":void 0})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):OS(ie.name)?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex gap-1.5 flex-wrap",children:Ave.map(Le=>{const ut=He(ie.name)===Le.value;return a.jsx("button",{type:"button",onClick:()=>Be(ie.name,Le.value,{shouldValidate:!0,shouldDirty:!0}),className:ut?"px-3 py-2 rounded-lg border text-sm font-medium transition-all bg-[rgba(242,101,34,0.15)] border-[#F26522] text-[#F26522]":"px-3 py-2 rounded-lg border text-sm font-medium transition-all bg-white/[0.03] border-white/[0.12] text-white/50 hover:border-white/30",children:Le.label},Le.value)})}),a.jsx("input",{type:"hidden",value:He(ie.name)||"",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):ie.type==="select"&&(ie.name==="quando_fazer"||ie.name==="quando_pretende")&&ie.options?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex gap-1.5 flex-wrap",children:ie.options.map(Le=>{const ut=He(ie.name)===Le.value;return a.jsx("button",{type:"button",onClick:()=>Be(ie.name,Le.value,{shouldValidate:!0,shouldDirty:!0}),className:ut?"px-3 py-2 rounded-lg border text-sm font-medium transition-all bg-[rgba(242,101,34,0.15)] border-[#F26522] text-[#F26522]":"px-3 py-2 rounded-lg border text-sm font-medium transition-all bg-white/[0.03] border-white/[0.12] text-white/50 hover:border-white/30",children:Le.label},Le.value)})}),a.jsx("input",{type:"hidden",value:He(ie.name)||"",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):ie.type==="select"?a.jsxs(a.Fragment,{children:[a.jsxs(br,{onValueChange:Le=>{Be(ie.name,Le,{shouldValidate:!0,shouldDirty:!0})},value:He(ie.name),children:[a.jsx(pr,{className:`${Rt.selectTrigger} ${tt}`,children:a.jsx(wr,{placeholder:`Selecione ${ie.label.toLowerCase()}`})}),a.jsx(gr,{className:Rt.selectContent,children:ie.name==="interesse_curso"&&Ae.length>0?Ae.map(Le=>a.jsx(yt,{value:Le.title,className:Rt.selectItem,children:Le.title},Le.id)):(ie.name==="interesse"||ie.name==="interest"||ie.name==="area_interesse")&&q.length>0?[...q].sort((Le,ut)=>{const Qt=Le.name.toLowerCase().includes("sap"),mt=ut.name.toLowerCase().includes("sap");return Qt&&!mt?-1:!Qt&&mt?1:0}).map(Le=>a.jsx(yt,{value:Le.name,className:`${Rt.selectItem} ${Le.name.toLowerCase().includes("sap")?"font-semibold text-cyan-300":""}`,children:Le.name.toLowerCase().includes("sap")?`â ${Le.name}`:Le.name},Le.id)):ie.options&&ie.options.length>0?ie.options.map(Le=>a.jsx(yt,{value:Le.value,className:Rt.selectItem,children:Le.label},Le.value)):a.jsx(yt,{value:"none",disabled:!0,className:Rt.selectItem,children:"Nenhuma opção disponÃvel"})})]}),a.jsx("input",{type:"hidden",value:He(ie.name)||"",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):ie.type==="radio"?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex gap-1.5 flex-wrap",children:ie.options?.map(Le=>a.jsx("button",{type:"button",onClick:()=>Be(ie.name,Le.value,{shouldValidate:!0,shouldDirty:!0}),className:d0e(He(ie.name)===Le.value),children:Le.label},Le.value))}),a.jsx("input",{type:"hidden",value:He(ie.name)||"",...pe(ie.name,{required:ie.required?`${ie.label} é obrigatório`:!1})}),xe[ie.name]&&a.jsx("p",{className:Rt.error,children:xe[ie.name]?.message})]}):null]}),lt&&Xe?.field&&a.jsxs("div",{className:`space-y-1.5 ${Rt.conditionalBorder}`,children:[a.jsxs($t,{htmlFor:Xe.field.name,className:Rt.label,children:[Xe.field.label," ",Xe.field.required&&"*"]}),a.jsx(Jt,{id:Xe.field.name,type:Xe.field.type,placeholder:Xe.field.label,className:`${Rt.input} ${tt}`,...pe(Xe.field.name,{required:Xe.field.required?`${Xe.field.label} é obrigatório`:!1})}),xe[Xe.field.name]&&a.jsx("p",{className:Rt.error,children:xe[Xe.field.name]?.message})]})]},ie.name)}
1357):null,ft=a.jsxs(a.Fragment,{children:[a.jsx(gj,{open:I,onOpenChange:ie=>{!ie&&ae?St():ie||(E(!1),r())},config:C?.scheduling_config?.enabled?{...S,title:C.scheduling_config.popup_title||S.title,description:C.scheduling_config.popup_description||S.description,button_yes:C.scheduling_config.button_yes||S.button_yes,button_no:C.scheduling_config.button_no||S.button_no}:S,formType:e,leadId:D||void 0,leadName:U?.name,leadEmail:U?.email,leadPhone:U?.phone,onAccept:()=>Lt(!0),onDecline:()=>Lt(!1)}),C?.scheduling_config?.enabled&&C.scheduling_config.type==="internal"&&C.scheduling_config.calendar_id&&D&&a.jsx(K8,{calendarId:C.scheduling_config.calendar_id,leadId:D,leadData:U||{name:""},courseTitle:U?.courseTitle||n||s,formData:U?.formData,open:O,onClose:()=>{k(!1),r()},onSuccess:()=>{et.success("Agendamento criado com sucesso!")}}),a.jsx(W8,{open:z,onOpenChange:ie=>{ie||fe()},config:W,onAccept:ie=>X(ie,D||void 0),onDecline:()=>te(D||void 0)})]});return p?a.jsxs(a.Fragment,{children:[a.jsx(dj,{open:t,onOpenChange:ie=>{!ie&&!y&&r()},children:a.jsxs(Aj,{className:"h-[100dvh] max-h-[100dvh] flex flex-col bg-[#0a0e1a] border-t border-white/[0.08] rounded-t-2xl",children:[a.jsxs("style",{children:[u_,eh,IS]}),x==="full"&&Mt,a.jsxs(fj,{className:"px-5 pt-3 pb-0 flex-shrink-0 flex items-center justify-between",children:[a.jsx(mj,{className:"sr-only",children:C?.title||"Formulário"}),a.jsx(hj,{className:"sr-only",children:C?.subtitle||C?.title||"Preencha o formulário"}),a.jsx("div",{className:"w-10 h-1 bg-white/20 rounded-full mx-auto"}),a.jsx("button",{onClick:()=>{y||r()},className:"absolute right-4 top-4 w-8 h-8 rounded-full bg-white/08 flex items-center justify-center text-white/50 hover:text-white/90 hover:bg-white/12 transition-all","aria-label":"Fechar",children:a.jsx(Ua,{className:"w-4 h-4"})})]}),a.jsx("div",{className:"flex-1 min-h-0 px-4 py-2.5 overflow-y-auto overscroll-contain",children:C?a.jsxs(a.Fragment,{children:[tr,x==="full"&&a.jsx(NS,{location:"forms"}),a.jsxs("form",{id:"mobile-lead-form",...$e,onSubmit:_e(st),className:(x==="compact"?"space-y-2":"space-y-2.5")+" mt-2.5",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:Br.label,children:"Nome Completo *"}),a.jsxs("div",{className:Br.inputWrapper,children:[a.jsx(cs,{className:Br.inputIcon}),a.jsx(Jt,{type:"text",autoComplete:"name",placeholder:"Seu nome completo",className:Br.input,...pe("name",{required:"Nome é obrigatório",minLength:{value:3,message:"Nome muito curto"}})})]}),xe.name&&a.jsx("p",{className:Br.error,children:xe.name?.message})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:Br.label,children:"E-mail *"}),a.jsxs("div",{className:Br.inputWrapper,children:[a.jsx(mo,{className:Br.inputIcon}),a.jsx(Jt,{type:"email",autoComplete:"email",placeholder:"[email protected]",className:Br.input,...pe("email",{required:"Email é obrigatório",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Email inválido"}})})]}),xe.email&&a.jsx("p",{className:Br.error,children:xe.email?.message})]}),a.jsxs("div",{className:`space-y-1 cinematic-phone ${x==="compact"?"one-screen-compact":""}`,children:[a.jsx("label",{className:Br.label,children:"WhatsApp *"}),a.jsx(th,{value:He("whatsapp")||"",onChange:ie=>Be("whatsapp",ie,{shouldValidate:!0}),autoComplete:"tel",compact:!0,error:xe.whatsapp?.message,showValidation:!0}),a.jsx("input",{type:"hidden",...pe("whatsapp",{required:"WhatsApp é obrigatório",validate:ie=>(ie?.replace(/\D/g,"")||"").length>=10||"WhatsApp inválido"})})]}),(e==="proposta_corporativa"||e==="team_pass"||ag(He("tipo_pessoa"))||ag(He("lead_type")))&&a.jsxs("div",{className:"space-y-1",children:[a.jsxs("label",{className:Br.label,children:["Empresa ",e==="proposta_corporativa"?"*":""]}),a.jsx("div",{className:Br.inputWrapper,children:a.jsx(Jt,{type:"text",autoComplete:"organization",placeholder:"Nome da sua empresa",className:Br.input+" pl-4",...pe("company",{required:e==="proposta_corporativa"?"Empresa é obrigatória":!1})})}),xe.company&&a.jsx("p",{className:Br.error,children:xe.company?.message})]}),wt()]})]}):L?a.jsxs("div",{role:"alert",className:"py-8 space-y-4 text-center text-white",children:[a.jsx("p",{children:"Não foi possÃvel carregar o formulário."}),a.jsx(Oe,{type:"button",variant:"outline",onClick:()=>void gt(),children:"Tentar carregar novamente"})]}):a.jsx("div",{role:"status","aria-label":"Carregando formulário",className:"flex items-center justify-center py-8",children:a.jsx($r,{className:"h-8 w-8 animate-spin text-cyan-400"})})}),C&&a.jsx("div",{className:"flex-shrink-0 px-5 pt-3 pb-safe border-t border-white/[0.06] bg-[#0a0e1a]",style:{paddingBottom:"max(env(safe-area-inset-bottom, 12px), 16px)"},children:a.jsxs(Oe,{type:"submit",form:"mobile-lead-form",className:`${Br.button} !bg-[#F26522] hover:!bg-[#c94e18] !opacity-100`,style:{background:"#F26522"},disabled:y,children:[y&&a.jsx($r,{className:"mr-2 h-4 w-4 animate-spin"}),m?"Liberar vaga completa":C?.button_text||"Enviar",a.jsx("span",{className:"absolute top-0 w-[20%] h-full bg-gradient-to-r from-transparent via-white/25 to-transparent pointer-events-none",style:{animation:"cinematic-lens-flare 3s ease-in-out infinite"}})]})})]})}),ft]}):a.jsxs(a.Fragment,{children:[a.jsx(Qa,{open:t,onOpenChange:ie=>{!ie&&!y&&r()},children:a.jsxs(Ba,{onInteractOutside:ie=>ie.preventDefault(),onPointerDownOutside:ie=>ie.preventDefault(),className:"max-w-[460px] w-[calc(100vw-32px)] p-0 max-h-[88vh] flex flex-col gap-0 overflow-hidden bg-[#0a0e1a] border border-white/[0.10] rounded-2xl shadow-2xl",children:[a.jsx("div",{className:Br.progressBar}),a.jsxs("button",{onClick:()=>{y||r()},className:"absolute right-3 top-3 rounded-full ring-offset-background transition-all hover:opacity-100 focus:outline-none z-50 h-8 w-8 flex items-center justify-center bg-white/[0.06] hover:bg-white/[0.12] text-white/50 hover:text-white/80 backdrop-blur-sm",children:[a.jsx(Ua,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Fechar"})]}),x==="full"&&Mt,a.jsxs("div",{className:"modal-scroll flex-1 overflow-y-auto",children:[a.jsxs("style",{children:[u_,eh,IS]}),a.jsx("div",{className:"px-6 py-4",children:C?a.jsxs(a.Fragment,{children:[a.jsx(Va,{className:"sr-only",children:C.title}),a.jsx(Po,{className:"sr-only",children:C.subtitle||C.title}),tr,x==="full"&&a.jsx(NS,{location:"forms"}),a.jsxs("form",{...$e,onSubmit:_e(st),className:(x==="compact"?"space-y-2":"space-y-2.5")+" mt-3",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:Br.label,children:"Nome Completo *"}),a.jsxs("div",{className:Br.inputWrapper,children:[a.jsx(cs,{className:Br.inputIcon}),a.jsx(Jt,{type:"text",autoComplete:"name",placeholder:"Seu nome completo",className:Br.input,...pe("name",{required:"Nome é obrigatório",minLength:{value:3,message:"Nome muito curto"}})})]}),xe.name&&a.jsx("p",{className:Br.error,children:xe.name?.message})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:Br.label,children:"E-mail *"}),a.jsxs("div",{className:Br.inputWrapper,children:[a.jsx(mo,{className:Br.inputIcon}),a.jsx(Jt,{type:"email",autoComplete:"email",placeholder:"[email protected]",className:Br.input,...pe("email",{required:"Email é obrigatório",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Email inválido"}})})]}),xe.email&&a.jsx("p",{className:Br.error,children:xe.email?.message})]}),a.jsxs("div",{className:`space-y-1 cinematic-phone ${x==="compact"?"one-screen-compact":""}`,children:[a.jsx("label",{className:Br.label,children:"WhatsApp *"}),a.jsx(th,{value:He("whatsapp")||"",onChange:ie=>Be("whatsapp",ie,{shouldValidate:!0}),autoComplete:"tel",compact:!0,error:xe.whatsapp?.message,showValidation:!0}
1357),a.jsx("input",{type:"hidden",...pe("whatsapp",{required:"WhatsApp é obrigatório",validate:ie=>(ie?.replace(/\D/g,"")||"").length>=10||"WhatsApp inválido"})})]}),(e==="proposta_corporativa"||e==="team_pass"||ag(He("tipo_pessoa"))||ag(He("lead_type")))&&a.jsxs("div",{className:"space-y-1",children:[a.jsxs("label",{className:Br.label,children:["Empresa ",e==="proposta_corporativa"?"*":""]}),a.jsx("div",{className:Br.inputWrapper,children:a.jsx(Jt,{type:"text",autoComplete:"organization",placeholder:"Nome da sua empresa",className:Br.input+" pl-4",...pe("company",{required:e==="proposta_corporativa"?"Empresa é obrigatória":!1})})}),xe.company&&a.jsx("p",{className:Br.error,children:xe.company?.message})]}),wt(),a.jsx("div",{className:"pt-2",children:a.jsxs(Oe,{type:"submit",className:`${Br.button} !bg-[#F26522] hover:!bg-[#c94e18] !opacity-100`,style:{background:"#F26522"},disabled:y,children:[y&&a.jsx($r,{className:"mr-2 h-4 w-4 animate-spin"}),m?"Liberar vaga completa":C?.button_text||"Enviar",a.jsx("span",{className:"absolute top-0 w-[20%] h-full bg-gradient-to-r from-transparent via-white/25 to-transparent pointer-events-none",style:{animation:"cinematic-lens-flare 3s ease-in-out infinite"}})]})})]})]}):L?a.jsxs("div",{role:"alert",className:"py-8 space-y-4 text-center text-white",children:[a.jsx("p",{children:"Não foi possÃvel carregar o formulário."}),a.jsx(Oe,{type:"button",variant:"outline",onClick:()=>void gt(),children:"Tentar carregar novamente"})]}):a.jsx("div",{role:"status","aria-label":"Carregando formulário",className:"flex items-center justify-center py-8",children:a.jsx($r,{className:"h-8 w-8 animate-spin text-cyan-400"})})})]})]})}),ft]})},V1=[{code:"pt-BR",flag:"ð§ð·"},{code:"en-US",flag:"ðºð¸"},{code:"es-ES",flag:"ðªð¸"}],yve=()=>{A.useEffect(()=>{const R=document.querySelector("header");if(!R)return;const be=()=>{const at=R.getBoundingClientRect().height;document.documentElement.style.setProperty("--header-height",`${at}px`),document.documentElement.style.setProperty("--mobile-header-h",`${at}px`)};be();const tt=new ResizeObserver(be);return tt.observe(R),window.addEventListener("resize",be),()=>{tt.disconnect(),window.removeEventListener("resize",be)}},[]);const[e,t]=A.useState(!1);A.useEffect(()=>{if(!e)return;const R=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=R}},[e]);const[r,n]=A.useState(null),s=R=>n(be=>be===R?null:R),o=A.useCallback(()=>{t(!1),n(null)},[]),i=fn(),l=jl(),c=R=>i.pathname===R||i.pathname.startsWith(`${R}/`),u=R=>`text-sm font-medium transition-colors whitespace-nowrap ${c(R)?"text-primary font-semibold":"hover:text-primary"}`;A.useEffect(()=>{t(!1),n(null),g(!1),x(!1),b(!1)},[i.pathname]),A.useEffect(()=>{if(!e)return;const R=be=>{be.key==="Escape"&&o()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[e,o]);const[d,f]=A.useState(""),h=R=>{R.preventDefault();const be=d.trim();o(),f(""),l(be?`/busca?q=${encodeURIComponent(be)}`:"/busca")},[m,g]=A.useState(!1),[p,x]=A.useState(!1),[y,b]=A.useState(!1),[j,C]=A.useState(!1),[T,L]=A.useState(!1),[P,I]=A.useState(!1),E=A.useCallback(R=>{g(R==="categorias"),x(R==="gratuitos"),b(R==="empresas"),C(R==="certificacoes"),L(R==="calendario")},[]),O=m||p||y||j||T;A.useEffect(()=>{if(!O)return;const R=be=>{be.key==="Escape"&&E(null)};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[O,E]);const[k,D]=A.useState(!1),[H,U]=A.useState(!1),ee=R=>[R?.button_text,R?.text,R?.primary_text,R?.text_pt,R?.text_en,R?.text_es].some(tt=>typeof tt=="string"&&/aproveitar|start now|empezar/i.test(tt)),{user:ae,isAdmin:V,isStudent:q,isCompanyAdmin:G,isInstructor:Ae,signOut:se}=Zn(),{t:S}=mh(),{currentLocale:Q,changeLanguage:z}=RO(),{currentPushNotification:W,showPushModal:ne,handleClosePushModal:X}=DO(),{config:te}=QU();A.useEffect(()=>{const R=localStorage.getItem("theme"),be=window.matchMedia("(prefers-color-scheme: dark)").matches;(R==="dark"||!R&&be)&&(I(!0),document.documentElement.classList.add("dark"))},[]);const fe=()=>{I(!P),P?(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light")):(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"))},pe=()=>V?"/admin":G?"/empresa/dashboard":Ae?"/instrutor/dashboard":q?"/plataforma":"/auth",_e=()=>V?S("header.admin"):G?"Gestão Corporativa":Ae?"Portal do Instrutor":S(q?"header.studentArea":"header.login"),{data:xe=[]}=jt({queryKey:["header-categories"],queryFn:async()=>{const{data:R}=await J.from("categories").select("id, name, name_en, name_es, slug, icon, is_mastertech").eq("approval_status","approved").order("is_mastertech",{ascending:!1}).order("display_order");return R||[]}}),{data:Be=[]}=jt({queryKey:["header-ctas"],queryFn:async()=>{const{data:R}=await J.from("cta_configs").select("*").in("location",["header","header_primary","header_secondary"]).eq("is_active",!0).order("display_order");return R||[]}}),{data:He=[]}=jt({queryKey:["top-menu-items"],queryFn:async()=>{const{data:R}=await J.from("top_menu_items").select("*").eq("is_active",!0).order("display_order");return R||[]}});return a.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:[a.jsx("a",{href:"#conteudo-principal",className:"sr-only focu
1357s:not-sr-only focus:absolute focus:left-4 focus:top-3 focus:z-[60] focus:rounded-md focus:bg-primary focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-primary-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:"Pular para o conteúdo"}),a.jsx("div",{className:"hidden lg:block border-b border-border/60",children:a.jsx("div",{className:"w-full max-w-7xl mx-auto px-4",children:a.jsxs("div",{className:"flex h-14 items-center justify-between gap-3 text-xs text-muted-foreground whitespace-nowrap",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("a",{href:"tel:+551131712002","aria-label":"Ligar para (11) 3171-2002",className:"inline-flex items-center gap-1.5 hover:text-foreground transition-colors",children:[a.jsx(Pu,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"(11) 3171-2002"})]}),a.jsx("a",{href:"mailto:[email protected]","aria-label":"[email protected]",title:"[email protected]",className:"inline-flex items-center justify-center h-7 w-7 rounded-full hover:bg-muted hover:text-foreground transition-colors",children:a.jsx(mo,{className:"w-3.5 h-3.5"})})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("button",{onClick:()=>D(!0),"aria-label":"Falar com o comercial no WhatsApp",className:"inline-flex items-center gap-1.5 font-semibold text-[#25D366] hover:text-[#20BA5A] transition-colors",children:[a.jsxs("span",{className:"relative inline-flex h-1.5 w-1.5",children:[a.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-[#25D366] opacity-75"}),a.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-[#25D366]"})]}),a.jsx(qs,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"WhatsApp"})]}),a.jsx("span",{className:"hidden xl:inline-block w-px h-4 bg-border","aria-hidden":"true"}),a.jsxs("div",{className:"hidden xl:flex items-center gap-3",children:[a.jsx(w1,{variant:"chip"}),a.jsx(fm,{variant:"chip",context:"header"}),a.jsxs(Te,{to:"/skillmap","aria-label":"Diagnóstico de Carreira Gratuito â Trainning SkillMap",className:"inline-flex items-center gap-1.5 font-medium text-orange-500 hover:text-orange-400 transition-colors",children:[a.jsx(Nr,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"Diagnóstico Carreira"})]}),a.jsxs(Te,{to:"/plataforma-trainning360",title:"T360 â Plataforma Educacional LMS","aria-label":"Plataforma Educacional LMS (T360)",className:"inline-flex items-center gap-1.5 hover:text-foreground transition-colors",children:[a.jsx(Mn,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"Plataforma LMS"})]})]}),a.jsx("span",{className:"hidden xl:inline-block w-px h-4 bg-border","aria-hidden":"true"}),a.jsx("div",{className:"hidden xl:flex items-center gap-1",children:V1.map(R=>a.jsx("button",{onClick:()=>z(R.code),className:`text-base transition-opacity ${Q===R.code?"opacity-100":"opacity-40 hover:opacity-70"}`,title:R.code,"aria-label":`Alterar idioma para ${R.code}`,children:a.jsx("span",{"aria-hidden":"true",children:R.flag})},R.code))}),a.jsx("button",{onClick:fe,className:"hidden xl:inline-flex items-center justify-center h-7 w-7 rounded-full hover:bg-muted hover:text-foreground transition-colors","aria-label":"Alternar tema claro/escuro",children:P?a.jsx(om,{className:"w-3.5 h-3.5"}):a.jsx(sm,{className:"w-3.5 h-3.5"})}),a.jsx("span",{className:"w-px h-4 bg-border","aria-hidden":"true"}),ae?a.jsxs(tfe,{children:[a.jsx(rfe,{asChild:!0,children:a.jsxs("button",{className:"inline-flex items-center gap-1.5 h-7 px-3 rounded-full bg-primary text-primary-foreground text-xs font-semibold hover:bg-primary/90 transition-colors",children:[V?a.jsx(Gg,{className:"w-3.5 h-3.5"}):q?a.jsx(fl,{className:"w-3.5 h-3.5"}):a.jsx(cs,{className:"w-3.5 h-3.5"}),a.jsx("span",{className:"max-w-[120px] truncate",children:_e()})]})}),a.jsxs(OU,{align:"end",children:[a.jsx(r_,{asChild:!0,children:a.jsxs(Te,{to:pe(),className:"cursor-pointer",children:[V?a.jsx(Gg,{className:"mr-2 h-4 w-4"}):Ae?a.jsx(wa,{className:"mr-2 h-4 w-4"}):q?a.jsx(fl,{className:"mr-2 h-4 w-4"}):a.jsx(cs,{className:"mr-2 h-4 w-4"}),"Minha Ãrea"]})}),a.jsx(UU,{}),a.jsxs(r_,{onClick:se,className:"cursor-pointer",children:[a.jsx(zE,{className:"mr-2 h-4 w-4"}),"Sair"]})]})]}):a.jsxs(Te,{to:"/aluno","aria-label":"Entrar / Login",className:"inline-flex items-center gap-1.5 h-7 px-3 rounded-full bg-primary text-primary-foreground text-xs font-semibold hover:bg-primary/90 transition-colors",children:[a.jsx(Kb,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"Login"})]}),ae&&a.jsx(T4,{}),a.jsxs(kC,{children:[a.jsx(IC,{asChild:!0,children:a.jsx("button",{className:"xl:hidden inline-flex items-center justify-center h-7 w-7 rounded-full hover:bg-muted hover:text-foreground transition-colors","aria-label":"Mais opções","aria-haspopup":"menu",children:a.jsx(Rz,{className:"w-4 h-4"})})}),a.jsxs(dv,{align:"end",className:"w-64 p-2",children:[a.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground px-2 pb-1",children:"Destaques"}),a.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-2",children:[a.jsx(w1,{variant:"chip",className:"px-0"}),a.jsx(fm,{variant:"chip",context:"header",className:"px-0"}),a.jsxs(Te,{to:"/skillmap","aria-label":"Diagnóstico de Carreira Gratuito â Trainning SkillMap",className:"inline-flex items-center gap-1.5 py-1 text-xs font-medium text-orange-500 hover:text-orange-400 transition-colors",children:[a.jsx(Nr,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"Diagnóstico Carreira"})]}),a.jsxs(Te,{to:"/plataforma-trainning360","aria-label":"Plataforma Educacional LMS (T360)",className:"inline-flex items-center gap-1.5 py-1 text-xs hover:text-foreground transition-colors",children:[a.jsx(Mn,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:"Plataforma LMS"})]})]}),a.jsx("div",{className:"h-px bg-border my-1"}),a.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground px-2 pb-1",children:"Idioma"}),a.jsx("div",{className:"flex items-center gap-1 px-2 pb-2",children:V1.map(R=>a.jsx("button",{onClick:()=>z(R.code),className:`text-xl transition-opacity ${Q===R.code?"opacity-100":"opacity-40 hover:opacity-70"}`,title:R.code,"aria-label":`Alterar idioma para ${R.code}`,children:a.jsx("span",{"aria-hidden":"true",children:R.flag})},R.code))}),a.jsx("div",{className:"h-px bg-border my-1"}),a.jsxs("button",{onClick:fe,className:"w-full inline-flex items-center gap-2 px-2 py-1.5 rounded-md text-sm hover:bg-muted transition-colors","aria-label":"Alternar tema",children:[P?a.jsx(om,{className:"w-4 h-4"}):a.jsx(sm,{className:"w-4 h-4"}),a.jsx("span",{children:P?"Tema claro":"Tema escuro"})]})]})]})]})]})})}),a.jsx("nav",{className:"w-full max-w-7xl mx-auto px-4 py-2",children:a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx(Te,{to:"/",className:"flex-shrink-0",children:a.jsx("img",{src:FC,alt:"Trainning Education",className:"h-9 w-auto"})}),a.jsxs("div",{className:"hidden lg:flex items-center gap-3 flex-wrap",children:[te.isEnabled&&a.jsxs(Te,{to:"/turbine-2026",className:"text-sm font-bold transition-colors animate-pulse whitespace-nowrap",style:{color:te.primaryColor},children:[te.campaignEmoji," ",te.headerLinkText]}),a.jsxs("div",{className:"relative",onMouseEnter:()=>E("categorias"),onMouseLeave:()=>E(null),children:[a.jsxs("button",{type:"button",onClick:()=>E(m?null:"categorias"),"aria-expanded":m,"aria-haspopup":"menu","aria-controls":"megamenu-categorias",className:"flex items-center gap-1 text-sm font-medium hover:text-primary transition-colors whitespace-nowrap",children:[a.jsx(Mn,{className:"w-4 h-4"}),S("header.categories"),a.jsx(rs,{className:`w-3.5 h-3.5 transition-transform ${m?"rotate-180":""}`})]}),a.jsx(Bde,{isOpen:m,onClose:()=>E(null)})]}),a.jsxs("div",{className:"relative",onMouseEnter:()=>E("certificacoes"),onMouseLeave:()=>E(null),children:[a.jsxs("button",{type:"button",onClick:()=>E(j?null:"certificacoes"),"aria-expanded":j,"aria-haspopup":"menu","aria-controls":"menu-certificacoes",className:`${u("/certificacoes")} flex items-center gap-1`,children:[S("header.certifications"),a.jsx(rs,{className:`w-3.5 h-3.5 transition-transform ${j?"rotate-180":""}`})]}),j&&a.jsxs("div",{id:"menu-certificacoes",role:"menu","aria-label":S("header.certifications"),className:"absolute top-full left-0 w-72 bg-card border border-border rounded-lg shadow-lg py-2 z-50",children:[a.jsx(Te,{to:"/certificacoes",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Todas as Certificações"}),a.jsx(Te,{to:"/certificacoes/guia",className:"block px-4 py-2 text-sm font-medium text-primary hover:bg-accent transition-colors",onClick:()=>E(null),children:"Guia Premium de Certificações"})]})]}),a.jsxs("div",{className:"relative",onMouseEnter:()=>E("gratuitos"),onMouseLeave:()=>E(null),children:[a.jsxs("button",{type:"button",onClick:()=>E(p?null:"gratuitos"),"aria-expanded":p,"aria-haspopup":"menu","aria-controls":"megamenu-gratuitos",className:"flex items-center gap-1 text-sm font-medium hover:text-primary transition-colors whitespace-nowrap",children:[a.jsx(Fu,{className:"w-4 h-4"}),"Gratuitos",a.jsx(rs,{className:`w-3.5 h-3.5 transition-transform ${p?"rotate-180":""}`})]}),a.jsx(Sde,{isOpen:p,onClose:()=>E(null)})]}),a.jsxs("div",{className:"relative group",onMouseEnter:()=>E("empresas"),onMouseLeave:()=>E(null),children:[a.jsxs("button",{type:"button",onClick:()=>E(y?null:"empresas"),"aria-expanded":y,"aria-haspopup":"menu","aria-controls":"menu-empresas",className:"flex items-center gap-0.5 text-sm font-medium hover:text-primary transition-colors whitespace-nowrap",children:[S("header.companies"),a.jsx(rs,{className:`w-3.5 h-3.5 transition-transform ${y?"rotate-180":""}`})]}),y&&a.jsxs("div",{id:"menu-empresas",role:"menu","aria-label":S("header.companies"),className:"absolute top-full left-0 mt-0 w-72 bg-card border border-border rounded-lg shadow-lg py-2 z-50",children:[a.jsx(Te,{to:"/empresas",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:S("header.forCompanies")}),a.jsxs(Te,{to:"/diagnostico-empresarial",className:"block px-4 py-3 hover:bg-accent transition-colors border-y border-border/50",onClick:()=>E(null),children:[a.jsxs("span",{className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[a.jsx(Ra,{className:"w-4 h-4"})," Diagnóstico Empresarial"]}),a.jsx("span",{className:"mt-1 block text-xs leading-4 text-muted-foreground",children:"Descubra a melhor solução para desenvolver sua equipe"})]}),a.jsx(Te,{to:"/skill-gap",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Skill Gap SAP · diagnóstico gratuito"}),a.jsx(Te,{to:"/training-university",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Training University"}),a.jsx(Te,{to:"/training-corporate-subscriptions",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Trainning Team Pass"}),a.jsx(Te,{to:"/casos-corporativos",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Casos Corporativos"}),a.jsx(Te,{to:"/empresas/team-pass-sap",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Team Pass SAP"}),a.jsx(Te,{to:"/empresas/team-pass-sales-360",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Team Pass Sales 360"}),a.jsx(Te,{to:"/trial-corporativo",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors font-medium text-primary",onClick:()=>E(null),children:"Solicitar Trial Corporativo"}),a.jsx(Te,{to:"/atendimento",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Atendimento Corporativo"}),a.jsx(Te,{to:"/empresa/locacao-de-sala",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Locação de Sala"}),a.jsx(Te,{to:"/pitch-deck-comparativo-4",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors font-medium text-primary",onClick:()=>E(null),children:"Comparativo T360"})]})]}),a.jsxs("div",{className:"relative",onMouseEnter:()=>E("calendario"),onMouseLeave:()=>E(null),children:[a.jsxs("button",{type:"button",onClick:()=>E(T?null:"calendario"),"aria-expanded":T,"aria-haspopup":"menu","aria-controls":"menu-calendario",className:`${u("/calendario")} flex items-center gap-1`,children:[S("header.calendar"),a.jsx(rs,{className:`w-3.5 h-3.5 transition-transform ${T?"rotate-180":""}`})]}),T&&a.jsxs("div",{id:"menu-calendario",role:"menu","aria-label":S("header.calendar"),className:"absolute top-full left-0 w-72 bg-card border border-border rounded-lg shadow-lg py-2 z-50",children:[a.jsx(Te,{to:"/calendario",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:S("header.calendar")}),a.jsx(Te,{to:"/explorar",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Explorar cursos e jornadas"}),a.jsx(Te,{to:"/formacoes",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:S("header.formations")}),a.jsx(Te,{to:"/lp/carreira-sap",className:"block px-4 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>E(null),children:"Carreira SAP â casos reais"})]})]}),a.jsx(Te,{to:"/busca","aria-label":"Buscar cursos, formações e certificações",title:"Buscar",className:"inline-flex items-center justify-center h-8 w-8 rounded-full hover:bg-accent transition-colors",children:a.jsx(vc,{className:"w-4 h-4"})}),Be.map(R=>{const be=R.location==="header"||R.location==="header_primary",tt=$l(R,"button_text",Q)??$l(R,"text",Q)??$l(R,"primary_text",Q),at=R.icon&&a.jsx(NA,{name:R.icon,className:"w-3.5 h-3.5",suspenseFallback:a.jsx("span",{className:"w-3.5 h-3.5"})});return ee(R)?a.jsxs(Oe,{variant:be?"default":"outline",size:"sm",className:"gap-1.5 text-xs px-3 h-8 whitespace-nowrap",onClick:()=>U(!0),children:[at,tt]},R.id):a.jsx(Oe,{asChild:!0,variant:be?"default":"outline",size:"sm",className:"gap-1.5 text-xs px-3 h-8 whitespace-nowrap",children:a.jsxs(Te,{to:R.button_link||R.url||"#",children:[at,tt]})},R.id)})]}),a.jsx("button",{className:"lg:hidden p-2 hover:bg-accent rounded-md",onClick:()=>{e?o():t(!0)},"aria-label":"Toggle menu","aria-expanded":e,children:e?a.jsx(Ua,{className:"w-6 h-6"}):a.jsx(jT,{className:"w-6 h-6"})})]})}),e&&a.jsx("div",{className:"lg:hidden absolute inset-x-0 top-full h-[calc(100dvh-var(--header-height,3.5rem))] border-t border-border bg-background shadow-2xl overflow-y-auto overscroll-contain",children:a.jsxs("nav",{className:"w-full max-w-7xl mx-auto px-4 py-4 pb-[max(4rem,env(safe-area-inset-bottom))] flex flex-col gap-1.5",children:[ae?a.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-xl border border-primary/30 bg-primary/10 px-3 py-3",children:[a.jsxs(Te,{to:pe(),className:"flex items-center gap-2 font-semibold text-primary",onClick:o,children:[V?a.jsx(Gg,{className:"w-5 h-5"}):q?a.jsx(fl,{className:"w-5 h-5"}):a.jsx(cs,{className:"w-5 h-5"}),_e()]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(T4,{}),a.jsx(Oe,{variant:"ghost",size:"sm","aria-label":"Sair",onClick:()=>{o(),se()},children:a.jsx(zE,{className:"w-4 h-4"})})]})]}):a.jsx(Oe,{asChild:!0,size:"lg",className:"w-full h-12 gap-2 text-base font-bold shadow-lg shadow-primary/25 ring-2 ring-primary/40 ring-offset-2 ring-offset-background",children:a.jsxs(Te,{to:"/aluno",onClick:o,children:[a.jsx(Kb,{className:"w-5 h-5"}),"Entrar / Login"]})}),a.jsxs("form",{onSubmit:h,role:"search",className:"relative",children:[a.jsx("label",{htmlFor:"mobile-search",className:"sr-only",children:"Buscar cursos, formações e certificações"}),a.jsx(vc,{className:"pointer-events-none absolute left-4 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),a.jsx("input",{id:"mobile-search",type:"search",inputMode:"search",enterKeyHint:"search",value:d,onChange:R=>f(R.target.value),placeholder:"Buscar cursos, formações, certificaçõesâ¦",className:"h-11 w-full rounded-full border border-border b
1357g-muted/60 pl-11 pr-20 text-base text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50"}),a.jsx("button",{type:"submit",className:"absolute right-1.5 top-1/2 h-8 -translate-y-1/2 rounded-full bg-primary px-3 text-xs font-semibold text-primary-foreground transition-colors hover:bg-primary/90",children:"Buscar"})]}),te.isEnabled&&a.jsxs(Te,{to:"/turbine-2026",className:"flex min-h-[44px] items-center rounded-lg px-2 font-bold transition-colors",style:{color:te.primaryColor},onClick:o,children:[te.campaignEmoji," ",te.headerLinkText]}),a.jsxs("div",{className:"flex flex-col divide-y divide-border/60 rounded-xl border border-border/60",children:[a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>s("categorias"),"aria-expanded":r==="categorias",className:"flex min-h-[48px] items-center justify-between w-full px-3 font-medium transition-colors hover:bg-accent",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Mn,{className:"w-4 h-4 text-muted-foreground"})," ",S("header.categories")]}),a.jsx(rs,{className:`w-4 h-4 transition-transform ${r==="categorias"?"rotate-180":""}`})]}),r==="categorias"&&a.jsxs("div",{className:"px-2 pb-2 space-y-0.5 bg-muted/30 overflow-hidden animate-accordion-down",children:[a.jsx(Te,{to:"/cursos",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm font-semibold text-foreground hover:bg-accent",onClick:o,children:"Todos os Cursos"}),xe.map(R=>a.jsx(Te,{to:`/cursos/${R.slug}`,className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:$l(R,"name",Q)},R.id))]})]}),a.jsx(Te,{to:"/formacoes",className:"flex min-h-[48px] items-center px-3 font-medium transition-colors hover:bg-accent active:bg-accent/70",onClick:o,children:S("header.formations")}),a.jsx(Te,{to:"/mastertech",className:"flex min-h-[48px] items-center px-3 font-medium transition-colors hover:bg-accent active:bg-accent/70",onClick:o,children:"Mastertech"}),a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>s("certificacoes"),"aria-expanded":r==="certificacoes",className:"flex min-h-[48px] items-center justify-between w-full px-3 font-medium transition-colors hover:bg-accent",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(kn,{className:"w-4 h-4 text-muted-foreground"})," ",S("header.certifications")]}),a.jsx(rs,{className:`w-4 h-4 transition-transform ${r==="certificacoes"?"rotate-180":""}`})]}),r==="certificacoes"&&a.jsxs("div",{className:"px-2 pb-2 space-y-0.5 bg-muted/30 overflow-hidden animate-accordion-down",children:[a.jsx(Te,{to:"/certificacoes",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Todas as Certificações"}),a.jsx(Te,{to:"/certificacoes/guia",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm font-medium text-primary hover:bg-accent",onClick:o,children:"⨠Guia Premium de Certificações"})]})]}),a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>s("gratuitos"),"aria-expanded":r==="gratuitos",className:"flex min-h-[48px] items-center justify-between w-full px-3 font-medium transition-colors hover:bg-accent",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Fu,{className:"w-4 h-4 text-muted-foreground"})," Gratuitos"]}),a.jsx(rs,{className:`w-4 h-4 transition-transform ${r==="gratuitos"?"rotate-180":""}`})]}),r==="gratuitos"&&a.jsxs("div",{className:"px-2 pb-2 space-y-0.5 bg-muted/30 overflow-hidden animate-accordion-down",children:[a.jsx(Te,{to:"/cursos-gratis",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Cursos Gratuitos"}),a.jsx(Te,{to:"/certificacoes-gratuitas",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Certificações Gratuitas"}),a.jsx(Te,{to:"/aulas-gratuitas",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Aulas Gratuitas"}),a.jsx(Te,{to:"/simulados",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Simulados Gratuitos"}),a.jsx(Te,{to:"/skill-gap",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Skill Gap SAP · diagnóstico gratuito"}),a.jsxs(Te,{to:"/skillmap",className:"flex min-h-[40px] items-center gap-2 rounded-md px-3 text-sm font-medium text-orange-500 hover:bg-accent",onClick:o,children:[a.jsx(Nr,{className:"w-4 h-4"})," Diagnóstico de Carreira (SkillMap)"]})]})]}),a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>s("empresas"),"aria-expanded":r==="empresas",className:"flex min-h-[48px] items-center justify-between w-full px-3 font-medium transition-colors hover:bg-accent",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(Ra,{className:"w-4 h-4 text-muted-foreground"}
1357)," ",S("header.companies")]}),a.jsx(rs,{className:`w-4 h-4 transition-transform ${r==="empresas"?"rotate-180":""}`})]}),r==="empresas"&&a.jsxs("div",{className:"px-2 pb-2 space-y-0.5 bg-muted/30 overflow-hidden animate-accordion-down",children:[a.jsx(Te,{to:"/empresas",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:S("header.forCompanies")}),a.jsxs(Te,{to:"/diagnostico-empresarial",className:"flex min-h-[52px] items-center gap-3 rounded-lg border border-primary/20 bg-primary/5 px-3 py-2 text-sm font-semibold text-primary hover:bg-primary/10",onClick:o,children:[a.jsx(Ra,{className:"w-4 h-4 shrink-0"}),a.jsxs("span",{className:"flex flex-col leading-tight",children:[a.jsx("span",{children:"Diagnóstico Empresarial"}),a.jsx("span",{className:"mt-1 text-[10px] font-normal text-muted-foreground",children:"Descubra a melhor solução para desenvolver sua equipe"})]})]}),a.jsx(Te,{to:"/skill-gap",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Skill Gap SAP · diagnóstico gratuito"}),a.jsx(Te,{to:"/training-university",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Training University"}),a.jsx(Te,{to:"/training-corporate-subscriptions",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Trainning Team Pass"}),a.jsx(Te,{to:"/casos-corporativos",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Casos Corporativos"}),a.jsx(Te,{to:"/empresas/team-pass-sap",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Team Pass SAP"}),a.jsx(Te,{to:"/empresas/team-pass-sales-360",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Team Pass Sales 360"}),a.jsx(Te,{to:"/trial-corporativo",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm font-medium text-primary hover:bg-accent",onClick:o,children:"Solicitar Trial Corporativo"}),a.jsx(Te,{to:"/atendimento",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Atendimento Corporativo"}),a.jsx(Te,{to:"/empresa/locacao-de-sala",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",onClick:o,children:"Locação de Sala"}),a.jsx(Te,{to:"/pitch-deck-comparativo-4",className:"flex min-h-[40px] items-center rounded-md px-3 text-sm font-medium text-primary hover:bg-accent",onClick:o,children:"Comparativo T360"})]})]}),a.jsxs(Te,{to:"/calendario",className:"flex min-h-[48px] items-center gap-2 px-3 font-medium transition-colors hover:bg-accent active:bg-accent/70",onClick:o,children:[a.jsx(dn,{className:"w-4 h-4 text-muted-foreground"})," ",S("header.calendar")]}),He.map(R=>a.jsxs(Te,{to:R.link,className:"flex min-h-[48px] items-center gap-2 px-3 font-medium transition-colors hover:bg-accent active:bg-accent/70",onClick:o,children:[R.link==="/blog"?a.jsx(I2,{className:"w-4 h-4 text-muted-foreground"}):R.link==="/vagas"?a.jsx(zs,{className:"w-4 h-4 text-muted-foreground"}):null,$l(R,"label",Q)]},R.id))]}),a.jsx("div",{className:"space-y-2 pt-3",children:Be.map(R=>{const be=R.location==="header"||R.location==="header_primary",tt=$l(R,"button_text",Q)??$l(R,"text",Q)??$l(R,"primary_text",Q),at=R.icon&&a.jsx(NA,{name:R.icon,className:"w-4 h-4",suspenseFallback:a.jsx("span",{className:"w-4 h-4"})});return ee(R)?a.jsxs(Oe,{className:"w-full gap-2",variant:be?"default":"outline",onClick:()=>{o(),U(!0)},children:[at,tt]},R.id):a.jsx(Te,{to:R.button_link||R.url||"#",onClick:o,className:"block",children:a.jsxs(Oe,{className:"w-full gap-2",variant:be?"default":"outline",children:[at,tt]})},R.id)})}),a.jsxs("div",{className:"space-y-1 pt-3 border-t border-border",children:[a.jsx("div",{className:"py-1",children:a.jsx(w1,{variant:"mobile",onNavigate:o})}),a.jsx("div",{className:"py-1",children:a.jsx(fm,{variant:"mobile",context:"header",onNavigate:o})}),a.jsxs(Te,{to:"/lp/carreira-sap",className:"flex items-center gap-2 py-2 text-sm font-medium",onClick:o,children:[a.jsx(wa,{className:"w-4 h-4"}),a.jsxs("span",{className:"flex flex-col leading-tight",children:[a.jsx("span",{children:"Carreira SAP"}),a.jsx("span",{className:"text-[10px] font-normal text-muted-foreground",children:"Casos reais de alunos SAP"})]})]}),a.jsxs(Te,{to:"/skillmap",className:"flex items-center gap-2 py-2 text-sm font-medium text-orange-500",onClick:o,children:[a.jsx(Nr,{className:"w-4 h-4"}),a.jsxs("span",{className:"flex flex-col leading-tight",children:[a.jsx("span",{children:"Diagnóstico de Carreira Gratuito"}),a.jsx("span",{className:"text-[10px] font-normal text-muted-foreground",children:"Trainning SkillMap"})]})]}),a.jsxs(Te,{to:"/plataforma-trainning360",className:"flex items-center gap-2 py-2 text-sm font-medium",onClick:o,children:[a.jsx(Mn,{className:"w-4 h-4"}),a.jsxs("span",{className:"flex flex-col leading-tight",children:[a.jsx("span",{children:"Plataforma Educacional LMS"}),a.jsx("span",{className:"text-[10px] font-normal text-muted-foreground",children:"T360"})]})]})]}),a.jsxs("div",{className:"space-y-1 pt-3 border-t border-border",children:[a.jsxs("button",{onClick:()=>{o(),D(!0)},className:"flex min-h-[44px] w-full items-center gap-2 rounded-lg px-2 text-sm font-semibold text-[#25D366] transition-colors hover:bg-accent",children:[a.jsx(qs,{className:"w-4 h-4"}),"Falar no WhatsApp"]}),a.jsxs("a",{href:"tel:+551131712002",className:"flex min-h-[44px] items-center gap-2 rounded-lg px-2 text-sm transition-colors hover:bg-accent",children:[a.jsx(Pu,{className:"w-4 h-4 text-muted-foreground"}),"(11) 3171-2002"]}),a.jsxs("a",{href:"mailto:[email protected]",className:"flex min-h-[44px] items-center gap-2 rounded-lg px-2 text-sm transition-colors hover:bg-accent",children:[a.jsx(mo,{className:"w-4 h-4 text-muted-foreground"}),"[email protected]"]})]}),a.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border",children:[a.jsx("div",{className:"flex items-center gap-2",children:V1.map(R=>a.jsx("button",{onClick:()=>z(R.code),className:`text-2xl hover:scale-110 transition-transform ${Q===R.code?"opacity-100":"opacity-50 hover:opacity-75"}`,title:R.code,"aria-label":`Alterar idioma para ${R.code}`,children:a.jsx("span",{"aria-hidden":"true",children:R.flag})},R.code))}),a.jsxs("button",{onClick:fe,className:"flex items-center gap-2 p-2 rounded-lg bg-secondary hover:bg-secondary/80 transition-colors",title:P?"Light Mode":"Dark Mode",children:[P?a.jsx(om,{className:"w-5 h-5"}):a.jsx(sm,{className:"w-5 h-5"}),a.jsx("span",{className:"text-sm font-medium",children:P?"Claro":"Escuro"})]})]})]})}),ne&&W&&a.jsx(jde,{open:ne,notification:W,onClose:X}),a.jsx(I8,{open:k,onOpenChange:D}),H&&a.jsx(sd,{formType:"fazer_inscricao",isOpen:H,onClose:()=>U(!1)})]})},hQ=()=>{const e=fn(),[t,r]=A.useState(!1);if(e.pathname.startsWith("/admin")||e.pathname.startsWith("/plataforma")||e.pathname.startsWith("/comercial")||e.pathname.startsWith("/empresa")||e.pathname.startsWith("/instrutor")||e.pathname.startsWith("/colaborador"))return null;const s=o=>{o.preventDefault(),Ju("whatsapp_click",{page_path:e.pathname,source:"floating_button"}),r(!0)};return a.jsxs(a.Fragment,{children:[a.jsxs("button",{onClick:s,className:"fixed right-4 md:right-6 z-[50] bg-[#25D366] hover:bg-[#20BA5A] text-white rounded-full w-10 h-10 md:w-16 md:h-16 flex items-center justify-center shadow-xl hover:shadow-2xl transition-all duration-300 hover:scale-110 group",style:{bottom:"calc(var(--action-bar-height, 0px) + 12px)"},"aria-label":"Falar no WhatsApp",children:[a.jsx(qs,{className:"w-5 h-5 md:w-7 md:h-7"}),a.jsx("span",{className:"hidden md:block absolute right-full mr-3 top-1/2 -translate-y-1/2 bg-gray-900 text-white text-sm px-3 py-2 rounded-lg whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:"Fale conosco no WhatsApp"})]}),a.jsx(I8,{open:t,onOpenChange:r,currentPage:e.pathname})]})},bve=Object.freeze(Object.defineProperty({__proto__:null,WhatsAppButton:hQ},Symbol.toStringTag,{value:"Module"})),pQ=A.forwardRef(({...e},t)=>a.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));pQ.displayName="Breadcrumb";const gQ=A.forwardRef(({className:e,...t},r)=>a.jsx("ol",{ref:r,className:je("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));gQ.displayName="BreadcrumbList";const x_=A.forwardRef(({className:e,...t},r)=>
1357a.jsx("li",{ref:r,className:je("inline-flex items-center gap-1.5",e),...t}));x_.displayName="BreadcrumbItem";const v_=A.forwardRef(({asChild:e,className:t,...r},n)=>{const s=e?w2:"a";return a.jsx(s,{ref:n,className:je("transition-colors hover:text-foreground",t),...r})});v_.displayName="BreadcrumbLink";const xQ=A.forwardRef(({className:e,...t},r)=>a.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:je("font-normal text-foreground",e),...t}));xQ.displayName="BreadcrumbPage";const vQ=({children:e,className:t,...r})=>a.jsx("li",{role:"presentation","aria-hidden":"true",className:je("[&>svg]:size-3.5",t),...r,children:e??a.jsx(Vs,{})});vQ.displayName="BreadcrumbSeparator";function wve(e,t="structured-data"){A.useEffect(()=>{const r=document.getElementById(t);r&&r.remove();const n=document.createElement("script");return n.type="application/ld+json",n.id=t,n.text=JSON.stringify((Array.isArray(e),e)),document.head.appendChild(n),()=>{const s=document.getElementById(t);s&&s.remove()}},[JSON.stringify(e),t])}const fo=jw,rh=Gre,y_=()=>({"@context":"https://schema.org","@type":"EducationalOrganization",name:"Trainning Education",alternateName:"Trainning",url:fo,logo:rh,description:"Escola de tecnologia com mais de 300.000 alunos formados em cursos de SAP, Segurança da Informação, Cloud, Data Science e certificações oficiais.",foundingDate:"2003",sameAs:["https://www.linkedin.com/company/trainning","https://www.instagram.com/trainningeducation","https://www.facebook.com/trainningeducation","https://www.youtube.com/@trainningeducation"],address:{"@type":"PostalAddress",streetAddress:"Av. Paulista, 1079 - 8º andar",addressLocality:"São Paulo",addressRegion:"SP",postalCode:"01311-200",addressCountry:"BR"},contactPoint:{"@type":"ContactPoint",telephone:"+55-11-3191-3900",contactType:"customer service",availableLanguage:["Portuguese","English","Spanish"]},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"5000",bestRating:"5"},areaServed:{"@type":"Country",name:"Brazil"}}),U8e=(e,t)=>({"@context":"https://schema.org","@type":"Course",name:e.title,description:e.seo_description||e.description,url:`${fo}/curso/${e.slug}`,image:e.thumbnail_url||rh,provider:{"@type":"Organization",name:"Trainning Education",sameAs:fo},educationalLevel:e.level||"Beginner to Advanced",timeRequired:e.duration_hours?`PT${e.duration_hours}H`:void 0,inLanguage:"pt-BR",isAccessibleForFree:!1,offers:e.price_cash?{"@type":"Offer",price:e.price_cash,priceCurrency:"BRL",availability:"https://schema.org/InStock",validFrom:new Date().toISOString(),url:`${fo}/curso/${e.slug}`}:void 0,hasCourseInstance:t?.map(r=>({"@type":"CourseInstance",courseMode:r.modality||r.format||"online",startDate:r.start_date,endDate:r.end_date}))}),Q8e=e=>({"@context":"https://schema.org","@type":"EducationalOccupationalProgram",name:e.name,description:e.description,url:`${fo}/formacoes/${e.slug}`,image:e.thumbnail_url||rh,provider:{"@type":"Organization",name:"Trainning Education",sameAs:fo},timeToComplete:e.duration_total_hours?`PT${e.duration_total_hours}H`:void 0,offers:e.price_total?{"@type":"Offer",price:e.price_total,priceCurrency:"BRL",availability:"https://schema.org/InStock"}:void 0,numberOfCredits:e.courses?.length||0,programPrerequisites:{"@type":"EducationalOccupationalCredential",credentialCategory:"Nenhum pré-requisito obrigatório"}}),V8e=e=>({"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.excerpt,image:e.featured_image_url||rh,url:`${fo}/blog/${e.slug}`,datePublished:e.published_at,dateModified:e.updated_at||e.published_at,author:{"@type":"Person",name:e.author_name||"Trainning Education"},publisher:{"@type":"Organization",name:"Trainning Education",logo:{"@type":"ImageObject",url:rh}},mainEntityOfPage:{"@type":"WebPage","@id":`${fo}/blog/${e.slug}`},articleSection:e.category,keywords:e.tags?.join(", ")}),_ve=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"InÃcio",item:fo},...e.map((t,r)=>({"@type":"ListItem",position:r+2,name:t.label,item:t.href?`${fo}${t.href}`:void 0}))]}),H8e=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>
1357({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}),b_=()=>({"@context":"https://schema.org","@type":"WebSite",name:"Trainning Education",alternateName:"Trainning",url:fo,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${fo}/cursos?q={search_term_string}`},"query-input":"required name=search_term_string"}}),z8e=e=>({"@context":"https://schema.org","@type":"ItemList",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,item:{"@type":"Course",name:t.title,url:`${fo}/curso/${t.slug}`,image:t.thumbnail_url,offers:t.price_cash?{"@type":"Offer",price:t.price_cash,priceCurrency:"BRL"}:void 0}}))}),Cve=({items:e,containerClass:t=""})=>(wve(_ve(e),"breadcrumb-schema"),a.jsx("nav",{"aria-label":"Navegação breadcrumb",className:`bg-muted/20 border-b border-border/30 overflow-x-hidden ${t}`,children:a.jsx("div",{className:"w-full max-w-7xl mx-auto px-4 py-1",children:a.jsx(pQ,{children:a.jsxs(gQ,{className:"text-xs sm:text-sm min-w-0",children:[a.jsx(x_,{className:"shrink-0",children:a.jsx(v_,{asChild:!0,children:a.jsxs(Te,{to:"/",className:"flex items-center gap-1 sm:gap-1.5 hover:text-primary transition-colors",children:[a.jsx(Ex,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5"}),a.jsx("span",{className:"hidden xs:inline",children:"InÃcio"})]})})}),e.map((r,n)=>a.jsxs(A.Fragment,{children:[a.jsx(vQ,{className:"shrink-0",children:a.jsx(Vs,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5"})}),a.jsx(x_,{className:"min-w-0",children:r.href&&n<e.length-1?a.jsx(v_,{asChild:!0,children:a.jsx(Te,{to:r.href,className:"hover:text-primary transition-colors truncate max-w-[100px] sm:max-w-[180px] md:max-w-none block",title:r.label,children:r.label})}):a.jsx(xQ,{className:"font-medium text-foreground truncate max-w-[120px] sm:max-w-[200px] md:max-w-[400px] block",title:r.label,"data-breadcrumb-page":!0,children:r.label})})]},n))]})})})}));function jve(e,t){const[r,n]=A.useState(e);return A.useEffect(()=>{const s=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(s)}},[e,t]),r}function sc(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[-_/\\]/g," ").replace(/[^\w\s]/g,"").replace(/\s+/g," ").trim():""}function $8e(e,t){return t?e?sc(e).includes(sc(t)):!1:!0}function q8e(e,...t){if(!e)return!0;const r=sc(e);return t.some(n=>sc(n).includes(r))}function Rc(e){return Array.isArray?Array.isArray(e):bQ(e)==="[object Array]"}function Eve(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function w_(e){return e==null?"":Eve(e)}function Cs(e){return typeof e=="string"}function m0(e){return typeof e=="number"}function Bve(e){return e===!0||e===!1||Nve(e)&&bQ(e)=="[object Boolean]"}function yQ(e){return typeof e=="object"}function Nve(e){return yQ(e)&&e!==null}function Us(e){return e!=null}function sg(e){return!e.trim().length}function bQ(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Sve="Incorrect 'index' type",kve=e=>`Invalid value for key ${e}`,Ive=e=>`Pattern length exceeds max of ${e}.`,Fve=e=>`Missing ${e} property in key`,Tve=e=>`Property 'weight' in key '${e}' must be a positive integer`,VS=Object.prototype.hasOwnProperty;class Pve{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{const s=wQ(n);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wQ(e){let t=null,r=null,n=null,s=1,o=null;if(Cs(e)||Rc(e))n=e,t=HS(e),r=__(e);else{if(!VS.call(e,"name"))throw new Error(Fve("name"));const i=e.name;if(n=i,VS.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(Tve(i));t=HS(i),r=__(i),o=e.getFn}return{path:t,id:r,weight:s,src:n,getFn:o}}function HS(e){return Rc(e)?e:e.split(".")}function __(e){return Rc(e)?e.join("."):e}function Lve(e,t){const r=[];let n=!1;const s=(o,i,l,c)=>{if(Us(o))if(!i[l])r.push(c!==void 0?{v:o,i:c}:o);else{const u=i[l],d=o[u];if(!Us(d))return;if(l===i.length-1&&(Cs(d)||m0(d)||Bve(d)||typeof d=="bigint"))r.push(c!==void 0?{v:w_(d),i:c}:w_(d));else if(Rc(d)){n=!0;for(let f=0,h=d.length;f<h;f+=1)s(d[f],i,l+1,f)}else i.length&&s(d,i,l+1,c)}};return s(e,Cs(t)?t.split("."):t,0),n?r:r[0]}const Dve={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Rve={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Mve={location:0,threshold:.6,distance:100},Ove={useExtendedSearch:!1,useTokenSearch:!1,getFn:Lve,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Yt=Object.freeze({...Rve,...Dve,...Mve,...Ove}),Uve=/[^ ]+/g;function Qve(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(s){const o=s.match(Uve).length;if(r.has(o))return r.get(o);const i=1/Math.pow(o,.5*e),l=parseFloat(Math.round(i*n)/n);return r.set(o,l),l},clear(){r.clear()}}}class bj{constructor({getFn:t=Yt.getFn,fieldNormWeight:r=Yt.fieldNormWeight}={}){this.norm=Qve(r,3),this.getFn=t,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Cs(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();Cs(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r<n;r+=1)this.records[r].i-=1}removeAll(t){for(let r=t.length-1;r>=0;r-=1)this.records.splice(t[r],1);for(let r=0,n=this.records.length;r<n;r+=1)this.records[r].i=r}getValueForItemAtKeyId(t,r){return t[this._keysMap[r]]}size(){return this.records.length}_addString(t,r){if(!Us(t)||sg(t))return;const n={v:t,i:r,n:this.norm.get(t)};this.records.push(n)}_addObject(t,r){const n={i:r,$:{}};this.keys.forEach((s,o)=>{const i=s.getFn?s.getFn(t):this.getFn(t,s.path);if(Us(i)){if(Rc(i)){const l=[];for(let c=0,u=i.length;c<u;c+=1){const d=i[c];if(Us(d)){if(Cs(d)){if(!sg(d)){const f={v:d,i:c,n:this.norm.get(d)};l.push(f)}}else if(Us(d.v)){const f=Cs(d.v)?d.v:w_(d.v);if(!sg(f)){const h={v:f,i:d.i,n:this.norm.get(f)};l.push(h)}}}}n.$[o]=l}else if(Cs(i)&&!sg(i)){const l={v:i,n:this.norm.get(i)};n.$[o]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:t,...r})=>r),records:this.records}}}function _Q(e,t,{getFn:r=Yt.getFn,fieldNormWeight:n=Yt.fieldNormWeight}={}){const s=new bj({getFn:r,fieldNormWeight:n});return s.setKeys(e.map(wQ)),s.setSources(t),s.create(),s}function Vve(e,{getFn:t=Yt.getFn,fieldNormWeight:r=Yt.fieldNormWeight}={}){const{keys:n,records:s}=e,o=new bj({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(s),o}function Hve(e=[],t=Yt.minMatchCharLength){const r=[];let n=-1,s=-1,o=0;for(let i=e.length;o<i;o+=1){const l=e[o];l&&n===-1?n=o:!l&&n!==-1&&(s=o-1,s-n+1>=t&&r.push([n,s]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const Au=32;function zve(e,t,r,{location:n=Yt.location,distance:s=Yt.distance,threshold:o=Yt.threshold,findAllMatches:i=Yt.findAllMatches,minMatchCharLength:l=Yt.minMatchCharLength,includeMatches:c=Yt.includeMatches,ignoreLocation:u=Yt.ignoreLocation}={}){if(t.length>Au)throw new Error(Ive(Au));const d=t.length,f=e.length,h=Math.max(0,Math.min(n,f));let m=o,g=h;const p=(I,E)=>{const O=I/d;if(u)return O;const k=Math.abs(h-E);return s?O+k/s:k?1:O},x=l>1||c,y=x?Array(f):[];let b;for(;(b=e.indexOf(t,g))>-1;){const I=p(0,b);if(m=Math.min(I,m),g=b+d,x){let E=0;for(;E<d;)y[b+E]=1,E+=1}}g=-1;let j=[],C=1,T=d+f;const L=1<<d-1;for(let I=0;I<d;I+=1){let E=0,O=T;for(;E<O;)p(I,h+O)<=m?E=O:T=O,O=Math.floor((T-E)/2+E);T=O;let k=Math.max(1,h-O+1);const D=i?f:Math.min(h+O,f)+d,H=Array(D+2);H[D+1]=(1<<I)-1;for(let ee=D;ee>=k;ee-=1){const ae=ee-1,V=r[e[ae]];if(x&&(y[ae]=+!!V),H[ee]=(H[ee+1]<<1|1)&V,I&&(H[ee]|=(j[ee+1]|j[ee])<<1|1|j[ee+1]),H[ee]&L&&(C=p(I,ae),C<=m)){if(m=C,g=ae,g<=h)break;k=Math.max(1,2*h-g)}}if(p(I+1,h)>m)break;j=H}const P={isMatch:g>
1357=0,score:Math.max(.001,C)};if(x){const I=Hve(y,l);I.length?c&&(P.indices=I):P.isMatch=!1}return P}function $ve(e){const t={};for(let r=0,n=e.length;r<n;r+=1){const s=e.charAt(r);t[s]=(t[s]||0)|1<<n-r-1}return t}function wj(e){if(e.length<=1)return e;e.sort((r,n)=>r[0]-n[0]||r[1]-n[1]);const t=[e[0]];for(let r=1,n=e.length;r<n;r+=1){const s=t[t.length-1],o=e[r];o[0]<=s[1]+1?s[1]=Math.max(s[1],o[1]):t.push(o)}return t}const CQ={Å:"l",Å:"L",Ä:"d",Ä:"D",ø:"o",Ã:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",Ã:"ss"},qve=new RegExp("["+Object.keys(CQ).join("")+"]","g"),nh=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(qve,t=>CQ[t]):e=>e;class _j{constructor(t,{location:r=Yt.location,threshold:n=Yt.threshold,distance:s=Yt.distance,includeMatches:o=Yt.includeMatches,findAllMatches:i=Yt.findAllMatches,minMatchCharLength:l=Yt.minMatchCharLength,isCaseSensitive:c=Yt.isCaseSensitive,ignoreDiacritics:u=Yt.ignoreDiacritics,ignoreLocation:d=Yt.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:i,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:d},t=c?t:t.toLowerCase(),t=u?nh(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const f=(m,g)=>{this.chunks.push({pattern:m,alphabet:$ve(m),startIndex:g})},h=this.pattern.length;if(h>Au){let m=0;const g=h%Au,p=h-g;for(;m<p;)f(this.pattern.substr(m,Au),m),m+=Au;if(g){const x=h-Au;f(this.pattern.substr(x),x)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=r?t:t.toLowerCase(),t=n?nh(t):t,this.pattern===t){const p={isMatch:!0,score:0};return s&&(p.indices=[[0,t.length-1]]),p}const{location:o,distance:i,threshold:l,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options,f=[];let h=0,m=!1;this.chunks.forEach(({pattern:p,alphabet:x,startIndex:y})=>{const{isMatch:b,score:j,indices:C}=zve(t,p,x,{location:o+y,distance:i,threshold:l,findAllMatches:c,minMatchCharLength:u,includeMatches:s,ignoreLocation:d});b&&(m=!0),h+=j,b&&C&&f.push(...C)});const g={isMatch:m,score:m?h/this.chunks.length:1};return m&&s&&(g.indices=wj(f)),g}}class Mc{constructor(t){this.pattern=t}static isMultiMatch(t){return zS(t,this.multiRegex)}static isSingleMatch(t){return zS(t,this.singleRegex)}search(t){return{isMatch:!1,score:1}}}function zS(e,t){const r=e.match(t);return r?r[1]:null}class Kve extends Mc{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
1357search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Gve extends Mc{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wve extends Mc{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Yve extends Mc{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Xve extends Mc{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Zve extends Mc{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class jQ extends Mc{constructor(t,{location:r=Yt.location,threshold:n=Yt.threshold,distance:s=Yt.distance,includeMatches:o=Yt.includeMatches,findAllMatches:i=Yt.findAllMatches,minMatchCharLength:l=Yt.minMatchCharLength,isCaseSensitive:c=Yt.isCaseSensitive,ignoreDiacritics:u=Yt.ignoreDiacritics,ignoreLocation:d=Yt.ignoreLocation}={}){super(t),this._bitapSearch=new _j(t,{location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:i,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class EQ extends Mc{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const s=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,s.push([n,r-1]);const i=!!s.length;return{isMatch:i,score:i?0:1,indices:s}}}const C_=[Kve,EQ,Wve,Yve,Zve,Xve,Gve,jQ],$S=C_.length,Jve="\0",eye="|";function tye(e){const t=[],r=e.length;let n=0;for(;n<r;){for(;n<r&&e[n]===" ";)n++;if(n>=r)break;let s=n;for(;s<r&&e[s]!==" "&&e[s]!=='"';)s++;if(s<r&&e[s]==='"'){for(s++;s<r;){if(e[s]==='"'){const o=s+1;if(o>=r||e[o]===" "){s++;break}if(e[o]==="$"&&(o+1>=r||e[o+1]===" ")){s+=2;break}}s++}t.push(e.substring(n,s)),n=s}else{for(;s<r&&e[s]!==" ";)s++;t.push(e.substring(n,s)),n=s}}return t}function rye(e,t={}){return e.replace(/\\\|/g,Jve).split(eye).map(n=>{const s=n.replace(/\u0000/g,"|"),o=tye(s.trim()).filter(l=>l&&!!l.trim()),i=[];for(let l=0,c=o.length;l<c;l+=1){const u=o[l];let d=!1,f=-1;for(;!d&&++f<$S;){const h=C_[f],m=h.isMultiMatch(u);m&&(i.push(new h(m,t)),d=!0)}if(!d)for(f=-1;++f<$S;){const h=C_[f],m=h.isSingleMatch(u);if(m){i.push(new h(m,t));break}}}return i})}const nye=new Set([jQ.type,EQ.type]);class aye{constructor(t,{isCaseSensitive:r=Yt.isCaseSensitive,ignoreDiacritics:n=Yt.ignoreDiacritics,includeMatches:s=Yt.includeMatches,minMatchCharLength:o=Yt.minMatchCharLength,ignoreLocation:i=Yt.ignoreLocation,findAllMatches:l=Yt.findAllMatches,location:c=Yt.location,threshold:u=Yt.threshold,distance:d=Yt.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:o,findAllMatches:l,ignoreLocation:i,location:c,threshold:u,distance:d},t=r?t:t.toLowerCase(),t=n?nh(t):t,this.pattern=t,this.query=rye(this.pattern,this.options)}static condition(t,r){return r.useExtendedSearch}searchIn(t){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:o}=this.options;t=s?t:t.toLowerCase(),t=o?nh(t):t;let i=0;const l=[];let c=0,u=!1;for(let d=0,f=r.length;d<f;d+=1){const h=r[d];l.length=0,i=0,u=!1;for(let m=0,g=h.length;m<g;m+=1){const p=h[m],{isMatch:x,indices:y,score:b}=p.search(t);if(x){i+=1,c+=b;const j=p.constructor.type;j.startsWith("inverse")&&(u=!0),n&&(nye.has(j)?l.push(...y):l.push(y))}else{c=0,i=0,l.length=0,u=!1;break}}if(i){const m={isMatch:!0,score:c/i};return u&&(m.hasInverse=!0),n&&(m.indices=wj(l)),m}}return{isMatch:!1,score:1}}}const j_=[];function Cj(...e){j_.push(...e)}function rx(e,t){for(let r=0,n=j_.length;r<n;r+=1){const s=j_[r];if(s.condition(e,t))return new s(e,t)}return new _j(e,t)}const nx={AND:"$and",OR:"$or"},E_={PATH:"$path",PATTERN:"$val"},B_=e=>!!(e[nx.AND]||e[nx.OR]),sye=e=>!!e[E_.PATH],oye=e=>!Rc(e)&&yQ(e)&&!B_(e),qS=e=>({[nx.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function BQ(e,t,{auto:r=!0}={}){const n=s=>{if(Cs(s)){const c={keyId:null,pattern:s};return r&&(c.searcher=rx(s,t)),c}const o=Object.keys(s),i=sye(s);if(!i&&o.length>1&&!B_(s))return n(qS(s));if(oye(s)){const c=i?s[E_.PATH]:o[0],u=i?s[E_.PATTERN]:s[c];if(!Cs(u))throw new Error(kve(c));const d={keyId:__(c),pattern:u};return r&&(d.searcher=rx(u,t)),d}const l={children:[],operator:o[0]};return o.forEach(c=>{const u=s[c];Rc(u)&&u.forEach(d=>{l.children.push(n(d))})}),l};return B_(e)||(e=qS(e)),n(e)}function N_(e,{ignoreFieldNorm:t=Yt.ignoreFieldNorm}){let r=1;return e.forEach(({key:n,norm:s,score:o})=>{const i=n?n.weight:null;r*=Math.pow(o===0&&i?Number.EPSILON:o,(i||1)*(t?1:s))}),r}function iye(e,{ignoreFieldNorm:t=Yt.ignoreFieldNorm}){e.forEach(r=>{r.score=N_(r.matches,{ignoreFieldNorm:t})})}class lye{constructor(t){this.limit=t,this.heap=[]}get size(){return this.heap.length}shouldInsert(t){return this.size<this.limit||t<this.heap[0].score}insert(t){this.size<this.limit?(this.heap.push(t),this._bubbleUp(this.size-1)):t.score<this.heap[0].score&&(this.heap[0]=t,this._sinkDown(0))}extractSorted(t){return this.heap.sort(t)}_bubbleUp(t){const r=this.heap;for(;t>0;){const n=t-1>>1;
1357if(r[t].score<=r[n].score)break;const s=r[t];r[t]=r[n],r[n]=s,t=n}}_sinkDown(t){const r=this.heap,n=r.length;let s=t;do{t=s;const o=2*t+1,i=2*t+2;if(o<n&&r[o].score>r[s].score&&(s=o),i<n&&r[i].score>r[s].score&&(s=i),s!==t){const l=r[t];r[t]=r[s],r[s]=l}}while(s!==t)}}function cye(e,t){const r=e.matches;t.matches=[],Us(r)&&r.forEach(n=>{if(!Us(n.indices)||!n.indices.length)return;const{indices:s,value:o}=n,i={indices:s,value:o};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function uye(e,t){t.score=e.score}function dye(e,t,{includeMatches:r=Yt.includeMatches,includeScore:n=Yt.includeScore}={}){const s=[];return r&&s.push(cye),n&&s.push(uye),e.map(o=>{const{idx:i}=o,l={item:t[i],refIndex:i};return s.length&&s.forEach(c=>{c(o,l)}),l})}const Aye=/\b\w+\b/g;function S_({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(r){return e||(r=r.toLowerCase()),t&&(r=nh(r)),r.match(Aye)||[]}}}function fye(e,t,r){const n=new Map,s=new Map;let o=0;function i(l,c,u,d){const f=r.tokenize(l);if(!f.length)return;o++;const h=new Map;for(const m of f)h.set(m,(h.get(m)||0)+1);for(const[m,g]of h){const p={docIdx:c,keyIdx:u,subIdx:d,tf:g};let x=n.get(m);x||(x=[],n.set(m,x)),x.push(p),s.set(m,(s.get(m)||0)+1)}}for(const l of e){const{i:c,v:u,$:d}=l;if(u!==void 0){i(u,c,-1,-1);continue}if(d)for(let f=0;f<t;f++){const h=d[f];if(h)if(Array.isArray(h))for(const m of h)i(m.v,c,f,m.i??-1);else i(h.v,c,f,-1)}}return{terms:n,fieldCount:o,df:s}}function mye(e,t,r,n){const{i:s,v:o,$:i}=t;function l(c,u,d){const f=n.tokenize(c);if(!f.length)return;e.fieldCount++;const h=new Map;for(const m of f)h.set(m,(h.get(m)||0)+1);for(const[m,g]of h){const p={docIdx:s,keyIdx:u,subIdx:d,tf:g};let x=e.terms.get(m);x||(x=[],e.terms.set(m,x)),x.push(p),e.df.set(m,(e.df.get(m)||0)+1)}}if(o!==void 0){l(o,-1,-1);return}if(i)for(let c=0;c<r;c++){const u=i[c];if(u)if(Array.isArray(u))for(const d of u)l(d.v,c,d.i??-1);else l(u.v,c,-1)}}function KS(e,t){for(const[r,n]of e.terms){const s=n.filter(i=>i.docIdx!==t),o=n.length-s.length;o>0&&(e.fieldCount-=o,e.df.set(r,(e.df.get(r)||0)-o),s.length===0?(e.terms.delete(r),e.df.delete(r)):e.terms.set(r,s))}}class Oc{constructor(t,r,n){this.options={...Yt,...r},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Pve(this.options.keys),this._docs=t,this._myIndex=null,this._invertedIndex=null,this.setCollection(t,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(t){if(this._lastQuery===t)return this._lastSearcher;const r=this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options,n=rx(t,r);return this._lastQuery=t,this._lastSearcher=n,n}setCollection(t,r){if(this._docs=t,r&&!(r instanceof bj))throw new Error(Sve);if(this._myIndex=r||_Q(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=S_({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=fye(this._myIndex.records,this._myIndex.keys.length,n)}}add(t){if(Us(t)&&(this._docs.push(t),this._myIndex.add(t),this._invertedIndex)){const r=this._myIndex.records[this._myIndex.records.length-1],n=S_({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});mye(this._invertedIndex,r,this._myIndex.keys.length,n)}}remove(t=()=>!1){const r=[],n=[];for(let s=0,o=this._docs.length;s<o;s+=1)t(this._docs[s],s)&&(r.push(this._docs[s]),n.push(s));if(n.length){if(this._invertedIndex)for(const s of n)KS(this._invertedIndex,s);for(let s=n.length-1;s>=0;s-=1)this._docs.splice(n[s],1);this._myIndex.removeAll(n)}return r}removeAt(t){this._invertedIndex&&KS(this._invertedIndex,t);const r=this._docs.splice(t,1)[0];return this._myIndex.removeAt(t),r}getIndex(){return this._myIndex}search(t,r){const{limit:n=-1}=r||{},{includeMatches:s,includeScore:o,shouldSort:i,sortFn:l,ignoreFieldNorm:c}=this.options;if(Cs(t)&&!t.trim()){let f=this._docs.map((h,m)=>({item:h,refIndex:m}));return m0(n)&&n>-1&&(f=f.slice(0,n)),f}const u=m0(n)&&n>0&&Cs(t);let d;if(u){const f=new lye(n);Cs(this._docs[0])?this._searchStringList(t,{heap:f,ignoreFieldNorm:c}):this._searchObjectList(t,{heap:f,ignoreFieldNorm:c}),d=f.extractSorted(l)}else d=Cs(t)?Cs(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),iye(d,{ignoreFieldNorm:c}),i&&d.sort(l),m0(n)&&n>-1&&(d=d.slice(0,n));return dye(d,this._docs,{includeMatches:s,includeScore:o})}_searchStringList(t,{heap:r,ignoreFieldNorm:n}={}){const s=this._getSearcher(t),{records:o}=this._myIndex,i=r?null:[];return o.forEach(({v:l,i:c,n:u})=>
1357{if(!Us(l))return;const{isMatch:d,score:f,indices:h}=s.searchIn(l);if(d){const m={item:l,idx:c,matches:[{score:f,value:l,norm:u,indices:h}]};r?(m.score=N_(m.matches,{ignoreFieldNorm:n}),r.shouldInsert(m.score)&&r.insert(m)):i.push(m)}}),i}_searchLogical(t){const r=BQ(t,this.options),n=(l,c,u)=>{if(!("children"in l)){const{keyId:m,searcher:g}=l;let p;return m===null?(p=[],this._myIndex.keys.forEach((x,y)=>{p.push(...this._findMatches({key:x,value:c[y],searcher:g}))})):p=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(c,m),searcher:g}),p&&p.length?[{idx:u,item:c,matches:p}]:[]}const{children:d,operator:f}=l,h=[];for(let m=0,g=d.length;m<g;m+=1){const p=d[m],x=n(p,c,u);if(x.length)h.push(...x);else if(f===nx.AND)return[]}return h},s=this._myIndex.records,o=new Map,i=[];return s.forEach(({$:l,i:c})=>{if(Us(l)){const u=n(r,l,c);u.length&&(o.has(c)||(o.set(c,{idx:c,item:l,matches:[]}),i.push(o.get(c))),u.forEach(({matches:d})=>{o.get(c).matches.push(...d)}))}}),i}_searchObjectList(t,{heap:r,ignoreFieldNorm:n}={}){const s=this._getSearcher(t),{keys:o,records:i}=this._myIndex,l=r?null:[];return i.forEach(({$:c,i:u})=>{if(!Us(c))return;const d=[];let f=!1,h=!1;if(o.forEach((m,g)=>{const p=this._findMatches({key:m,value:c[g],searcher:s});p.length?(d.push(...p),p[0].hasInverse&&(h=!0)):f=!0}),!(h&&f)&&d.length){const m={idx:u,item:c,matches:d};r?(m.score=N_(m.matches,{ignoreFieldNorm:n}),r.shouldInsert(m.score)&&r.insert(m)):l.push(m)}}),l}_findMatches({key:t,value:r,searcher:n}){if(!Us(r))return[];const s=[];if(Rc(r))r.forEach(({v:o,i,n:l})=>{if(!Us(o))return;const{isMatch:c,score:u,indices:d,hasInverse:f}=n.searchIn(o);c&&s.push({score:u,key:t,value:o,idx:i,norm:l,indices:d,hasInverse:f})});else{const{v:o,n:i}=r,{isMatch:l,score:c,indices:u,hasInverse:d}=n.searchIn(o);l&&s.push({score:c,key:t,value:o,norm:i,indices:u,hasInverse:d})}return s}}class hye{static condition(t,r){return r.useTokenSearch}constructor(t,r){this.options=r,this.analyzer=S_({isCaseSensitive:r.isCaseSensitive,ignoreDiacritics:r.ignoreDiacritics});const n=this.analyzer.tokenize(t),s=r._invertedIndex,{df:o,fieldCount:i}=s;this.termSearchers=[],this.idfWeights=[];for(const l of n){this.termSearchers.push(new _j(l,{location:r.location,threshold:r.threshold,distance:r.distance,includeMatches:r.includeMatches,findAllMatches:r.findAllMatches,minMatchCharLength:r.minMatchCharLength,isCaseSensitive:r.isCaseSensitive,ignoreDiacritics:r.ignoreDiacritics,ignoreLocation:!0}));const c=o.get(l)||0,u=Math.log(1+(i-c+.5)/(c+.5));this.idfWeights.push(u)}}searchIn(t){if(!this.termSearchers.length)return{isMatch:!1,score:1};const r=[];let n=0,s=0,o=0;for(let c=0;c<this.termSearchers.length;c++){const u=this.termSearchers[c].searchIn(t),d=this.idfWeights[c];s+=d,u.isMatch&&(o++,n+=d*(1-u.score),u.indices&&r.push(...u.indices))}if(o===0)return{isMatch:!1,score:1};const i=s>0?1-n/s:0,l={isMatch:!0,score:Math.max(.001,i)};return this.options.includeMatches&&r.length&&(l.indices=wj(r)),l}}Oc.version="7.3.0";Oc.createIndex=_Q;Oc.parseIndex=Vve;Oc.config=Yt;Oc.match=function(e,t,r){return rx(e,{...Yt,...r}).searchIn(t)};Oc.parseQuery=BQ;Cj(aye);Cj(hye);Oc.use=function(...e){e.forEach(t=>Cj(t))};function pye(){return jt({queryKey:["smart-search-data"],queryFn:async()=>{const[e,t,r]=await Promise.all([J.from("courses").select("id, title, slug, format, categories(name, icon), cohorts(start_date)").eq("approval_status","approved").order("title").limit(500),J.from("formations").select("id, name, slug").eq("is_active",!0).order("name"),J.from("categories").select("id, name, slug, icon").eq("approval_status","approved").order("name")]),n=new Date().toISOString(),s=(e.data||[]).map(l=>({id:l.id,title:l.title,slug:l.slug,type:"curso",category:l.categories?.name,icon:l.categories?.icon||void 0,format:l.format||void 0,has_upcoming_cohort:l.cohorts?.some(c=>c.start_date>n)||!1})),o=(t.data||[]).map(l=>({id:l.id,title:l.name,slug:l.slug,type:"formacao"})),i=(r.data||[]).map(l=>({id:l.id,title:l.name,slug:l.slug,type:"categoria",icon:l.icon||void 0}));return[...s,...o,...i]},staleTime:5*60*1e3})}function NQ(){const[e,t]=A.useState(""),r=jve(e,200),{data:n=[],isLoading:s}=pye(),o=A.useRef(null),i=A.useMemo(()=>
1357{if(!n.length)return null;const f=n.map(h=>({...h,normalizedTitle:sc(h.title),normalizedCategory:sc(h.category)}));return new Oc(f,{keys:[{name:"normalizedTitle",weight:.6},{name:"title",weight:.2},{name:"normalizedCategory",weight:.15},{name:"category",weight:.05}],threshold:.35,distance:100,minMatchCharLength:2,includeScore:!0})},[n]),l=A.useMemo(()=>{if(!r.trim()||r.trim().length<2||!i)return[];const f=sc(r);return i.search(f).slice(0,10).map(m=>m.item).sort((m,g)=>m.has_upcoming_cohort&&!g.has_upcoming_cohort?-1:!m.has_upcoming_cohort&&g.has_upcoming_cohort?1:0)},[r,i]),c=A.useCallback(async(f,h)=>{if(!(!f.trim()||f.length<2)&&o.current!==f){o.current=f;try{await J.from("search_logs").insert({query:f.trim(),normalized_query:sc(f),results_count:h,source:"home_search"})}catch{}}},[]),u=s&&r.length>=2,d=l.length>0;return{searchTerm:e,setSearchTerm:t,results:l,isLoading:u,hasResults:d,logSearch:c}}const gye={curso:{label:"Curso",icon:Mn,color:"text-blue-500"},formacao:{label:"Formação",icon:xh,color:"text-purple-500"},categoria:{label:"Categoria",icon:vT,color:"text-amber-500"},certificacao:{label:"Certificação",icon:kn,color:"text-emerald-500"}};function xye(){const e=jl(),{searchTerm:t,setSearchTerm:r,results:n,isLoading:s,hasResults:o,logSearch:i}=NQ(),[l,c]=A.useState(!1),[u,d]=A.useState(-1),f=A.useRef(null),h=A.useRef(null);A.useEffect(()=>{const y=b=>{f.current&&!f.current.contains(b.target)&&c(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),A.useEffect(()=>{d(-1)},[n]);const m=A.useCallback(y=>{switch(i(t,n.length),c(!1),r(""),y.type){case"curso":e(`/curso/${y.slug}`);break;case"formacao":e(`/formacoes/${y.slug}`);break;case"categoria":e(`/cursos/${y.slug}`);break;default:e(`/busca?q=${encodeURIComponent(y.title)}`)}},[e,t,n.length,i,r]),g=A.useCallback(()=>{u>=0&&n[u]?m(n[u]):t.trim().length>=2&&(i(t,n.length),c(!1),e(`/busca?q=${encodeURIComponent(t.trim())}`),r(""))},[u,n,t,e,i,r,m]),p=y=>{y.key==="ArrowDown"?(y.preventDefault(),d(b=>Math.min(b+1,n.length-1))):y.key==="ArrowUp"?(y.preventDefault(),d(b=>Math.max(b-1,-1))):y.key==="Enter"?(y.preventDefault(),g()):y.key==="Escape"&&(c(!1),h.current?.blur())},x=l&&t.length>=2;return a.jsx("div",{className:"bg-muted/20 border-b border-border/30",children:a.jsx("div",{className:"w-full max-w-3xl mx-auto px-4 py-1.5",children:a.jsxs("div",{ref:f,className:"relative",children:[a.jsxs("div",{className:"relative flex items-center bg-card border border-border hover:border-primary/50 focus-within:border-primary rounded-lg shadow-sm transition-all",children:[a.jsx(vc,{className:"absolute left-3 w-4 h-4 text-muted-foreground pointer-events-none"}),a.jsx("input",{ref:h,type:"text",value:t,onChange:y=>{r(y.target.value),c(!0)},onFocus:()=>c(!0),onKeyDown:p,placeholder:"Buscar cursos, formações ou tecnologias...",className:"w-full h-10 pl-9 pr-16 bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none rounded-lg",autoComplete:"off"}),t&&a.jsx("button",{onClick:()=>{r(""),h.current?.focus()},className:"absolute right-14 p-1 text-muted-foreground hover:text-foreground transition-colors",children:a.jsx(Ua,{className:"w-3.5 h-3.5"})}),a.jsx("button",{onClick:g,className:"absolute right-1 h-8 px-3 bg-primary hover:bg-primary/90 text-primary-foreground rounded-md font-medium text-xs transition-colors flex items-center gap-1",children:"Buscar"})]}),x&&a.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-card border border-border rounded-lg shadow-xl overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200",children:[o&&a.jsxs("div",{className:"py-1 max-h-[320px] overflow-y-auto",children:[n.map((y,b)=>{const j=gye[y.type],C=j.icon;return a.jsxs("button",{onClick:()=>m(y),onMouseEnter:()=>d(b),className:je("w-full flex items-center gap-3 px-3 py-2.5 text-left hover:bg-accent/50 transition-colors",u===b&&"bg-accent/50"),children:[a.jsx("div",{className:je("flex-shrink-0 w-8 h-8 rounded-md bg-muted flex items-center justify-center",j.color),children:a.jsx(C,{className:"w-3.5 h-3.5"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:y.title}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx("span",{className:"font-medium",children:j.label}),y.category&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"â¢"}),a.jsx("span",{children:y.category})]}),y.has_upcoming_cohort&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"â¢"}),a.jsx("span",{className:"text-emerald-500 font-medium",children:"Turma aberta"})]})]})]}),a.jsx(_r,{className:"w-3.5 h-3.5 text-muted-foreground flex-shrink-0"})]},`${y.type}-${y.id}`)}),a.jsxs("button",{onClick:g,className:"w-full flex items-center justify-center gap-1.5 px-3 py-2.5 text-xs font-medium text-primary hover:bg-accent/30 transition-colors border-t border-border",children:["Ver todos os resultados",a.jsx(_r,{className:"w-3.5 h-3.5"})]})]}),!o&&!s&&a.jsx("div",{className:"py-6 text-center",children:a.jsxs("p",{className:"text-sm text-muted-foreground",children:['Nenhum resultado para "',a.jsx("strong",{children:t}),'"']})}),s&&a.jsx("div",{className:"py-4 text-center",children:a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-primary border-t-transparent mx-auto"})})]})]})})})}const SQ=({onExitIntent:e,threshold:t=10,enabled:r=!0})=>{const n=A.useCallback(s=>{r&&s.clientY<=t&&s.relatedTarget===null&&e()},[e,t,r]);A.useEffect(()=>{if(r)return document.addEventListener("mouseout",n),()=>{document.removeEventListener("mouseout",n)}},[n,r])};function vye({label:e,required:t,htmlFor:r,className:n}){return a.jsxs("label",{htmlFor:r,className:n||Rt.label,children:[e,t&&a.jsx("span",{className:"text-cyan-400/70 ml-1","aria-label":"campo obrigatório",children:"*"})]})}function yye(e){try{const s=new URL(e).pathname.replace(/\/$/,"").split("/").filter(
1357Boolean);if(s.length===0)return"home_embarcado";let o=s[s.length-1];["curso","cursos","formacoes","formacao","categoria","categorias"].includes(o.toLowerCase())&&s.length>1&&(o=s[s.length-2]||o);const c=decodeURIComponent(o).toLowerCase().replace(/[^a-z0-9à áâãäçèéêëìÃîïñòóôõöùúûü-]/g,"-").replace(/--+/g,"-").replace(/^-|-$/g,"").substring(0,50);return c?`${c}_embarcado`:"pagina_embarcado"}catch{return"embedded_form"}}function bye(e){const t=e.toLowerCase().trim();return t.includes("imediato")||t.includes("imediatamente")||t==="sim"?"imediato":t.includes("breve")||t.includes("1 mês")||t.includes("1 mes")?"breve":t.includes("pesquisando")||t.includes("informação")||t.includes("informacao")||t==="ementa"||t.includes("não")||t.includes("nao")||t==="sem_interesse"||t==="sem interesse"?"sem_interesse":["imediato","breve","sem_interesse"].includes(t)?t:e}const wye=({externalOpen:e,onConvert:t,onDismiss:r}={})=>{const n=fn(),s=pj(),[o,i]=A.useState(e??!1),[l,c]=A.useState(!1),[u,d]=A.useState(null),[f,h]=A.useState({}),[m,g]=A.useState(!1),[p,x]=A.useState([]),[y,b]=A.useState([]),[j,C]=A.useState([]),[T,L]=A.useState(!1),P=A.useRef(!1),I=A.useRef(null),{toast:E}=hh();A.useEffect(()=>{e!==void 0&&(i(e),e&&(P.current=!0,L(!0)))},[e]);const O=A.useCallback(S=>{i(!1),S?t?.():r?.()},[t,r]);A.useEffect(()=>{if(o)return mv(),()=>hv()},[o]);const k=["/admin","/auth","/aluno","/plataforma","/settings","/pagamento","/assinar-contrato","/empresa","/comercial","/app-dashboard"],D=(u?.excluded_pages||k).some(S=>n.pathname===S||n.pathname.startsWith(S+"/"));A.useEffect(()=>{if(D)return;(async()=>{const{data:Q}=await J.from("popup_configs").select("*").eq("is_active",!0).eq("variant","form").order("display_order").limit(1).maybeSingle();Q&&d({...Q,fields:Q.fields,excluded_pages:Q.excluded_pages||k})})()},[D]),A.useEffect(()=>{if(D)return;(async()=>{const[Q,z]=await Promise.all([J.from("categories").select("id, name, slug").eq("approval_status","approved").order("name"),J.from("courses").select("id, title, slug, category_id, price_cash, thumbnail_url").eq("approval_status","approved").order("title")]);Q.data&&x(Q.data),z.data&&b(z.data)})()},[D]),A.useEffect(()=>{if(f.category_id){const S=y.filter(Q=>Q.category_id===f.category_id);C(S)}else C([])},[f.category_id,y]);const H=A.useCallback(()=>{u&&(P.current=!0,L(!0),i(!0),u.show_once_per_session&&sessionStorage.setItem(`popup_shown_${u.id}`,"true"))},[u]),U=A.useCallback(()=>{if(!u||P.current)return;const S=`popup_shown_${u.id}`;u.show_once_per_session&&sessionStorage.getItem(S)||H()},[u,H]);if(A.useEffect(()=>{if(e!==void 0||D||!u||P.current||u.trigger_type!=="on_entry"&&u.trigger_type!=="both")return;const S=`popup_shown_${u.id}`;if(u.show_once_per_session&&sessionStorage.getItem(S))return;const Q=(u.delay_seconds||0)*1e3;return console.log(`[Popup] Timer configurado: ${Q}ms (${u.delay_seconds}s)`),I.current=setTimeout(()=>{P.current||(console.log(`[Popup] Timer disparou após ${u.delay_seconds}s`),H())},Q),()=>{I.current&&(clearTimeout(I.current),I.current=null)}},[u,D,H]),SQ({onExitIntent:U,enabled:e===void 0&&!D&&!!(u&&!T&&(u.trigger_type==="exit_intent"||u.trigger_type==="both"))}),A.useEffect(()=>{if(e!==void 0||D||!u||P.current||u.trigger_type!=="on_scroll")return;const S=`popup_shown_${u.id}`;if(u.show_once_per_session&&sessionStorage.getItem(S))return;const Q=Math.min(90,Math.max(10,Number(u.delay_seconds)||50)),z=()=>{const W=document.documentElement,ne=W.scrollTop||document.body.scrollTop,X=W.scrollHeight-W.clientHeight||1;ne/X*100>=Q&&!P.current&&(H(),window.removeEventListener("scroll",z))};return window.addEventListener("scroll",z,{passive:!0}),()=>window.removeEventListener("scroll",z)},[u,D,H,e]),D)return null;const ee=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),ae=(S,Q)=>{g(Q),h(z=>({...z,whatsapp:S}))},V=async S=>{if(S.preventDefault(),!u)return;for(const ne of u.fields){const X=f[ne.name]?.trim();if(ne.type==="tel"){if(ne.required&&!m){E({title:"Erro",description:`${ne.label} é obrigatório e deve ser válido`,variant:"destructive"});return}continue}if(ne.required&&!X){E({title:"Erro",description:`${ne.label} é obrigatório`,variant:"destructive"});return}if(ne.type==="email"&&X&&!ee(X)){E({title:"Erro",description:"E-mail inválido",variant:"destructive"});return}}const Q=f.name?.trim();if(!Q||Q.length<2){E({title:"Erro",description:"Nome é obrigatório.",variant:"destructive"});return}const z=f.email?.trim()?.toLowerCase();if(!z||!ee(z)){E({title:"Erro",description:"E-mail é obrigatório e deve ser válido.",variant:"destructive"});return}
1357const W=(f.whatsapp||"").replace(/\D/g,"");if(!W||W.length<10){E({title:"Erro",description:"WhatsApp é obrigatório.",variant:"destructive"});return}c(!0);try{const ne=f.course_name||f.category_name||f.course_title||"Interesse geral",X={name:f.name?.trim()||"",email:z,whatsapp:W,course_title:ne,lead_type:(()=>{const xe=String(f.tipo_pessoa||f.lead_type||"pf").toLowerCase();return xe.includes("empresa")||xe.includes("pj")||xe.includes("corporativ")?"pj":"pf"})(),source:yye(window.location.href),interest:bye(f.interest||f.quando_fazer||"ementa"),page_url:window.location.href};f.company_name?.trim()&&(X.company_name=f.company_name.trim()),f.empresa?.trim()&&(X.company_name=f.empresa.trim()),f.investimento&&(X.budget=f.investimento),f.budget&&(X.budget=f.budget),f.quando_fazer&&(X.quando_pretende=f.quando_fazer),X.form_name=u.title||"Exit Intent Popup";const te=await ef(z,W);Object.assign(X,te);const{data:fe,error:pe}=await J.functions.invoke("submit-public-lead",{body:X});if(pe)throw console.error("Error details:",pe),pe;if(fe?.error)throw new Error(fe.error);const _e=fe?.leadId?[{id:fe.leadId}]:null;try{const{trackFormStep:xe}=await B(async()=>{const{trackFormStep:Be}=await Promise.resolve().then(()=>mQ);return{trackFormStep:Be}},void 0);await xe({formConfigId:u?.id,formType:"exit_intent_popup",sourceComponent:"ExitIntentPopup",stepReached:1,totalSteps:1,completed:!0,leadId:_e?.[0]?.id??null,submissionData:{email:z,name:f.name,whatsapp:W},pageUrl:window.location.href})}catch(xe){console.warn("[ExitIntentPopup] form_submissions tracking falhou:",xe)}_e&&_e[0]?.id&&(J.functions.invoke("notify-comercial-lead",{body:{leadId:_e[0].id,formType:"exit_intent_popup",formName:u.title||"Pop-up de SaÃda"}}).then(xe=>{console.log("â
Notificação comercial enviada:",xe)}).catch(xe=>{console.error("â Erro ao notificar comercial:",xe)}),J.functions.invoke("execute-automation",{body:{triggerType:"form_submitted",leadId:_e[0].id,courseId:null,formationId:null}}).catch(xe=>{console.error("â Erro ao executar automações:",xe)})),E({title:"Sucesso!",description:u.success_message}),h({}),O(!0)}catch(ne){console.error("Error submitting popup form:",ne),E({title:"Erro",description:ne.message||"Erro ao enviar formulário. Tente novamente.",variant:"destructive"})}finally{c(!1)}};if(!u)return null;const q=S=>{if(!S.name)return!0;if(S.name==="empresa"||S.name==="company_name"){const Q=f.tipo_pessoa||f.lead_type||"";return Q==="Para Empresa"||Q==="pj"}return!0},G={label:"text-[10px] font-bold text-cyan-400 uppercase tracking-widest",input:"w-full bg-transparent border-b border-slate-800 py-1.5 text-base md:text-sm text-gray-200 placeholder-slate-600 focus:border-cyan-500 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none rounded-none px-0 h-auto transition-colors",selectTrigger:"w-full bg-transparent border-0 border-b border-slate-800 py-1.5 h-auto text-base md:text-sm text-gray-200 rounded-none px-0 focus:ring-0 focus:border-cyan-500 [&>svg]:text-slate-500",chipBase:"py-2 rounded-lg border text-[10px] font-bold uppercase transition-all min-h-[36px] flex items-center justify-center text-center",chipActive:"border-cyan-500/40 bg-cyan-500/10 text-cyan-300 shadow-[0_0_10px_rgba(34,211,238,0.15)]",chipInactive:"border-slate-800 text-slate-500 hover:border-slate-600 hover:text-slate-300",cta:"w-full py-4 h-auto bg-cyan-500 hover:bg-cyan-400 text-[#0a0e1a] font-black text-sm uppercase tracking-[0.2em] rounded-xl shadow-[0_0_25px_rgba(34,211,238,0.4)] active:scale-[0.98] transition-all relative overflow-hidden border-0"},Ae=S=>`${G.chipBase} ${S?G.chipActive:G.chipInactive}`,se=a.jsxs("form",{onSubmit:V,className:"flex-1 flex flex-col justify-between min-h-0",children:[a.jsxs("style",{children:[u_,eh]}),a.jsx("div",{className:"space-y-4 md:space-y-3",children:u.fields.map(S=>q(S)?a.jsxs("div",{className:"space-y-1",children:[a.jsx(vye,{label:S.label,required:S.required,htmlFor:S.name,className:G.label}),S.type==="category_select"?a.jsxs(br,{value:f[S.name]||"",onValueChange:Q=>{const z=p.find(W=>W.id===Q);h(W=>({...W,[S.name]:Q,category_name:z?.name||"",course_name:""}))},children:[a.jsx(pr,{className:G.selectTrigger,children:a.jsx(wr,{placeholder:S.placeholder})}),a.jsx(gr,{className:Rt.selectContent,children:p.map(Q=>a.jsx(yt,{value:Q.id,className:Rt.selectItem,children:Q.name}
1357,Q.id))})]}):S.type==="course_select"?a.jsxs(br,{value:f[S.name]||"",onValueChange:Q=>{const z=y.find(W=>W.id===Q);h(W=>({...W,[S.name]:Q,course_name:z?.title||""}))},disabled:!f.category_id,children:[a.jsx(pr,{className:G.selectTrigger,children:a.jsx(wr,{placeholder:S.placeholder})}),a.jsx(gr,{className:Rt.selectContent,children:j.map(Q=>a.jsx(yt,{value:Q.id,className:Rt.selectItem,children:Q.title},Q.id))})]}):S.type==="radio"&&S.options&&Array.isArray(S.options)&&S.options.length>0?a.jsx("div",{className:"grid grid-cols-3 gap-2",children:S.options.map((Q,z)=>a.jsx("button",{type:"button",onClick:()=>h(W=>({...W,[S.name]:Q})),className:Ae(f[S.name]===Q),children:Q},`${S.name}-option-${z}`))}):S.type==="select"&&S.name==="quando_fazer"&&S.options&&Array.isArray(S.options)&&S.options.length>0?a.jsx("div",{className:"grid grid-cols-3 gap-2",children:S.options.map((Q,z)=>a.jsx("button",{type:"button",onClick:()=>h(W=>({...W,[S.name]:Q})),className:Ae(f[S.name]===Q),children:Q},`${S.name}-option-${z}`))}):S.type==="select"&&S.options&&Array.isArray(S.options)&&S.options.length>0?a.jsxs(br,{value:f[S.name]||"",onValueChange:Q=>h(z=>({...z,[S.name]:Q})),children:[a.jsx(pr,{className:G.selectTrigger,children:a.jsx(wr,{placeholder:S.placeholder})}),a.jsx(gr,{className:Rt.selectContent,children:S.options.map((Q,z)=>a.jsx(yt,{value:Q,className:Rt.selectItem,children:Q},`${S.name}-option-${z}`))})]}):S.type==="tel"?a.jsx("div",{className:"cinematic-phone cinematic-phone--compact",children:a.jsx(th,{value:f[S.name]||"",onChange:ae,defaultCountry:"BR",compact:!0,showValidation:!0})}):a.jsx(Jt,{id:S.name,type:S.type,placeholder:S.placeholder,value:f[S.name]||"",onChange:Q=>h(z=>({...z,[S.name]:Q.target.value})),className:G.input})]},S.name):null)}),a.jsx("div",{className:"pt-4",children:a.jsxs(Oe,{type:"submit",className:G.cta,disabled:l,children:[l?"Enviando...":u.button_text,a.jsx("span",{className:"absolute top-0 w-[20%] h-full bg-gradient-to-r from-transparent via-white/30 to-transparent pointer-events-none",style:{animation:"cinematic-lens-flare 3s ease-in-out infinite"}})]})})]});return s?a.jsx(dj,{open:o,onOpenChange:S=>{S?i(!0):O(!1)},children:a.jsxs(Aj,{className:`h-[100dvh] max-h-[100dvh] rounded-t-[2rem] border-t border-cyan-500/30 flex flex-col ${Rt.drawerBg}`,children:[a.jsx(fj,{className:"flex-none px-6 pt-2 pb-3",children:a.jsxs("div",{className:"flex justify-between items-start gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[a.jsx(mj,{className:"text-lg font-bold text-white leading-tight",children:u.title}),u.description&&a.jsx(hj,{className:"text-[11px] text-gray-400 mt-0.5 uppercase tracking-wide",children:u.description})]}),a.jsx("button",{type:"button","aria-label":"Fechar",onClick:()=>O(!1),className:"shrink-0 p-2 bg-slate-900 rounded-xl text-gray-300 border border-slate-800 hover:bg-slate-800 hover:text-white transition-colors",children:a.jsx(Ua,{className:"h-5 w-5"})})]})}),a.jsx("div",{className:"flex-1 min-h-0 px-6 pb-6 flex flex-col",children:se})]})}):a.jsx(Qa,{open:o,onOpenChange:S=>{S?i(!0):O(!1)},children:a.jsxs(Ba,{className:`sm:max-w-[420px] flex flex-col gap-0 p-0 ${Rt.dialogBg}`,children:[a.jsxs(Ks,{className:"flex-none px-6 pt-6 pb-2",children:[a.jsx(Va,{className:"text-xl text-white",children:u.title}),u.description&&a.jsx(Po,{className:"text-[11px] text-gray-400 mt-0.5 uppercase tracking-wide",children:u.description})]}),a.jsx("div",{className:"px-6 pb-6 pt-2 flex flex-col",children:se})]})})};function Nv(){const e=A.useRef(null);return A.useEffect(()=>{const t=e.current;if(!t)return;const r=t.getContext("2d");if(!r)return;let n,s=[];const o=()=>{t.width=t.offsetWidth*(window.devicePixelRatio||1),t.height=t.offsetHeight*(window.devicePixelRatio||1),r.scale(window.devicePixelRatio||1,window.devicePixelRatio||1)},i=()=>{const c=t.offsetWidth,u=t.offsetHeight,d=Math.min(60,Math.floor(c*u/15e3));s=Array.from({length:d},()=>({x:Math.random()*c,y:Math.random()*u,vx:(Math.random()-.5)*.4,vy:(Math.random()-.5)*.4,r:Math.random()*2+1,pulse:Math.random()*Math.PI*2}))},l=()=>{const c=t.offsetWidth,u=t.offsetHeight;r.clearRect(0,0,c,u);const d=150;for(let f=0;f<s.length;f++){const h=s[f];h.x+=h.vx,h.y+=h.vy,h.pulse+=.02,(h.x<0||h.x>c)&&(h.vx*=-1),(h.y<0||h.y>u)&&(h.vy*=-1);for(let m=f+1;m<s.length;m++){const g=s[m],p=h.x-g.x,x=h.y-g.y,y=Math.sqrt(p*p+x*x);if(y<d){const b=(1-y/d)*.15;r.beginPath(),r.moveTo(h.x,h.y),r.lineTo(g.x,g.y),r.strokeStyle=`rgba(249, 115, 22, ${b})`,r.lineWidth=.5,r.stroke()}}}for(const f of s){const h=Math.sin(f.pulse)*.3+.7;r.beginPath(),r.arc(f.x,f.y,f.r*h,0,Math.PI*2),r.fillStyle=`rgba(249, 115, 22, ${.4*h})`,r.fill(),r.beginPath(),r.arc(f.x,f.y,f.r*3*h,0,Math.PI*2),r.fillStyle=`rgba(249, 115, 22, ${.05*h})`,r.fill()}n=requestAnimationFrame(l)};return o(),i(),l(),window.addEventListener("resize",()=>{o(),i()}),()=>{cancelAnimationFrame(n),window.removeEventListener("resize",o)}},[]),a.jsx("canvas",{ref:e,className:"absolute inset-0 w-full h-full pointer-events-none",style:{opacity:.6}})}const GS=[{step:1,title:"Começo da Jornada",subtitle:"Descoberta",duration:"3-6 meses",icon:Mn,color:"from-blue-500 to-cyan-500",glowColor:"blue-500",borderColor:"border-blue-500/30",bgColor:"bg-blue-500/10",textColor:"text-blue-400",description:"Primeiro contato com tecnologia e sistemas empresariais",skills:["Fundamentos de TI","Lógica de programação","Processos de negócio"],courses:["Fundamentos SAP","Introdução à programação","Excel / Power BI básico"]},{step:2,title:"Especialização Técnica",subtitle:"Construindo expertise",duration:"6-12 meses",icon:hT,color:"from-orange-500 to-amber-500",glowColor:"orange-500",borderColor:"border-orange-500/30",bgColor:"bg-orange-500/10",textColor:"text-orange-400",description:"Trilha principal com módulos especÃficos e tecnologias avançadas",
1357skills:["Módulos SAP","Desenvolvimento","Cloud","Dados"],courses:["SAP FI / MM / SD","Python & Data Analytics","Power BI avançado"]},{step:3,title:"Projetos Reais",subtitle:"Experiência de mercado",duration:"12-24 meses",icon:_x,color:"from-purple-500 to-violet-500",glowColor:"purple-500",borderColor:"border-purple-500/30",bgColor:"bg-purple-500/10",textColor:"text-purple-400",description:"Aplicação prática em projetos empresariais reais",skills:["Implementação","Integração de sistemas","Metodologias ágeis"],courses:["SAP Activate","Scrum / Agile","Integração ERP"]},{step:4,title:"Certificação",subtitle:"Profissional certificado",duration:"Acelerador",icon:kn,color:"from-emerald-500 to-green-500",glowColor:"emerald-500",borderColor:"border-emerald-500/30",bgColor:"bg-emerald-500/10",textColor:"text-emerald-400",description:"Certificações que aceleram a carreira e aumentam o salário",skills:["DomÃnio técnico","Autoridade profissional","Empregabilidade"],courses:["Certificação SAP","Certificação Microsoft","Certificação AWS"]},{step:5,title:"Especialista",subtitle:"Consultor de referência",duration:"Senioridade",icon:os,color:"from-yellow-500 to-amber-400",glowColor:"yellow-500",borderColor:"border-yellow-500/30",bgColor:"bg-yellow-500/10",textColor:"text-yellow-400",description:"DomÃnio completo do mercado como consultor especialista",skills:["Consultoria","Arquitetura de sistemas","Governança"],courses:["SAP S/4HANA Especialista","Data & Analytics","Cloud Architecture"]},{step:6,title:"Liderança",subtitle:"LÃder de tecnologia",duration:"C-Level",icon:jx,color:"from-rose-500 to-pink-500",glowColor:"rose-500",borderColor:"border-rose-500/30",bgColor:"bg-rose-500/10",textColor:"text-rose-400",description:"Posição de liderança e transformação digital",skills:["Liderança técnica","Gestão de projetos","Transformação digital"],courses:["PMP","ITIL","Liderança Tecnológica"]}],_ye=[{label:"CLOUD",position:"top"},{label:"DATA",position:"left"},{label:"CYBER",position:"right"},{label:"DEV",position:"bottom"}];function WS({phase:e,index:t,isExpanded:r,onToggle:n}){const s=e.icon;return a.jsxs(Ze.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:t*.1,duration:.5},className:"relative group",children:[a.jsx("div",{className:`hidden lg:block absolute -top-[29px] left-1/2 -translate-x-1/2 w-4 h-4 rounded-full border-2 ${e.borderColor} ${e.bgColor} z-10 group-hover:scale-150 transition-transform duration-300`,children:a.jsx("div",{className:`absolute inset-1 rounded-full bg-gradient-to-r ${e.color}`})}),a.jsx("div",{className:`lg:hidden absolute -left-[29px] top-6 w-4 h-4 rounded-full border-2 ${e.borderColor} ${e.bgColor} z-10`,children:a.jsx("div",{className:`absolute inset-1 rounded-full bg-gradient-to-r ${e.color}`})}),a.jsxs("div",{onClick:n,className:`relative p-5 rounded-2xl border ${e.borderColor} bg-white/[0.02] backdrop-blur-sm cursor-pointer transition-all duration-300 overflow-hidden 1358 hover:bg-white/[0.05] hover:shadow-[0_0_40px_rgba(249,115,22,0.08)] 1359 ${r?"ring-1 ring-white/10":""}`,children:[a.jsx("div",{className:`absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br ${e.color} blur-[80px]`,style:{opacity:.03}}),a.jsxs("div",{className:"relative z-10",children:[a.jsxs("div",{className:"flex items-start justify-between mb-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:`w-10 h-10 rounded-xl ${e.bgColor} border ${e.borderColor} flex items-center justify-center transition-transform duration-300 group-hover:scale-110 group-hover:rotate-3`,children:a.jsx(s,{className:`w-5 h-5 ${e.textColor}`})}),a.jsxs("div",{children:[a.jsxs("p",{className:`text-[10px] uppercase tracking-wider ${e.textColor} font-bold`,children:["Fase ",e.step," â ",e.subtitle]}),a.jsx("h3",{className:"text-white font-bold text-sm",children:e.title})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-white/20 text-[10px] font-mono",children:e.duration}),r?a.jsx(cT,{className:"w-4 h-4 text-white/30"}):a.jsx(rs,{className:"w-4 h-4 text-white/30"})]})]}),a.jsx("p",{className:"text-white/40 text-xs mb-3",children:e.description}),a.jsx(Ze.div,{initial:!1,animate:{height:r?"auto":0,opacity:r?1:0},transition:{duration:.3},className:"overflow-hidden",children:a.jsxs("div",{className:"pt-3 border-t border-white/[0.06] space-y-3",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-white/30 text-[10px] uppercase tracking-wider font-semibold mb-1.5",children:"Skills"}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.skills.map(o=>a.jsx("span",{className:`px-2 py-0.5 rounded-md ${e.bgColor} ${e.textColor} text-[10px] font-medium border ${e.borderColor}`,children:o},o))})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-white/30 text-[10px] uppercase tracking-wider font-semibold mb-1.5",children:"Cursos relacionados"}),a.jsx("div",{className:"space-y-1",children:e.courses.map(o=>a.jsxs("div",{className:"flex items-center gap-2 text-white/60 text-xs",children:[a.jsx("div",{className:`w-1.5 h-1.5 rounded-full bg-gradient-to-r ${e.color}`}),o]},o))})]})]})})]})]})]})}function Cye({onCTAClick:e}){const t=A.useRef(null),r=$M(t,{once:!0,margin:"-100px"}),[n,s]=A.useState(null);return a.jsxs("section",{ref:t,className:"py-28 px-4 sm:px-6 lg:px-8 relative overflow-hidden",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"}),a.jsx("div",{className:"absolute top-1/4 left-1/4 w-[600px] h-[600px] bg-
1359orange-500/4 rounded-full blur-[200px]"}),a.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-[600px] h-[600px] bg-purple-600/4 rounded-full blur-[200px]"})]}),a.jsxs("div",{className:"max-w-6xl mx-auto relative",children:[a.jsxs(Ze.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-bold mb-4",children:[a.jsx(Nr,{className:"w-3 h-3"})," JORNADA DE CARREIRA"]}),a.jsxs("h2",{className:"text-3xl sm:text-5xl font-extrabold mb-4",children:["A Jornada de um Profissional de"," ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 to-amber-400 bg-clip-text text-transparent",children:"Tecnologia"}),a.jsx("br",{}),"até o Sucesso"]}),a.jsx("p",{className:"text-white/40 text-lg max-w-2xl mx-auto",children:"Veja como milhares de profissionais evoluem na carreira com as trilhas da Trainning Education"})]}),a.jsxs("div",{className:"hidden lg:block relative mb-20",children:[a.jsxs("div",{className:"absolute top-0 left-0 right-0 h-[2px] overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-white/[0.06]"}),a.jsx(Ze.div,{initial:{scaleX:0},animate:r?{scaleX:1}:{},transition:{duration:1.5,ease:"easeOut"},className:"absolute inset-0 bg-gradient-to-r from-blue-500 via-orange-500 to-rose-500 origin-left"}),a.jsx(Ze.div,{initial:{x:"-100%"},animate:r?{x:"200%"}:{},transition:{duration:2,delay:.5,repeat:1/0,repeatDelay:4},className:"absolute inset-0 w-1/3 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]}),a.jsx("div",{className:"grid grid-cols-6 gap-4 pt-8",children:GS.map((o,i)=>a.jsx(WS,{phase:o,index:i,isExpanded:n===i,onToggle:()=>s(n===i?null:i)},o.step))})]}),a.jsxs("div",{className:"lg:hidden relative mb-16",children:[a.jsxs("div",{className:"absolute left-0 top-0 bottom-0 w-[2px] overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 bg-white/[0.06]"}),a.jsx(Ze.div,{initial:{scaleY:0},animate:r?{scaleY:1}:{},transition:{duration:2,ease:"easeOut"},className:"absolute inset-0 bg-gradient-to-b from-blue-500 via-orange-500 to-rose-500 origin-top"})]}),a.jsx("div",{className:"space-y-6 pl-8",children:GS.map((o,i)=>a.jsx(WS,{phase:o,index:i,isExpanded:n===i,onToggle:()=>s(n===i?null:i)},o.step))})]}),a.jsx(Ze.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"mb-20",children:a.jsxs("div",{className:"relative max-w-lg mx-auto",children:[a.jsxs("div",{className:"relative flex items-center justify-center py-12",children:[a.jsx("div",{className:"absolute w-48 h-48 rounded-full border border-white/[0.06] animate-[spin_20s_linear_infinite]"}),a.jsx("div",{className:"absolute w-72 h-72 rounded-full border border-white/[0.04] animate-[spin_30s_linear_infinite_reverse]"}),a.jsx("div",{className:"relative z-10 w-20 h-20 rounded-2xl bg-gradient-to-br from-orange-500/20 to-orange-600/10 border border-orange-500/30 flex items-center justify-center shadow-[0_0_60px_rgba(249,115,22,0.15)]",children:a.jsx("span",{className:"text-orange-400 font-extrabold text-lg",children:"SAP"})}),_ye.map((o,i)=>{const l={top:"top-0 left-1/2 -translate-x-1/2",bottom:"bottom-0 left-1/2 -translate-x-1/2",left:"left-4 top-1/2 -translate-y-1/2",right:"right-4 top-1/2 -translate-y-1/2"};return a.jsx(Ze.div,{initial:{opacity:0}
1359,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.5+i*.15},className:`absolute ${l[o.position]}`,children:a.jsx("div",{className:"px-3 py-1.5 rounded-lg bg-white/[0.04] border border-white/[0.08] text-white/50 text-xs font-bold tracking-wider hover:bg-white/[0.08] hover:text-white/80 transition-all cursor-default",children:o.label})},o.label)})]}),a.jsx("p",{className:"text-center text-white/30 text-sm mt-2",children:"SAP é o núcleo da transformação digital nas maiores empresas do mundo"})]})}),a.jsx(Ze.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-16",children:[{value:"200.000+",label:"alunos formados",color:"text-orange-400"},{value:"23.000+",label:"empresas atendidas",color:"text-blue-400"},{value:"250+",label:"cursos e certificações",color:"text-emerald-400"},{value:"20+",label:"anos de mercado",color:"text-purple-400"}].map((o,i)=>a.jsxs(Ze.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"text-center p-5 rounded-2xl border border-white/[0.06] bg-white/[0.02]",children:[a.jsx("p",{className:`text-2xl sm:text-3xl font-extrabold ${o.color} mb-1`,children:o.value}),a.jsx("p",{className:"text-white/30 text-xs",children:o.label})]},o.label))}),a.jsx(Ze.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:a.jsxs("div",{className:"relative p-8 sm:p-12 rounded-3xl border border-orange-500/20 bg-gradient-to-br from-orange-500/5 via-transparent to-purple-600/5 overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[400px] h-[200px] bg-orange-500/10 rounded-full blur-[100px]"}),a.jsxs("div",{className:"relative z-10",children:[a.jsx("h3",{className:"text-2xl sm:text-3xl font-extrabold text-white mb-3",children:"Pronto para começar sua jornada?"}),a.jsx("p",{className:"text-white/40 text-base mb-8 max-w-lg mx-auto",children:"Descubra em qual fase você está e receba um roadmap personalizado pela nossa IA"}),a.jsxs(Oe,{onClick:e,size:"lg",className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold text-lg px-12 py-7 rounded-2xl shadow-[0_0_60px_rgba(249,115,22,0.3)] hover:shadow-[0_0_80px_rgba(249,115,22,0.4)] transition-all duration-300 hover:scale-105",children:["Mapear Meu SkillMap ",a.jsx(_r,{className:"w-5 h-5 ml-2"})]})]})]})})]})]})}const jye="551131712002",aa={hidden:{opacity:0,y:30},visible:e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.6}})},YS={hidden:{opacity:0},visible:e=>({opacity:1,transition:{delay:e*.12,duration:.8}})};function Eye({targetDate:e}){const[t,r]=A.useState({days:0,hours:0,mins:0});return A.useEffect(()=>{const n=()=>{const o=new Date(e).getTime()-Date.now();o<=0||r({days:Math.floor(o/864e5),hours:Math.floor(o%864e5/36e5),mins:Math.floor(o%36e5/6e4)})};n();const s=setInterval(n,6e4);return()=>clearInterval(s)},[e]),t.days===0&&t.hours===0?null:a.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-mono text-yellow-400",children:[a.jsx(eq,{className:"w-3 h-3"}),t.days>0&&a.jsxs("span",{children:[t.days,"d"]}),a.jsxs("span",{children:[t.hours,"h"]}),a.jsxs("span",{children:[t.mins,"m"]})]})}function H1({message:e,label:t,size:r="default",onNavigate:n}){const s=`https://wa.me/${jye}?text=${encodeURIComponent(e)}`,o=r==="sm"?"px-4 min-h-[40px] text-xs":r==="lg"?"px-8 min-h-[60px] text-lg":"px-6 min-h-[52px] text-sm";return a.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",onClick:()=>{try{n?.()}catch{}},className:`inline-flex items-center justify-center gap-2 w-full sm:w-auto bg-green-600 hover:bg-green-700 text-white font-semibold rounded-xl transition-all shadow-[0_0_20px_rgba(34,197,94,0.2)] hover:shadow-[0_0_30px_rgba(34,197,94,0.3)] ${o}`,children:[a.jsx(qs,{className:"w-4 h-4"})," ",t]})}const Bye=[{category:"SAP & ERP",icon:a.jsx(xh,{className:"w-5 h-5"}),gradient:"from-blue-500 to-blue-700",glow:"bg-blue-500/20",border:"border-blue-500/30",text:"text-blue-400",junior:"R$ 5.000 â R$ 8.000",pleno:"R$ 9.000 â R$ 15.000",senior:"R$ 16.000 â R$ 28.000",growth:"+45%"},{category:"Cloud & DevOps",icon:a.jsx(fT,{className:"w-5 h-5"}),gradient:"from-sky-500 to-cyan-600",glow:"bg-sky-500/20",border:"border-sky-500/30",text:"text-sky-400",junior:"R$ 4.500 â R$ 7.500",pleno:"R$ 8.000 â R$ 14.000",senior:"R$ 15.000 â R$ 25.000",growth:"+52%"},{category:"Cibersegurança",icon:a.jsx(Nx,{className:"w-5 h-5"}),gradient:"from-emerald-500 to-green-700",glow:"bg-emerald-500/20",border:"border-emerald-500/30",text:"text-emerald-400",junior:"R$ 5.000 â R$ 8.000",pleno:"R$ 9.000 â R$ 16.000",senior:"R$ 17.000 â R$ 30.000",growth:"+60%"},{category:"Data & IA",icon:a.jsx(vl,{className:"w-5 h-5"}),gradient:"from-violet-500 to-purple-700",glow:"bg-violet-500/20",border:"border-violet-500/30",text:"text-violet-400",junior:"R$ 5.500 â R$ 9.000",pleno:"R$ 10.000 â R$ 18.000",senior:"R$ 19.000 â R$ 35.000",growth:"+70%"},{category:"Desenvolvimento",icon:a.jsx(mT,{className:"w-5 h-5"}),gradient:"from-orange-500 to-amber-600",glow:"bg-orange-500/20",border:"border-orange-500/30",text:"text-orange-400",junior:"R$ 4.000 â R$ 7.000",pleno:"R$ 8.000 â R$ 14.000",senior:"R$ 15.000 â R$ 26.000",growth:"+48%"},{category:"Gestão de TI",icon:a.jsx(_x,{className:"w-5 h-5"}),gradient:"from-rose-500 to-pink-600",glow:"bg-rose-500/20",border:"border-rose-500/30",text:"text-rose-400",junior:"R$ 4.000 â R$ 7.000",pleno:"R$ 8.000 â R$ 13.000",senior:"R$ 14.000 â R$ 24.000",growth:"+38%"}],Nye=[{title:"Analista SAP S/4HANA",subtitle:"De iniciante a consultor certificado",color:"from-blue-500 to-indigo-600",glowColor:"rgba(59,130,246,0.3)",duration:"8 meses",salary:"R$ 15.000 â R$ 28.000",steps:[{label:"SAP Funcional Foundations",duration:"40h",type:"Base"},{label:"SAP MM S/4HANA",duration:"40h",type:"Especialização"},{label:"SAP SD S/4HANA",duration:"40h",type:"Especialização"},{label:"SAP FI S/4HANA",duration:"40h",type:"Especialização"},{label:"Certificação SAP Associate",duration:"Prep",type:"Certificação"}],result:"Consultor SAP Certificado",resultIcon:a.jsx(kn,{className:"w-5 h-5"})},{title:"Especialista em Cibersegurança",subtitle:"Do SOC ao Ethical Hacking",color:"from-emerald-500 to-green-600",glowColor:"rgba(16,185,129,0.3)",duration:"10 meses",salary:"R$ 17.000 â R$ 30.000",steps:[{label:"CompTIA Security+",duration:"40h",type:"Base"},{label:"Ethical Hacking (CEH)",duration:"40h",type:"Especialização"},{label:"ISO 27001 Lead Auditor",duration:"40h",type:"Governança"},{label:"Fortinet NSE 4-7",duration:"32h",type:"Vendor"},{label:"CISSP Prep",duration:"40h",type:"Certificação"}],result:"Especialista em Segurança",resultIcon:a.jsx(_i,{className:"w-5 h-5"})},{title:"Analista de Dados & IA",subtitle:"De Power BI a Machine Learning",color:"from-violet-500 to-purple-600",glowColor:"rgba(139,92,246,0.3)",duration:"7 meses",salary:"R$ 12.000 â R$ 25.000",steps:[{label:"Power BI (PL-300)",duration:"24h",type:"Base"},{label:"Python para Data Science",duration:"40h",type:"Linguagem"},{label:"SQL Avançado",duration:"20h",type:"Dados"},{label:"Machine Learning",duration:"40h",type:"Especialização"},{label:"Análise de Dados com IA",duration:"16h",type:"Aplicação"}],result:"Analista de Dados Sênior",resultIcon:a.jsx(gT,{className:"w-5 h-5"})}],Sye=["Microsoft","SAP","AWS","Google","Oracle","IBM","Cisco","VMware","Red Hat","Dell"];function kye({onCTAClick:e,compact:t=!1}){const[r,n]=A.useState([]),[s,o]=A.useState({courses:0,students:0,categories:0,cohorts:0,formations:0});A.useEffect(()=>{(async()=>{const u=tv(),[d,f,h]=await Promise.all([J.from("courses").select("id, title, slug, category_id").eq("is_active",!0).limit(200),J.from("cohorts").select("id, course_id, start_date, end_date, available_spots, max_students, format, status, schedule_days, schedule_time").gte("start_date",u).in("status",["confirmada","aberta","agendada"]).order("start_date",{ascending:!0}).limit(300),J.from("categories").select("id, name, slug").limit(50)]),m=new Map((h.data||[]).map(p=>[p.id,p.name])),g=(f.data||[]).slice(0,20).map(p=>{const x=(d.data||[]).find(y=>y.id===p.course_id);return{...p,course_title:x?.title,course_slug:x?.slug,category_name:x?m.get(x.category_id):""}}).filter(p=>p.course_title);n(g),o({courses:(d.data||[]).length,students:2e5,categories:(h.data||[]).length,cohorts:(f.data||[]).length,formations:0})})()},[]);const i=[{icon:a.jsx(vl,{className:"w-6 h-6"}),title:"Diagnóstico profissional",desc:"6 perguntas rápidas sobre sua carreira"},{icon:a.jsx(Nr,{className:"w-6 h-6"}),title:"Analisamos seu perfil",desc:"Cruzamos com 1.200+ trilhas de carreira"},{icon:a.jsx(Lu,{className:"w-6 h-6"}),title:"Receba seu roadmap",desc:"SkillMap personalizado com cursos e salários"},{icon:a.jsx(dn,{className:"w-6 h-6"}),title:"Entre na turma ao vivo",desc:"Comece a aprender com instrutores reais"}],l=[{icon:a.jsx(vl,{className:"w-8 h-8"}),title:"Recomendação pelo seu perfil",desc:"Recomendações baseadas no seu perfil, objetivos e demanda real do mercado"},{icon:a.jsx(dn,{className:"w-8 h-8"}),title:"Turmas ao Vivo",desc:"Aulas em tempo real com instrutores especialistas e calendário ativo"},{icon:a.jsx(kn,{className:"w-8 h-8"}),title:"Certificações Reconhecidas",desc:"Prepare-se para certificações globalmente reconhecidas"},{icon:a.jsx(Lu,{className:"w-8 h-8"}),title:"Foco em Carreira",desc:"Toda recomendação é otimizada para crescimento profissional real"},{icon:a.jsx(ls,{className:"w-8 h-8"}),title:"Progressão Real",desc:"Acompanhe sua evolução com gamificação e badges"},{icon:a.jsx(_i,{className:"w-8 h-8"}),title:"Resultados Comprovados",desc:"+200 mil alunos formados, +23 mil empresas confiam em nós ⢠Satisfação 9,9"}];return t?a.jsxs("div",{className:"relative bg-[#0a0e1a] text-white overflow-hidden px-5 py-8 sm:px-8 sm:py-10",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute -top-24 left-1/4 w-[380px] h-[380px] bg-orange-500/10 rounded-full blur-[130px]"}),a.jsx("div",{className:"absolute -bottom-24 right-1/4 w-[380px] h-[380px] bg-purple-600/10 rounded-full blur-[130px]"})]}),a.jsxs("div",{className:"relative max-w-2xl mx-auto text-center",children:[a.jsxs("span",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-[11px] sm:text-xs font-medium",children:[a.jsx(Nr,{className:"w-3.5 h-3.5"})," Trainning SkillMap â Mapa personalizado de carreira"]}),a.jsxs("h2",{className:"mt-4 text-2xl sm:text-4xl font-extrabold tracking-tight leading-[1.1]",children:["Mapeie seu"," ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 via-orange-500 to-red-500 bg-clip-text text-transparent",children:"SkillMap"})," ",a.jsx("span",{className:"text-white/90",children:"e acelere sua carreira"})]}),a.jsx("p",{className:"mt-3 text-sm sm:text-base text-white/50 leading-relaxed",children:"Responda algumas perguntas rápidas e receba um roadmap com turmas ao vivo, certificações e orientação de carreira sob medida."}),r.length>0&&a.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 px-3 py-1 rounded-full bg-red-500/10 border border-red-500/20 text-red-400 text-[11px] font-bold",children:[a.jsx(vi,{className:"w-3 h-3"}),r.length," turmas ao vivo com vagas abertas agora"]}),a.jsxs("div",{className:"relative z-10 mt-6 flex flex-col sm:flex-row items-stretch sm:items-center justify-center gap-3",children:[a.jsxs(Oe,{onClick:e,className:"w-full sm:w-auto min-h-[52px] bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold px-8 rounded-xl shadow-[0_0_40px_rgba(249,115,22,0.25)] transition-all",children:["Mapear Meu SkillMap ",a.jsx(_r,{className:"w-4 h-4 ml-2"})]}),a.jsx(H1,{message:"Olá! Quero orientação personalizada sobre cursos de tecnologia.",label:"Falar com um especialista"})]}),a.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-white/35 text-[11px]",children:[a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(ss,{className:"w-3.5 h-3.5 text-green-500/70"})," +200 mil alunos"]}),a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(ss,{className:"w-3.5 h-3.5 text-green-500/70"})," +250 cursos"]}),s.cohorts>0&&a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(vi,{className:"w-3.5 h-3.5 text-red-500/70"})," ",s.cohorts," turmas ativas"]}),a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(os,{className:"w-3.5 h-3.5 text-yellow-500/70"})," Satisfação 9,9"]})]})]})]}):a.jsxs("div",{className:"bg-[#0a0e1a] text-white overflow-hidden",children:[a.jsxs("section",{className:"relative pt-20 pb-28 px-4 sm:px-6 lg:px-8 overflow-hidden min-h-[70vh] sm:min-h-[85vh] flex items-center",children:[a.jsx(Nv,{}),a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-10 left-1/4 w-[500px] h-[500px] bg-
1359orange-500/8 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute bottom-10 right-1/4 w-[500px] h-[500px] bg-purple-600/8 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-blue-500/5 rounded-full blur-[180px]"}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,transparent_20%,#0a0e1a_80%)]"})]}),a.jsxs("div",{className:"relative max-w-5xl mx-auto text-center w-full",children:[a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:aa,custom:0,children:a.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-sm font-medium mb-6",children:[a.jsx(Nr,{className:"w-4 h-4"})," Trainning SkillMap â Mapa personalizado de carreira"]})}),r.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:aa,custom:.5,className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-red-500/10 border border-red-500/20 text-red-400 text-xs font-bold mb-8 animate-pulse",children:[a.jsx(vi,{className:"w-3 h-3"}),r.length," turmas ao vivo com vagas abertas agora"]}),a.jsxs(Ze.h1,{initial:"hidden",animate:"visible",variants:aa,custom:1,className:"text-3xl sm:text-5xl lg:text-8xl font-extrabold tracking-tight leading-[1.05] mb-8",children:["Mapeie seu"," ",a.jsxs("span",{className:"relative inline-block",children:[a.jsx("span",{className:"bg-gradient-to-r from-orange-400 via-orange-500 to-red-500 bg-clip-text text-transparent",children:"SkillMap"}),a.jsx(Ze.span,{className:"absolute -bottom-2 left-0 w-full h-1 bg-gradient-to-r from-orange-400 to-red-500 rounded-full",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:.8,duration:.6}})]}),a.jsx("br",{}),a.jsx("span",{className:"text-white/90",children:"e acelere sua carreira"})]}),a.jsx(Ze.p,{initial:"hidden",animate:"visible",variants:aa,custom:2,className:"text-lg sm:text-xl text-white/50 max-w-3xl mx-auto mb-12 leading-relaxed",children:"Responda algumas perguntas rápidas e receba um roadmap personalizado com turmas ao vivo, certificações e orientação de carreira sob medida."}),a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:aa,custom:3,className:"relative z-10 flex flex-col sm:flex-row items-stretch sm:items-center justify-center gap-4",children:[a.jsxs(Oe,{onClick:e,size:"lg",className:"w-full sm:w-auto min-h-[60px] bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold text-lg px-12 rounded-2xl shadow-[0_0_60px_rgba(249,115,22,0.3)] hover:shadow-[0_0_80px_rgba(249,115,22,0.4)] transition-all duration-300",children:["Mapear Meu SkillMap ",a.jsx(_r,{className:"w-5 h-5 ml-2"})]}),a.jsx(H1,{message:"Olá! Quero orientação personalizada sobre cursos de tecnologia.",label:"Falar com um especialista",size:"lg"})]}),a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:aa,custom:4,className:"flex flex-wrap items-center justify-center gap-8 mt-20 text-white/30 text-sm",children:[a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(ss,{className:"w-4 h-4 text-green-500/70"})," +200 mil alunos"]}),a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(ss,{className:"w-4 h-4 text-green-500/70"})," +23 mil empresas"]}),a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(ss,{className:"w-4 h-4 text-green-500/70"})," +250 cursos e certificações"]}),s.cohorts>0&&a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(vi,{className:"w-4 h-4 text-red-500/70"})," ",s.cohorts," turmas ativas"]}),a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(ss,{className:"w-4 h-4 text-green-500/70"})," +20 anos de mercado"]}),a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(os,{className:"w-4 h-4 text-yellow-500/70"})," Satisfação 9,9"]})]})]})]}),a.jsx(Cye,{onCTAClick:e}),a.jsxs("section",{className:"py-28 px-4 sm:px-6 lg:px-8 relative",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"}),a.jsx("div",{className:"absolute top-1/3 right-0 w-[400px] h-[400px] bg-violet-600/5 rounded-full blur-[150px]"})]}),a.jsxs("div",{className:"max-w-6xl mx-auto relative",children:[a.jsxs(Ze.div,{initial:"hidden",
1359whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-xs font-bold mb-4",children:[a.jsx(ls,{className:"w-3 h-3"})," MERCADO 2026"]}),a.jsxs("h2",{className:"text-3xl sm:text-5xl font-extrabold mb-4",children:["Quanto ganha um profissional de"," ",a.jsx("span",{className:"bg-gradient-to-r from-emerald-400 to-cyan-400 bg-clip-text text-transparent",children:"TI em 2026?"})]}),a.jsx("p",{className:"text-white/40 text-lg max-w-2xl mx-auto",children:"Dados salariais médios do mercado brasileiro. Invista na certificação certa e alcance os melhores patamares."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:Bye.map((c,u)=>a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u,className:`rounded-2xl border ${c.border} bg-white/[0.02] hover:bg-white/[0.04] transition-all duration-300 overflow-hidden group`,children:[a.jsx("div",{className:`h-1 bg-gradient-to-r ${c.gradient}`}),a.jsxs("div",{className:"p-5 space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("div",{className:`w-9 h-9 rounded-lg ${c.glow} flex items-center justify-center ${c.text}`,children:c.icon}),a.jsx("h3",{className:"font-bold text-sm",children:c.category})]}),a.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full ${c.glow} ${c.text} text-[10px] font-bold`,children:[a.jsx(dz,{className:"w-3 h-3"})," ",c.growth]})]}),a.jsx("div",{className:"space-y-3",children:[{level:"Júnior",range:c.junior,width:"33%"},{level:"Pleno",range:c.pleno,width:"66%"},{level:"Sênior",range:c.senior,width:"100%"}].map(d=>a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-[11px] font-medium text-white/40",children:d.level}),a.jsxs("span",{className:"text-[11px] font-bold text-white/80 flex items-center gap-1",children:[a.jsx(xT,{className:"w-3 h-3 text-white/30"}),d.range]})]}),a.jsx("div",{className:"h-1.5 bg-white/5 rounded-full overflow-hidden",children:a.jsx(Ze.div,{className:`h-full rounded-full bg-gradient-to-r ${c.gradient}`,initial:{width:0},whileInView:{width:d.width},viewport:{once:!0},transition:{duration:1,delay:.3}})})]},d.level))}),a.jsx("div",{className:"pt-2 border-t border-white/5",children:a.jsxs("p",{className:"text-[10px] text-white/25 flex items-center gap-1",children:[a.jsx(zs,{className:"w-3 h-3"})," Crescimento de demanda 2025-2026"]})})]})]},u))}),a.jsx(Ze.p,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:YS,custom:0,className:"text-center mt-8 text-[11px] text-white/20",children:"* Fonte: Glassdoor, Robert Half, CAGED 2025. Valores médios para São Paulo e região metropolitana."})]})]}),a.jsxs("section",{className:"py-28 px-4 sm:px-6 lg:px-8 relative",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"}),a.jsx("div",{className:"absolute bottom-1/4 left-0 w-[400px] h-[400px] bg-blue-600/5 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute top-1/4 right-0 w-[400px] h-[400px] bg-purple-600/5 rounded-full blur-[150px]"})]}),a.jsxs("div",{className:"max-w-6xl mx-auto relative",children:[a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-16",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-bold mb-4",children:[a.jsx(LA,{className:"w-3 h-3"})," EXEMPLOS DE TRILHAS"]}),a.jsxs("h2",{className:"text-3xl sm:text-5xl font-extrabold mb-4",children:["Veja trilhas completas com"," ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 to-red-500 bg-clip-text text-transparent",children:"resultado real"})]}),a.jsx("p",{className:"text-white/40 text-lg max-w-2xl mx-auto",children:"Cada trilha é construÃda com cursos reais, duração definida e cargo final alcançável."})]}),a.jsx("div",{className:"space-y-12",children:Nye.map((c,u)=>
1359a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u,className:"rounded-3xl border border-white/[0.06] bg-white/[0.02] overflow-hidden hover:border-white/[0.12] transition-all duration-500",children:[a.jsx("div",{className:`bg-gradient-to-r ${c.color} p-6 sm:p-8`,children:a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-2xl sm:text-3xl font-extrabold text-white mb-1",children:c.title}),a.jsx("p",{className:"text-white/70 text-sm",children:c.subtitle})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs("div",{className:"text-center px-4 py-2 rounded-xl bg-white/10 backdrop-blur-sm",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-white/60",children:"Duração"}),a.jsx("p",{className:"font-bold text-white",children:c.duration})]}),a.jsxs("div",{className:"text-center px-4 py-2 rounded-xl bg-white/10 backdrop-blur-sm",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-white/60",children:"Salário"}),a.jsx("p",{className:"font-bold text-white text-sm",children:c.salary})]})]})]})}),a.jsx("div",{className:"p-6 sm:p-8",children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute left-4 top-0 bottom-0 w-px bg-gradient-to-b from-white/10 via-white/5 to-transparent hidden sm:block"}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-5 gap-4",children:c.steps.map((d,f)=>a.jsxs(Ze.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:f*.1+.3},className:"relative",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3 sm:flex-col sm:items-start sm:gap-2",children:[a.jsx("div",{className:`w-8 h-8 rounded-full bg-gradient-to-r ${c.color} flex items-center justify-center text-xs font-black text-white shrink-0 shadow-lg`,style:{boxShadow:`0 0 20px ${c.glowColor}`},children:f+1}),a.jsx("span",{className:"text-[9px] uppercase tracking-wider text-white/30 font-bold",children:d.type})]}),a.jsxs("div",{className:"pl-11 sm:pl-0",children:[a.jsx("h4",{className:"font-semibold text-sm text-white/90 mb-1 leading-tight",children:d.label}),a.jsxs("span",{className:"text-[11px] text-white/30 flex items-center gap-1",children:[a.jsx(Vr,{className:"w-3 h-3"})," ",d.duration]})]}),f<c.steps.length-1&&a.jsx("div",{className:"hidden sm:flex absolute -right-3 top-4 text-white/10",children:a.jsx(Vs,{className:"w-5 h-5"})})]},f))}),a.jsxs(Ze.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.8},className:"mt-8 flex items-center justify-between",children:[a.jsxs("div",{className:`flex items-center gap-3 px-5 py-3 rounded-2xl bg-gradient-to-r ${c.color} bg-opacity-10 border border-white/10`,style:{boxShadow:`0 0 30px ${c.glowColor}`},children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/10 flex items-center justify-center text-white",children:c.resultIcon}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-white/60",children:"Resultado final"}),a.jsx("p",{className:"font-bold text-white text-lg",children:c.result})]})]}),a.jsxs(Oe,{onClick:e,size:"sm",className:"bg-white/10 hover:bg-white/20 text-white border border-white/10 rounded-xl flex",children:["Quero esta trilha ",a.jsx(_r,{className:"w-4 h-4 ml-1"})]})]})]})})]},u))}),a.jsx(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mt-12",children:a.jsxs(Oe,{onClick:e,size:"lg",className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold px-10 py-6 rounded-2xl shadow-[0_0_40px_rgba(249,115,22,0.3)]",children:["Descobrir Minha Trilha Ideal ",a.jsx(_r,{className:"w-5 h-5 ml-2"})]})})]})]}),r.length>0&&a.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-red-500/[0.03] to-transparent border-y border-red-500/10",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Ze.div,{initial:"hidden",
1359whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-10",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-red-500/10 border border-red-500/20 text-red-400 text-xs font-bold mb-4",children:[a.jsx(vi,{className:"w-3 h-3"})," TURMAS CONFIRMADAS"]}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-3",children:"Próximas turmas ao vivo"}),a.jsx("p",{className:"text-white/50 text-lg",children:"Vagas limitadas. Garanta seu lugar agora."})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:r.slice(0,9).map((c,u)=>{const d=new Date(c.start_date),f=Math.ceil((d.getTime()-Date.now())/864e5),h=f<=14;return a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u*.5,onClick:e,className:`p-4 rounded-xl border cursor-pointer transition-all hover:scale-[1.02] ${h?"bg-red-500/5 border-red-500/20 hover:border-red-500/40":"bg-white/[0.02] border-white/[0.06] hover:border-orange-500/30"}`,children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{className:"flex gap-1.5",children:[h&&a.jsx("span",{className:"px-2 py-0.5 rounded-full bg-red-500/90 text-[9px] font-bold text-white uppercase",children:f<=3?"ÃLTIMA CHANCE":f<=7?"ESTA SEMANA":"EM BREVE"}),a.jsx("span",{className:"px-2 py-0.5 rounded-full bg-green-500/20 text-green-400 text-[9px] font-bold uppercase border border-green-500/30",children:"AO VIVO"})]}),a.jsx(Eye,{targetDate:c.start_date})]}),a.jsx("h4",{className:"font-semibold text-sm mb-1 line-clamp-2",children:c.course_title}),a.jsx("p",{className:"text-[10px] text-orange-400 uppercase tracking-wider mb-2",children:c.category_name}),a.jsxs("div",{className:"flex items-center justify-between text-xs text-white/40",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(dn,{className:"w-3 h-3"}),d.toLocaleDateString("pt-BR",{day:"2-digit",month:"short"})]}),a.jsx("span",{className:"capitalize",children:c.format||"Online"}),c.available_spots!=null&&c.available_spots<=10&&a.jsxs("span",{className:"text-red-400 font-bold flex items-center gap-1",children:[a.jsx(vh,{className:"w-3 h-3"})," ",c.available_spots," vagas"]})]})]},c.id)})})]})}),a.jsxs("section",{className:"py-28 px-4 sm:px-6 lg:px-8 relative",children:[a.jsx("div",{className:"absolute inset-0 pointer-events-none",children:a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"})}),a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-16",children:[a.jsx("h2",{className:"text-3xl sm:text-5xl font-extrabold mb-4",children:"Como funciona"}),a.jsx("p",{className:"text-white/40 text-lg",children:"Do zero ao seu roadmap personalizado em menos de 2 minutos"})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:i.map((c,u)=>a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u,className:"relative text-center group",children:[a.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-orange-500/20 to-purple-600/20 border border-white/10 flex items-center justify-center text-orange-400 group-hover:scale-110 transition-transform",children:c.icon}),a.jsx("div",{className:"absolute top-8 left-[60%] right-[-40%] h-px bg-gradient-to-r from-white/10 to-transparent hidden md:block last:hidden"}),a.jsx("h3",{className:"font-semibold text-lg mb-2",children:c.title}),a.jsx("p",{className:"text-white/40 text-sm",children:c.desc}),a.jsx("span",{className:"absolute -top-2 -left-2 w-6 h-6 rounded-full bg-orange-500 text-xs font-bold flex items-center justify-center",children:u+1})]},u))})]})]}),a.jsx("section",{className:"py-28 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-transparent via-white/[0.02] to-transparent",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-16",children:[a.jsx("h2",{className:"text-3xl sm:text-5xl font-extrabold mb-4",children:"Por que a Trainning é diferente"}),a.jsx("p",{className:"text-white/40 text-lg",children:"Não é só curso. à um motor completo de aceleração de carreira."})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map((c,u)=>
1359a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u,className:"p-6 rounded-2xl bg-white/[0.03] border border-white/[0.06] hover:border-orange-500/20 hover:bg-white/[0.05] transition-all duration-300 group",children:[a.jsx("div",{className:"text-orange-400 mb-4 group-hover:scale-110 transition-transform",children:c.icon}),a.jsx("h3",{className:"font-semibold text-lg mb-2",children:c.title}),a.jsx("p",{className:"text-white/40 text-sm leading-relaxed",children:c.desc})]},u))})]})}),a.jsxs("section",{className:"py-24 px-4 sm:px-6 lg:px-8 relative",children:[a.jsx("div",{className:"absolute inset-0 pointer-events-none",children:a.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"})}),a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"text-center mb-12",children:[a.jsx("h2",{className:"text-2xl sm:text-4xl font-extrabold mb-3",children:"Empresas que confiam na Trainning"}),a.jsx("p",{className:"text-white/30 text-sm",children:"Mais de 500 organizações treinam seus times conosco"})]}),a.jsx("div",{className:"flex flex-wrap items-center justify-center gap-6 mb-16",children:Sye.map((c,u)=>a.jsx(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:YS,custom:u*.5,className:"px-6 py-3 rounded-xl bg-white/[0.03] border border-white/[0.06] text-white/25 font-semibold text-sm hover:border-white/10 hover:text-white/40 transition-all",children:c},c))}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-8 text-center",children:[{value:"200K+",label:"Alunos formados",icon:a.jsx(wa,{className:"w-5 h-5"})},{value:"23K+",label:"Empresas atendidas",icon:a.jsx(Ra,{className:"w-5 h-5"})},{value:"250+",label:"Cursos e certificações",icon:a.jsx(kn,{className:"w-5 h-5"})},{value:"20+",label:"Anos de mercado",icon:a.jsx(os,{className:"w-5 h-5"})},{value:"9,9",label:"NPS dos clientes",icon:a.jsx(os,{className:"w-5 h-5"})}].map((c,u)=>a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:u,children:[a.jsx("div",{className:"text-orange-400/60 mb-2 flex justify-center",children:c.icon}),a.jsx("p",{className:"text-3xl sm:text-4xl font-extrabold bg-gradient-to-r from-orange-400 to-orange-600 bg-clip-text text-transparent",children:c.value}),a.jsx("p",{className:"text-white/30 text-sm mt-1",children:c.label})]},u))})]})]}),a.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsxs(Ze.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:aa,custom:0,className:"rounded-3xl border border-orange-500/20 bg-gradient-to-br from-orange-500/10 via-red-500/5 to-purple-600/5 p-8 sm:p-14 text-center relative overflow-hidden",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-0 right-0 w-[300px] h-[300px] bg-orange-500/10 rounded-full blur-[100px]"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-[300px] h-[300px] bg-purple-500/10 rounded-full blur-[100px]"})]}),a.jsxs("div",{className:"relative",children:[a.jsx(DA,{className:"w-12 h-12 text-orange-400 mx-auto mb-6"}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold mb-4",children:"Quer o caminho mais rápido?"}),a.jsx("p",{className:"text-white/50 text-lg mb-10 max-w-2xl mx-auto",children:"Analisamos seu perfil, cruzamos com turmas ativas e montamos a trilha mais eficiente para você."}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[a.jsxs(Oe,{onClick:e,size:"lg",className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold text-lg px-12 py-7 rounded-2xl shadow-[0_0_60px_rgba(249,115,22,0.3)] hover:scale-105 transition-all duration-300",children:["Descobrir Minha Trilha ",a.jsx(_r,{className:"w-5 h-5 ml-2"})]}),a.jsx(H1,{message:"Olá! Quero ajuda para escolher o melhor curso para minha carreira.",label:"Falar com especialista"})]})]})]})})}),a.jsx("div",{className:"h-16"})]})}function kQ(e,t){if(!t)return e;const r=e.filter(n=>!n.parentValues||n.parentValues.length===0||n.parentValues.includes(t));return r.length>0?r:e}function Iye(e,t,r){if(!e?.length)return[];const n=new Set(kQ(t,r).map(s=>s.value));return e.filter(s=>n.has(s))}const Fye={role:{sap_erp:"SAP lidera o mercado de ERP â consultores estão entre os mais bem pagos.",seguranca:"Cybersecurity tem déficit global de talentos. Excelente caminho!",dados_bi:"Dados e IA é o motor do mercado â
1359carreira com crescimento acelerado.",infra_devops:"Cloud e DevOps estão entre as áreas mais valorizadas em 2026!",dev_fullstack:"Programação segue com alta demanda e vagas em todos os setores.",gestao_projetos:"Liderança em TI combina técnico + estratégico. Forte perfil!",marketing_ecommerce:"Marketing Digital é essencial para qualquer negócio hoje.",design_ux:"UX/UI é a ponte entre tecnologia e pessoas. Perfil criativo!",office_produtividade:"Produtividade é a base para qualquer profissional evoluir.",estudante_transicao:"Transição de carreira para TI é uma das melhores decisões!"},experience_level:{beginner:"Perfeito! Vamos montar uma trilha sólida desde o inÃcio.",intermediate:"Bom momento para acelerar e se diferenciar no mercado.",advanced:"Hora de se especializar e buscar certificações avançadas.",expert:"Perfil sênior! Foco em liderança e certificações premium."},goals:{_default:"Objetivos claros! Isso vai guiar suas recomendações."},interest_areas:{_default:"Ãtimas áreas! Vamos cruzar com as melhores trilhas."},preferred_format:{_default:"Formato anotado! Vamos considerar na sua trilha."},decision_factors:{_default:"Entendido! Isso ajuda a priorizar as recomendações."}};function XS(e,t){const r=Fye[e];return r?Array.isArray(t)?r._default||null:r[t]||r._default||null:null}function Tye({onComplete:e,onSkip:t,onAnswersChange:r}){const[n,s]=A.useState([]),[o,i]=A.useState(!0),[l,c]=A.useState(0),[u,d]=A.useState({}),[f,h]=A.useState(1),[m,g]=A.useState(null);if(A.useEffect(()=>{(async()=>{const[E,O]=await Promise.all([J.from("trilha_perfeita_steps").select("*").eq("is_active",!0).order("step_order",{ascending:!0}),J.from("trilha_perfeita_options").select("*").eq("is_active",!0).order("option_order",{ascending:!0})]);if(E.data&&O.data){const k=E.data.map(D=>({id:D.id,question:D.question,subtitle:D.subtitle||"",key:D.key,multi:D.multi_select,maxSelect:D.max_select,options:O.data.filter(H=>H.step_id===D.id).map(H=>({value:H.value,label:H.label,icon:H.icon||"ð",desc:H.description,parentValues:Array.isArray(H.parent_option_values)?H.parent_option_values:null}))}));s(k)}i(!1)})()},[]),A.useEffect(()=>{g(null)},[l]),A.useEffect(()=>{Object.keys(u).length!==0&&r?.(u)},[u]),o||n.length===0)return a.jsx("div",{className:"min-h-[80vh] bg-[#0a0e1a] flex items-center justify-center",children:a.jsx($r,{className:"w-8 h-8 text-orange-500 animate-spin"})});const p=n[l],x=kQ(p.options,u.role),y=I=>{if(p.multi){const E=u[p.key]||[],O=p.maxSelect||99;let k;if(E.includes(I))k=E.filter(H=>H!==I);else if(E.length<O)k=[...E,I];else return;d({...u,[p.key]:k});const D=XS(p.key,k);D&&k.length>0?g(D):g(null)}else{const E={...u,[p.key]:I};if(p.key==="role")for(const k of n)k.multi&&Array.isArray(E[k.key])&&(E[k.key]=Iye(E[k.key],k.options,I));d(E);const O=XS(p.key,I);O&&g(O),setTimeout(()=>{l<n.length-1&&(h(1),c(l+1))},600)}},b=I=>p.multi?(u[p.key]||[]).includes(I):u[p.key]===I,j=p.multi?u[p.key]?.length>0:!!u[p.key],C=()=>{l===n.length-1?e({role:u.role,experience_level:u.experience_level,goals:u.goals||[],interest_areas:u.interest_areas||[],preferred_format:u.preferred_format||null,decision_factors:u.decision_factors||[],wants_certification:(u.decision_factors||[]).includes("certification")||(u.goals||[]).includes("get_certified")}):(h(1),c(l+1))},T=()=>{h(-1),c(l-1)},L=p.multi?(u[p.key]||[]).length:0,P=p.maxSelect;return a.jsxs("div",{className:"min-h-[80vh] bg-[#0a0e1a] flex flex-col overflow-hidden relative",children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-1/4 left-1/3 w-[500px] h-[500px] bg-orange-500/6 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute bottom-1/4 right-1/3 w-[500px] h-[500px] bg-purple-600/6 rounded-full blur-[150px]"})]}),l===0&&a.jsxs(Ze.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative z-10 text-center pt-6 sm:pt-10 pb-4 sm:pb-6 px-4",children:[a.jsx("h1",{className:"text-2xl sm:text-4xl font-extrabold text-white leading-tight",children:"Descubra sua trilha ideal em tecnologia"}),a.jsx("p",{className:"text-white/50 text-sm sm:text-base mt-3 max-w-xl mx-auto leading-relaxed",children:"O SkillMap analisa seu momento profissional e recomenda a carreira, certificações e formações com maior potencial de crescimento."})]}),a.jsxs("div",{className:"relative z-10 px-6 pt-4 pb-4",children:[a.jsx("div",{className:"flex gap-1.5 max-w-3xl mx-auto",children:n.map((I,E)=>a.jsx("div",{className:"flex-1 h-1.5 rounded-full overflow-hidden bg-white/10",children:a.jsx(Ze.div,{className:`h-full rounded-full ${E<=l?"bg-gradient-to-r from-orange-500 to-orange-400":""}`,initial:{width:"0%"}
1359,animate:{width:E<=l?"100%":"0%"},transition:{duration:.4,ease:"easeOut"}})},E))}),a.jsxs("div",{className:"flex justify-between items-center mt-3 max-w-3xl mx-auto",children:[a.jsxs("p",{className:"text-white/30 text-xs",children:["Etapa ",l+1," de ",n.length]}),a.jsxs("button",{onClick:t,className:"text-white/30 hover:text-white/60 transition-colors flex items-center gap-1 text-xs",children:["Pular ",a.jsx(Ua,{className:"w-3 h-3"})]})]})]}),a.jsx("div",{className:"relative z-10 flex-1 flex flex-col items-center justify-center px-4 sm:px-6 py-8 overflow-y-auto",children:a.jsx(Vw,{mode:"wait",custom:f,children:a.jsxs(Ze.div,{custom:f,initial:{opacity:0,x:f*80},animate:{opacity:1,x:0},exit:{opacity:0,x:-f*80},transition:{duration:.35,ease:"easeOut"},className:"w-full max-w-2xl",children:[a.jsx("div",{className:"flex justify-center mb-6",children:a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-medium",children:[a.jsx(Nr,{className:"w-3 h-3"})," Mapa personalizado de carreira"]})}),a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white mb-3",children:p.question}),a.jsx("p",{className:"text-white/40 text-sm",children:p.subtitle}),p.multi&&P&&a.jsxs("p",{className:"text-orange-400/60 text-xs mt-2",children:["Selecione até ",P," opções (",L,"/",P,")"]})]}),a.jsx("div",{className:"grid gap-3 grid-cols-1 sm:grid-cols-2",children:x.map((I,E)=>{const O=b(I.value);return a.jsxs(Ze.button,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:E*.04,duration:.3},whileTap:{scale:.97},onClick:()=>y(I.value),className:`relative p-5 rounded-2xl border text-left transition-all duration-200 group ${O?"bg-orange-500/15 border-orange-500/50 shadow-[0_0_30px_rgba(249,115,22,0.2)] animate-pulse-subtle":"bg-white/[0.03] border-white/[0.08] hover:bg-white/[0.06] hover:border-white/15"}`,children:[a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("span",{className:"text-2xl flex-shrink-0 mt-0.5",children:I.icon}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:`font-semibold text-sm ${O?"text-orange-400":"text-white"}`,children:I.label}),I.desc&&a.jsx("p",{className:"text-white/40 text-xs mt-1 line-clamp-2",children:I.desc})]})]}),a.jsx("div",{className:`absolute top-3 right-3 w-6 h-6 rounded-full border-2 flex items-center justify-center transition-all duration-200 ${O?"bg-orange-500 border-orange-500":"border-white/20 group-hover:border-white/30"}`,children:O&&a.jsx(Ze.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:25},children:a.jsx($s,{className:"w-3.5 h-3.5 text-white"})})})]},I.value)})}),a.jsx(Vw,{children:m&&a.jsx(Ze.div,{initial:{opacity:0,y:10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-5,height:0},transition:{duration:.3},className:"mt-5 flex items-center gap-2 justify-center",children:a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-xl bg-orange-500/10 border border-orange-500/20",children:[a.jsx(Nr,{className:"w-3.5 h-3.5 text-orange-400 flex-shrink-0"}),a.jsx("span",{className:"text-orange-300 text-xs font-medium",children:m})]})})})]},l)})}),a.jsxs("div",{className:"relative z-10 px-6 py-5 flex items-center justify-between max-w-2xl mx-auto w-full",children:[a.jsx("div",{children:l>0?a.jsxs(Oe,{variant:"ghost",onClick:T,className:"text-white/40 hover:text-white hover:bg-white/5 rounded-xl",children:[a.jsx(TA,{className:"w-4 h-4 mr-2"})," Voltar"]}):a.jsx("div",{})}),p.multi&&a.jsx(Oe,{onClick:C,disabled:!j,className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-semibold px-8 rounded-xl disabled:opacity-30",children:l===n.length-1?a.jsxs(a.Fragment,{children:[a.jsx(Nr,{className:"w-4 h-4 mr-2"})," Ver meu roadmap"]}):a.jsxs(a.Fragment,{children:["Continuar ",a.jsx(_r,{className:"w-4 h-4 ml-2"})]})})]})]})}var jj="Progress",Ej=100,[Pye]=Ha(jj),[Lye,Dye]=Pye(jj),IQ=A.forwardRef((e,t)=>
1359{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:o=Rye,...i}=e;(s||s===0)&&!ZS(s)&&console.error(Mye(`${s}`,"Progress"));const l=ZS(s)?s:Ej;n!==null&&!JS(n,l)&&console.error(Oye(`${n}`,"Progress"));const c=JS(n,l)?n:null,u=ax(c)?o(c,l):void 0;return a.jsx(Lye,{scope:r,value:c,max:l,children:a.jsx(_t.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":ax(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":PQ(c,l),"data-value":c??void 0,"data-max":l,...i,ref:t})})});IQ.displayName=jj;var FQ="ProgressIndicator",TQ=A.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,s=Dye(FQ,r);return a.jsx(_t.div,{"data-state":PQ(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:t})});TQ.displayName=FQ;function Rye(e,t){return`${Math.round(e/t*100)}%`}function PQ(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ax(e){return typeof e=="number"}function ZS(e){return ax(e)&&!isNaN(e)&&e>0}function JS(e,t){return ax(e)&&!isNaN(e)&&e<=t&&e>=0}function Mye(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ej}\`.`}function Oye(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 1360 - a positive number 1361 - less than the value passed to \`max\` (or ${Ej} if no \`max\` prop is set) 1362 - \`null\` or \`undefined\` if the progress is indeterminate. 1363 1364Defaulting to \`null\`.`}var LQ=IQ,Uye=TQ;const Sv=A.forwardRef(({className:e,value:t,...r},n)=>a.jsx(LQ,{ref:n,className:je("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:a.jsx(Uye,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Sv.displayName=LQ.displayName;/*! 1365 * html2canvas 1.4.1 <https://html2canvas.hertzen.com> 1366 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> 1367 * Released under MIT License 1368 *//*! ***************************************************************************** 1369Copyright (c) Microsoft Corporation. 1370 1371Permission to use, copy, modify, and/or distribute this software for any 1372purpose with or without fee is hereby granted. 1373 1374THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 1375REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 1376AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 1377INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 1378LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 1379OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1380PERFORMANCE OF THIS SOFTWARE. 1381***************************************************************************** */var k_=function(e,t){return k_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},k_(e,t)};function si(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");k_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var I_=function(){return I_=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},I_.apply(this,arguments)};function ys(e,t,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(d){try{u(n.next(d))}catch(f){i(f)}}function c(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):s(d.value).then(l,c)}u((n=n.apply(e,[])).next())})}function ts(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(u){return function(d){return c([u,d])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=u[0]&2?s.return:u[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,u[1])).done)return o;switch(s=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,s=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],s=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function og(e,t,r){if(arguments.length===2)for(var n=0,s=t.length,o;n<s;
vendor: 4,005 bytes, line 1381
1381n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}var _l=function(){function e(t,r,n,s){this.left=t,this.top=r,this.width=n,this.height=s}return e.prototype.add=function(t,r,n,s){return new e(this.left+t,this.top+r,this.width+n,this.height+s)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(s){return s.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),kv=function(e,t){return _l.fromClientRect(e,t.getBoundingClientRect())},Qye=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new _l(0,0,n,s)},Iv=function(e){for(var t=[],r=0,n=e.length;r<n;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var o=e.charCodeAt(r++);(o&64512)===56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},qn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],s=-1,o="";++s<r;){var i=e[s];i<=65535?n.push(i):(i-=65536,n.push((i>>10)+55296,i%1024+56320)),(s+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},e3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vye=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ig=0;ig<e3.length;ig++)Vye[e3.charCodeAt(ig)]=ig;var t3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var lg=0;lg<t3.length;lg++)Yf[t3.charCodeAt(lg)]=lg;var Hye=function(e){var t=e.length*.75,r=e.length,n,s=0,o,i,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)o=Yf[e.charCodeAt(n)],i=Yf[e.charCodeAt(n+1)],l=Yf[e.charCodeAt(n+2)],c=Yf[e.charCodeAt(n+3)],d[s++]=o<<2|i>>4,d[s++]=(i&15)<<4|l>>2,d[s++]=(l&3)<<6|c&63;return u},zye=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},$ye=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Cu=5,Bj=11,z1=2,qye=Bj-Cu,DQ=65536>>Cu,Kye=1<<Cu,$1=Kye-1,Gye=1024>>Cu,Wye=DQ+Gye,Yye=Wye,Xye=32,Zye=Yye+Xye,Jye=65536>>Bj,e1e=1<<qye,t1e=e1e-1,r3=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},r1e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},n1e=function(e,t){var r=Hye(e),n=Array.isArray(r)?$ye(r):new Uint32Array(r),s=Array.isArray(r)?zye(r):new Uint16Array(r),o=24,i=r3(s,o/2,n[4]/2),l=n[5]===2?r3(s,(o+n[4])/2):r1e(n,Math.ceil((o+n[4])/4));return new a1e(n[0],n[1],n[2],n[3],i,l)},a1e=function(){function e(t,r,n,s,o,i){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=s,this.index=o,this.data=i}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Cu],r=(r<<z1)+(t&$1),this.data[r];if(t<=65535)return r=this.index[DQ+(t-55296>>Cu)],r=(r<<z1)+(t&$1),this.data[r];if(t<this.highStart)return r=Zye-Jye+(t>>Bj),r=this.index[r],r+=t>>Cu&t1e,r=this.index[r],r=(r<<z1)+(t&$1),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),n3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s1e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var cg=0;cg<n3.length;cg++)s1e[n3.charCodeAt(cg)]=cg;var o1e="
vendor: 52,888 bytes, line 1381
1381KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==
1381",a3=50,i1e=1,RQ=2,MQ=3,l1e=4,c1e=5,s3=7,OQ=8,o3=9,oc=10,F_=11,i3=12,T_=13,u1e=14,Xf=15,P_=16,ug=17,Lf=18,d1e=19,l3=20,L_=21,Df=22,q1=23,kd=24,oo=25,Zf=26,Jf=27,Id=28,A1e=29,fu=30,f1e=31,dg=32,Ag=33,D_=34,R_=35,M_=36,ah=37,O_=38,h0=39,p0=40,K1=41,UQ=42,m1e=43,h1e=[9001,65288],QQ="!",mr="Ã",fg="÷",U_=n1e(o1e),rl=[fu,M_],Q_=[i1e,RQ,MQ,c1e],VQ=[oc,OQ],c3=[Jf,Zf],p1e=Q_.concat(VQ),u3=[O_,h0,p0,D_,R_],g1e=[Xf,T_],x1e=function(e,t){t===void 0&&(t="strict");var r=[],n=[],s=[];return e.forEach(function(o,i){var l=U_.get(o);if(l>a3?(s.push(!0),l-=a3):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(o)!==-1)return n.push(i),r.push(P_);if(l===l1e||l===F_){if(i===0)return n.push(i),r.push(fu);var c=r[i-1];return p1e.indexOf(c)===-1?(n.push(n[i-1]),r.push(c)):(n.push(i),r.push(fu))}if(n.push(i),l===f1e)return r.push(t==="strict"?L_:ah);if(l===UQ||l===A1e)return r.push(fu);if(l===m1e)return o>=131072&&o<=196605||o>=196608&&o<=262141?r.push(ah):r.push(fu);r.push(l)}),[n,r,s]},G1=function(e,t,r,n){var s=n[r];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var o=r;o<=n.length;){o++;var i=n[o];if(i===t)return!0;if(i!==oc)break}if(s===oc)for(var o=r;o>0;){o--;var l=n[o];if(Array.isArray(e)?e.indexOf(l)!==-1:e===l)for(var c=r;c<=n.length;){c++;var i=n[c];if(i===t)return!0;if(i!==oc)break}if(l!==oc)break}return!1},d3=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===oc)r--;else return n}return 0},v1e=function(e,t,r,n,s){if(r[n]===0)return mr;var o=n-1;if(Array.isArray(s)&&s[o]===!0)return mr;var i=o-1,l=o+1,c=t[o],u=i>=0?t[i]:0,d=t[l];if(c===RQ&&d===MQ)return mr;if(Q_.indexOf(c)!==-1)return QQ;if(Q_.indexOf(d)!==-1||VQ.indexOf(d)!==-1)return mr;if(d3(o,t)===OQ)return fg;if(U_.get(e[o])===F_||(c===dg||c===Ag)&&U_.get(e[l])===F_||c===s3||d===s3||c===o3||[oc,T_,Xf].indexOf(c)===-1&&d===o3||[ug,Lf,d1e,kd,Id].indexOf(d)!==-1||d3(o,t)===Df||G1(q1,Df,o,t)||G1([ug,Lf],L_,o,t)||G1(i3,i3,o,t))return mr;if(c===oc)return fg;if(c===q1||d===q1)return mr;if(d===P_||c===P_)return fg;if([T_,Xf,L_].indexOf(d)!==-1||c===u1e||u===M_&&g1e.indexOf(c)!==-1||c===Id&&d===M_||d===l3||rl.indexOf(d)!==-1&&c===oo||rl.indexOf(c)!==-1&&d===oo||c===Jf&&[ah,dg,Ag].indexOf(d)!==-1||[ah,dg,Ag].indexOf(c)!==-1&&d===Zf||rl.indexOf(c)!==-1&&c3.indexOf(d)!==-1||c3.indexOf(c)!==-1&&rl.indexOf(d)!==-1||[Jf,Zf].indexOf(c)!==-1&&(d===oo||[Df,Xf].indexOf(d)!==-1&&t[l+1]===oo)||[Df,Xf].indexOf(c)!==-1&&d===oo||c===oo&&[oo,Id,kd].indexOf(d)!==-1)return mr;if([oo,Id,kd,ug,Lf].indexOf(d)!==-1)for(var f=o;f>=0;){var h=t[f];if(h===oo)return mr;if([Id,kd].indexOf(h)!==-1)f--;else break}if([Jf,Zf].indexOf(d)!==-1)for(var f=[ug,Lf].indexOf(c)!==-1?i:o;f>=0;){var h=t[f];if(h===oo)return mr;if([Id,kd].indexOf(h)!==-1)f--;else break}if(O_===c&&[O_,h0,D_,R_].indexOf(d)!==-1||[h0,D_].indexOf(c)!==-1&&[h0,p0].indexOf(d)!==-1||[p0,R_].indexOf(c)!==-1&&d===p0||u3.indexOf(c)!==-1&&[l3,Zf].indexOf(d)!==-1||u3.indexOf(d)!==-1&&c===Jf||rl.indexOf(c)!==-1&&rl.indexOf(d)!==-1||c===kd&&rl.indexOf(d)!==-1||rl.concat(oo).indexOf(c)!==-1&&d===Df&&h1e.indexOf(e[l])===-1||rl.concat(oo).indexOf(d)!==-1&&c===Lf)return mr;if(c===K1&&d===K1){for(var m=r[o],g=1;m>0&&(m--,t[m]===K1);)g++;if(g%2!==0)return mr}return c===dg&&d===Ag?mr:fg},y1e=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=x1e(e,t.lineBreak),n=r[0],s=r[1],o=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(l){return[oo,fu,UQ].indexOf(l)!==-1?ah:l}));var i=t.wordBreak==="keep-all"?o.map(function(l,c){return l&&e[c]>=19968&&e[c]<=40959}):void 0;return[n,s,i]}
vendor: 15,680 bytes, line 1381
1381,b1e=function(){function e(t,r,n,s){this.codePoints=t,this.required=r===QQ,this.start=n,this.end=s}return e.prototype.slice=function(){return qn.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),w1e=function(e,t){var r=Iv(e),n=y1e(r,t),s=n[0],o=n[1],i=n[2],l=r.length,c=0,u=0;return{next:function(){if(u>=l)return{done:!0,value:null};for(var d=mr;u<l&&(d=v1e(r,o,s,++u,i))===mr;);if(d!==mr||u===l){var f=new b1e(r,d,c,u);return c=u,{value:f,done:!1}}return{done:!0,value:null}}}},_1e=1,C1e=2,Yh=4,A3=8,sx=10,f3=47,xm=92,j1e=9,E1e=32,mg=34,Rf=61,B1e=35,N1e=36,S1e=37,hg=39,pg=40,Mf=41,k1e=95,Os=45,I1e=33,F1e=60,T1e=62,P1e=64,L1e=91,D1e=93,R1e=61,M1e=123,gg=63,O1e=125,m3=124,U1e=126,Q1e=128,h3=65533,W1=42,xu=43,V1e=44,H1e=58,z1e=59,sh=46,$1e=0,q1e=8,K1e=11,G1e=14,W1e=31,Y1e=127,hi=-1,HQ=48,zQ=97,$Q=101,X1e=102,Z1e=117,J1e=122,qQ=65,KQ=69,GQ=70,ebe=85,tbe=90,as=function(e){return e>=HQ&&e<=57},rbe=function(e){return e>=55296&&e<=57343},Fd=function(e){return as(e)||e>=qQ&&e<=GQ||e>=zQ&&e<=X1e},nbe=function(e){return e>=zQ&&e<=J1e},abe=function(e){return e>=qQ&&e<=tbe},sbe=function(e){return nbe(e)||abe(e)},obe=function(e){return e>=Q1e},xg=function(e){return e===sx||e===j1e||e===E1e},ox=function(e){return sbe(e)||obe(e)||e===k1e},p3=function(e){return ox(e)||as(e)||e===Os},ibe=function(e){return e>=$1e&&e<=q1e||e===K1e||e>=G1e&&e<=W1e||e===Y1e},Jl=function(e,t){return e!==xm?!1:t!==sx},vg=function(e,t,r){return e===Os?ox(t)||Jl(t,r):ox(e)?!0:!!(e===xm&&Jl(e,t))},Y1=function(e,t,r){return e===xu||e===Os?as(t)?!0:t===sh&&as(r):as(e===sh?t:e)},lbe=function(e){var t=0,r=1;(e[t]===xu||e[t]===Os)&&(e[t]===Os&&(r=-1),t++);for(var n=[];as(e[t]);)n.push(e[t++]);var s=n.length?parseInt(qn.apply(void 0,n),10):0;e[t]===sh&&t++;for(var o=[];as(e[t]);)o.push(e[t++]);var i=o.length,l=i?parseInt(qn.apply(void 0,o),10):0;(e[t]===KQ||e[t]===$Q)&&t++;var c=1;(e[t]===xu||e[t]===Os)&&(e[t]===Os&&(c=-1),t++);for(var u=[];as(e[t]);)u.push(e[t++]);var d=u.length?parseInt(qn.apply(void 0,u),10):0;return r*(s+l*Math.pow(10,-i))*Math.pow(10,c*d)},cbe={type:2},ube={type:3},dbe={type:4},Abe={type:13},fbe={type:8},mbe={type:21},hbe={type:9},pbe={type:10},gbe={type:11},xbe={type:12},vbe={type:14},yg={type:23},ybe={type:1},bbe={type:25},wbe={type:24},_be={type:26},Cbe={type:27},jbe={type:28},Ebe={type:29},Bbe={type:31},V_={type:32},WQ=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Iv(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==V_;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case mg:return this.consumeStringToken(mg);case B1e:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);if(p3(r)||Jl(n,s)){var o=vg(r,n,s)?C1e:_1e,i=this.consumeName();return{type:5,value:i,flags:o}}break;case N1e:if(this.peekCodePoint(0)===Rf)return this.consumeCodePoint(),Abe;break;case hg:return this.consumeStringToken(hg);case pg:return cbe;case Mf:return ube;case W1:if(this.peekCodePoint(0)===Rf)return this.consumeCodePoint(),vbe;break;case xu:if(Y1(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case V1e:return dbe;case Os:var l=t,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Y1(l,c,u))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(vg(l,c,u))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(c===Os&&u===T1e)return this.consumeCodePoint(),this.consumeCodePoint(),wbe;break;case sh:if(Y1(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case f3:if(this.peekCodePoint(0)===W1)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===W1&&(d=this.consumeCodePoint(),d===f3))return this.consumeToken();if(d===hi)return this.consumeToken()}break;case H1e:return _be;case z1e:return Cbe;case F1e:if(this.peekCodePoint(0)===I1e&&this.peekCodePoint(1)===Os&&this.peekCodePoint(2)===Os)return this.consumeCodePoint(),this.consumeCodePoint(),bbe;break;case P1e:var f=this.peekCodePoint(0),h=this.peekCodePoint(1),m=this.peekCodePoint(2);if(vg(f,h,m)){var i=this.consumeName();return{type:7,value:i}}break;case L1e:return jbe;case xm:if(Jl(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case D1e:return Ebe;case R1e:if(this.peekCodePoint(0)===Rf)return this.consumeCodePoint(),fbe;break;case M1e:return gbe;case O1e:return xbe;case Z1e:case ebe:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g===xu&&(Fd(p)||p===gg)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case m3:if(this.peekCodePoint(0)===Rf)return this.consumeCodePoint(),hbe;if(this.peekCodePoint(0)===m3)return this.consumeCodePoint(),mbe;break;case U1e:if(this.peekCodePoint(0)===Rf)return this.consumeCodePoint(),pbe;break;case hi:return V_}return xg(t)?(this.consumeWhiteSpace(),Bbe):as(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ox(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:qn(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();Fd(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===gg&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var s=parseInt(qn.apply(void 0,t.map(function(c){return c===gg?HQ:c})),16),o=parseInt(qn.apply(void 0,t.map(function(c){return c===gg?GQ:c})),16);return{type:30,start:s,end:o}}var i=parseInt(qn.apply(void 0,t),16);if(this.peekCodePoint(0)===Os&&Fd(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var l=[];Fd(r)&&l.length<6;)l.push(r),r=this.consumeCodePoint();var o=parseInt(qn.apply(void 0,l),16);return{type:30,start:i,end:o}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===pg?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===pg?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===hi)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===hg||r===mg){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===hi||this.peekCodePoint(0)===Mf)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),yg)}for(;;){var s=this.consumeCodePoint();if(s===hi||s===Mf)return{type:22,value:qn.apply(void 0,t)};if(xg(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===hi||this.peekCodePoint(0)===Mf?(this.consumeCodePoint(),{type:22,value:qn.apply(void 0,t)}):(this.consumeBadUrlRemnants(),yg);if(s===mg||s===hg||s===pg||ibe(s))return this.consumeBadUrlRemnants(),yg;if(s===xm)if(Jl(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),yg;else t.push(s)}},e.prototype.consumeWhiteSpace=function(){for(;xg(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Mf||t===hi)return;Jl(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var s=Math.min(r,t);n+=qn.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var s=this._value[n];if(s===hi||s===void 0||s===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(s===sx)return this._value.splice(0,n),ybe;if(s===xm){var o=this._value[n+1];o!==hi&&o!==void 0&&(o===sx?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):Jl(s,o)&&(r+=this.consumeStringSlice(n),r+=qn(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=Yh,n=this.peekCodePoint(0);for((n===xu||n===Os)&&t.push(this.consumeCodePoint());as(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(n===sh&&as(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=A3;as(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),s=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((n===KQ||n===$Q)&&((s===xu||s===Os)&&as(o)||as(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=A3;as(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[lbe(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],s=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(vg(s,o,i)){var l=this.consumeName();return{type:15,number:r,flags:n,unit:l}}return s===S1e?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Fd(t)){for(var r=qn(t);Fd(this.peekCodePoint(0))&&r.length<6;)r+=qn(this.consumeCodePoint());xg(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||rbe(n)||n>1114111?h3:n}return t===hi?h3:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(p3(r))t+=qn(r);else if(Jl(r,this.peekCodePoint(0)))t+=qn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e}(),YQ=function(){function e(t){this._tokens=t}return e.create=function(t){var r=new WQ;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||Sbe(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?V_:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Xh=function(e){return e.type===15},tf=function(e){return e.type===17},zr=function(e){return e.type===20},Nbe=function(e){return e.type===0},H_=function(e,t){return zr(e)&&e.value===t},XQ=function(e){return e.type!==31},kA=function(e){return e.type!==31&&e.type!==4},Ui=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},Sbe=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},Ec=function(e){return e.type===17||e.type===15},ia=function(e){return e.type===16||Ec(e)},ZQ=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Ma={type:17,number:0,flags:Yh},Nj={type:16,number:50,flags:Yh},ic={type:16,number:100,flags:Yh},em=function(e,t,r){var n=e[0],s=e[1];return[tn(n,t),tn(typeof s<"u"?s:n,r)]},tn=function(e,t){if(e.type===16)return e.number/100*t;if(Xh(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},JQ="deg",e7="grad",t7="rad",r7="turn",Fv={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case JQ:return Math.PI*t.number/180;case e7:return Math.PI/200*t.number;case t7:return t.number;case r7:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},n7=function(e){return e.type===15&&(e.unit===JQ||e.unit===e7||e.unit===t7||e.unit===r7)},a7=function(e){var t=e.filter(zr).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ma,Ma];case"to top":case"bottom":return Bo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ma,ic];case"to right":case"left":return Bo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ic,ic];case"to bottom":case"top":return Bo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ic,Ma];case"to left":case"right":return Bo(270)}return 0},Bo=function(e){return Math.PI*e/180},fc={name:"color",parse:function(e,t){if(t.type===18){var r=kbe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),s=t.value.substring(1,2),o=t.value.substring(2,3);return lc(parseInt(n+n,16),parseInt(s+s,16),parseInt(o+o,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),s=t.value.substring(1,2),o=t.value.substring(2,3),i=t.value.substring(3,4);return lc(parseInt(n+n,16),parseInt(s+s,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),s=t.value.substring(2,4),o=t.value.substring(4,6);return lc(parseInt(n,16),parseInt(s,16),parseInt(o,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),s=t.value.substring(2,4),o=t.value.substring(4,6),i=t.value.substring(6,8);return lc(parseInt(n,16),parseInt(s,16),parseInt(o,16),parseInt(i,16)/255)}}if(t.type===20){var l=gl[t.value.toUpperCase()];if(typeof l<"u")return l}return gl.TRANSPARENT}},mc=function(e){return(255&e)===0},ja=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,s=255&e>>24;return t<255?"rgba("+s+","+n+","+r+","+t/255+")":"rgb("+s+","+n+","+r+")"},lc=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},g3=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},x3=function(e,t){var r=t.filter(kA);if(r.length===3){var n=r.map(g3),s=n[0],o=n[1],i=n[2];return lc(s,o,i,1)}if(r.length===4){var l=r.map(g3),s=l[0],o=l[1],i=l[2],c=l[3];return lc(s,o,i,c)}return 0};function X1(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var v3=function(e,t){var r=t.filter(kA),n=r[0],s=r[1],o=r[2],i=r[3],l=(n.type===17?Bo(n.number):Fv.parse(e,n))/(Math.PI*2),c=ia(s)?s.number/100:0,u=ia(o)?o.number/100:0,d=typeof i<"u"&&ia(i)?tn(i,1):1;if(c===0)return lc(u*255,u*255,u*255,1);var f=u<=.5?u*(c+1):u+c-u*c,h=u*2-f,m=X1(h,f,l+1/3),g=X1(h,f,l),p=X1(h,f,l-1/3);return lc(m*255,g*255,p*255,d)},kbe={hsl:v3,hsla:v3,rgb:x3,rgba:x3},vm=function(e,t){return fc.parse(e,YQ.create(t).parseComponentValue())},gl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4
1381043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:404164
vendor: 5,565 bytes, line 1381
13811215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ibe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(zr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Fbe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Tv=function(e,t){var r=fc.parse(e,t[0]),n=t[1];return n&&ia(n)?{color:r,stop:n}:{color:r,stop:null}},y3=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=Ma),n.stop===null&&(n.stop=ic);for(var s=[],o=0,i=0;i<e.length;i++){var l=e[i].stop;if(l!==null){var c=tn(l,t);c>o?s.push(c):s.push(o),o=c}else s.push(null)}for(var u=null,i=0;i<s.length;i++){var d=s[i];if(d===null)u===null&&(u=i);else if(u!==null){for(var f=i-u,h=s[u-1],m=(d-h)/(f+1),g=1;g<=f;g++)s[u+g-1]=m*g;u=null}}return e.map(function(p,x){var y=p.color;return{color:y,stop:Math.max(Math.min(1,s[x]/t),0)}})},Tbe=function(e,t,r){var n=t/2,s=r/2,o=tn(e[0],t)-n,i=s-tn(e[1],r);return(Math.atan2(i,o)+Math.PI*2)%(Math.PI*2)},Pbe=function(e,t,r){var n=typeof e=="number"?e:Tbe(e,t,r),s=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),o=t/2,i=r/2,l=s/2,c=Math.sin(n-Math.PI/2)*l,u=Math.cos(n-Math.PI/2)*l;return[s,o-u,o+u,i-c,i+c]},qo=function(e,t){return Math.sqrt(e*e+t*t)},b3=function(e,t,r,n,s){var o=[[0,0],[0,t],[e,0],[e,t]];return o.reduce(function(i,l){var c=l[0],u=l[1],d=qo(r-c,n-u);return(s?d<i.optimumDistance:d>i.optimumDistance)?{optimumCorner:l,optimumDistance:d}:i},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},Lbe=function(e,t,r,n,s){var o=0,i=0;switch(e.size){case 0:e.shape===0?o=i=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-s)):e.shape===1&&(o=Math.min(Math.abs(t),Math.abs(t-n)),i=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(e.shape===0)o=i=Math.min(qo(t,r),qo(t,r-s),qo(t-n,r),qo(t-n,r-s));else if(e.shape===1){var l=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-n)),c=b3(n,s,t,r,!0),u=c[0],d=c[1];o=qo(u-t,(d-r)/l),i=l*o}break;case 1:e.shape===0?o=i=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-s)):e.shape===1&&(o=Math.max(Math.abs(t),Math.abs(t-n)),i=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(e.shape===0)o=i=Math.max(qo(t,r),qo(t,r-s),qo(t-n,r),qo(t-n,r-s));else if(e.shape===1){var l=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-n)),f=b3(n,s,t,r,!1),u=f[0],d=f[1];o=qo(u-t,(d-r)/l),i=l*o}break}return Array.isArray(e.size)&&(o=tn(e.size[0],n),i=e.size.length===2?tn(e.size[1],s):o),[o,i]},Dbe=function(e,t){var r=Bo(180),n=[];return Ui(t).forEach(function(s,o){if(o===0){var i=s[0];if(i.type===20&&i.value==="to"){r=a7(s);return}else if(n7(i)){r=Fv.parse(e,i);return}}var l=Tv(e,s);n.push(l)}),{angle:r,stops:n,type:1}},bg=function(e,t){var r=Bo(180),n=[];return Ui(t).forEach(function(s,o){if(o===0){var i=s[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=a7(s);return}else if(n7(i)){r=(Fv.parse(e,i)+Bo(270))%Bo(360);return}}var l=Tv(e,s);n.push(l)}),{angle:r,stops:n,type:1}},Rbe=function(e,t){var r=Bo(180),n=[],s=1,o=0,i=3,l=[];return Ui(t).forEach(function(c,u){var d=c[0];if(u===0){if(zr(d)&&d.value==="linear"){s=1;return}else if(zr(d)&&d.value==="radial"){s=2;return}}if(d.type===18){if(d.name==="from"){var f=fc.parse(e,d.values[0]);n.push({stop:Ma,color:f})}else if(d.name==="to"){var f=fc.parse(e,d.values[0]);n.push({stop:ic,color:f})}else if(d.name==="color-stop"){var h=d.values.filter(kA);if(h.length===2){var f=fc.parse(e,h[1]),m=h[0];tf(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:f})}}}}),s===1?{angle:(r+Bo(180))%Bo(360),stops:n,type:s}:{size:i,shape:o,stops:n,position:l,type:s}},s7="closest-side",o7="farthest-side",i7="closest-corner",l7="farthest-corner",c7="circle",u7="ellipse",d7="c
1381over",A7="contain",Mbe=function(e,t){var r=0,n=3,s=[],o=[];return Ui(t).forEach(function(i,l){var c=!0;if(l===0){var u=!1;c=i.reduce(function(f,h){if(u)if(zr(h))switch(h.value){case"center":return o.push(Nj),f;case"top":case"left":return o.push(Ma),f;case"right":case"bottom":return o.push(ic),f}else(ia(h)||Ec(h))&&o.push(h);else if(zr(h))switch(h.value){case c7:return r=0,!1;case u7:return r=1,!1;case"at":return u=!0,!1;case s7:return n=0,!1;case d7:case o7:return n=1,!1;case A7:case i7:return n=2,!1;case l7:return n=3,!1}else if(Ec(h)||ia(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return f},c)}if(c){var d=Tv(e,i);s.push(d)}}),{size:n,shape:r,stops:s,position:o,type:2}},wg=function(e,t){var r=0,n=3,s=[],o=[];return Ui(t).forEach(function(i,l){var c=!0;if(l===0?c=i.reduce(function(d,f){if(zr(f))switch(f.value){case"center":return o.push(Nj),!1;case"top":case"left":return o.push(Ma),!1;case"right":case"bottom":return o.push(ic),!1}else if(ia(f)||Ec(f))return o.push(f),!1;return d},c):l===1&&(c=i.reduce(function(d,f){if(zr(f))switch(f.value){case c7:return r=0,!1;case u7:return r=1,!1;case A7:case s7:return n=0,!1;case o7:return n=1,!1;case i7:return n=2,!1;case d7:case l7:return n=3,!1}else if(Ec(f)||ia(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return d},c)),c){var u=Tv(e,i);s.push(u)}}),{size:n,shape:r,stops:s,position:o,type:2}},Obe=function(e){return e.type===1},Ube=function(e){return e.type===2},Sj={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=f7[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Qbe(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!f7[e.name])}var f7={"linear-gradient":Dbe,"-moz-linear-gradient":bg,"-ms-linear-gradient":bg,"-o-linear-gradient":bg,"-webkit-linear-gradient":bg,"radial-gradient":Mbe,"-moz-radial-gradient":wg,"-ms-radial-gradient":wg,"-o-radial-gradient":wg,"-webkit-radial-gradient":wg,"-webkit-gradient":Rbe},Vbe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return kA(n)&&Qbe(n)}).map(function(n){return Sj.parse(e,n)})}},Hbe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(zr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zbe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ui(t).map(function(r){return r.filter(ia)}).map(ZQ)}},$be={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ui(t).map(function(r){return r.filter(zr).map(function(n){return n.value}).join(" ")}).map(qbe)}},qbe=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},uA;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(uA||(uA={}));var Kbe={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ui(t).map(function(r){return r.filter(Gbe)})}},Gbe=function(e){return zr(e)||ia(e)},Pv=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Wbe=Pv("top"),Ybe=Pv("right"),Xbe=Pv("bottom"),Zbe=Pv("left"),Lv=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return ZQ(r.filter(ia))}}},Jbe=Lv("top-left"),ewe=Lv("top-right"),twe=Lv("bottom-right"),rwe=Lv("bottom-left"),Dv=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},nwe=Dv("top"),awe=Dv("right"),swe=Dv("bottom"),owe=Dv("left"),Rv=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Xh(r)?r.number:0}}},iwe=Rv("top"),lwe=Rv("right"),cwe=Rv("bottom"),uwe=Rv("left"),dwe={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Awe={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}}
vendor: 16,176 bytes, line 1381
1381,fwe={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(zr).reduce(function(r,n){return r|mwe(n.value)},0)}},mwe=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},hwe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},pwe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},ix;(function(e){e.NORMAL="normal",e.STRICT="strict"})(ix||(ix={}));var gwe={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return ix.STRICT;case"normal":default:return ix.NORMAL}}},xwe={name:"line-height",initialValue:"normal",prefix:!1,type:4},w3=function(e,t){return zr(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:ia(e)?tn(e,t):t},vwe={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:Sj.parse(e,t)}},ywe={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},z_={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Mv=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},bwe=Mv("top"),wwe=Mv("right"),_we=Mv("bottom"),Cwe=Mv("left"),jwe={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(zr).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ewe={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ov=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Bwe=Ov("top"),Nwe=Ov("right"),Swe=Ov("bottom"),kwe=Ov("left"),Iwe={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fwe={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Twe={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&H_(t[0],"none")?[]:Ui(t).map(function(r){for(var n={color:gl.TRANSPARENT,offsetX:Ma,offsetY:Ma,blur:Ma},s=0,o=0;o<r.length;o++){var i=r[o];Ec(i)?(s===0?n.offsetX=i:s===1?n.offsetY=i:n.blur=i,s++):n.color=fc.parse(e,i)}return n})}},Pwe={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Lwe={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=Mwe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},Dwe=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},Rwe=function(e){var t=e.filter(function(c){return c.type===17}).map(function(c){return c.number}),r=t[0],n=t[1];t[2],t[3];var s=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var i=t[12],l=t[13];return t[14],t[15],t.length===16?[r,n,s,o,i,l]:null},Mwe={matrix:Dwe,matrix3d:Rwe},_3={type:16,number:50,flags:Yh},Owe=[_3,_3],Uwe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(ia);return r.length!==2?Owe:[r[0],r[1]]}},Qwe={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ym;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(ym||(ym={}));var Vwe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return ym.BREAK_ALL;case"keep-all":return ym.KEEP_ALL;case"normal":default:return ym.NORMAL}}},Hwe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(tf(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},m7={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},zwe={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return tf(t)?t.number:1}},$we={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qwe={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(zr).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},Kwe={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},Gwe={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wwe={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(tf(t))return t.number;if(zr(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ywe={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(zr).map(function(r){return r.value})}},Xwe={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},ba=function(e,t){return(e&t)!==0},Zwe={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},Jwe={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],s=t.filter(XQ),o=0;o<s.length;o++){var i=s[o],l=s[o+1];if(i.type===20){var c=l&&tf(l)?l.number:1;n.push({counter:i.value,increment:c})}}return n}},e_e={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(XQ),s=0;s<n.length;s++){var o=n[s],i=n[s+1];if(zr(o)&&o.value!=="none"){var l=i&&tf(i)?i.number:0;r.push({counter:o.value,reset:l})}}return r}},t_e={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Xh).map(function(r){return m7.parse(e,r)})}},r_e={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],s=t.filter(Nbe);if(s.length%2!==0)return null;for(var o=0;o<s.length;o+=2){var i=s[o].value,l=s[o+1].value;n.push({open:i,close:l})}return n}},C3=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},n_e={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&H_(t[0],"none")?[]:Ui(t).map(function(r){for(var n={color:255,offsetX:Ma,offsetY:Ma,blur:Ma,spread:Ma,inset:!1},s=0,o=0;o<r.length;o++){var i=r[o];H_(i,"inset")?n.inset=!0:Ec(i)?(s===0?n.offsetX=i:s===1?n.offsetY=i:s===2?n.blur=i:n.spread=i,s++):n.color=fc.parse(e,i)}return n})}},a_e={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(zr).forEach(function(s){switch(s.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(s){n.indexOf(s)===-1&&n.push(s)}),n}},s_e={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},o_e={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Xh(t)?t.number:0}},i_e=function(){function e(t,r){var n,s;this.animationDuration=Ct(t,t_e,r.animationDuration),this.backgroundClip=Ct(t,Ibe,r.backgroundClip),this.backgroundColor=Ct(t,Fbe,r.backgroundColor),this.backgroundImage=Ct(t,Vbe,r.backgroundImage),this.backgroundOrigin=Ct(t,Hbe,r.backgroundOrigin),this.backgroundPosition=Ct(t,zbe,r.backgroundPosition),this.backgroundRepeat=Ct(t,$be,r.backgroundRepeat),this.backgroundSize=Ct(t,Kbe,r.backgroundSize),this.borderTopColor=Ct(t,Wbe,r.borderTopColor),this.borderRightColor=Ct(t,Ybe,r.borderRightColor),this.borderBottomColor=Ct(t,Xbe,r.borderBottomColor),this.borderLeftColor=Ct(t,Zbe,r.borderLeftColor),this.borderTopLeftRadius=Ct(t,Jbe,r.borderTopLeftRadius),this.borderTopRightRadius=Ct(t,ewe,r.borderTopRightRadius),this.borderBottomRightRadius=Ct(t,twe,r.borderBottomRightRadius),this.borderBottomLeftRadius=Ct(t,rwe,r.borderBottomLeftRadius),this.borderTopStyle=Ct(t,nwe,r.borderTopStyle),this.borderRightStyle=Ct(t,awe,r.borderRightStyle),this.borderBottomStyle=Ct(t,swe,r.borderBottomStyle),this.borderLeftStyle=Ct(t,owe,r.borderLeftStyle),this.borderTopWidth=Ct(t,iwe,r.borderTopWidth),this.borderRightWidth=Ct(t,lwe,r.borderRightWidth),this.borderBottomWidth=Ct(t,cwe,r.borderBottomWidth),this.borderLeftWidth=Ct(t,uwe,r.borderLeftWidth),this.boxShadow=Ct(t,n_e,r.boxShadow),this.color=Ct(t,dwe,r.color),this.direction=Ct(t,Awe,r.direction),this.display=Ct(t,fwe,r.display),this.float=Ct(t,hwe,r.cssFloat),this.fontFamily=Ct(t,Kwe,r.fontFamily),this.fontSize=Ct(t,Gwe,r.fontSize),this.fontStyle=Ct(t,Xwe,r.fontStyle),this.fontVariant=Ct(t,Ywe,r.fontVariant),this.fontWeight=Ct(t,Wwe,r.fontWeight),this.letterSpacing=Ct(t,pwe,r.letterSpacing),this.lineBreak=Ct(t,gwe,r.lineBreak),this.lineHeight=Ct(t,xwe,r.lineHeight),this.listStyleImage=Ct(t,vwe,r.listStyleImage),this.listStylePosition=Ct(t,ywe,r.listStylePosition),this.listStyleType=Ct(t,z_,r.listStyleType),this.marginTop=Ct(t,bwe,r.marginTop),this.marginRight=Ct(t,wwe,r.marginRight),this.marginBottom=Ct(t,_we,r.marginBottom),this.marginLeft=Ct(t,Cwe,r.marginLeft),this.opacity=Ct(t,zwe,r.opacity);var o=Ct(t,jwe,r.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=Ct(t,Ewe,r.overflowWrap),this.paddingTop=Ct(t,Bwe,r.paddingTop),this.paddingRight=Ct(t,Nwe,r.paddingRight),this.paddingBottom=Ct(t,Swe,r.paddingBottom),this.paddingLeft=Ct(t,kwe,r.paddingLeft),this.paintOrder=Ct(t,a_e,r.paintOrder),this.position=Ct(t,Fwe,r.position),this.textAlign=Ct(t,Iwe,r.textAlign),this.textDecorationColor=Ct(t,$we,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Ct(t,qwe,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=Ct(t,Twe,r.textShadow),this.textTransform=Ct(t,Pwe,r.textTransform),this.transform=Ct(t,Lwe,r.transform),this.transformOrigin=Ct(t,Uwe,r.transformOrigin),this.visibility=Ct(t,Qwe,r.visibility),this.webkitTextStrokeColor=Ct(t,s_e,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ct(t,o_e,r.webkitTextStrokeWidth),this.wordBreak=Ct(t,Vwe,r.wordBreak),this.zIndex=Ct(t,Hwe,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return mc(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return ba(this.display,4)||ba(this.display,33554432)||ba(this.display,268435456)||ba(this.display,536870912)||ba(this.display,67108864)||ba(this.display,134217728)},e}(),l_e=function(){function e(t,r){this.content=Ct(t,Zwe,r.content),this.quotes=Ct(t,r_e,r.quotes)}return e}(),j3=function(){function e(t,r){this.counterIncrement=Ct(t,Jwe,r.counterIncrement),this.counterReset=Ct(t,e_e,r.counterReset)}return e}(),Ct=function(e,t,r){var n=new WQ,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;n.write(s);var o=new YQ(n.read());switch(t.type){case 2:var i=o.parseComponentValue();return t.parse(e,zr(i)?i.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return Fv.parse(e,o.parseComponentValue());case"color":return fc.parse(e,o.parseComponentValue());case"image":return Sj.parse(e,o.parseComponentValue());case"length":var l=o.parseComponentValue();return Ec(l)?l:Ma;case"length-percentage":var c=o.parseComponentValue();return ia(c)?c:Ma;case"time":return m7.parse(e,o.parseComponentValue())}break}},c_e="data-html2canvas-debug",u_e=function(e){var t=e.getAttribute(c_e);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},$_=function(e,t){var r=u_e(e);return r===1||t===r},Qi=function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,$_(r,3))debugger;this.styles=new i_e(t,window.getComputedStyle(r,null)),G_(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=kv(this.context,r),$_(r,4)&&(this.flags|=16)}return e}(),d_e="
vendor: 26,156 bytes, line 1381
1381AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=
1381",E3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 10,953 bytes, line 1381
1381+/",tm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var _g=0;_g<E3.length;_g++)tm[E3.charCodeAt(_g)]=_g;var A_e=function(e){var t=e.length*.75,r=e.length,n,s=0,o,i,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)o=tm[e.charCodeAt(n)],i=tm[e.charCodeAt(n+1)],l=tm[e.charCodeAt(n+2)],c=tm[e.charCodeAt(n+3)],d[s++]=o<<2|i>>4,d[s++]=(i&15)<<4|l>>2,d[s++]=(l&3)<<6|c&63;return u},f_e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},m_e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},ju=5,kj=11,Z1=2,h_e=kj-ju,h7=65536>>ju,p_e=1<<ju,J1=p_e-1,g_e=1024>>ju,x_e=h7+g_e,v_e=x_e,y_e=32,b_e=v_e+y_e,w_e=65536>>kj,__e=1<<h_e,C_e=__e-1,B3=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},j_e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},E_e=function(e,t){var r=A_e(e),n=Array.isArray(r)?m_e(r):new Uint32Array(r),s=Array.isArray(r)?f_e(r):new Uint16Array(r),o=24,i=B3(s,o/2,n[4]/2),l=n[5]===2?B3(s,(o+n[4])/2):j_e(n,Math.ceil((o+n[4])/4));return new B_e(n[0],n[1],n[2],n[3],i,l)},B_e=function(){function e(t,r,n,s,o,i){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=s,this.index=o,this.data=i}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>ju],r=(r<<Z1)+(t&J1),this.data[r];if(t<=65535)return r=this.index[h7+(t-55296>>ju)],r=(r<<Z1)+(t&J1),this.data[r];if(t<this.highStart)return r=b_e-w_e+(t>>kj),r=this.index[r],r+=t>>ju&C_e,r=this.index[r],r=(r<<Z1)+(t&J1),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),N3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N_e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Cg=0;Cg<N3.length;Cg++)N_e[N3.charCodeAt(Cg)]=Cg;var S_e=1,eb=2,tb=3,S3=4,k3=5,k_e=7,I3=8,rb=9,nb=10,F3=11,T3=12,P3=13,L3=14,ab=15,I_e=function(e){for(var t=[],r=0,n=e.length;r<n;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var o=e.charCodeAt(r++);(o&64512)===56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},F_e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],s=-1,o="";++s<r;){var i=e[s];i<=65535?n.push(i):(i-=65536,n.push((i>>10)+55296,i%1024+56320)),(s+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},T_e=E_e(d_e),_o="Ã",sb="÷",P_e=function(e){return T_e.get(e)},L_e=function(e,t,r){var n=r-2,s=t[n],o=t[r-1],i=t[r];if(o===eb&&i===tb)return _o;if(o===eb||o===tb||o===S3||i===eb||i===tb||i===S3)return sb;if(o===I3&&[I3,rb,F3,T3].indexOf(i)!==-1||(o===F3||o===rb)&&(i===rb||i===nb)||(o===T3||o===nb)&&i===nb||i===P3||i===k3||i===k_e||o===S_e)return _o;if(o===P3&&i===L3){for(;s===k3;)s=t[--n];if(s===L3)return _o}if(o===ab&&i===ab){for(var l=0;s===ab;)l++,s=t[--n];if(l%2===0)return _o}return sb},D_e=function(e){var t=I_e(e),r=t.length,n=0,s=0,o=t.map(P_e);return{next:function(){if(n>=r)return{done:!0,value:null};for(var i=_o;n<r&&(i=L_e(t,o,++n))===_o;);if(i!==_o||n===r){var l=F_e.apply(null,t.slice(s,n));return s=n,{value:l,done:!1}}return{done:!0,value:null}}}},R_e=function(e){for(var t=D_e(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},M_e=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var s=r.getBoundingClientRect(),o=Math.round(s.height);if(e.body.removeChild(n),o===t)return!0}}return!1},O_e=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=t.firstChild,s=Iv(n.data).map(function(c){return qn(c)}),o=0,i={},l=s.every(function(c,u){r.setStart(n,o),r.setEnd(n,o+c.length);var d=r.getBoundingClientRect();o+=c.length;var f=d.x>i.x||d.y>i.y;return i=d,u===0?!0:f});return e.body.removeChild(t),l},U_e=function(){return typeof new Image().crossOrigin<"u"},Q_e=function(){return typeof new XMLHttpRequest().responseType=="string"},V_e=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},D3=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},H_e=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var s=new Image,o=t.toDataURL();s.src=o;var i=q_(r,r,0,0,s);return n.fillStyle="red",n.fillRect(0,0,r,r),R3(i).then(function(l){n.drawImage(l,0,0);var c=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var u=e.createElement("div");return u.style.backgroundImage="url("+o+")",u.style.height=r+"px",D3(c)?R3(q_(r,r,0,0,u)):Promise.reject(!1)}).then(function(l){return n.drawImage(l,0,0),D3(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},q_=function(e,t,r,n,s){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),l=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",r.toString()),l.setAttributeNS(null,"y",n.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(l),l.appendChild(s),i},R3=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Da={get SUPPORT_RANGE_BOUNDS(){var e=M_e(document);return Object.defineProperty(Da,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Da.SUPPORT_RANGE_BOUNDS&&O_e(document);return Object.defineProperty(Da,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=V_e(document);return Object.defineProperty(Da,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?H_e(document):Promise.resolve(!1);return Object.defineProperty(Da,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=U_e();return Object.defineProperty(Da,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Q_e();return Object.defineProperty(Da,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Da,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Da,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},bm=function(){function e(t,r){this.text=t,this.bounds=r}return e}(),z_e=function(e,t,r,n){var s=K_e(t,r),o=[],i=0;return s.forEach(function(l){if(r.textDecorationLine.length||l.trim().length>0)if(Da.SUPPORT_RANGE_BOUNDS){var c=M3(n,i,l.length).getClientRects();if(c.length>1){var u=Ij(l),d=0;u.forEach(function(h){o.push(new bm(h,_l.fromDOMRectList(e,M3(n,d+i,h.length).getClientRects()))),d+=h.length})}else o.push(new bm(l,_l.fromDOMRectList(e,c)))}else{var f=n.splitText(l.length);o.push(new bm(l,$_e(e,n))),n=f}else Da.SUPPORT_RANGE_BOUNDS||(n=n.splitText(l.length));i+=l.length}),o},$_e=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(n,t);var o=kv(e,n);return n.firstChild&&s.replaceChild(n.firstChild,n),o}}return _l.EMPTY},M3=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var s=n.createRange();return s.setStart(e,t),s.setEnd(e,t+r),s},Ij=function(e){if(Da.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return R_e(e)},q_e=function(e,t){if(Da.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return W_e(e,t)},K_e=function(e,t){return t.letterSpacing!==0?Ij(e):q_e(e,t)},G_e=[32,160,4961,65792,65793,4153,4241],W_e=function(e,t){for(var r=w1e(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],s,o=function(){if(s.value){var i=s.value.slice(),l=Iv(i),c="";l.forEach(function(u){G_e.indexOf(u)===-1?c+=qn(u):(c.length&&n.push(c),n.push(qn(u)),c="")}),c.length&&n.push(c)}};!(s=r.next()).done;)o();return n},Y_e=function(){function e(t,r,n){this.text=X_e(r.data,n.textTransform),this.textBounds=z_e(t,this.text,n,r)}return e}(),X_e=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Z_e,J_e);case 2:return e.toUpperCase();default:return e}},Z_e=/(^|\s|:|-|\(|\))([a-z])/g,J_e=function(e,t,r){return e.length>0?t+r.toUpperCase():e},p7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.src=n.currentSrc||n.src,s.intrinsicWidth=n.naturalWidth,s.intrinsicHeight=n.naturalHeight,s.context.cache.addImage(s.src),s}return t}(Qi),g7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.canvas=n,s.intrinsicWidth=n.width,s.intrinsicHeight=n.height,s}return t}(Qi),x7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this,o=new XMLSerializer,i=kv(r,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),s.intrinsicWidth=n.width.baseVal.value,s.intrinsicHeight=n.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t}(Qi),v7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.value=n.value,s}return t}(Qi),K_=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.start=n.start,s.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,s}return t}(Qi),e2e=[{type:15,flags:0,unit:"px",number:3}],t2e=[{type:16,flags:0,number:50}],r2e=function(e){return e.width>e.height?new _l(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new _l(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},n2e=function(e){var t=e.type===a2e?new Array(e.value.length+1).join("â¢"):e.value;return t.length===0?e.placeholder||"":t}
1381,lx="checkbox",cx="radio",a2e="password",O3=707406591,Fj=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;switch(s.type=n.type.toLowerCase(),s.checked=n.checked,s.value=n2e(n),(s.type===lx||s.type===cx)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=r2e(s.bounds)),s.type){case lx:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=e2e;break;case cx:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=t2e;break}return s}return t}(Qi),y7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this,o=n.options[n.selectedIndex||0];return s.value=o&&o.text||"",s}return t}(Qi),b7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.value=n.value,s}return t}(Qi),w7=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;s.src=n.src,s.width=parseInt(n.width,10)||0,s.height=parseInt(n.height,10)||0,s.backgroundColor=s.styles.backgroundColor;
vendor: 17,537 bytes, lines 1381-1385
1381try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){s.tree=C7(r,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?vm(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):gl.TRANSPARENT,i=n.contentWindow.document.body?vm(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):gl.TRANSPARENT;s.backgroundColor=mc(o)?mc(i)?s.styles.backgroundColor:i:o}}catch{}return s}return t}(Qi),s2e=["OL","UL","MENU"],g0=function(e,t,r,n){for(var s=t.firstChild,o=void 0;s;s=o)if(o=s.nextSibling,j7(s)&&s.data.trim().length>0)r.textNodes.push(new Y_e(e,s,r.styles));else if(Zd(s))if(S7(s)&&s.assignedNodes)s.assignedNodes().forEach(function(l){return g0(e,l,r,n)});else{var i=_7(e,s);i.styles.isVisible()&&(o2e(s,i,n)?i.flags|=4:i2e(i.styles)&&(i.flags|=2),s2e.indexOf(s.tagName)!==-1&&(i.flags|=8),r.elements.push(i),s.slot,s.shadowRoot?g0(e,s.shadowRoot,i,n):!ux(s)&&!E7(s)&&!dx(s)&&g0(e,s,i,n))}},_7=function(e,t){return W_(t)?new p7(e,t):B7(t)?new g7(e,t):E7(t)?new x7(e,t):l2e(t)?new v7(e,t):c2e(t)?new K_(e,t):u2e(t)?new Fj(e,t):dx(t)?new y7(e,t):ux(t)?new b7(e,t):N7(t)?new w7(e,t):new Qi(e,t)},C7=function(e,t){var r=_7(e,t);return r.flags|=4,g0(e,t,r,r),r},o2e=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Tj(e)&&r.styles.isTransparent()},i2e=function(e){return e.isPositioned()||e.isFloating()},j7=function(e){return e.nodeType===Node.TEXT_NODE},Zd=function(e){return e.nodeType===Node.ELEMENT_NODE},G_=function(e){return Zd(e)&&typeof e.style<"u"&&!x0(e)},x0=function(e){return typeof e.className=="object"},l2e=function(e){return e.tagName==="LI"},c2e=function(e){return e.tagName==="OL"},u2e=function(e){return e.tagName==="INPUT"},d2e=function(e){return e.tagName==="HTML"},E7=function(e){return e.tagName==="svg"},Tj=function(e){return e.tagName==="BODY"},B7=function(e){return e.tagName==="CANVAS"},U3=function(e){return e.tagName==="VIDEO"},W_=function(e){return e.tagName==="IMG"},N7=function(e){return e.tagName==="IFRAME"},Q3=function(e){return e.tagName==="STYLE"},A2e=function(e){return e.tagName==="SCRIPT"},ux=function(e){return e.tagName==="TEXTAREA"},dx=function(e){return e.tagName==="SELECT"},S7=function(e){return e.tagName==="SLOT"},V3=function(e){return e.tagName.indexOf("-")>0},f2e=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,s=t.counterReset,o=!0;n!==null&&n.forEach(function(l){var c=r.counters[l.counter];c&&l.increment!==0&&(o=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=l.increment)});var i=[];return o&&s.forEach(function(l){var c=r.counters[l.counter];i.push(l.counter),c||(c=r.counters[l.counter]=[]),c.push(l.reset)}),i},e}(),H3={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},z3={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ ","Õ","Õ","Õ","Õ","Õ","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},m2e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","ת","ש","ר","×§","צ","פ","×¢","ס","× ","×","×","×","××","××","××","××","××","×","×","×","×","×","×","×","×","×","×"]},h2e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áµ","á°","á¯","á´","á®","á","á¬","á«","áª","á©","á¨","á§","á¦","á¥","á¤","á³","á¢","á¡","á ","á","á","á","á²","á","á","á","á","á","á","á±","á","á","á","á","á","á","á"]},Td=function(e,t,r,n,s,o){return e<t||e>r?oh(e,s,o.length>0):n.integers.reduce(function(i,l,c){for(;e>=l;)e-=l,i+=n.values[c];return i},"")+o},k7=function(e,t,r,n){var s="";do r||e--,s=n(e)+s,e/=t;while(e*t>=t);return s},$n=function(e,t,r,n,s){var o=r-t+1;return(e<0?"-":"")+(k7(Math.abs(e),o,n,function(i){return qn(Math.floor(i%o)+t)})+s)},au=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return k7(Math.abs(e),n,!1,function(s){return t[Math.floor(s%n)]})+r},Hd=1,Xl=2,Zl=4,rm=8,nl=function(e,t,r,n,s,o){if(e<-9999||e>9999)return oh(e,4,s.length>0);var i=Math.abs(e),l=s;if(i===0)return t[0]+l;for(var c=0;i>0&&c<=4;c++){var u=i%10;u===0&&ba(o,Hd)&&l!==""?l=t[u]+l:u>1||u===1&&c===0||u===1&&c===1&&ba(o,Xl)||u===1&&c===1&&ba(o,Zl)&&e>100||u===1&&c>1&&ba(o,rm)?l=t[u]+(c>0?r[c-1]:"")+l:u===1&&c>0&&(l=r[c-1]+l),i=Math.floor(i/10)}return(e<0?n:"")+l},$3="åç¾åè¬",q3="æ¾ä½°ä»è¬",K3="ãã¤ãã¹",ob="ë§ì´ëì¤",oh=function(e,t,r){var n=r?". ":"",s=r?"ã":"",o=r?", ":"",i=r?" ":"";switch(t){case 0:return"â¢"+i;case 1:return"â¦"+i;case 2:return"â¾"+i;case 5:var l=$n(e,48,57,!0,n);return l.length<4?"0"+l:l;case 4:return au(e,"ãä¸äºä¸åäºå ä¸å «ä¹",s);case 6:return Td(e,1,3999,H3,3,n).toLowerCase();case 7:return Td(e,1,3999,H3,3,n);case 8:return $n(e,945,969,!1,n);case 9:return $n(e,97,122,!1,n);case 10:return $n(e,65,90,!1,n);case 11:return $n(e,1632,1641,!0,n);case 12:case 49:return Td(e,1,9999,z3,3,n);case 35:return Td(e,1,9999,z3,3,n).toLowerCase();case 13:return $n(e,2534,2543,!0,n);case 14:case 30:return $n(e,6112,6121,!0,n);case 15:return au(e,"åä¸å¯ å¯è¾°å·³åæªç³é æäº¥",s);case 16:return au(e,"ç²ä¹ä¸ä¸æå·±åºè¾å£¬ç¸",s);case 17:case 48:return nl(e,"é¶ä¸äºä¸åäºå ä¸å «ä¹",$3,"è² ",s,Xl|Zl|rm);case 47:return nl(e,"é¶å£¹è²³åèä¼é¸ææç",q3,"è² ",s,Hd|Xl|Zl|rm);case 42:return nl(e,"é¶ä¸äºä¸åäºå ä¸å «ä¹",$3,"è´",s,Xl|Zl|rm);case 41:return nl(e,"é¶å£¹è´°åèä¼éææç",q3,"è´",s,Hd|Xl|Zl|rm);case 26:return nl(e,"ãä¸äºä¸åäºå ä¸å «ä¹","åç¾åä¸",K3,s,0);case 25:return nl(e,"é¶å£±å¼ååä¼å ä¸å «ä¹","æ¾ç¾åä¸",K3,s,Hd|Xl|Zl);case 31:return nl(e,"ìì¼ì´ì¼ì¬ì¤ì¡ì¹ í구","ìë°±ì²ë§",ob,o,Hd|Xl|Zl);case 33:return nl(e,"é¶ä¸äºä¸åäºå ä¸å «ä¹","åç¾åè¬",ob,o,0);case 32:return nl(e,"é¶å£¹è²³ååäºå ä¸å «ä¹","æ¾ç¾å",ob,o,Hd|Xl|Zl);case 18:return $n(e,2406,2415,!0,n);case 20:return Td(e,1,19999,h2e,3,n);case 21:return $n(e,2790,2799,!0,n);case 22:return $n(e,2662,2671,!0,n);case 22:return Td(e,1,10999,m2e,3,n);case 23:return au(e,"ããããããããããããããããã¡ã¤ã¦ã¨ãªã«ã¬ãã®ã¯ã²ãµã¸ã»ã¾ã¿ãããããããããããããããã");case 24:return au(e,"ããã¯ã«ã»ã¸ã¨ã¡ãã¬ããããããããã¤ããªããããã®ãããã¾ããµããã¦ãããããã¿ããã²ããã");case 27:return $n(e,3302,3311,!0,n);case 28:return au(e,"ã¢ã¤ã¦ã¨ãªã«ãã¯ã±ã³ãµã·ã¹ã»ã½ã¿ããããããããããããããããã ã¡ã¢ã¤ã¦ã¨ã©ãªã«ã¬ãã¯ã°ã±ã²ã³",s);case 29:return au(e,"ã¤ããããããããªãã«ã²ã¯ã«ã¨ã¿ã¬ã½ãããã©ã ã¦ã°ããªã¯ã¤ãã±ãã³ã¨ãã¢ãµãã¦ã¡ãã·ã±ãã¢ã»ã¹",s);case 34:return $n(e,3792,3801,!0,n);case 37:return $n(e,6160,6169,!0,n);case 38:return $n(e,4160,4169,!0,n);case 39:return $n(e,2918,2927,!0,n);case 40:return $n(e,1776,1785,!0,n);case 43:return $n(e,3046,3055,!0,n);case 44:return $n(e,3174,3183,!0,n);case 45:return $n(e,3664,3673,!0,n);case 46:return $n(e,3872,3881,!0,n);case 3:default:return $n(e,48,57,!0,n)}},I7="data-html2canvas-ignore",G3=function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new f2e,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,s=p2e(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,l=s.contentWindow,c=l.document,u=v2e(s).then(function(){return ys(n,void 0,void 0,function(){var d,f;return ts(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(_2e),l&&(l.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==r.top||l.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-r.left,l.scrollY-r.top,0,0))),d=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,x2e(c)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(c,f)}).then(function(){return s})]:[2,s]}})})});return c.open(),c.write(b2e(document.doctype)+"<html></html>"),w2e(this.referenceElement.ownerDocument,o,i),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(t){if($_(t,2))debugger;if(B7(t))return this.createCanvasClone(t);if(U3(t))return this.createVideoClone(t);if(Q3(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return W_(r)&&(W_(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),V3(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return ib(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(o,i){return i&&typeof i.cssText=="string"?o+i.cssText:o},""),s=t.cloneNode(!1);return s.textContent=n,s}}catch(o){if(this.context.logger.error("Unable to access cssRules property",o),o.name!=="SecurityError")throw o}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var o=t.getContext("2d"),i=s.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,t.width,t.height),0,0);else{var l=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(l){var c=l.getContextAttributes();c?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},e.prototype.appendChildNode=function(t,r,n){(!Zd(r)||!A2e(r)&&!r.hasAttribute(I7)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Zd(r)||!Q3(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var s=this,o=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;o;o=o.nextSibling)if(Zd(o)&&S7(o)&&typeof o.assignedNodes=="function"){var i=o.assignedNodes();i.length&&i.forEach(function(l){return s.appendChildNode(r,l,n)})}else this.appendChildNode(r,o,n)},e.prototype.cloneNode=function(t,r){if(j7(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Zd(t)&&(G_(t)||x0(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var o=n.getComputedStyle(t),i=n.getComputedStyle(t,":before"),l=n.getComputedStyle(t,":after");this.referenceElement===t&&G_(s)&&(this.clonedReferenceElement=s),Tj(s)&&E2e(s);var c=this.counters.parse(new j3(this.context,o)),u=this.resolvePseudoContent(t,s,i,wm.BEFORE);V3(t)&&(r=!0),U3(t)||this.cloneChildNodes(t,s,r),u&&s.insertBefore(u,s.firstChild);var d=this.resolvePseudoContent(t,s,l,wm.AFTER);return d&&s.appendChild(d),this.counters.pop(c),(o&&(this.options.copyStyles||x0(t))&&!N7(t)||r)&&ib(o,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(ux(t)||dx(t))&&(ux(s)||dx(s))&&(s.value=t.value),s}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,s){var o=this;if(n){var i=n.content,l=r.ownerDocument;if(!(!l||!i||i==="none"||i==="-moz-alt-content"||n.display==="none")){this.counters.parse(new j3(this.context,n));var c=new l_e(this.context,n),u=l.createElement("html2canvaspseudoelement");ib(n,u),c.content.forEach(function(f){if(f.type===0)u.appendChild(l.createTextNode(f.value));else if(f.type===22){var h=l.createElement("img");h.src=f.value,h.style.opacity="1",u.appendChild(h)}else if(f.type===18){if(f.name==="attr"){var m=f.values.filter(zr);m.length&&u.appendChild(l.createTextNode(t.getAttribute(m[0].value)||""))}else if(f.name==="counter"){var g=f.values.filter(kA),p=g[0],x=g[1];if(p&&zr(p)){var y=o.counters.getCounterValue(p.value),b=x&&zr(x)?z_.parse(o.context,x.value):3;u.appendChild(l.createTextNode(oh(y,b,!1)))}}else if(f.name==="counters"){var j=f.values.filter(kA),p=j[0],C=j[1],x=j[2];if(p&&zr(p)){var T=o.counters.getCounterValues(p.value),L=x&&zr(x)?z_.parse(o.context,x.value):3,P=C&&C.type===0?C.value:"",I=T.map(function(k){return oh(k,L,!1)}).join(P);u.appendChild(l.createTextNode(I))}}}else if(f.type===20)switch(f.value){case"open-quote":u.appendChild(l.createTextNode(C3(c.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(l.createTextNode(C3(c.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(l.createTextNode(f.value))}}),u.className=Y_+" "+X_;var d=s===wm.BEFORE?" "+Y_:" "+X_;return x0(r)?r.className.baseValue+=d:r.className+=d,u}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),wm;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(wm||(wm={}));var p2e=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(I7,"true"),e.body.appendChild(r),r},g2e=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},x2e=function(e){return Promise.all([].slice.call(e.images,0).map(g2e))},v2e=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var s=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var o=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(o),t(e))},50)}})},y2e=["all","d","content"],ib=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);y2e.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},b2e=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},w2e=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},_2e=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},C2e=":before",j2e=":after",Y_="___html2canvas___pseudoelement_before",X_="___html2canvas___pseudoelement_after",W3=`{ 1382 content: "" !important; 1383 display: none !important; 1384}`,E2e=function(e){B2e(e,"."+Y_+C2e+W3+` 1385 .`+X_+j2e+W3)},B2e=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},F7=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),N2e=function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(cb(t)||F2e(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return ys(this,void 0,void 0,function(){var r,n,s,o,i=this;return ts(this,function(l){switch(l.label){case 0:return r=F7.isSameOrigin(t),n=!lb(t)&&this._options.useCORS===!0&&Da.SUPPORT_CORS_IMAGES&&!r,s=!lb(t)&&!r&&!cb(t)&&typeof this._options.proxy=="str
1385ing"&&Da.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!lb(t)&&!cb(t)&&!s&&!n?[2]:(o=t,s?[4,this.proxy(o)]:[3,2]);case 1:o=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(c,u){var d=new Image;d.onload=function(){return c(d)},d.onerror=u,(T2e(o)||n)&&(d.crossOrigin="anonymous"),d.src=o,d.complete===!0&&setTimeout(function(){return c(d)},500),i._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(o,i){var l=Da.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(l==="text")o(c.response);else{var f=new FileReader;f.addEventListener("load",function(){return o(f.result)},!1),f.addEventListener("error",function(h){return i(h)},!1),f.readAsDataURL(c.response)}else i("Failed to proxy resource "+s+" with status code "+c.status)},c.onerror=i;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(t)+"&responseType="+l),l!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=l),r._options.imageTimeout){var d=r._options.imageTimeout;c.timeout=d,c.ontimeout=function(){return i("Timed out ("+d+"ms) proxying "+s)}}c.send()})},e}(),S2e=/^data:image\/svg\+xml/i,k2e=/^data:image\/.*;base64,/i,I2e=/^data:image\/.*/i,F2e=function(e){return Da.SUPPORT_SVG_DRAWING||!P2e(e)},lb=function(e){return I2e.test(e)},T2e=function(e){return k2e.test(e)},cb=function(e){return e.substr(0,4)==="blob"},P2e=function(e){return e.substr(-3).toLowerCase()==="svg"||S2e.test(e)},bt=function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),Pd=function(e,t,r){return new bt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},jg=function(){function e(t,r,n,s){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=s}return e.prototype.subdivide=function(t,r){var n=Pd(this.start,this.startControl,t),s=Pd(this.startControl,this.endControl,t),o=Pd(this.endControl,this.end,t),i=Pd(n,s,t),l=Pd(s,o,t),c=Pd(i,l,t);return r?new e(this.start,n,i,c):new e(c,l,o,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),jo=function(e){return e.type===1},L2e=function(){function e(t){var r=t.styles,n=t.bounds,s=em(r.borderTopLeftRadius,n.width,n.height),o=s[0],i=s[1],l=em(r.borderTopRightRadius,n.width,n.height),c=l[0],u=l[1],d=em(r.borderBottomRightRadius,n.width,n.height),f=d[0],h=d[1],m=em(r.borderBottomLeftRadius,n.width,n.height),g=m[0],p=m[1],x=[];x.push((o+c)/n.width),x.push((g+f)/n.width),x.push((i+p)/n.height),x.push((u+h)/n.height);var y=Math.max.apply(Math,x);y>1&&(o/=y,i/=y,c/=y,u/=y,f/=y,h/=y,g/=y,p/=y);var b=n.width-c,j=n.height-h,C=n.width-f,T=n.height-p,L=r.borderTopWidth,P=r.borderRightWidth,I=r.borderBottomWidth,E=r.borderLeftWidth,O=tn(r.paddingTop,t.bounds.width),k=tn(r.paddingRight,t.bounds.width),D=tn(r.paddingBottom,t.bounds.width),H=tn(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?pn(n.left+E/3,n.top+L/3,o-E/3,i-L/3,Lr.TOP_LEFT):new bt(n.left+E/3,n.top+L/3),this.topRightBorderDoubleOuterBox=o>0||i>0?pn(n.left+b,n.top+L/3,c-P/3,u-L/3,Lr.TOP_RIGHT):new bt(n.left+n.width-P/3,n.top+L/3),this.bottomRightBorderDoubleOuterBox=f>0||h>0?pn(n.left+C,n.top+j,f-P/3,h-I/3,Lr.BOTTOM_RIGHT):new bt(n.left+n.width-P/3,n.top+n.height-I/3),this.bottomLeftBorderDoubleOuterBox=g>0||p>0?pn(n.left+E/3,n.top+T,g-E/3,p-I/3,Lr.BOTTOM_LEFT):new bt(n.left+E/3,n.top+n.height-I/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?pn(n.left+E*2/3,n.top+L*2/3,o-E*2/3,i-L*2/3,Lr.TOP_LEFT):new bt(n.left+E*2/3,n.top+L*2/3),this.topRightBorderDoubleInnerBox=o>0||i>0?pn(n.left+b,n.top+L*2/3,c-P*2/3,u-L*2/3,Lr.TOP_RIGHT):new bt(n.left+n.width-P*2/3,n.top+L*2/3),this.bottomRightBorderDoubleInnerBox=f>0||h>0?pn(n.left+C,n.top+j,f-P*2/3,h-I*2/3,Lr.BOTTOM_RIGHT):new bt(n.left+n.width-P*2/3,n.top+n.height-I*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||p>0?pn(n.left+E*2/3,n.top+T,g-E*2/3,p-I*2/3,Lr.BOTTOM_LEFT):new bt(n.left+E*2/3,n.top+n.height-I*2/3),this.topLeftBorderStroke=o>0||i>0?pn(n.left+E/2,n.top+L/2,o-E/2,i-L/2,Lr.TOP_LEFT):new bt(n.left+E/2,n.top+L/2),this.topRightBorderStroke=o>0||i>0?pn(n.left+b,n.top+L/2,c-P/2,u-L/2,Lr.TOP_RIGHT):new bt(n.left+n.width-P/2,n.top+L/2),this.bottomRightBorderStroke=f>0||h>0?pn(n.left+C,n.top+j,f-P/2,h-I/2,Lr.BOTTOM_RIGHT):new bt(n.left+n.width-P/2,n.top+n.height-I/2),this.bottomLeftBorderStroke=g>0||p>0?pn(n.left+E/2,n.top+T,g-E/2,p-I/2,Lr.BOTTOM_LEFT):new bt(n.left+E/2,n.top+n.height-I/2),this.topLeftBorderBox=o>0||i>0?pn(n.left,n.top,o,i,Lr.TOP_LEFT):new bt(n.left,n.top),this.topRightBorderBox=c>0||u>0?pn(n.left+b,n.top,c,u,Lr.TOP_RIGHT):new bt(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||h>0?pn(n.left+C,n.top+j,f,h,Lr.BOTTOM_RIGHT):new bt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=g>0||p>0?pn(n.left,n.top+T,g,p,Lr.BOTTOM_LEFT):new bt(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||i>0?pn(n.left+E,n.top+L,Math.max(0,o-E),Math.max(0,i-L),Lr.TOP_LEFT):new bt(n.left+E,n.top+L),this.topRightPaddingBox=c>0||u>0?pn(n.left+Math.min(b,n.width-P),n.top+L,b>n.width+P?0:Math.max(0,c-P),Math.max(0,u-L),Lr.TOP_RIGHT):new bt(n.left+n.width-P,n.top+L),this.bottomRightPaddingBox=f>0||h>0?pn(n.left+Math.min(C,n.width-E),n.top+Math.min(j,n.height-I),Math.max(0,f-P),Math.max(0,h-I),Lr.BOTTOM_RIGHT):new bt(n.left+n.width-P,n.top+n.height-I),this.bottomLeftPaddingBox=g>0||p>0?pn(n.left+E,n.top+Math.min(T,n.height-I),Math.max(0,g-E),Math.max(0,p-I),Lr.BOTTOM_LEFT):new bt(n.left+E,n.top+n.height-I),this.topLeftContentBox=o>0||i>0?pn(n.left+E+H,n.top+L+O,Math.max(0,o-(E+H)),Math.max(0,i-(L+O)),Lr.TOP_LEFT):new bt(n.left+E+H,n.top+L+O),this.topRightContentBox=c>0||u>0?pn(n.left+Math.min(b,n.width+E+H),n.top+L+O,b>n.width+E+H?0:c-E+H,u-(L+O),Lr.TOP_RIGHT):new bt(n.left+n.width-(P+k),n.top+L+O),this.bottomRightContentBox=f>0||h>0?pn(n.left+Math.min(C,n.width-(E+H)),n.top+Math.min(j,n.height+L+O),Math.max(0,f-(P+k)),h-(I+D),Lr.BOTTOM_RIGHT):new bt(n.left+n.width-(P+k),n.top+n.height-(I+D)),this.bottomLeftContentBox=g>0||p>0?pn(n.left+E+H,n.top+T,Math.max(0,g-(E+H)),p-(I+D),Lr.BOTTOM_LEFT):new bt(n.left+E+H,n.top+n.height-(I+D))}return e}(),Lr;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Lr||(Lr={}));var pn=function(e,t,r,n,s){var o=4*((Math.sqrt(2)-1)/3),i=r*o,l=n*o,c=e+r,u=t+n;switch(s){case Lr.TOP_LEFT:return new jg(new bt(e,u),new bt(e,u-l),new bt(c-i,t),new bt(c,t));case Lr.TOP_RIGHT:return new jg(new bt(e,t),new bt(e+i,t),new bt(c,u-l),new bt(c,u));case Lr.BOTTOM_RIGHT:return new jg(new bt(c,t),new bt(c,t+l),new bt(e+i,u),new bt(e,u));case Lr.BOTTOM_LEFT:default:return new jg(new bt(c,u),new bt(c-i,u),new bt(e,t+l),new bt(e,t))}},Ax=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},D2e=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},fx=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},R2e=function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e}(),Eg=function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e}(),M2e=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),O2e=function(e){return e.type===0},T7=function(e){return e.type===1},U2e=function(e){return e.type===2},Y3=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},Q2e=function(e,t,r,n,s){return e.map(function(o,i){switch(i){case 0:return o.add(t,r);case 1:return o.add(t+n,r);case 2:return o.add(t+n,r+s);case 3:return o.add(t,r+s)}return o}
vendor: 29,684 bytes, line 1385
1385)},P7=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),L7=function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new L2e(this.container),this.container.styles.opacity<1&&this.effects.push(new M2e(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new R2e(n,s,o))}if(this.container.styles.overflowX!==0){var i=Ax(this.curves),l=fx(this.curves);Y3(i,l)?this.effects.push(new Eg(i,6)):(this.effects.push(new Eg(i,2)),this.effects.push(new Eg(l,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,s=this.effects.slice(0);n;){var o=n.effects.filter(function(c){return!T7(c)});if(r||n.container.styles.position!==0||!n.parent){if(s.unshift.apply(s,o),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var i=Ax(n.curves),l=fx(n.curves);Y3(i,l)||s.unshift(new Eg(l,6))}}else s.unshift.apply(s,o);n=n.parent}return s.filter(function(c){return ba(c.target,t)})},e}(),Z_=function(e,t,r,n){e.container.elements.forEach(function(s){var o=ba(s.flags,4),i=ba(s.flags,2),l=new L7(s,e);ba(s.styles.display,2048)&&n.push(l);var c=ba(s.flags,8)?[]:n;if(o||i){var u=o||s.styles.isPositioned()?r:t,d=new P7(l);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var f=s.styles.zIndex.order;if(f<0){var h=0;u.negativeZIndex.some(function(g,p){return f>g.element.container.styles.zIndex.order?(h=p,!1):h>0}),u.negativeZIndex.splice(h,0,d)}else if(f>0){var m=0;u.positiveZIndex.some(function(g,p){return f>=g.element.container.styles.zIndex.order?(m=p+1,!1):m>0}),u.positiveZIndex.splice(m,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else s.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);Z_(l,d,o?d:r,c)}else s.styles.isInlineLevel()?t.inlineLevel.push(l):t.nonInlineLevel.push(l),Z_(l,t,r,c);ba(s.flags,8)&&D7(s,c)})},D7=function(e,t){for(var r=e instanceof K_?e.start:1,n=e instanceof K_?e.reversed:!1,s=0;s<t.length;s++){var o=t[s];o.container instanceof v7&&typeof o.container.value=="number"&&o.container.value!==0&&(r=o.container.value),o.listValue=oh(r,o.container.styles.listStyleType,!0),r+=n?-1:1}},V2e=function(e){var t=new L7(e,null),r=new P7(t),n=[];return Z_(t,r,r,n),D7(t.container,n),r},X3=function(e,t){switch(t){case 0:return No(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return No(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return No(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return No(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},H2e=function(e,t){switch(t){case 0:return No(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return No(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return No(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return No(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},z2e=function(e,t){switch(t){case 0:return No(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return No(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return No(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return No(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},$2e=function(e,t){switch(t){case 0:return Bg(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Bg(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Bg(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Bg(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Bg=function(e,t){var r=[];return jo(e)?r.push(e.subdivide(.5,!1)):r.push(e),jo(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},No=function(e,t,r,n){var s=[];return jo(e)?s.push(e.subdivide(.5,!1)):s.push(e),jo(r)?s.push(r.subdivide(.5,!0)):s.push(r),jo(n)?s.push(n.subdivide(.5,!0).reverse()):s.push(n),jo(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},R7=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},mx=function(e){var t=e.styles,r=e.bounds,n=tn(t.paddingLeft,r.width),s=tn(t.paddingRight,r.width),o=tn(t.paddingTop,r.width),i=tn(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+s),-(t.borderTopWidth+t.borderBottomWidth+o+i))},q2e=function(e,t){return e===0?t.bounds:e===2?mx(t):R7(t)},K2e=function(e,t){return e===0?t.bounds:e===2?mx(t):R7(t)},ub=function(e,t,r){var n=q2e(zd(e.styles.backgroundOrigin,t),e),s=K2e(zd(e.styles.backgroundClip,t),e),o=G2e(zd(e.styles.backgroundSize,t),r,n),i=o[0],l=o[1],c=em(zd(e.styles.backgroundPosition,t),n.width-i,n.height-l),u=W2e(zd(e.styles.backgroundRepeat,t),c,o,n,s),d=Math.round(n.left+c[0]),f=Math.round(n.top+c[1]);return[u,d,f,i,l]},Ld=function(e){return zr(e)&&e.value===uA.AUTO},Ng=function(e){return typeof e=="number"},G2e=function(e,t,r){var n=t[0],s=t[1],o=t[2],i=e[0],l=e[1];if(!i)return[0,0];if(ia(i)&&l&&ia(l))return[tn(i,r.width),tn(l,r.height)];var c=Ng(o);if(zr(i)&&(i.value===uA.CONTAIN||i.value===uA.COVER)){if(Ng(o)){var u=r.width/r.height;return u<o!=(i.value===uA.COVER)?[r.width,r.width/o]:[r.height*o,r.height]}return[r.width,r.height]}var d=Ng(n),f=Ng(s),h=d||f;if(Ld(i)&&(!l||Ld(l))){if(d&&f)return[n,s];if(!c&&!h)return[r.width,r.height];if(h&&c){var m=d?n:s*o,g=f?s:n/o;return[m,g]}var p=d?n:r.width,x=f?s:r.height;return[p,x]}if(c){var y=0,b=0;return ia(i)?y=tn(i,r.width):ia(l)&&(b=tn(l,r.height)),Ld(i)?y=b*o:(!l||Ld(l))&&(b=y/o),[y,b]}var j=null,C=null;if(ia(i)?j=tn(i,r.width):l&&ia(l)&&(C=tn(l,r.height)),j!==null&&(!l||Ld(l))&&(C=d&&f?j/n*s:r.height),C!==null&&Ld(i)&&(j=d&&f?C/s*n:r.width),j!==null&&C!==null)return[j,C];throw new Error("Unable to calculate background-size for element")},zd=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},W2e=function(e,t,r,n,s){var o=t[0],i=t[1],l=r[0],c=r[1];switch(e){case 2:return[new bt(Math.round(n.left),Math.round(n.top+i)),new bt(Math.round(n.left+n.width),Math.round(n.top+i)),new bt(Math.round(n.left+n.width),Math.round(c+n.top+i)),new bt(Math.round(n.left),Math.round(c+n.top+i))];case 3:return[new bt(Math.round(n.left+o),Math.round(n.top)),new bt(Math.round(n.left+o+l),Math.round(n.top)),new bt(Math.round(n.left+o+l),Math.round(n.height+n.top)),new bt(Math.round(n.left+o),Math.round(n.height+n.top))];case 1:return[new bt(Math.round(n.left+o),Math.round(n.top+i)),new bt(Math.round(n.left+o+l),Math.round(n.top+i)),new bt(Math.round(n.left+o+l),Math.round(n.top+i+c)),new bt(Math.round(n.left+o),Math.round(n.top+i+c))];default:return[new bt(Math.round(s.left),Math.round(s.top)),new bt(Math.round(s.left+s.width),Math.round(s.top)),new bt(Math.round(s.left+s.width),Math.round(s.height+s.top)),new bt(Math.round(s.left),Math.round(s.height+s.top))]}},Y2e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Z3="Hidden Text",X2e=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),s=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),s.src=Y2e,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",o.style.fontFamily=t,o.style.fontSize=r,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(Z3)),n.appendChild(o),n.appendChild(s);var l=s.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(Z3)),n.style.lineHeight="normal",s.style.verticalAlign="super";var c=s.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:l,middle:c}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e}(),M7=function(){function e(t,r){this.context=t,this.options=r}return e}(),Z2e=1e4,J2e=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s._activeEffects=[],s.canvas=n.canvas?n.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),n.canvas||(s.canvas.width=Math.floor(n.width*n.scale),s.canvas.height=Math.floor(n.height*n.scale),s.canvas.style.width=n.width+"px",s.canvas.style.height=n.height+"px"),s.fontMetrics=new X2e(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-n.x,-n.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),s}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return n.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),U2e(r)&&(this.ctx.globalAlpha=r.opacity),O2e(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),T7(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return ys(this,void 0,void 0,function(){var n;return ts(this,function(s){switch(s.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return ys(this,void 0,void 0,function(){return ts(this,function(n){switch(n.label){case 0:if(ba(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,s){var o=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var i=Ij(r.text);i.reduce(function(l,c){return o.ctx.fillText(c,l,r.bounds.top+s),l+o.ctx.measureText(c).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),s=a5e(r.fontFamily).join(", "),o=Xh(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,o,s].join(" "),s,o]},t.prototype.renderTextNode=function(r,n){return ys(this,void 0,void 0,function(){var s,o,i,l,c,u,d,f,h=this;return ts(this,function(m){return s=this.createFontStyle(n),o=s[0],i=s[1],l=s[2],this.ctx.font=o,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(i,l),u=c.baseline,d=c.middle,f=n.paintOrder,r.textBounds.forEach(function(g){f.forEach(function(p){switch(p){case 0:h.ctx.fillStyle=ja(n.color),h.renderTextWithLetterSpacing(g,n.letterSpacing,u);var x=n.textShadow;x.length&&g.text.trim().length&&(x.slice(0).reverse().forEach(function(y){h.ctx.shadowColor=ja(y.color),h.ctx.shadowOffsetX=y.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=y.offsetY.number*h.options.scale,h.ctx.shadowBlur=y.blur.number,h.renderTextWithLetterSpacing(g,n.letterSpacing,u)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=ja(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(y){switch(y){case 1:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+u),g.bounds.width,1);break;case 2:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:h.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+d),g.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&g.text.trim().length&&(h.ctx.strokeStyle=ja(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+u)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var o=mx(r),i=fx(n);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,o.left,o.top,o.width,o.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return ys(this,void 0,void 0,function(){var n,s,o,i,l,c,b,b,u,d,f,h,C,m,g,T,p,x,y,b,j,C,T;return ts(this,function(L){switch(L.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,s=r.curves,o=n.styles,i=0,l=n.textNodes,L.label=1;case 1:return i<l.length?(c=l[i],[4,this.renderTextNode(c,o)]):[3,4];case 2:L.sent(),L.label=3;case 3:return i++,[3,1];case 4:if(!(n instanceof p7))return[3,8];L.label=5;case 5:return L.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return b=L.sent(),this.renderReplacedElement(n,s,b),[3,8];case 7:return L.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof g7&&this.renderReplacedElement(n,s,n.canvas),!(n instanceof x7))return[3,12];L.label=9;case 9:return L.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return b=L.sent(),this.renderReplacedElement(n,s,b),[3,12];case 11:return L.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof w7&&n.tree?(u=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:d=L.sent(),n.width&&n.height&&this.ctx.drawImage(d,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),L.label=14;case 14:if(n instanceof Fj&&(f=Math.min(n.bounds.width,n.bounds.height),n.type===lx?n.checked&&(this.ctx.save(),this.path([new bt(n.bounds.left+f*.39363,n.bounds.top+f*.79),new bt(n.bounds.left+f*.16,n.bounds.top+f*.5549),new bt(n.bounds.left+f*.27347,n.bounds.top+f*.44071),new bt(n.bounds.left+f*.39694,n.bounds.top+f*.5649),new bt(n.bounds.left+f*.72983,n.bounds.top+f*.23),new bt(n.bounds.left+f*.84,n.bounds.top+f*.34085),new bt(n.bounds.left+f*.39363,n.bounds.top+f*.79)]),this.ctx.fillStyle=ja(O3),this.ctx.fill(),this.ctx.restore()):n.type===cx&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+f/2,n.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=ja(O3),this.ctx.fill(),this.ctx.restore())),e5e(n)&&n.value.length){switch(h=this.createFontStyle(o),C=h[0],m=h[1],g=this.fontMetrics.getMetrics(C,m).baseline,this.ctx.font=C,this.ctx.fillStyle=ja(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=r5e(n.styles.textAlign),T=mx(n),p=0,n.styles.textAlign){case 1:p+=T.width/2;break;case 2:p+=T.width;break}x=T.add(p,0,0,-T.height/2+1),this.ctx.save(),this.path([new bt(T.left,T.top),new bt(T.left+T.width,T.top),new bt(T.left+T.width,T.top+T.height),new bt(T.left,T.top+T.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new bm(n.value,x),o.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ba(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(y=n.styles.listStyleImage,y.type!==0)return[3,18];b=void 0,j=y.url,L.label=15;case 15:return L.trys.push([15,17,,18]),[4,this.context.cache.match(j)];case 16:return b=L.sent(),this.ctx.drawImage(b,n.bounds.left-(b.width+10),n.bounds.top),[3,18];case 17:return L.sent(),this.context.logger.error("Error loading list-style-image "+j),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(C=this.createFontStyle(o)[0],this.ctx.font=C,this.ctx.fillStyle=ja(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",T=new _l(n.bounds.left,n.bounds.top+tn(n.styles.paddingTop,n.bounds.width),n.bounds.width,w3(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new bm(r.listValue,T),o.letterSpacing,w3(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),L.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return ys(this,void 0,void 0,function(){var n,s,y,o,i,y,l,c,y,u,d,y,f,h,y,m,g,y,p,x,y;return ts(this,function(b){switch(b.label){case 0:if(ba(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:b.sent(),n=0,s=r.negativeZIndex,b.label=2;case 2:return n<s.length?(y=s[n],[4,this.renderStack(y)]):[3,5];case 3:b.sent(),b.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:b.sent(),o=0,i=r.nonInlineLevel,b.label=7;case 7:return o<i.length?(y=i[o],[4,this.renderNode(y)]):[3,10];case 8:b.sent(),b.label=9;case 9:return o++,[3,7];case 10:l=0,c=r.nonPositionedFloats,b.label=11;case 11:return l<c.length?(y=c[l],[4,this.renderStack(y)]):[3,14];case 12:b.sent(),b.label=13;case 13:return l++,[3,11];case 14:u=0,d=r.nonPositionedInlineLevel,b.label=15;case 15:return u<d.length?(y=d[u],[4,this.renderStack(y)]):[3,18];case 16:b.sent(),b.label=17;case 17:return u++,[3,15];case 18:f=0,h=r.inlineLevel,b.label=19;case 19:return f<h.length?(y=h[f],[4,this.renderNode(y)]):[3,22];case 20:b.sent(),b.label=21;case 21:return f++,[3,19];case 22:m=0,g=r.zeroOrAutoZIndexOrTransformedOrOpacity,b.label=23;case 23:return m<g.length?(y=g[m],[4,this.renderStack(y)]):[3,26];case 24:b.sent(),b.label=25;case 25:return m++,[3,23];case 26:p=0,x=r.positiveZIndex,b.label=27;case 27:return p<x.length?(y=x[p],[4,this.renderStack(y)]):[3,30];case 28:b.sent(),b.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(s,o){var i=jo(s)?s.start:s;o===0?n.ctx.moveTo(i.x,i.y):n.ctx.lineTo(i.x,i.y),jo(s)&&n.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,n,s,o){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(s,o),this.ctx.fill(),this.ctx.translate(-s,-o)},t.prototype.resizeImage=function(r,n,s){var o;if(r.width===n&&r.height===s)return r;var i=(o=this.canvas.ownerDocument)!==null&&o!==void 0?o:document,l=i.createElement("canvas");l.width=Math.max(1,n),l.height=Math.max(1,s);var c=l.getContext("2d");return c.drawImage(r,0,0,r.width,r.height,0,0,n,s),l},t.prototype.renderBackgroundImage=function(r){return ys(this,void 0,void 0,function(){var n,s,o,i,l,c;return ts(this,function(u){switch(u.label){case 0:n=r.styles.backgroundImage.length-1,s=function(d){var f,h,m,O,ae,V,H,U,I,g,O,ae,V,H,U,p,x,y,b,j,C,T,L,P,I,E,O,k,D,H,U,ee,ae,V,q,G,Ae,se,S,Q,z,W;return ts(this,function(ne){switch(ne.label){case 0:if(d.type!==0)return[3,5];f=void 0,h=d.url,ne.label=1;case 1:return ne.trys.push([1,3,,4]),[4,o.context.cache.match(h)];case 2:return f=ne.sent(),[3,4];case 3:return ne.sent(),o.context.logger.error("Error loading background-image "+h),[3,4];case 4:return f&&(m=ub(r,n,[f.width,f.height,f.width/f.height]),O=m[0],ae=m[1],V=m[2],H=m[3],U=m[4],I=o.ctx.createPattern(o.resizeImage(f,H,U),"repeat"),o.renderRepeat(O,I,ae,V)),[3,6];case 5:Obe(d)?(g=ub(r,n,[null,null,null]),O=g[0],ae=g[1],V=g[2],H=g[3],U=g[4],p=Pbe(d.angle,H,U),x=p[0],y=p[1],b=p[2],j=p[3],C=p[4],T=document.createElement("canvas"),T.width=H,T.height=U,L=T.getContext("2d"),P=L.createLinearGradient(y,j,b,C),y3(d.stops,x).forEach(function(X){return P.addColorStop(X.stop,ja(X.color))}),L.fillStyle=P,L.fillRect(0,0,H,U),H>0&&U>0&&(I=o.ctx.createPattern(T,"repeat"),o.renderRepeat(O,I,ae,V))):Ube(d)&&(E=ub(r,n,[null,null,null]),O=E[0],k=E[1],D=E[2],H=E[3],U=E[4],ee=d.position.length===0?[Nj]:d.position,ae=tn(ee[0],H),V=tn(ee[ee.length-1],U),q=Lbe(d,ae,V,H,U),G=q[0],Ae=q[1],G>0&&Ae>0&&(se=o.ctx.createRadialGradient(k+ae,D+V,0,k+ae,D+V,G),y3(d.stops,G*2).forEach(function(X){return se.addColorStop(X.stop,ja(X.color))}),o.path(O),o.ctx.fillStyle=se,G!==Ae?(S=r.bounds.left+.5*r.bounds.width,Q=r.bounds.top+.5*r.bounds.height,z=Ae/G,W=1/z,o.ctx.save(),o.ctx.translate(S,Q),o.ctx.transform(1,0,0,z,0,0),o.ctx.translate(-S,-Q),o.ctx.fillRect(k,W*(D-Q)+Q,H,U*W),o.ctx.restore()):o.ctx.fill())),ne.label=6;case 6:return n--,[2]}})},o=this,i=0,l=r.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return i<l.length?(c=l[i],[5,s(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,s){return ys(this,void 0,void 0,function(){return ts(this,function(o){return this.path(X3(s,n)),this.ctx.fillStyle=ja(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,s,o){return ys(this,void 0,void 0,function(){var i,l;return ts(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(r,s,o)]:[3,2];case 1:return c.sent(),[2];case 2:return i=H2e(o,s),this.path(i),this.ctx.fillStyle=ja(r),this.ctx.fill(),l=z2e(o,s),this.path(l),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return ys(this,void 0,void 0,function(){var n,s,o,i,l,c,u,d,f=this;return ts(this,function(h){switch(h.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,s=!mc(n.backgroundColor)||n.backgroundImage.length,o=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],i=t5e(zd(n.backgroundClip,0),r.curves),s||n.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),mc(n.backgroundColor)||(this.ctx.fillStyle=ja(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){f.ctx.save();var g=Ax(r.curves),p=m.inset?0:Z2e,x=Q2e(g,-p+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(f.path(g),f.ctx.clip(),f.mask(x)):(f.mask(g),f.ctx.clip(),f.path(x)),f.ctx.shadowOffsetX=m.offsetX.number+p,f.ctx.shadowOffsetY=m.offsetY.number,f.ctx.shadowColor=ja(m.color),f.ctx.shadowBlur=m.blur.number,f.ctx.fillStyle=m.inset?ja(m.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),h.label=2;case 2:l=0,c=0,u=o,h.label=3;case 3:return c<u.length?(d=u[c],d.style!==0&&!mc(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,l,r.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,l,r.curves,3)];case 6:return h.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,l,r.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,l,r.curves)];case 10:h.sent(),h.label=11;case 11:l++,h.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,n,s,o,i){return ys(this,void 0,void 0,function(){var l,c,u,d,f,h,m,g,p,x,y,b,j,C,T,L,T,L;return ts(this,function(P){return this.ctx.save(),l=$2e(o,s),c=X3(o,s),i===2&&(this.path(c),this.ctx.clip()),jo(c[0])?(u=c[0].start.x,d=c[0].start.y):(u=c[0].x,d=c[0].y),jo(c[1])?(f=c[1].end.x,h=c[1].end.y):(f=c[1].x,h=c[1].y),s===0||s===2?m=Math.abs(u-f):m=Math.abs(d-h),this.ctx.beginPath(),i===3?this.formatPath(l):this.formatPath(c.slice(0,2)),g=n<3?n*3:n*2,p=n<3?n*2:n,i===3&&(g=n,p=n),x=!0,m<=g*2?x=!1:m<=g*2+p?(y=m/(2*g+p),g*=y,p*=y):(b=Math.floor((m+p)/(g+p)),j=(m-b*g)/(b-1),C=(m-(b+1)*g)/b,p=C<=0||Math.abs(p-j)<Math.abs(p-C)?j:C),x&&(i===3?this.ctx.setLineDash([0,g+p]):this.ctx.setLineDash([g,p])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ja(r),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(jo(c[0])&&(T=c[3],L=c[0],this.ctx.beginPath(),this.formatPath([new bt(T.end.x,T.end.y),new bt(L.start.x,L.start.y)]),this.ctx.stroke()),jo(c[1])&&(T=c[1],L=c[2],this.ctx.beginPath(),this.formatPath([new bt(T.end.x,T.end.y),new bt(L.start.x,L.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return ys(this,void 0,void 0,function(){var n;return ts(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ja(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=V2e(r),[4,this.renderStack(n)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(M7),e5e=function(e){return e instanceof b7||e instanceof y7?!0:e instanceof Fj&&e.type!==cx&&e.type!==lx},t5e=function(e,t){switch(e){case 0:return Ax(t);case 2:return D2e(t);case 1:default:return fx(t)}},r5e=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},n5e=["-apple-system","system-ui"],a5e=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return n5e.indexOf(t)===-1}):e},s5e=function(e){si(t,e);function t(r,n){var s=e.call(this,r,n)||this;return s.canvas=n.canvas?n.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=n,s.canvas.width=Math.floor(n.width*n.scale),s.canvas.height=Math.floor(n.height*n.scale),s.canvas.style.width=n.width+"px",s.canvas.style.height=n.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-n.x,-n.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),s}return t.prototype.render=function(r){return ys(this,void 0,void 0,function(){var n,s;return ts(this,function(o){switch(o.label){case 0:return n=q_(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,o5e(n)];case 1:return s=o.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ja(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(M7),o5e=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},i5e=function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,og([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,og([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,og([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,og([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),l5e=function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new i5e({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new N2e(this,t)}return e.instanceCount=1,e}(),O7=function(e,t){return t===void 0&&(t={}),c5e(e,t)};typeof window<"u"&&F7.setContext(window);var c5e=function(e,t){return ys(void 0,void 0,void 0,function(){var r,n,s,o,i,l,c,u,d,f,h,m,g,p,x,y,b,j,C,T,P,L,P,I,E,O,k,D,H,U,ee,ae,V,q,G,Ae,se,S,Q,z;return ts(this,function(W){switch(W.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");
1385if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return s={allowTaint:(I=t.allowTaint)!==null&&I!==void 0?I:!1,imageTimeout:(E=t.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:t.proxy,useCORS:(O=t.useCORS)!==null&&O!==void 0?O:!1},o=I_({logging:(k=t.logging)!==null&&k!==void 0?k:!0,cache:t.cache},s),i={windowWidth:(D=t.windowWidth)!==null&&D!==void 0?D:n.innerWidth,windowHeight:(H=t.windowHeight)!==null&&H!==void 0?H:n.innerHeight,scrollX:(U=t.scrollX)!==null&&U!==void 0?U:n.pageXOffset,scrollY:(ee=t.scrollY)!==null&&ee!==void 0?ee:n.pageYOffset},l=new _l(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),c=new l5e(o,l),u=(ae=t.foreignObjectRendering)!==null&&ae!==void 0?ae:!1,d={allowTaint:(V=t.allowTaint)!==null&&V!==void 0?V:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),f=new G3(c,e,d),h=f.clonedReferenceElement,h?[4,f.toIFrame(r,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=W.sent(),g=Tj(h)||d2e(h)?Qye(h.ownerDocument):kv(c,h),p=g.width,x=g.height,y=g.left,b=g.top,j=u5e(c,h,t.backgroundColor),C={canvas:t.canvas,backgroundColor:j,scale:(G=(q=t.scale)!==null&&q!==void 0?q:n.devicePixelRatio)!==null&&G!==void 0?G:1,x:((Ae=t.x)!==null&&Ae!==void 0?Ae:0)+y,y:((se=t.y)!==null&&se!==void 0?se:0)+b,width:(S=t.width)!==null&&S!==void 0?S:Math.ceil(p),height:(Q=t.height)!==null&&Q!==void 0?Q:Math.ceil(x)},u?(c.logger.debug("Document cloned, using foreign object rendering"),P=new s5e(c,C),[4,P.render(h)]):[3,3];case 2:return T=W.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+y+","+b+" with size "+p+"x"+x+" using computed rendering"),c.logger.debug("Starting DOM parsing"),L=C7(c,h),j===L.styles.backgroundColor&&(L.styles.backgroundColor=gl.TRANSPARENT),c.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),P=new J2e(c,C),[4,P.render(L)];case 4:T=W.sent(),W.label=5;case 5:return(!((z=t.removeContainer)!==null&&z!==void 0)||z)&&(G3.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,T]}})})},u5e=function(e,t,r){var n=t.ownerDocument,s=n.documentElement?vm(e,getComputedStyle(n.documentElement).backgroundColor):gl.TRANSPARENT,o=n.body?vm(e,getComputedStyle(n.body).backgroundColor):gl.TRANSPARENT,i=typeof r=="string"?vm(e,r):r===null?gl.TRANSPARENT:4294967295;return t===n.documentElement?mc(s)?mc(o)?i:o:s:i};const d5e=Object.freeze(Object.defineProperty({__proto__:null,default:O7},Symbol.toStringTag,{value:"Module"}));function Qr(e){"@babel/helpers - typeof";return Qr=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},Qr(e)}var ni=Uint8Array,co=Uint16Array,Pj=Int32Array,Lj=new ni([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]),Dj=new ni([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]),J3=new ni([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),U7=function(e,t){for(var r=new co(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var s=new Pj(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)s[o]=o-r[n]<<5|n;return{b:r,r:s}},Q7=U7(Lj,2),A5e=Q7.b,J_=Q7.r;A5e[28]=258,J_[258]=28;var f5e=U7(Dj,0),ek=f5e.r,e2=new co(32768);for(var un=0;un<32768;++un){var ql=(un&43690)>>1|(un&21845)<<1;ql=(ql&52428)>>2|(ql&13107)<<2,ql=(ql&61680)>>4|(ql&3855)<<4,e2[un]=((ql&65280)>>8|(ql&255)<<8)>>1}var _m=function(e,t,r){for(var n=e.length,s=0,o=new co(t);s<n;++s)e[s]&&++o[e[s]-1];var i=new co(t);for(s=1;s<t;++s)i[s]=i[s-1]+o[s-1]<<1;var l;if(r){l=new co(1<<t);var c=15-t;for(s=0;s<n;++s)if(e[s])for(var u=s<<4|e[s],d=t-e[s],f=i[e[s]-1]++<<d,h=f|(1<<d)-1;f<=h;++f)l[e2[f]>>c]=u}else for(l=new co(n),s=0;s<n;++s)e[s]&&(l[s]=e2[i[e[s]-1]++]>>15-e[s]);return l},qu=new ni(288);for(var un=0;un<144;++un)qu[un]=8;for(var un=144;un<256;++un)qu[un]=9;for(var un=256;un<280;++un)qu[un]=7;for(var un=280;un<288;++un)qu[un]=8;var hx=new ni(32);for(var un=0;un<32;++un)hx[un]=5;var m5e=_m(qu,9,0),h5e=_m(hx,5,0),V7=function(e){return(e+7)/8|0},p5e=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new ni(e.subarray(t,r))},al=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Of=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},db=function(e,t){for(var r=[],n=0;n<e.length;
vendor: 5,250 bytes, line 1385
1385++n)e[n]&&r.push({s:n,f:e[n]});var s=r.length,o=r.slice();if(!s)return{t:z7,l:0};if(s==1){var i=new ni(r[0].s+1);return i[r[0].s]=1,{t:i,l:1}}r.sort(function(T,L){return T.f-L.f}),r.push({s:-1,f:25001});var l=r[0],c=r[1],u=0,d=1,f=2;for(r[0]={s:-1,f:l.f+c.f,l,r:c};d!=s-1;)l=r[r[u].f<r[f].f?u++:f++],c=r[u!=d&&r[u].f<r[f].f?u++:f++],r[d++]={s:-1,f:l.f+c.f,l,r:c};for(var h=o[0].s,n=1;n<s;++n)o[n].s>h&&(h=o[n].s);var m=new co(h+1),g=t2(r[d-1],m,0);if(g>t){var n=0,p=0,x=g-t,y=1<<x;for(o.sort(function(L,P){return m[P.s]-m[L.s]||L.f-P.f});n<s;++n){var b=o[n].s;if(m[b]>t)p+=y-(1<<g-m[b]),m[b]=t;else break}for(p>>=x;p>0;){var j=o[n].s;m[j]<t?p-=1<<t-m[j]++-1:++n}for(;n>=0&&p;--n){var C=o[n].s;m[C]==t&&(--m[C],++p)}g=t}return{t:new ni(m),l:g}},t2=function(e,t,r){return e.s==-1?Math.max(t2(e.l,t,r+1),t2(e.r,t,r+1)):t[e.s]=r},tk=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new co(++t),n=0,s=e[0],o=1,i=function(c){r[n++]=c},l=1;l<=t;++l)if(e[l]==s&&l!=t)++o;else{if(!s&&o>2){for(;o>138;o-=138)i(32754);o>2&&(i(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(i(s),--o;o>6;o-=6)i(8304);o>2&&(i(o-3<<5|8208),o=0)}for(;o--;)i(s);o=1,s=e[l]}return{c:r.subarray(0,n),n:t}},Uf=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},H7=function(e,t,r){var n=r.length,s=V7(t+2);e[s]=n&255,e[s+1]=n>>8,e[s+2]=e[s]^255,e[s+3]=e[s+1]^255;for(var o=0;o<n;++o)e[s+o+4]=r[o];return(s+4+n)*8},rk=function(e,t,r,n,s,o,i,l,c,u,d){al(t,d++,r),++s[256];for(var f=db(s,15),h=f.t,m=f.l,g=db(o,15),p=g.t,x=g.l,y=tk(h),b=y.c,j=y.n,C=tk(p),T=C.c,L=C.n,P=new co(19),I=0;I<b.length;++I)++P[b[I]&31];for(var I=0;I<T.length;++I)++P[T[I]&31];for(var E=db(P,7),O=E.t,k=E.l,D=19;D>4&&!O[J3[D-1]];--D);var H=u+5<<3,U=Uf(s,qu)+Uf(o,hx)+i,ee=Uf(s,h)+Uf(o,p)+i+14+3*D+Uf(P,O)+2*P[16]+3*P[17]+7*P[18];if(c>=0&&H<=U&&H<=ee)return H7(t,d,e.subarray(c,c+u));var ae,V,q,G;if(al(t,d,1+(ee<U)),d+=2,ee<U){ae=_m(h,m,0),V=h,q=_m(p,x,0),G=p;var Ae=_m(O,k,0);al(t,d,j-257),al(t,d+5,L-1),al(t,d+10,D-4),d+=14;for(var I=0;I<D;++I)al(t,d+3*I,O[J3[I]]);d+=3*D;for(var se=[b,T],S=0;S<2;++S)for(var Q=se[S],I=0;I<Q.length;++I){var z=Q[I]&31;al(t,d,Ae[z]),d+=O[z],z>15&&(al(t,d,Q[I]>>5&127),d+=Q[I]>>12)}}else ae=m5e,V=qu,q=h5e,G=hx;for(var I=0;I<l;++I){var W=n[I];if(W>255){var z=W>>18&31;Of(t,d,ae[z+257]),d+=V[z+257],z>7&&(al(t,d,W>>23&31),d+=Lj[z]);var ne=W&31;Of(t,d,q[ne]),d+=G[ne],ne>3&&(Of(t,d,W>>5&8191),d+=Dj[ne])}else Of(t,d,ae[W]),d+=V[W]}return Of(t,d,ae[256]),d+V[256]},g5e=new Pj([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z7=new ni(0),x5e=function(e,t,r,n,s,o){var i=o.z||e.length,l=new ni(n+i+5*(1+Math.ceil(i/7e3))+s),c=l.subarray(n,l.length-s),u=o.l,d=(o.r||0)&7;if(t){d&&(c[0]=o.r>>3);for(var f=g5e[t-1],h=f>>13,m=f&8191,g=(1<<r)-1,p=o.p||new co(32768),x=o.h||new co(g+1),y=Math.ceil(r/3),b=2*y,j=function(He){return(e[He]^e[He+1]<<y^e[He+2]<<b)&g},C=new Pj(25e3),T=new co(288),L=new co(32),P=0,I=0,E=o.i||0,O=0,k=o.w||0,D=0;E+2<i;++E){var H=j(E),U=E&32767,ee=x[H];if(p[U]=ee,x[H]=U,k<=E){var ae=i-E;if((P>7e3||O>24576)&&(ae>423||!u)){d=rk(e,c,0,C,T,L,I,O,D,E-D,d),O=P=I=0,D=E;for(var V=0;V<286;++V)T[V]=0;for(var V=0;V<30;++V)L[V]=0}var q=2,G=0,Ae=m,se=U-ee&32767;if(ae>2&&H==j(E-se))for(var S=Math.min(h,ae)-1,Q=Math.min(32767,E),z=Math.min(258,ae);se<=Q&&--Ae&&U!=ee;){if(e[E+q]==e[E+q-se]){for(var W=0;W<z&&e[E+W]==e[E+W-se];++W);if(W>q){if(q=W,G=se,W>S)break;for(var ne=Math.min(se,W-2),X=0,V=0;V<ne;++V){var te=E-se+V&32767,fe=p[te],pe=te-fe&32767;pe>X&&(X=pe,ee=te)}}}U=ee,ee=p[U],se+=U-ee&32767}if(G){C[O++]=268435456|J_[q]<<18|ek[G];var _e=J_[q]&31,xe=ek[G]&31;I+=Lj[_e]+Dj[xe],++T[257+_e],++L[xe],k=E+q,++P}else C[O++]=e[E],++T[e[E]]}}for(E=Math.max(E,k);E<i;++E)C[O++]=e[E],++T[e[E]];d=rk(e,c,u,C,T,L,I,O,D,E-D,d),u||(o.r=d&7|c[d/8|0]<<3,d-=7,o.h=x,o.p=p,o.i=E,o.w=k)}else{for(var E=o.w||0;E<i+u;E+=65535){var Be=E+65535;Be>=i&&(c[d/8|0]=u,Be=i),d=H7(c,d+1,e.subarray(E,Be))}o.i=i}return p5e(l,0,n+V7(d)+s)},$7=function(){var e=1,t=0;return{p:function(r){for(var n=e,s=t,o=r.length|0,i=0;i!=o;){for(var l=Math.min(i+2655,o);i<l;++i)s+=n+=r[i];n=(n&65535)+15*(n>>16),s=(s&65535)+15*(s>>16)}e=n,t=s},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},v5e=function(e,t,r,n,s){if(!s&&(s={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),i=new ni(o.length+e.length);i.set(o),i.set(e,o.length),e=i,s.w=o.length}return x5e(e,t.level==null?6:t.level,t.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,s)},q7=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},y5e=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var s=$7();s.p(t.dictionary),q7(e,2,s.d())}};function r2(e,t){t||(t={});var r=$7();r.p(e);var n=v5e(e,t,t.dictionary?6:2,4);return y5e(n,t),q7(n,n.length-4,r.d()),n}var b5e=typeof TextDecoder<"u"&&new TextDecoder,w5e=0;try{b5e.decode(z7,{stream:!0}),w5e=1}catch{}function _5e(e){if(Array.isArray(e))return e}function C5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,s=d}
1385finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw s}}return l}}function nk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function j5e(e,t){if(e){if(typeof e=="string")return nk(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nk(e,t):void 0}}function E5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1386In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(e,t){return _5e(e)||C5e(e,t)||j5e(e,t)||E5e()}function sk(e,t="utf8"){return new TextDecoder(t).decode(e)}const B5e=new TextEncoder;function N5e(e){return B5e.encode(e)}const S5e=1024*8,k5e=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Ab={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Rj{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=S5e,r={}){let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const s=r.offset?r.offset>>>0:0,o=t.byteLength-s;let i=s;(ArrayBuffer.isView(t)||t instanceof Rj)&&(t.byteLength!==t.buffer.byteLength&&(i=t.byteOffset+s),t=t.buffer),n?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,o),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,s=new Uint8Array(n);s.set(new Uint8Array(this.buffer)),this.buffer=s.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,r){const n=Ab[r].BYTES_PER_ELEMENT*t,s=this.byteOffset+this.offset,o=this.buffer.slice(s,s+n);if(this.littleEndian===k5e&&r!=="uint8"&&r!=="int8"){const l=new Uint8Array(this.buffer.slice(s,s+n));l.reverse();const c=new Ab[r](l.buffer);return this.offset+=n,c.reverse(),c}const i=new Ab[r](o);return this.offset+=n,i}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return sk(this.readBytes(t))}decodeText(t=1,r="utf8"){return sk(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(N5e(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function rf(e){let t=e.length;for(;--t>=0;)e[t]=0}const I5e=3,F5e=258,K7=29,T5e=256,P5e=T5e+1+K7,G7=30,L5e=512,D5e=new Array((P5e+2)*2);rf(D5e);const R5e=new Array(G7*2);rf(R5e);const M5e=new Array(L5e);rf(M5e);const O5e=new Array(F5e-I5e+1);rf(O5e);const U5e=new Array(K7);rf(U5e);const Q5e=new Array(G7);rf(Q5e);const V5e=(e,t,r,n)=>{let s=e&65535|0,o=e>>>16&65535|0,i=0;for(;r!==0;){i=r>2e3?2e3:r,r-=i;do s=s+t[n++]|0,o=o+s|0;while(--i);s%=65521,o%=65521}return s|o<<16|0};var n2=V5e;const H5e=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},z5e=new Uint32Array(H5e()),$5e=(e,t,r,n)=>{const s=z5e,o=n+r;e^=-1;for(let i=n;i<o;i++)e=e>>>8^s[(e^t[i])&255];return e^-1};var pi=$5e,a2={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},W7={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
1386ROR:-5,Z_DEFLATED:8};const q5e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var K5e=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)q5e(r,n)&&(e[n]=r[n])}}return e},G5e=e=>{let t=0;for(let n=0,s=e.length;n<s;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,s=0,o=e.length;n<o;n++){let i=e[n];r.set(i,s),s+=i.length}return r},Y7={assign:K5e,flattenChunks:G5e};let X7=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{X7=!1}const ih=new Uint8Array(256);for(let e=0;e<256;e++)ih[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ih[254]=ih[254]=1;var W5e=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,s,o,i=e.length,l=0;for(s=0;s<i;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<i&&(n=e.charCodeAt(s+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),s++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(l),o=0,s=0;o<l;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<i&&(n=e.charCodeAt(s+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),s++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const Y5e=(e,t)=>{if(t<65534&&e.subarray&&X7)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var X5e=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,s;const o=new Array(r*2);for(s=0,n=0;n<r;){let i=e[n++];if(i<128){o[s++]=i;continue}let l=ih[i];if(l>4){o[s++]=65533,n+=l-1;continue}for(i&=l===2?31:l===3?15:7;l>1&&n<r;)i=i<<6|e[n++]&63,l--;if(l>1){o[s++]=65533;continue}
1386i<65536?o[s++]=i:(i-=65536,o[s++]=55296|i>>10&1023,o[s++]=56320|i&1023)}return Y5e(o,s)},Z5e=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+ih[e[r]]>t?r:t},s2={string2buf:W5e,buf2string:X5e,utf8border:Z5e};function J5e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var eCe=J5e;const Sg=16209,tCe=16191;var rCe=function(t,r){let n,s,o,i,l,c,u,d,f,h,m,g,p,x,y,b,j,C,T,L,P,I,E,O;const k=t.state;n=t.next_in,E=t.input,s=n+(t.avail_in-5),o=t.next_out,O=t.output,i=o-(r-t.avail_out),l=o+(t.avail_out-257),c=k.dmax,u=k.wsize,d=k.whave,f=k.wnext,h=k.window,m=k.hold,g=k.bits,p=k.lencode,x=k.distcode,y=(1<<k.lenbits)-1,b=(1<<k.distbits)-1;e:do{g<15&&(m+=E[n++]<<g,g+=8,m+=E[n++]<<g,g+=8),j=p[m&y];t:for(;;){if(C=j>>>24,m>>>=C,g-=C,C=j>>>16&255,C===0)O[o++]=j&65535;else if(C&16){T=j&65535,C&=15,C&&(g<C&&(m+=E[n++]<<g,g+=8),T+=m&(1<<C)-1,m>>>=C,g-=C),g<15&&(m+=E[n++]<<g,g+=8,m+=E[n++]<<g,g+=8),j=x[m&b];r:for(;;){if(C=j>>>24,m>>>=C,g-=C,C=j>>>16&255,C&16){if(L=j&65535,C&=15,g<C&&(m+=E[n++]<<g,g+=8,g<C&&(m+=E[n++]<<g,g+=8)),L+=m&(1<<C)-1,L>c){t.msg="invalid distance too far back",k.mode=Sg;break e}if(m>>>=C,g-=C,C=o-i,L>C){if(C=L-C,C>d&&k.sane){t.msg="invalid distance too far back",k.mode=Sg;break e}if(P=0,I=h,f===0){if(P+=u-C,C<T){T-=C;do O[o++]=h[P++];while(--C);P=o-L,I=O}}else if(f<C){if(P+=u+f-C,C-=f,C<T){T-=C;do O[o++]=h[P++];while(--C);if(P=0,f<T){C=f,T-=C;do O[o++]=h[P++];while(--C);P=o-L,I=O}}}else if(P+=f-C,C<T){T-=C;do O[o++]=h[P++];while(--C);P=o-L,I=O}for(;T>2;)O[o++]=I[P++],O[o++]=I[P++],O[o++]=I[P++],T-=3;T&&(O[o++]=I[P++],T>1&&(O[o++]=I[P++]))}else{P=o-L;do O[o++]=O[P++],O[o++]=O[P++],O[o++]=O[P++],T-=3;while(T>2);T&&(O[o++]=O[P++],T>1&&(O[o++]=O[P++]))}}else if(C&64){t.msg="invalid distance code",k.mode=Sg;break e}else{j=x[(j&65535)+(m&(1<<C)-1)];continue r}break}}else if(C&64)if(C&32){k.mode=tCe;break e}else{t.msg="invalid literal/length code",k.mode=Sg;break e}else{j=p[(j&65535)+(m&(1<<C)-1)];continue t}break}}while(n<s&&o<l);T=g>>3,n-=T,g-=T<<3,m&=(1<<g)-1,t.next_in=n,t.next_out=o,t.avail_in=n<s?5+(s-n):5-(n-s),t.avail_out=o<l?257+(l-o):257-(o-l),k.hold=m,k.bits=g};const Dd=15,ok=852,ik=592,lk=0,fb=1,ck=2,nCe=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),aCe=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),sCe=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),oCe=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),iCe=(e,t,r,n,s,o,i,l)=>{const c=l.bits;let u=0,d=0,f=0,h=0,m=0,g=0,p=0,x=0,y=0,b=0,j,C,T,L,P,I=null,E;const O=new Uint16Array(Dd+1),k=new Uint16Array(Dd+1);let D=null,H,U,ee;for(u=0;
vendor: 9,518 bytes, line 1386
1386u<=Dd;u++)O[u]=0;for(d=0;d<n;d++)O[t[r+d]]++;for(m=c,h=Dd;h>=1&&O[h]===0;h--);if(m>h&&(m=h),h===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,l.bits=1,0;for(f=1;f<h&&O[f]===0;f++);for(m<f&&(m=f),x=1,u=1;u<=Dd;u++)if(x<<=1,x-=O[u],x<0)return-1;if(x>0&&(e===lk||h!==1))return-1;for(k[1]=0,u=1;u<Dd;u++)k[u+1]=k[u]+O[u];for(d=0;d<n;d++)t[r+d]!==0&&(i[k[t[r+d]]++]=d);if(e===lk?(I=D=i,E=20):e===fb?(I=nCe,D=aCe,E=257):(I=sCe,D=oCe,E=0),b=0,d=0,u=f,P=o,g=m,p=0,T=-1,y=1<<m,L=y-1,e===fb&&y>ok||e===ck&&y>ik)return 1;for(;;){H=u-p,i[d]+1<E?(U=0,ee=i[d]):i[d]>=E?(U=D[i[d]-E],ee=I[i[d]-E]):(U=96,ee=0),j=1<<u-p,C=1<<g,f=C;do C-=j,s[P+(b>>p)+C]=H<<24|U<<16|ee|0;while(C!==0);for(j=1<<u-1;b&j;)j>>=1;if(j!==0?(b&=j-1,b+=j):b=0,d++,--O[u]===0){if(u===h)break;u=t[r+i[d]]}if(u>m&&(b&L)!==T){for(p===0&&(p=m),P+=f,g=u-p,x=1<<g;g+p<h&&(x-=O[g+p],!(x<=0));)g++,x<<=1;if(y+=1<<g,e===fb&&y>ok||e===ck&&y>ik)return 1;T=b&L,s[T]=m<<24|g<<16|P-o|0}}return b!==0&&(s[P+b]=u-p<<24|64<<16|0),l.bits=m,0};var Cm=iCe;const lCe=0,Z7=1,J7=2,{Z_FINISH:uk,Z_BLOCK:cCe,Z_TREES:kg,Z_OK:Ku,Z_STREAM_END:uCe,Z_NEED_DICT:dCe,Z_STREAM_ERROR:To,Z_DATA_ERROR:eV,Z_MEM_ERROR:tV,Z_BUF_ERROR:ACe,Z_DEFLATED:dk}=W7,Uv=16180,Ak=16181,fk=16182,mk=16183,hk=16184,pk=16185,gk=16186,xk=16187,vk=16188,yk=16189,px=16190,sl=16191,mb=16192,bk=16193,hb=16194,wk=16195,_k=16196,Ck=16197,jk=16198,Ig=16199,Fg=16200,Ek=16201,Bk=16202,Nk=16203,Sk=16204,kk=16205,pb=16206,Ik=16207,Fk=16208,gn=16209,rV=16210,nV=16211,fCe=852,mCe=592,hCe=15,pCe=hCe,Tk=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function gCe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const od=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Uv||t.mode>nV?1:0},aV=e=>{if(od(e))return To;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Uv,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(fCe),t.distcode=t.distdyn=new Int32Array(mCe),t.sane=1,t.back=-1,Ku},sV=e=>{if(od(e))return To;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,aV(e)},oV=(e,t)=>{let r;if(od(e))return To;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?To:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,sV(e))},iV=(e,t)=>{if(!e)return To;const r=new gCe;e.state=r,r.strm=e,r.window=null,r.mode=Uv;const n=oV(e,t);return n!==Ku&&(e.state=null),n},xCe=e=>iV(e,pCe);let Pk=!0,gb,xb;const vCe=e=>{if(Pk){gb=new Int32Array(512),xb=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Cm(Z7,e.lens,0,288,gb,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Cm(J7,e.lens,0,32,xb,0,e.work,{bits:5}),Pk=!1}e.lencode=gb,e.lenbits=9,e.distcode=xb,e.distbits=5},lV=(e,t,r,n)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>n&&(s=n),o.window.set(t.subarray(r-n,r-n+s),o.wnext),n-=s,n?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0},yCe=(e,t)=>{let r,n,s,o,i,l,c,u,d,f,h,m,g,p,x=0,y,b,j,C,T,L,P,I;const E=new Uint8Array(4);let O,k;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(od(e)||!e.output||!e.input&&e.avail_in!==0)return To;r=e.state,r.mode===sl&&(r.mode=mb),i=e.next_out,s=e.output,c=e.avail_out,o=e.next_in,n=e.input,l=e.avail_in,u=r.hold,d=r.bits,f=l,h=c,I=Ku;e:for(;;)switch(r.mode){case Uv:if(r.wrap===0){r.mode=mb;break}for(;d<16;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(r.wrap&2&&u===35615){r.wbits===0&&(r.wbits=15),r.check=0,E[0]=u&255,E[1]=u>>>8&255,r.check=pi(r.check,E,2,0),u=0,d=0,r.mode=Ak;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=gn;break}if((u&15)!==dk){e.msg="unknown compression method",r.mode=gn;break}if(u>>>=4,d-=4,P=(u&15)+8,r.wbits===0&&(r.wbits=P),P>15||P>r.wbits){e.msg="invalid window size",r.mode=gn;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=u&512?yk:sl,u=0,d=0;break;case Ak:for(;d<16;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(r.flags=u,(r.flags&255)!==dk){e.msg="unknown compression method",r.mode=gn;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=gn;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=pi(r.check,E,2,0)),u=0,d=0,r.mode=fk;case fk:for(;d<32;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.head&&(r.head.time=u),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=pi(r.check,E,4,0)),u=0,d=0,r.mode=mk;case mk:for(;d<16;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=pi(r.check,E,2,0)),u=0,d=0,r.mode=hk;case hk:if(r.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&r.wrap&4&&(E[0]=u&255,E[1]=u>>>8&255,r.check=pi(r.check,E,2,0)),u=0,d=0}else r.head&&(r.head.extra=null);r.mode=pk;case pk:if(r.flags&1024&&(m=r.length,m>l&&(m=l),m&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+m),P)),r.flags&512&&r.wrap&4&&(r.check=pi(r.check,n,m,o)),l-=m,o+=m,r.length-=m),r.length))break e;r.length=0,r.mode=gk;case gk:if(r.flags&2048){if(l===0)break e;m=0;do P=n[o+m++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P));while(P&&m<l);if(r.flags&512&&r.wrap&4&&(r.check=pi(r.check,n,m,o)),l-=m,o+=m,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=xk;case xk:if(r.flags&4096){if(l===0)break e;m=0;do P=n[o+m++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P));while(P&&m<l);if(r.flags&512&&r.wrap&4&&(r.check=pi(r.check,n,m,o)),l-=m,o+=m,P)break e}else r.head&&(r.head.comment=null);r.mode=vk;case vk:if(r.flags&512){for(;d<16;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(r.wrap&4&&u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=gn;break}u=0,d=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=sl;break;case yk:for(;d<32;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}e.adler=r.check=Tk(u),u=0,d=0,r.mode=px;case px:if(r.havedict===0)return e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=l,r.hold=u,r.bits=d,dCe;e.adler=r.check=1,r.mode=sl;case sl:if(t===cCe||t===kg)break e;case mb:if(r.last){u>>>=d&7,d-=d&7,r.mode=pb;break}for(;d<3;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}switch(r.last=u&1,u>>>=1,d-=1,u&3){case 0:r.mode=bk;break;case 1:if(vCe(r),r.mode=Ig,t===kg){u>>>=2,d-=2;break e}break;case 2:r.mode=_k;break;case 3:e.msg="invalid block type",r.mode=gn}u>>>=2,d-=2;break;case bk:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=gn;break}if(r.length=u&65535,u=0,d=0,r.mode=hb,t===kg)break e;case hb:r.mode=wk;case wk:if(m=r.length,m){if(m>l&&(m=l),m>c&&(m=c),m===0)break e;s.set(n.subarray(o,o+m),i),l-=m,o+=m,c-=m,i+=m,r.length-=m;break}r.mode=sl;break;case _k:for(;d<14;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(r.nlen=(u&31)+257,u>>>=5,d-=5,r.ndist=(u&31)+1,u>>>=5,d-=5,r.ncode=(u&15)+4,u>>>=4,d-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=gn;break}r.have=0,r.mode=Ck;case Ck:for(;r.have<r.ncode;){for(;d<3;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.lens[D[r.have++]]=u&7,u>>>=3,d-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,O={bits:r.lenbits},I=Cm(lCe,r.lens,0,19,r.lencode,0,r.work,O),r.lenbits=O.bits,I){e.msg="invalid code lengths set",r.mode=gn;break}r.have=0,r.mode=jk;case jk:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[u&(1<<r.lenbits)-1],y=x>>>24,b=x>>>16&255,j=x&65535,!(y<=d);){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(j<16)u>>>=y,d-=y,r.lens[r.have++]=j;else{if(j===16){for(k=y+2;d<k;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(u>>>=y,d-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=gn;break}P=r.lens[r.have-1],m=3+(u&3),u>>>=2,d-=2}else if(j===17){for(k=y+3;d<k;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}u>>>=y,d-=y,P=0,m=3+(u&7),u>>>=3,d-=3}else{for(k=y+7;d<k;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}u>>>=y,d-=y,P=0,m=11+(u&127),u>>>=7,d-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=gn;break}for(;m--;)r.lens[r.have++]=P}}if(r.mode===gn)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=gn;break}if(r.lenbits=9,O={bits:r.lenbits},I=Cm(Z7,r.lens,0,r.nlen,r.lencode,0,r.work,O),r.lenbits=O.bits,I){e.msg="invalid literal/lengths set",r.mode=gn;break}if(r.distbits=6,r.distcode=r.distdyn,O={bits:r.distbits},I=Cm(J7,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,O),r.distbits=O.bits,I){e.msg="invalid distances set",r.mode=gn;break}if(r.mode=Ig,t===kg)break e;case Ig:r.mode=Fg;case Fg:if(l>
1386=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=l,r.hold=u,r.bits=d,rCe(e,h),i=e.next_out,s=e.output,c=e.avail_out,o=e.next_in,n=e.input,l=e.avail_in,u=r.hold,d=r.bits,r.mode===sl&&(r.back=-1);break}for(r.back=0;x=r.lencode[u&(1<<r.lenbits)-1],y=x>>>24,b=x>>>16&255,j=x&65535,!(y<=d);){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(b&&!(b&240)){for(C=y,T=b,L=j;x=r.lencode[L+((u&(1<<C+T)-1)>>C)],y=x>>>24,b=x>>>16&255,j=x&65535,!(C+y<=d);){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}u>>>=C,d-=C,r.back+=C}if(u>>>=y,d-=y,r.back+=y,r.length=j,b===0){r.mode=kk;break}if(b&32){r.back=-1,r.mode=sl;break}if(b&64){e.msg="invalid literal/length code",r.mode=gn;break}r.extra=b&15,r.mode=Ek;case Ek:if(r.extra){for(k=r.extra;d<k;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Bk;case Bk:for(;x=r.distcode[u&(1<<r.distbits)-1],y=x>>>24,b=x>>>16&255,j=x&65535,!(y<=d);){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(!(b&240)){for(C=y,T=b,L=j;x=r.distcode[L+((u&(1<<C+T)-1)>>C)],y=x>>>24,b=x>>>16&255,j=x&65535,!(C+y<=d);){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}u>>>=C,d-=C,r.back+=C}if(u>>>=y,d-=y,r.back+=y,b&64){e.msg="invalid distance code",r.mode=gn;break}r.offset=j,r.extra=b&15,r.mode=Nk;case Nk:if(r.extra){for(k=r.extra;d<k;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=gn;break}r.mode=Sk;case Sk:if(c===0)break e;if(m=h-c,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=gn;break}m>r.wnext?(m-=r.wnext,g=r.wsize-m):g=r.wnext-m,m>r.length&&(m=r.length),p=r.window}else p=s,g=i-r.offset,m=r.length;m>c&&(m=c),c-=m,r.length-=m;do s[i++]=p[g++];while(--m);r.length===0&&(r.mode=Fg);break;case kk:if(c===0)break e;s[i++]=r.length,c--,r.mode=Fg;break;case pb:if(r.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[o++]<<d,d+=8}if(h-=c,e.total_out+=h,r.total+=h,r.wrap&4&&h&&(e.adler=r.check=r.flags?pi(r.check,s,h,i-h):n2(r.check,s,h,i-h)),h=c,r.wrap&4&&(r.flags?u:Tk(u))!==r.check){e.msg="incorrect data check",r.mode=gn;break}u=0,d=0}r.mode=Ik;case Ik:if(r.wrap&&r.flags){for(;d<32;){if(l===0)break e;l--,u+=n[o++]<<d,d+=8}if(r.wrap&4&&u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=gn;break}u=0,d=0}r.mode=Fk;case Fk:I=uCe;break e;case gn:I=eV;break e;case rV:return tV;case nV:default:return To}return e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=l,r.hold=u,r.bits=d,(r.wsize||h!==e.avail_out&&r.mode<gn&&(r.mode<pb||t!==uk))&&lV(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,r.total+=h,r.wrap&4&&h&&(e.adler=r.check=r.flags?pi(r.check,s,h,e.next_out-h):n2(r.check,s,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===sl?128:0)+(r.mode===Ig||r.mode===hb?256:0),(f===0&&h===0||t===uk)&&I===Ku&&(I=ACe),I},bCe=e=>{if(od(e))return To;let t=e.state;return t.window&&(t.window=null),e.state=null,Ku},wCe=(e,t)=>{if(od(e))return To;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Ku):To},_Ce=(e,t)=>{const r=t.length;let n,s,o;return od(e)||(n=e.state,n.wrap!==0&&n.mode!==px)?To:n.mode===px&&(s=1,s=n2(s,t,r,0),s!==n.check)?eV:(o=lV(e,t,r,r),o?(n.mode=rV,tV):(n.havedict=1,Ku))};var CCe=sV,jCe=oV,ECe=aV,BCe=xCe,NCe=iV,SCe=yCe,kCe=bCe,ICe=wCe,FCe=_Ce,TCe="pako inflate (from Nodeca project)",ll={inflateReset:CCe,inflateReset2:jCe,inflateResetKeep:ECe,inflateInit:BCe,inflateInit2:NCe,inflate:SCe,inflateEnd:kCe,inflateGetHeader:ICe,inflateSetDictionary:FCe,inflateInfo:TCe};function PCe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var LCe=PCe;const cV=Object.prototype.toString,{Z_NO_FLUSH:DCe,Z_FINISH:RCe,Z_OK:lh,Z_STREAM_END:vb,Z_NEED_DICT:yb,Z_STREAM_ERROR:MCe,Z_DATA_ERROR:Lk,Z_MEM_ERROR:OCe}=W7;function Zh(e){this.options=Y7.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eCe,this.strm.avail_out=0;let r=ll.inflateInit2(this.strm,t.windowBits);if(r!==lh)throw new Error(a2[r]);if(this.header=new LCe,ll.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=s2.string2buf(t.dictionary):cV.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ll.inflateSetDictionary(this.strm,t.dictionary),r!==lh)))throw new Error(a2[r])}Zh.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,s=this.options.dictionary;let o,i,l;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?RCe:DCe,cV.call(e)==="[object ArrayBuffer]"?r.input
1386=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=ll.inflate(r,i),o===yb&&s&&(o=ll.inflateSetDictionary(r,s),o===lh?o=ll.inflate(r,i):o===Lk&&(o=yb));r.avail_in>0&&o===vb&&r.state.wrap>0&&e[r.next_in]!==0;)ll.inflateReset(r),o=ll.inflate(r,i);switch(o){case MCe:case Lk:case yb:case OCe:return this.onEnd(o),this.ended=!0,!1}if(l=r.avail_out,r.next_out&&(r.avail_out===0||o===vb))if(this.options.to==="string"){let c=s2.utf8border(r.output,r.next_out),u=r.next_out-c,d=s2.buf2string(r.output,c);r.next_out=u,r.avail_out=n-u,u&&r.output.set(r.output.subarray(c,c+u),0),this.onData(d)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===lh&&l===0)){if(o===vb)return o=ll.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Zh.prototype.onData=function(e){this.chunks.push(e)};Zh.prototype.onEnd=function(e){e===lh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Y7.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function UCe(e,t){const r=new Zh(t);if(r.push(e),r.err)throw r.msg||a2[r.err];return r.result}var QCe=Zh,VCe=UCe,HCe={Inflate:QCe,inflate:VCe};const{Inflate:zCe,inflate:$Ce}=HCe;var Dk=zCe,qCe=$Ce;const uV=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;uV[e]=t}const Rk=4294967295;function KCe(e,t,r){let n=e;for(let s=0;s<r;s++)n=uV[(n^t[s])&255]^n>>>8;return n}function GCe(e,t){return(KCe(Rk,e,t)^Rk)>>>0}function Mk(e,t,r){const n=e.readUint32(),s=GCe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(s!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${s}`)}function dV(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function AV(e,t,r,n){let s=0;for(;s<n;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+t[s-n]&255}function fV(e,t,r,n){let s=0;if(r.length===0)for(;s<n;s++)t[s]=e[s];else for(;s<n;s++)t[s]=e[s]+r[s]&255}function mV(e,t,r,n,s){let o=0;if(r.length===0){for(;o<s;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+(t[o-s]>>1)&255}else{for(;o<s;o++)t[o]=e[o]+(r[o]>>1)&255;for(;o<n;o++)t[o]=e[o]+(t[o-s]+r[o]>>1)&255}}function hV(e,t,r,n,s){let o=0;if(r.length===0){for(;o<s;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+t[o-s]&255}else{for(;o<s;o++)t[o]=e[o]+r[o]&255;for(;o<n;o++)t[o]=e[o]+WCe(t[o-s],r[o],r[o-s])&255}}function WCe(e,t,r){const n=e+t-r,s=Math.abs(n-e),o=Math.abs(n-t),i=Math.abs(n-r);return s<=o&&s<=i?e:o<=i?t:r}function YCe(e,t,r,n,s,o){switch(e){case 0:dV(t,r,s);break;case 1:AV(t,r,s,o);break;case 2:fV(t,r,n,s);break;case 3:mV(t,r,n,s,o);break;case 4:hV(t,r,n,s,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const XCe=new Uint16Array([255]),ZCe=new Uint8Array(XCe.buffer),JCe=ZCe[0]===255;function eje(e){const{data:t,width:r,height:n,channels:s,depth:o}=e,i=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(o/8)*s,c=new Uint8Array(n*r*l);let u=0;for(let d=0;d<7;d++){const f=i[d],h=Math.ceil((r-f.x)/f.xStep),m=Math.ceil((n-f.y)/f.yStep);if(h<=0||m<=0)continue;const g=h*l,p=new Uint8Array(g);for(let x=0;x<m;x++){const y=t[u++],b=t.subarray(u,u+g);u+=g;const j=new Uint8Array(g);YCe(y,b,j,p,g,l),p.set(j);for(let C=0;C<h;C++){const T=f.x+C*f.xStep,L=f.y+x*f.yStep;if(!(T>=r||L>=n))for(let P=0;P<l;P++)c[(L*r+T)*l+P]=j[C*l+P]}}}if(o===16){const d=new Uint16Array(c.buffer);if(JCe)for(let f=0;f<d.length;f++)d[f]=tje(d[f]);return d}else return c}function tje(e){return(e&255)<<8|e>>8&255}const rje=new Uint16Array([255]),nje=new Uint8Array(rje.buffer),aje=nje[0]===255,sje=new Uint8Array(0);function Ok(e){const{data:t,width:r,height:n,channels:s,depth:o}=e,i=Math.ceil(o/8)*s,l=Math.ceil(o/8*s*r),c=new Uint8Array(n*l);let u=sje,d=0,f,h;for(let m=0;m<n;m++){switch(f=t.subarray(d+1,d+1+l),h=c.subarray(m*l,(m+1)*l),t[d]){case 0:dV(f,h,l);break;case 1:AV(f,h,l,i);break;case 2:fV(f,h,u,l);break;case 3:mV(f,h,u,l,i);break;case 4:hV(f,h,u,l,i);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}u=h,d+=l+1}if(o===16){const m=new Uint16Array(c.buffer);if(aje)for(let g=0;g<m.length;g++)m[g]=oje(m[g]);return m}else return c}function oje(e){return(e&255)<<8|e>>8&255}const v0=Uint8Array.of(137,80,78,71,13,10,26,10);function Uk(e){if(!ije(e.readBytes(v0.length)))throw new Error("wrong PNG signature")}function ije(e){if(e.length<v0.length)return!1;for(let t=0;t<v0.length;t++)if(e[t]!==v0[t])return!1;return!0}const lje="tEXt",cje=0,pV=new TextDecoder("latin1");function uje(e){if(Aje(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const dje=/^[\u0000-\u00FF]*$/;function Aje(e){if(!dje.test(e))throw new Error("invalid latin1 text")}function fje(e,t,r){const n=gV(t);e[n]=mje(t,r-n.length-1)}function gV(e){for(e.mark();e.readByte()!==cje;);const t=e.offset;e.reset();const r=pV.decode(e.readBytes(t-e.offset-1));return e.skip(1),uje(r),r}function mje(e,t){return pV.decode(e.readBytes(t))}const so={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},bb={UNKNOWN:-1,DEFLATE:0},Qk={UNKNOWN:-1,ADAPTIVE:0},wb={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Tg={NONE:0,BACKGROUND:1,PREVIOUS:2},_b={SOURCE:0,OVER:1};class hje extends Rj{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,r={}){super(t);const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new Dk,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=bb.UNKNOWN,this._filterMethod=Qk.UNKNOWN,this._interlaceMethod=wb.UNKNOWN,this._colorType=so.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Uk(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(Uk(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case lje:fje(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Mk(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=n+t;break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Mk(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=pje(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case so.GREYSCALE:n=1;break;case so.TRUECOLOUR:n=3;break;case so.INDEXED_COLOUR:n=1;break;case so.GREYSCALE_ALPHA:n=2;break;case so.TRUECOLOUR_ALPHA:n=4;break;case so.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==bb.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}
1386decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let s=0;s<r;s++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const r=t,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let r=t,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case so.GREYSCALE:case so.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;r<t/2;r++)this._transparency[r]=this.readUint16();break}case so.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
1386a values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case so.UNKNOWN:case so.GREYSCALE_ALPHA:case so.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const r=gV(this),n=this.readUint8();if(n!==bb.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const s=this.readBytes(t-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:qCe(s)}}decodepHYs(){const t=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:t,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const r={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(t);if(n){if(n.data=Ok({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const s=this._apng.frames.at(t-1);this.disposeFrame(n,s,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(t,r,n){switch(t.disposeOp){case Tg.NONE:break;case Tg.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const i=(s*t.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)n.data[i+l]=0}break;case Tg.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,r){const n=1<<this._png.depth,s=(o,i)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+i)*this._png.channels,c=(o*r.width+i)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case _b.SOURCE:for(let o=0;o<r.height;o++)for(let i=0;i<r.width;i++){const{index:l,frameIndex:c}=s(o,i);for(let u=0;u<this._png.channels;u++)t.data[l+u]=r.data[c+u]}break;case _b.OVER:for(let o=0;o<r.height;o++)for(let i=0;i<r.width;i++){const{index:l,frameIndex:c}=s(o,i);for(let u=0;u<this._png.channels;u++){const d=r.data[c+this._png.channels-1]/n,f=u%(this._png.channels-1)===0?1:r.data[c+u],h=Math.floor(d*f+(1-d)*t.data[l+u]);t.data[l+u]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Qk.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===wb.NO_INTERLACE)this._png.data=Ok({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===wb.ADAM7)this._png.data=eje({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,r=this._frames.at(-1);r?r.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Tg.NONE,blendOp:_b.SOURCE,data:t}),this._inflator=new Dk,this._writingDataChunks=!1}}function pje(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var Vk;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(Vk||(Vk={}));function gje(e,t){return new hje(e,t).decode()}var Zt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Cb(){Zt.console&&typeof Zt.console.log=="function"&&Zt.console.log.apply(Zt.console,arguments)}var Wr={log:Cb,warn:function(e){Zt.console&&(typeof Zt.console.warn=="function"?Zt.console.warn.apply(Zt.console,arguments):Cb.call(null,arguments))},error:function(e){Zt.console&&(typeof Zt.console.error=="function"?Zt.console.error.apply(Zt.console,arguments):Cb(e))}};function jb(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){du(n.response,t,r)},n.onerror=function(){Wr.error("could not download file")},n.send()}function Hk(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Pg(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");
1386t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var du=Zt.saveAs||((typeof window>"u"?"undefined":Qr(window))!=="object"||window!==Zt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Zt.URL||Zt.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener",typeof e=="string"?(s.href=e,s.origin!==location.origin?Hk(s.href)?jb(e,t,r):Pg(s,s.target="_blank"):Pg(s)):(s.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(s.href)},4e4),setTimeout(function(){Pg(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(Hk(e))jb(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Pg(n)})}else navigator.msSaveOrOpenBlob(function(s,o){return o===void 0?o={autoBom:!1}:Qr(o)!=="object"&&(Wr.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return jb(e,t,r);var s=e.type==="application/octet-stream",o=/constructor/i.test(Zt.HTMLElement)||Zt.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&o)&&(typeof FileReader>"u"?"undefined":Qr(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var d=l.result;d=i?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=d:location=d,n=null},l.readAsDataURL(e)}else{var c=Zt.URL||Zt.webkitURL,u=c.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout(function(){c.revokeObjectURL(u)},4e4)}});/** 1387 * A class to parse color values 1388 * @author Stoyan Stefanov <[email protected]> 1389 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 1390 * @license Use it if you like it 1391 */function xV(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
13910",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],n=0;n<r.length;n++){var s=r[n].re,o=r[n].process,i=s.exec(e);i&&(t=o(i),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u}}var y0=Zt.atob.bind(Zt),zk=Zt.btoa.bind(Zt);/** 1392 * @license 1393 * Joseph Myers does not specify a particular license for his work. 1394 * 1395 * Author: Joseph Myers 1396 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 1397 * 1398 * Modified by: Owen Leong 1399 */function Eb(e,t){var r=e[0],n=e[1],s=e[2],o=e[3];r=Xa(r,n,s,o,t[0],7,-680876936),o=Xa(o,r,n,s,t[1],12,-389564586),s=Xa(s,o,r,n,t[2],17,606105819),n=Xa(n,s,o,r,t[3],22,-1044525330),r=Xa(r,n,s,o,t[4],7,-176418897),o=Xa(o,r,n,s,t[5],12,1200080426),s=Xa(s,o,r,n,t[6],17,-1473231341),n=Xa(n,s,o,r,t[7],22,-45705983),r=Xa(r,n,s,o,t[8],7,1770035416),o=Xa(o,r,n,s,t[9],12,-1958414417),s=Xa(s,o,r,n,t[10],17,-42063),n=Xa(n,s,o,r,t[11],22,-1990404162),r=Xa(r,n,s,o,t[12],7,1804603682),o=Xa(o,r,n,s,t[13],12,-40341101),s=Xa(s,o,r,n,t[14],17,-1502002290),r=Za(r,n=Xa(n,s,o,r,t[15],22,1236535329),s,o,t[1],5,-165796510),o=Za(o,r,n,s,t[6],9,-1069501632),s=Za(s,o,r,n,t[11],14,643717713),n=Za(n,s,o,r,t[0],20,-373897302),r=Za(r,n,s,o,t[5],5,-701558691),o=Za(o,r,n,s,t[10],9,38016083),s=Za(s,o,r,n,t[15],14,-660478335),n=Za(n,s,o,r,t[4],20,-405537848),r=Za(r,n,s,o,t[9],5,568446438),o=Za(o,r,n,s,t[14],9,-1019803690),s=Za(s,o,r,n,t[3],14,-187363961),n=Za(n,s,o,r,t[8],20,1163531501),r=Za(r,n,s,o,t[13],5,-1444681467),o=Za(o,r,n,s,t[2],9,-51403784),s=Za(s,o,r,n,t[7],14,1735328473),r=Ja(r,n=Za(n,s,o,r,t[12],20,-1926607734),s,o,t[5],4,-378558),o=Ja(o,r,n,s,t[8],11,-2022574463),s=Ja(s,o,r,n,t[11],16,1839030562),n=Ja(n,s,o,r,t[14],23,-35309556),r=Ja(r,n,s,o,t[1],4,-1530992060),o=Ja(o,r,n,s,t[4],11,1272893353),s=Ja(s,o,r,n,t[7],16,-155497632),n=Ja(n,s,o,r,t[10],23,-1094730640),r=Ja(r,n,s,o,t[13],4,681279174),o=Ja(o,r,n,s,t[0],11,-358537222),s=Ja(s,o,r,n,t[3],16,-722521979),n=Ja(n,s,o,r,t[6],23,76029189),r=Ja(r,n,s,o,t[9],4,-640364487),o=Ja(o,r,n,s,t[12],11,-421815835),s=Ja(s,o,r,n,t[15],16,530742520),r=es(r,n=Ja(n,s,o,r,t[2],23,-995338651),s,o,t[0],6,-198630844),o=es(o,r,n,s,t[7],10,1126891415),s=es(s,o,r,n,t[14],15,-1416354905),n=es(n,s,o,r,t[5],21,-57434055),r
vendor: 4,241 bytes, lines 1399-1416
1399=es(r,n,s,o,t[12],6,1700485571),o=es(o,r,n,s,t[3],10,-1894986606),s=es(s,o,r,n,t[10],15,-1051523),n=es(n,s,o,r,t[1],21,-2054922799),r=es(r,n,s,o,t[8],6,1873313359),o=es(o,r,n,s,t[15],10,-30611744),s=es(s,o,r,n,t[6],15,-1560198380),n=es(n,s,o,r,t[13],21,1309151649),r=es(r,n,s,o,t[4],6,-145523070),o=es(o,r,n,s,t[11],10,-1120210379),s=es(s,o,r,n,t[2],15,718787259),n=es(n,s,o,r,t[9],21,-343485551),e[0]=cc(r,e[0]),e[1]=cc(n,e[1]),e[2]=cc(s,e[2]),e[3]=cc(o,e[3])}function Qv(e,t,r,n,s,o){return t=cc(cc(t,e),cc(n,o)),cc(t<<s|t>>>32-s,r)}function Xa(e,t,r,n,s,o,i){return Qv(t&r|~t&n,e,t,s,o,i)}function Za(e,t,r,n,s,o,i){return Qv(t&n|r&~n,e,t,s,o,i)}function Ja(e,t,r,n,s,o,i){return Qv(t^r^n,e,t,s,o,i)}function es(e,t,r,n,s,o,i){return Qv(r^(t|~n),e,t,s,o,i)}function vV(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Eb(n,xje(e.substring(t-64,t)));e=e.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)s[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(Eb(n,s),t=0;t<16;t++)s[t]=0;return s[14]=8*r,Eb(n,s),n}function xje(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var $k="0123456789abcdef".split("");function vje(e){for(var t="",r=0;r<4;r++)t+=$k[e>>8*r+4&15]+$k[e>>8*r&15];return t}function yje(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function o2(e){return vV(e).map(yje).join("")}var bje=function(e){for(var t=0;t<e.length;t++)e[t]=vje(e[t]);return e.join("")}(vV("hello"))!="5d41402abc4b2a76b9719d911017c592";function cc(e,t){if(bje){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/** 1400 * @license 1401 * FPDF is released under a permissive license: there is no usage restriction. 1402 * You may embed it freely in your application (commercial or not), with or 1403 * without modifications. 1404 * 1405 * Reference: http://www.fpdf.org/en/script/script37.php 1406 */function i2(e,t){var r,n,s,o;if(e!==r){for(var i=(s=e,o=1+(256/e.length|0),new Array(o+1).join(s)),l=[],c=0;c<256;c++)l[c]=c;var u=0;for(c=0;c<256;c++){var d=l[c];u=(u+d+i.charCodeAt(c))%256,l[c]=l[u],l[u]=d}r=e,n=l}else l=n;var f=t.length,h=0,m=0,g="";for(c=0;c<f;c++)m=(m+(d=l[h=(h+1)%256]))%256,l[h]=l[m],l[m]=d,i=l[(l[h]+l[m])%256],g+=String.fromCharCode(t.charCodeAt(c)^i);return g}/** 1407 * @license 1408 * Licensed under the MIT License. 1409 * http://opensource.org/licenses/mit-license 1410 * Author: Owen Leong (@owenl131) 1411 * Date: 15 Oct 2020 1412 * References: 1413 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 1414 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 1415 * http://www.fpdf.org/en/script/script37.php 1416 */var qk={print:4,modify:8,copy:16,"annot-forms":32};function $d(e,t,r,n){this.v=1,this.r=2;var s=192;e.forEach(function(l){if(qk.perm!==void 0)throw new Error("Invalid permission: "+l);s+=qk[l]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var o=(t+this.padding).substr(0,32),i=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,i),this.P=-(1+(255^s)),this.encryptionKey=o2(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=i2(this.encryptionKey,this.padding)}function qd(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var s=e.charCodeAt(n);t+=s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?"#"+("0"+s.toString(16)).slice(-2):e[n]}return t}function Kk(e){if(Qr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,s){if(s=s||!1,typeof r!="string"||typeof n!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var o=Math.random().toString(35);return t[r][o]=[n,!!s],o},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1
1416),s=[];for(var o in t[r]){var i=t[r][o];try{i[0].apply(e,n)}catch(l){Zt.console&&Wr.error("jsPDF PubSub Error",l.message,l)}i[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ch(e){if(!(this instanceof ch))return new ch(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function yV(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function ec(e,t,r,n,s){if(!(this instanceof ec))return new ec(e,t,r,n,s);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,yV.call(this,n,s)}function vu(e,t,r,n,s){if(!(this instanceof vu))return new vu(e,t,r,n,s);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,yV.call(this,n,s)}function Dt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],s=arguments[2],o=arguments[3],i=[],l=1,c=16,u="S",d=null;Qr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,s=e.format||s,o=e.compress||e.compressPdf||o,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),u=e.defaultPathOperation||"S"),i=e.filters||(o===!0?["FlateEncode"]:i),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,h={},m={internal:{},__private__:{}};m.__private__.PubSub=Kk;var g="1.3",p=m.__private__.getPdfVersion=function(){return g};m.__private__.setPdfVersion=function(N){g=N};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};m.__private__.getPageFormats=function(){return x};var y=m.__private__.getPageFormat=function(N){return x[N]};s=s||"a4";var b="compat",j="advanced",C=b;function T(){this.saveGraphicsState(),R(new ot(gt,0,0,-gt,0,Hc()*gt).toString()+" cm"),this.setFontSize(this.getFontSize()/gt),u="n",C=j}function L(){this.restoreGraphicsState(),u="S",C=b}var P=m.__private__.combineFontStyleAndFontWeight=function(N,$){if(N=="bold"&&$=="normal"||N=="bold"&&$==400||N=="normal"&&$=="italic"||N=="bold"&&$=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return $&&(N=$==400||$==="normal"?N==="italic"?"italic":"normal":$!=700&&$!=="bold"||N!=="normal"?($==700?"bold":$)+""+N:"bold"),N};m.advancedAPI=function(N){var $=C===b;return $&&T.call(this),typeof N!="function"||(N(this),$&&L.call(this)),this},m.compatAPI=function(N){var $=C===j;return $&&L.call(this),typeof N!="function"||(N(this),$&&T.call(this)),this},m.isAdvancedAPI=function(){return C===j};var I,E=function(N){if(C!==j)throw new Error(N+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},O=m.roundToPrecision=m.__private__.roundToPrecision=function(N,$){var ce=t||$;if(isNaN(N)||isNaN(ce))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return N.toFixed(ce).replace(/0+$/,"")};I=m.hpf=m.__private__.hpf=typeof c=="number"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return O(N,c)}:c==="smart"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return O(N,N>-1&&N<1?16:5)}:function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return O(N,16)};var k=m.f2=m.__private__.f2=function(N){if(isNaN(N))throw new Error("Invalid argument passed to
1416jsPDF.f2");return O(N,2)},D=m.__private__.f3=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f3");return O(N,3)},H=m.scale=m.__private__.scale=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.scale");return C===b?N*gt:C===j?N:void 0},U=function(N){return H(function($){return C===b?Hc()-$:C===j?$:void 0}(N))};m.__private__.setPrecision=m.setPrecision=function(N){typeof parseInt(N,10)=="number"&&(t=parseInt(N,10))};var ee,ae="00000000000000000000000000000000",V=m.__private__.getFileId=function(){return ae},q=m.__private__.setFileId=function(N){return ae=N!==void 0&&/^[a-fA-F0-9]{32}$/.test(N)?N.toUpperCase():ae.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(qe=new $d(d.userPermissions,d.userPassword,d.ownerPassword,ae)),ae};m.setFileId=function(N){return q(N),this},m.getFileId=function(){return V()};var G=m.__private__.convertDateToPDFDate=function(N){var $=N.getTimezoneOffset(),ce=$<0?"+":"-",ge=Math.floor(Math.abs($/60)),Ee=Math.abs($%60),Qe=[ce,z(ge),"'",z(Ee),"'"].join("");return["D:",N.getFullYear(),z(N.getMonth()+1),z(N.getDate()),z(N.getHours()),z(N.getMinutes()),z(N.getSeconds()),Qe].join("")},Ae=m.__private__.convertPDFDateToDate=function(N){var $=parseInt(N.substr(2,4),10),ce=parseInt(N.substr(6,2),10)-1,ge=parseInt(N.substr(8,2),10),Ee=parseInt(N.substr(10,2),10),Qe=parseInt(N.substr(12,2),10),Je=parseInt(N.substr(14,2),10);return new Date($,ce,ge,Ee,Qe,Je,0)},se=m.__private__.setCreationDate=function(N){var $;if(N===void 0&&(N=new Date),N instanceof Date)$=G(N);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(N))throw new Error("Invalid argument passed to jsPDF.setCreationDate");$=N}return ee=$},S=m.__private__.getCreationDate=function(N){var $=ee;return N==="jsDate"&&($=Ae(ee)),$};m.setCreationDate=function(N){return se(N),this},m.getCreationDate=function(N){return S(N)};var Q,z=m.__private__.padd2=function(N){return("0"+parseInt(N)).slice(-2)},W=m.__private__.padd2Hex=function(N){return("00"+(N=N.toString())).substr(N.length)},ne=0,X=[],te=[],fe=0,pe=[],_e=[],xe=!1,Be=te;m.__private__.setCustomOutputDestination=function(N){xe=!0,Be=N};var He=function(N){xe||(Be=N)};m.__private__.resetCustomOutputDestination=function(){xe=!1,Be=te};var R=m.__private__.out=function(N){return N=N.toString(),fe+=N.length+1,Be.push(N),Be},be=m.__private__.write=function(N){return R(arguments.length===1?N.toString():Array.prototype.join.call(arguments," "))},tt=m.__private__.getArrayBuffer=function(N){for(var $=N.length,ce=new ArrayBuffer($),ge=new Uint8Array(ce);$--;)ge[$]=N.charCodeAt($);return ce},at=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];m.__private__.getStandardFonts=function(){return at};var De=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(N){return De=C===j?N/gt:N,this};var le,me=m.__private__.getFontSize=m.getFontSize=function(){return C===b?De:De*gt},we=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(N){return we=N,this},m.__private__.getR2L=m.getR2L=function(){return we};var Fe,ze=m.__private__.setZoomMode=function(N){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(N))le=N;else if(isNaN(N)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(N)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+N+'" is not recognized.');le=N}else le=parseInt(N,10)};m.__private__.getZoomMode=function(){return le};var Pe,$e=m.__private__.setPageMode=function(N){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(N)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+N+'" is not recognized.');Fe=N};m.__private__.getPageMode=function(){return Fe};var ct=m.__private__.setLayoutMode=function(N){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(N)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+N+'" is not recognized.');Pe=N};m.__private__.getLayoutMode=function(){return Pe},m.__private__.setDisplayMode=m.setDisplayMode=function(N,$,ce){return ze(N),ct($),$e(ce),this};var pt={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(N){if(Object.keys(pt).indexOf(N)===-1)throw new Error("Invalid argument passed to
1416jsPDF.getDocumentProperty");return pt[N]},m.__private__.getDocumentProperties=function(){return pt},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(N){for(var $ in pt)pt.hasOwnProperty($)&&N[$]&&(pt[$]=N[$]);return this},m.__private__.setDocumentProperty=function(N,$){if(Object.keys(pt).indexOf(N)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return pt[N]=$};var it,gt,st,Ut,Lt,St={},Mt={},tr=[],wt={},ft={},ie={},Ue={},dt=null,Re=0,Xe=[],lt=new Kk(m),Le=e.hotfixes||[],ut={},Qt={},mt=[],ot=function N($,ce,ge,Ee,Qe,Je){if(!(this instanceof N))return new N($,ce,ge,Ee,Qe,Je);isNaN($)&&($=1),isNaN(ce)&&(ce=0),isNaN(ge)&&(ge=0),isNaN(Ee)&&(Ee=1),isNaN(Qe)&&(Qe=0),isNaN(Je)&&(Je=0),this._matrix=[$,ce,ge,Ee,Qe,Je]};Object.defineProperty(ot.prototype,"sx",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(ot.prototype,"shy",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(ot.prototype,"shx",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(ot.prototype,"sy",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(ot.prototype,"tx",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(ot.prototype,"ty",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(ot.prototype,"a",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(ot.prototype,"b",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(ot.prototype,"c",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(ot.prototype,"d",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(ot.prototype,"e",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(ot.prototype,"f",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(ot.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ot.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ot.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ot.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ot.prototype.join=function(N){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(N)},ot.prototype.multiply=function(N){var $=N.sx*this.sx+N.shy*this.shx,ce=N.sx*this.shy+N.shy*this.sy,ge=N.shx*this.sx+N.sy*this.shx,Ee=N.shx*this.shy+N.sy*this.sy,Qe=N.tx*this.sx+N.ty*this.shx+this.tx,Je=N.tx*this.shy+N.ty*this.sy+this.ty;return new ot($,ce,ge,Ee,Qe,Je)},ot.prototype.decompose=function(){var N=this.sx,$=this.shy,ce=this.shx,ge=this.sy,Ee=this.tx,Qe=this.ty,Je=Math.sqrt(N*N+$*$),It=(N/=Je)*ce+($/=Je)*ge;ce-=N*It,ge-=$*It;var kt=Math.sqrt(ce*ce+ge*ge);return It/=kt,N*(ge/=kt)<$*(ce/=kt)&&(N=-N,$=-$,It=-It,Je=-Je),{scale:new ot(Je,0,0,kt,0,0),translate:new ot(1,0,0,1,Ee,Qe),rotate:new ot(N,$,-$,N,0,0),skew:new ot(1,0,It,1,0,0)}},ot.prototype.toString=function(N){return this.join(" ")},ot.prototype.inversed=function(){var N=this.sx,$=this.shy,ce=this.shx,ge=this.sy,Ee=this.tx,Qe=this.ty,Je=1/(N*ge-$*ce),It=ge*Je,kt=-$*Je,rr=-ce*Je,ar=N*Je;return new ot(It,kt,rr,ar,-It*Ee-rr*Qe,-kt*Ee-ar*Qe)},ot.prototype.applyToPoint=function(N){var $=N.x*this.sx+N.y*this.shx+this.tx,ce=N.x*this.shy+N.y*this.sy+this.ty;return new Vc($,ce)},ot.prototype.applyToRectangle=function(N){var $=this.applyToPoint(N),ce=this.applyToPoint(new Vc(N.x+N.w,N.y+N.h));return new lf($.x,$.y,ce.x-$.x,ce.y-$.y)},ot.prototype.clone=function(){var N=this.sx,$=this.shy,ce=this.shx,ge=this.sy,Ee=this.tx,Qe=this.ty;return new ot(N,$,ce,ge,Ee,Qe)},m.Matrix=ot;var or=m.matrixMult=function(N,$){return $.multiply(N)},Fr=new ot(1,0,0,1,0,0);m.unitMatrix=m.identityMatrix=Fr;var Ar=function(N,$){if(!ft[N]){var ce=($ instanceof ec?"Sh":"P")+(Object.keys(wt).length+1).toString(10);$.id=ce,ft[N]=ce,wt[ce]=$,lt.publish("addPattern",$)}};m.ShadingPattern=ec,m.TilingPattern=vu,m.addShadingPattern=function(N,$){return E("addShadingPattern()"),Ar(N,$),this},m.beginTilingPattern=function(N){E("beginTilingPattern()"),cf(N.boundingBox[0],N.boundingBox[1],N.boundingBox[2]-N.boundingBox[0],N.boundingBox[3]-N.boundingBox[1],N.matrix)},m.endTilingPattern=function(N,$){E("endTilingPattern()"),$.stream=_e[Q].join(`
1417`),Ar(N,$),lt.publish("endTilingPattern",$),mt.pop().restore()};var Sr,Tr=m.__private__.newObject=function(){var N=Pr();return fr(N,!0),N},Pr=m.__private__.newObjectDeferred=function(){return ne++,X[ne]=function(){return fe},ne},fr=function(N,$){return $=typeof $=="boolean"&&$,X[N]=fe,$&&R(N+" 0 obj"),N},_a=m.__private__.newAdditionalObject=function(){var N={objId:Pr(),content:""};return pe.push(N),N},Ns=Pr(),Qn=Pr(),Tn=m.__private__.decodeColorString=function(N){var $=N.split(" ");if($.length!==2||$[1]!=="g"&&$[1]!=="G")$.length!==5||$[4]!=="k"&&$[4]!=="K"||($=[(1-$[0])*(1-$[3]),(1-$[1])*(1-$[3]),(1-$[2])*(1-$[3]),"r"]);else{var ce=parseFloat($[0]);$=[ce,ce,ce,"r"]}for(var ge="#",Ee=0;Ee<3;Ee++)ge+=("0"+Math.floor(255*parseFloat($[Ee])).toString(16)).slice(-2);return ge},qt=m.__private__.encodeColorString=function(N){var $;typeof N=="string"&&(N={ch1:N});var ce=N.ch1,ge=N.ch2,Ee=N.ch3,Qe=N.ch4,Je=N.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ce=="string"&&ce.charAt(0)!=="#"){var It=new xV(ce);if(It.ok)ce=It.toHex();else if(!/^\d*\.?\d*$/.test(ce))throw new Error('Invalid color "'+ce+'" passed to jsPDF.encodeColorString.')}if(typeof ce=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ce)&&(ce="#"+ce[1]+ce[1]+ce[2]+ce[2]+ce[3]+ce[3]),typeof ce=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ce)){var kt=parseInt(ce.substr(1),16);ce=kt>>16&255,ge=kt>>8&255,Ee=255&kt}if(ge===void 0||Qe===void 0&&ce===ge&&ge===Ee)$=typeof ce=="string"?ce+" "+Je[0]:N.precision===2?k(ce/255)+" "+Je[0]:D(ce/255)+" "+Je[0];else if(Qe===void 0||Qr(Qe)==="object"){if(Qe&&!isNaN(Qe.a)&&Qe.a===0)return["1.","1.","1.",Je[1]].join(" ");$=typeof ce=="string"?[ce,ge,Ee,Je[1]].join(" "):N.precision===2?[k(ce/255),k(ge/255),k(Ee/255),Je[1]].join(" "):[D(ce/255),D(ge/255),D(Ee/255),Je[1]].join(" ")}else $=typeof ce=="string"?[ce,ge,Ee,Qe,Je[2]].join(" "):N.precision===2?[k(ce),k(ge),k(Ee),k(Qe),Je[2]].join(" "):[D(ce),D(ge),D(Ee),D(Qe),Je[2]].join(" ");return $},bn=m.__private__.getFilters=function(){return i},wn=m.__private__.putStream=function(N){var $=(N=N||{}).data||"",ce=N.filters||bn(),ge=N.alreadyAppliedFilters||[],Ee=N.addLength1||!1,Qe=$.length,Je=N.objectId,It=function(sn){return sn};if(d!==null&&Je===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(It=qe.encryptor(Je,0));var kt={};ce===!0&&(ce=["FlateEncode"]);var rr=N.additionalKeyValues||[],ar=(kt=Dt.API.processDataByFilters!==void 0?Dt.API.processDataByFilters($,ce):{data:$,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(kt.data.length!==0&&(rr.push({key:"Length",value:kt.data.length}),Ee===!0&&rr.push({key:"Length1",value:Qe})),ar.length!=0)if(ar.split("/").length-1==1)rr.push({key:"Filter",value:ar});else{rr.push({key:"Filter",value:"["+ar+"]"});for(var vr=0;vr<rr.length;vr+=1)if(rr[vr].key==="DecodeParms"){for(var ra=[],Kr=0;Kr<kt.reverseChain.split("/").length-1;Kr+=1)ra.push("null");ra.push(rr[vr].value),rr[vr].value="["+ra.join(" ")+"]"}}R("<<");for(var Hr=0;Hr<rr.length;Hr++)R("/"+rr[Hr].key+" "+rr[Hr].value);R(">>"),kt.data.length!==0&&(R("stream"),R(It(kt.data)),R("endstream"))},ir=m.__private__.putPage=function(N){var $=N.number,ce=N.data,ge=N.objId,Ee=N.contentsObjId;fr(ge,!0),R("<</Type /Page"),R("/Parent "+N.rootDictionaryObjId+" 0 R"),R("/Resources "+N.resourceDictionaryObjId+" 0 R"),R("/MediaBox ["+parseFloat(I(N.mediaBox.bottomLeftX))+" "+parseFloat(I(N.mediaBox.bottomLeftY))+" "+I(N.mediaBox.topRightX)+" "+I(N.mediaBox.topRightY)+"]"),N.cropBox!==null&&R("/CropBox ["+I(N.cropBox.bottomLeftX)+" "+I(N.cropBox.bottomLeftY)+" "+I(N.cropBox.topRightX)+" "+I(N.cropBox.topRightY)+"]"),N.bleedBox!==null&&R("/BleedBox ["+I(N.bleedBox.bottomLeftX)+" "+I(N.bleedBox.bottomLeftY)+" "+I(N.bleedBox.topRightX)+" "+I(N.bleedBox.topRightY)+"]"),N.trimBox!==null&&R("/TrimBox ["+I(N.trimBox.bottomLeftX)+" "+I(N.trimBox.bottomLeftY)+" "+I(N.trimBox.topRightX)+" "+I(N.trimBox.topRightY)+"]"),N.artBox!==null&&R("/ArtBox ["+I(N.artBox.bottomLeftX)+" "+I(N.artBox.bottomLeftY)+" "+I(N.artBox.topRightX)+" "+I(N.artBox.topRightY)+"]"),typeof N.userUnit=="number"&&N.userUnit!==1&&R("/UserUnit "+N.userUnit),lt.publish("putPage",{objId:ge,pageContext:Xe[$],pageNumber:$,page:ce}),R("/Contents "+Ee+" 0 R"),R(">>"),R("endobj");var Qe=ce.join(` 1418`);return C===j&&(Qe+=` 1419Q`),fr(Ee,!0),wn({data:Qe,filters:bn(),objectId:Ee}),R("endobj"),ge},Yr=m.__private__.putPages=function(){var N,$,ce=[];for(N=1;N<=Re;N++)Xe[N].objId=Pr(),Xe[N].contentsObjId=Pr();for(N=1;N<=Re;N++)ce.push(ir({number:N,data:_e[N],objId:Xe[N].objId,contentsObjId:Xe[N].contentsObjId,mediaBox:Xe[N].mediaBox,cropBox:Xe[N].cropBox,bleedBox:Xe[N].bleedBox,trimBox:Xe[N].trimBox,artBox:Xe[N].artBox,userUnit:Xe[N].userUnit,rootDictionaryObjId:Ns,resourceDictionaryObjId:Qn}));fr(Ns,!0),R("<</Type /Pages");var ge="/Kids [";for($=0;$<Re;$++)ge+=ce[$]+" 0 R ";R(ge+"]"),R("/Count "+Re),R(">>"),R("endobj"),lt.publish("postPutPages")},za=function(N){lt.publish("putFont",{font:N,out:R,newObject:Tr,putStream:wn}),N.isAlreadyPutted!==!0&&(N.objectNumber=Tr(),R("<<"),R("/Type /Font"),R("/BaseFont /"+qd(N.postScriptName)),R("/Subtype /Type1"),typeof N.encoding=="string"&&R("/Encoding /"+N.encoding),R("/FirstChar 32"),R("/LastChar 255"),R(">>"),R("endobj"))},mn=function(N){N.objectNumber=Tr();var $=[];$.push({key:"Type",value:"/XObject"}),$.push({key:"Subtype",value:"/Form"}),$.push({key:"BBox",value:"["+[I(N.x),I(N.y),I(N.x+N.width),I(N.y+N.height)].join(" ")+"]"}),$.push({key:"Matrix",value:"["+N.matrix.toString()+"]"});var ce=N.pages[1].join(` 1420`);wn({data:ce,additionalKeyValues:$,objectId:N.objectNumber}),R("endobj")},Ca=function(N,$){$||($=21);var ce=Tr(),ge=function(Je,It){var kt,rr=[],ar=1/(It-1);for(kt=0;kt<1;kt+=ar)rr.push(kt);if(rr.push(1),Je[0].offset!=0){var vr={offset:0,color:Je[0].color};Je.unshift(vr)}if(Je[Je.length-1].offset!=1){var ra={offset:1,color:Je[Je.length-1].color};Je.push(ra)}for(var Kr="",Hr=0,sn=0;sn<rr.length;sn++){for(kt=rr[sn];kt>Je[Hr+1].offset;)Hr++;var Cn=Je[Hr].offset,jn=(kt-Cn)/(Je[Hr+1].offset-Cn),Ka=Je[Hr].color,Ki=Je[Hr+1].color;Kr+=W(Math.round((1-jn)*Ka[0]+jn*Ki[0]).toString(16))+W(Math.round((1-jn)*Ka[1]+jn*Ki[1]).toString(16))+W(Math.round((1-jn)*Ka[2]+jn*Ki[2]).toString(16))}return Kr.trim()}(N.colors,$),Ee=[];
1420Ee.push({key:"FunctionType",value:"0"}),Ee.push({key:"Domain",value:"[0.0 1.0]"}),Ee.push({key:"Size",value:"["+$+"]"}),Ee.push({key:"BitsPerSample",value:"8"}),Ee.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ee.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),wn({data:ge,additionalKeyValues:Ee,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ce}),R("endobj"),N.objectNumber=Tr(),R("<< /ShadingType "+N.type),R("/ColorSpace /DeviceRGB");var Qe="/Coords ["+I(parseFloat(N.coords[0]))+" "+I(parseFloat(N.coords[1]))+" ";N.type===2?Qe+=I(parseFloat(N.coords[2]))+" "+I(parseFloat(N.coords[3])):Qe+=I(parseFloat(N.coords[2]))+" "+I(parseFloat(N.coords[3]))+" "+I(parseFloat(N.coords[4]))+" "+I(parseFloat(N.coords[5])),R(Qe+="]"),N.matrix&&R("/Matrix ["+N.matrix.toString()+"]"),R("/Function "+ce+" 0 R"),R("/Extend [true true]"),R(">>"),R("endobj")},qr=function(N,$){var ce=Pr(),ge=Tr();$.push({resourcesOid:ce,objectOid:ge}),N.objectNumber=ge;var Ee=[];Ee.push({key:"Type",value:"/Pattern"}),Ee.push({key:"PatternType",value:"1"}),Ee.push({key:"PaintType",value:"1"}),Ee.push({key:"TilingType",value:"1"}),Ee.push({key:"BBox",value:"["+N.boundingBox.map(I).join(" ")+"]"}),Ee.push({key:"XStep",value:I(N.xStep)}),Ee.push({key:"YStep",value:I(N.yStep)}),Ee.push({key:"Resources",value:ce+" 0 R"}),N.matrix&&Ee.push({key:"Matrix",value:"["+N.matrix.toString()+"]"}),wn({data:N.stream,additionalKeyValues:Ee,objectId:N.objectNumber}),R("endobj")},ea=function(N){for(var $ in N.objectNumber=Tr(),R("<<"),N)switch($){case"opacity":R("/ca "+k(N[$]));break;case"stroke-opacity":R("/CA "+k(N[$]))}R(">>"),R("endobj")},$a=function(N){fr(N.resourcesOid,!0),R("<<"),R("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var $ in R("/Font <<"),St)St.hasOwnProperty($)&&(f===!1||f===!0&&h.hasOwnProperty($))&&R("/"+$+" "+St[$].objectNumber+" 0 R");R(">>")}(),function(){if(Object.keys(wt).length>0){for(var $ in R("/Shading <<"),wt)wt.hasOwnProperty($)&&wt[$]instanceof ec&&wt[$].objectNumber>=0&&R("/"+$+" "+wt[$].objectNumber+" 0 R");lt.publish("putShadingPatternDict"),R(">>")}}(),function($){if(Object.keys(wt).length>0){for(var ce in R("/Pattern <<"),wt)wt.hasOwnProperty(ce)&&wt[ce]instanceof m.TilingPattern&&wt[ce].objectNumber>=0&&wt[ce].objectNumber<$&&R("/"+ce+" "+wt[ce].objectNumber+" 0 R");lt.publish("putTilingPatternDict"),R(">>")}}(N.objectOid),function(){if(Object.keys(ie).length>0){var $;for($ in R("/ExtGState <<"),ie)ie.hasOwnProperty($)&&ie[$].objectNumber>=0&&R("/"+$+" "+ie[$].objectNumber+" 0 R");lt.publish("putGStateDict"),R(">>")}}(),function(){for(var $ in R("/XObject <<"),ut)ut.hasOwnProperty($)&&ut[$].objectNumber>=0&&R("/"+$+" "+ut[$].objectNumber+" 0 R");lt.publish("putXobjectDict"),R(">>")}(),R(">>"),R("endobj")},Ft=function(N){Mt[N.fontName]=Mt[N.fontName]||{},Mt[N.fontName][N.fontStyle]=N.id},po=function(N,$,ce,ge,Ee){var Qe={id:"F"+(Object.keys(St).length+1).toString(10),postScriptName:N,fontName:$,fontStyle:ce,encoding:ge,isStandardFont:Ee||!1,metadata:{}};return lt.publish("addFont",{font:Qe,instance:this}),St[Qe.id]=Qe,Ft(Qe),Qe.id},Xr=m.__private__.pdfEscape=m.pdfEscape=function(N,$){return function(ce,ge){var Ee,Qe,Je,It,kt,rr,ar,vr,ra;if(Je=(ge=ge||{}).sourceEncoding||"Unicode",kt=ge.outputEncoding,(ge.autoencode||kt)&&St[it].metadata&&St[it].metadata[Je]&&St[it].metadata[Je].encoding&&(It=St[it].metadata[Je].encoding,!kt&&St[it].encoding&&(kt=St[it].encoding),!kt&&It.codePages&&(kt=It.codePages[0]),typeof kt=="string"&&(kt=It[kt]),kt)){for(ar=!1,rr=[],Ee=0,Qe=ce.length;Ee<Qe;Ee++)(vr=kt[ce.charCodeAt(Ee)])?rr.push(String.fromCharCode(vr)):rr.push(ce[Ee]),rr[Ee].charCodeAt(0)>>8&&(ar=!0);ce=rr.join("")}for(Ee=ce.length;ar===void 0&&Ee!==0;)ce.charCodeAt(Ee-1)>>8&&(ar=!0),Ee--;if(!ar)return ce;for(rr=ge.noBOM?[]:[254,255],Ee=0,Qe=ce.length;Ee<Qe;Ee++){if((ra=(vr=ce.charCodeAt(Ee))>>8)>>8)throw new Error("Character at position "+Ee+" of string '"+ce+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");rr.push(ra),rr.push(vr-(ra<<8))}return String.fromCharCode.apply(void 0,rr)}(N,$).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ta=m.__private__.beginPage=function(N){_e[++Re]=[],Xe[Re]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(N[0]),topRightY:Number(N[1])}},Bl(Re),He(_e[Q])},Ro=function(N,$){var ce,ge,Ee;switch(r=$||r,typeof N=="string"&&(ce=y(N.toLowerCase()),Array.isArray(ce)&&(ge=ce[0],Ee=ce[1])),Array.isArray(N)&&(ge=N[0]*gt,Ee=N[1]*gt),isNaN(ge)&&(ge=s[0],Ee=s[1]),(ge>14400||Ee>14400)&&(Wr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ge=Math.min(14400,ge),Ee=Math.min(14400,Ee)),s=[ge,Ee],r.substr(0,1)){case"l":Ee>ge&&(s=[Ee,ge]);break;case"p":ge>Ee&&(s=[Ee,ge])}ta(s),Kv(Xt),R(cd),sf!==0&&R(sf+" J"),kl!==0&&R(kl+" j"),lt.publish("addPage",{pageNumber:Re})},Mo=function(N){N>0&&N<=Re&&(_e.splice(N,1),Xe.splice(N,1),Re--,Q>Re&&(Q=Re),this.setPage(Q))},Bl=function(N){N>0&&N<=Re&&(Q=N)},li=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return _e.length-1},Ss=function(N,$,ce){var ge,Ee=void 0;return ce=ce||{},N=N!==void 0?N:St[it].fontName,$=$!==void 0?$:St[it].fontStyle,ge=N.toLowerCase(),Mt[ge]!==void 0&&Mt[ge][$]!==void 0?Ee=Mt[ge][$]:Mt[N]!==void 0&&Mt[N][$]!==void 0?Ee=Mt[N][$]:ce.disableWarning===!1&&Wr.warn("Unable to look up font label for font '"+N+"', '"+$+"'. Refer to getFontList(
1420) for available fonts."),Ee||ce.noFallback||(Ee=Mt.times[$])==null&&(Ee=Mt.times.normal),Ee},Sa=m.__private__.putInfo=function(){var N=Tr(),$=function(ge){return ge};for(var ce in d!==null&&($=qe.encryptor(N,0)),R("<<"),R("/Producer ("+Xr($("jsPDF "+Dt.version))+")"),pt)pt.hasOwnProperty(ce)&&pt[ce]&&R("/"+ce.substr(0,1).toUpperCase()+ce.substr(1)+" ("+Xr($(pt[ce]))+")");R("/CreationDate ("+Xr($(ee))+")"),R(">>"),R("endobj")},ci=m.__private__.putCatalog=function(N){var $=(N=N||{}).rootDictionaryObjId||Ns;switch(Tr(),R("<<"),R("/Type /Catalog"),R("/Pages "+$+" 0 R"),le||(le="fullwidth"),le){case"fullwidth":R("/OpenAction [3 0 R /FitH null]");break;case"fullheight":R("/OpenAction [3 0 R /FitV null]");break;case"fullpage":R("/OpenAction [3 0 R /Fit]");break;case"original":R("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ce=""+le;ce.substr(ce.length-1)==="%"&&(le=parseInt(le)/100),typeof le=="number"&&R("/OpenAction [3 0 R /XYZ null null "+k(le)+"]")}switch(Pe||(Pe="continuous"),Pe){case"continuous":R("/PageLayout /OneColumn");break;case"single":R("/PageLayout /SinglePage");break;case"two":case"twoleft":R("/PageLayout /TwoColumnLeft");break;case"tworight":R("/PageLayout /TwoColumnRight")}Fe&&R("/PageMode /"+Fe),lt.publish("putCatalog"),R(">>"),R("endobj")},he=m.__private__.putTrailer=function(){R("trailer"),R("<<"),R("/Size "+(ne+1)),R("/Root "+ne+" 0 R"),R("/Info "+(ne-1)+" 0 R"),d!==null&&R("/Encrypt "+qe.oid+" 0 R"),R("/ID [ <"+ae+"> <"+ae+"> ]"),R(">>")},We=m.__private__.putHeader=function(){R("%PDF-"+g),R("%ºÃˆ ")},Cr=m.__private__.putXRef=function(){var N="0000000000";R("xref"),R("0 "+(ne+1)),R("0000000000 65535 f ");for(var $=1;$<=ne;$++)typeof X[$]=="function"?R((N+X[$]()).slice(-10)+" 00000 n "):X[$]!==void 0?R((N+X[$]).slice(-10)+" 00000 n "):R("0000000000 00000 n ")},kr=m.__private__.buildDocument=function(){var N;ne=0,fe=0,te=[],X=[],pe=[],Ns=Pr(),Qn=Pr(),He(te),lt.publish("buildDocument"),We(),Yr(),function(){lt.publish("putAdditionalObjects");for(var ce=0;ce<pe.length;ce++){var ge=pe[ce];fr(ge.objId,!0),R(ge.content),R("endobj")}lt.publish("postPutAdditionalObjects")}(),N=[],function(){for(var ce in St)St.hasOwnProperty(ce)&&(f===!1||f===!0&&h.hasOwnProperty(ce))&&za(St[ce])}(),function(){var ce;for(ce in ie)ie.hasOwnProperty(ce)&&ea(ie[ce])}(),function(){for(var ce in ut)ut.hasOwnProperty(ce)&&mn(ut[ce])}(),function(ce){var ge;for(ge in wt)wt.hasOwnProperty(ge)&&(wt[ge]instanceof ec?Ca(wt[ge]):wt[ge]instanceof vu&&qr(wt[ge],ce))}(N),lt.publish("putResources"),N.forEach($a),$a({resourcesOid:Qn,objectOid:Number.MAX_SAFE_INTEGER}),lt.publish("postPutResources"),d!==null&&(qe.oid=Tr(),R("<<"),R("/Filter /Standard"),R("/V "+qe.v),R("/R "+qe.r),R("/U <"+qe.toHexString(qe.U)+">"),R("/O <"+qe.toHexString(qe.O)+">"),R("/P "+qe.P),R(">>"),R("endobj")),Sa(),ci();var $=fe;return Cr(),he(),R("startxref"),R(""+$),R("%%EOF"),He(_e[Q]),te.join(` 1421`)},jr=m.__private__.getBlob=function(N){return new Blob([tt(N)],{type:"application/pdf"})},_n=function(N){for(;N.firstChild;)N.removeChild(N.firstChild)},ca=function(N){var $,ce=N.document,ge=ce.documentElement,Ee=ce.head,Qe=ce.body;return Ee||(Ee=ce.createElement("head"),ge.appendChild(Ee)),Qe||(Qe=ce.createElement("body"),ge.appendChild(Qe)),_n(Ee),_n(Qe),($=ce.createElement("style")).appendChild(ce.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Ee.appendChild($),{document:ce,body:Qe}},Xs=m.output=m.__private__.output=(Sr=function(N,$){switch(typeof($=$||{})=="string"?$={filename:$}:$.filename=$.filename||"generated.pdf",N){case void 0:return kr();case"save":m.save($.filename);break;case"arraybuffer":return tt(kr());case"blob":return jr(kr());case"bloburi":case"bloburl":if(Zt.URL!==void 0&&typeof Zt.URL.createObjectURL=="function")return Zt.URL&&Zt.URL.createObjectURL(jr(kr()))||void 0;Wr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ce="",ge=kr();try{ce=zk(ge)}catch{ce=zk(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+encodeURIComponent($.filename)+";base64,"+ce;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Zt)==="[object Window]"){var Ee="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Qe=!$.pdfObjectUrl;Qe||(Ee=$.pdfObjectUrl);var Je=Zt.open();if(Je!==null){var It=ca(Je),kt=It.document.createElement("script"),rr=this;kt.src=Ee,Qe&&(kt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",kt.crossOrigin="anonymous"),kt.onload=function(){Je.PDFObject.embed(rr.output("dataurlstring"),$)},It.body.appendChild(kt)}return Je}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Zt)==="[object Window]"){var ar=$.pdfJsUrl||"examples/PDF.js/web/viewer.html",vr=Zt.open();if(vr!==null){var ra=ca(vr),Kr=ra.document.createElement("iframe"),Hr=ar.indexOf("?")===-1?"?":"&";rr=this,Kr.id="pdfViewer",Kr.width="500px",Kr.height="400px",Kr.src=ar+Hr+"file=&downloadName="+encodeURIComponent($.filename),Kr.onload=function(){vr.document.title=$.filename,Kr.contentWindow.PDFViewerApplication.open(rr.output("bloburl"))},ra.body.appendChild(Kr)}return vr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Zt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var sn=Zt.open();if(sn!==null){var Cn=ca(sn),jn=Cn.document.createElement("iframe");jn.src=this.output("datauristring",$),Cn.body.appendChild(jn),sn.document.title=$.filename}if(sn||typeof safari>"u")return sn;break;case"datauri":case"dataurl":return Zt.document.location.href=this.output("datauristring",$);default:return null}},Sr.foo=function(){try{return Sr.apply(this,arguments)}catch(ce){var N=ce.stack||"";~N.indexOf(" at ")&&(N=N.split(" at ")[1]);var $="Error in function "+N.split(` 1422`)[0].split("<")[0]+": "+ce.message;if(!Zt.console)throw new Error($);Zt.console.error($,ce),Zt.alert&&alert($)}},Sr.foo.bar=Sr,Sr.foo),qa=function(N){return Array.isArray(Le)===!0&&Le.indexOf(N)>-1};switch(n){case"pt":gt=1;break;case"mm":gt=72/25.4;break;case"cm":gt=72/2.54;break;case"in":gt=72;break;case"px":gt=qa("px_scaling")==1?.75:96/72;break;case"pc":case"em":gt=12;break;case"ex":gt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);gt=n}var qe=null;se(),q();var vt=m.__private__.getPageInfo=m.getPageInfo=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to
1422jsPDF.getPageInfo");return{objId:Xe[N].objId,pageNumber:N,pageContext:Xe[N]}},hn=m.__private__.getPageInfoByObjId=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var $ in Xe)if(Xe[$].objId===N)break;return vt($)},ua=m.__private__.getCurrentPageInfo=m.getCurrentPageInfo=function(){return{objId:Xe[Q].objId,pageNumber:Q,pageContext:Xe[Q]}};m.addPage=function(){return Ro.apply(this,arguments),this},m.setPage=function(){return Bl.apply(this,arguments),He.call(this,_e[Q]),this},m.insertPage=function(N){return this.addPage(),this.movePage(Q,N),this},m.movePage=function(N,$){var ce,ge;if(N>$){ce=_e[N],ge=Xe[N];for(var Ee=N;Ee>$;Ee--)_e[Ee]=_e[Ee-1],Xe[Ee]=Xe[Ee-1];_e[$]=ce,Xe[$]=ge,this.setPage($)}else if(N<$){ce=_e[N],ge=Xe[N];for(var Qe=N;Qe<$;Qe++)_e[Qe]=_e[Qe+1],Xe[Qe]=Xe[Qe+1];_e[$]=ce,Xe[$]=ge,this.setPage($)}return this},m.deletePage=function(){return Mo.apply(this,arguments),this},m.__private__.text=m.text=function(N,$,ce,ge,Ee){var Qe,Je,It,kt,rr,ar,vr,ra,Kr,Hr=(ge=ge||{}).scope||this;if(typeof N=="number"&&typeof $=="number"&&(typeof ce=="string"||Array.isArray(ce))){var sn=ce;ce=$,$=N,N=sn}if(arguments[3]instanceof ot==0?(It=arguments[4],kt=arguments[5],Qr(vr=arguments[3])==="object"&&vr!==null||(typeof It=="string"&&(kt=It,It=null),typeof vr=="string"&&(kt=vr,vr=null),typeof vr=="number"&&(It=vr,vr=null),ge={flags:vr,angle:It,align:kt})):(E("The transform parameter of text() with a Matrix value"),Kr=Ee),isNaN($)||isNaN(ce)||N==null)throw new Error("Invalid arguments passed to jsPDF.text");if(N.length===0)return Hr;var Cn,jn="",Ka=typeof ge.lineHeightFactor=="number"?ge.lineHeightFactor:Qc,Ki=Hr.internal.scaleFactor;function uf(Zr){return Zr=Zr.split(" ").join(Array(ge.TabLen||9).join(" ")),Xr(Zr,vr)}function zc(Zr){for(var Jr,Vn=Zr.concat(),da=[],Wi=Vn.length;Wi--;)typeof(Jr=Vn.shift())=="string"?da.push(Jr):Array.isArray(Zr)&&(Jr.length===1||Jr[1]===void 0&&Jr[2]===void 0)?da.push(Jr[0]):da.push([Jr[0],Jr[1],Jr[2]]);return da}function $c(Zr,Jr){var Vn;if(typeof Zr=="string")Vn=Jr(Zr)[0];else if(Array.isArray(Zr)){for(var da,Wi,pf=Zr.concat(),bd=[],fp=pf.length;fp--;)typeof(da=pf.shift())=="string"?bd.push(Jr(da)[0]):Array.isArray(da)&&typeof da[0]=="string"&&(Wi=Jr(da[0],da[1],da[2]),bd.push([Wi[0],Wi[1],Wi[2]]));Vn=bd}return Vn}var Il=!1,qc=!0;if(typeof N=="string")Il=!0;else if(Array.isArray(N)){var fd=N.concat();Je=[];for(var md,Ga=fd.length;Ga--;)(typeof(md=fd.shift())!="string"||Array.isArray(md)&&typeof md[0]!="string")&&(qc=!1);Il=qc}if(Il===!1)throw new Error('Type of text must be string or Array. "'+N+'" is not recognized.');typeof N=="string"&&(N=N.match(/[\r?\n]/)?N.split(/\r\n|\r|\n/g):[N]);var Kc=De/Hr.internal.scaleFactor,Gc=Kc*(Ka-1);switch(ge.baseline){case"bottom":ce-=Gc;break;case"top":ce+=Kc-Gc;break;case"hanging":ce+=Kc-2*Gc;break;case"middle":ce+=Kc/2-Gc}if((ar=ge.maxWidth||0)>0&&(typeof N=="string"?N=Hr.splitTextToSize(N,ar):Object.prototype.toString.call(N)==="[object Array]"&&(N=N.reduce(function(Zr,Jr){return Zr.concat(Hr.splitTextToSize(Jr,ar))},[]))),Qe={text:N,x:$,y:ce,options:ge,mutex:{pdfEscape:Xr,activeFontKey:it,fonts:St,activeFontSize:De}},lt.publish("preProcessText",Qe),N=Qe.text,It=(ge=Qe.options).angle,Kr instanceof ot==0&&It&&typeof It=="number"){It*=Math.PI/180,ge.rotationDirection===0&&(It=-It),C===j&&(It=-It);var df=Math.cos(It),di=Math.sin(It);Kr=new ot(df,di,-di,df,0,0)}else It&&It instanceof ot&&(Kr=It);C!==j||Kr||(Kr=Fr),(rr=ge.charSpace||ud)!==void 0&&(jn+=I(H(rr))+` Tc 1423`,this.setCharSpace(this.getCharSpace()||0)),(ra=ge.horizontalScale)!==void 0&&(jn+=I(100*ra)+` Tz 1424`),ge.lang;var fs=-1,dp=ge.renderingMode!==void 0?ge.renderingMode:ge.stroke,hd=Hr.internal.getCurrentPageInfo().pageContext;switch(dp){case 0:case!1:case"fill":fs=0;break;case 1:case!0:case"stroke":fs=1;break;case 2:case"fillThenStroke":fs=2;break;case 3:case"invisible":fs=3;break;case 4:case"fillAndAddForClipping":fs=4;break;case 5:case"strokeAndAddPathForClipping":fs=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":fs=6;break;
1424case 7:case"addToPathForClipping":fs=7}var Ap=hd.usedRenderingMode!==void 0?hd.usedRenderingMode:-1;fs!==-1?jn+=fs+` Tr 1425`:Ap!==-1&&(jn+=`0 Tr 1426`),fs!==-1&&(hd.usedRenderingMode=fs),kt=ge.align||"left";var vo,Wc=De*Ka,Af=Hr.internal.pageSize.getWidth(),pd=St[it];rr=ge.charSpace||ud,ar=ge.maxWidth||0,vr=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var Yc=[],ff=function(Zr){return Hr.getStringUnitWidth(Zr,{font:pd,charSpace:rr,fontSize:De,doKerning:!1})*De/Ki};if(Object.prototype.toString.call(N)==="[object Array]"){var ms;Je=zc(N),kt!=="left"&&(vo=Je.map(ff));var Ts,gd=0;if(kt==="right"){$-=vo[0],N=[],Ga=Je.length;for(var Fl=0;Fl<Ga;Fl++)Fl===0?(Ts=Hi($),ms=zi(ce)):(Ts=H(gd-vo[Fl]),ms=-Wc),N.push([Je[Fl],Ts,ms]),gd=vo[Fl]}else if(kt==="center"){$-=vo[0]/2,N=[],Ga=Je.length;for(var Tl=0;Tl<Ga;Tl++)Tl===0?(Ts=Hi($),ms=zi(ce)):(Ts=H((gd-vo[Tl])/2),ms=-Wc),N.push([Je[Tl],Ts,ms]),gd=vo[Tl]}else if(kt==="left"){N=[],Ga=Je.length;for(var xd=0;xd<Ga;xd++)N.push(Je[xd])}else if(kt==="justify"&&pd.encoding==="Identity-H"){N=[],Ga=Je.length,ar=ar!==0?ar:Af;for(var Xc=0,na=0;na<Ga;na++)if(ms=na===0?zi(ce):-Wc,Ts=na===0?Hi($):Xc,na<Ga-1){var ty=H((ar-vo[na])/(Je[na].split(" ").length-1)),Ai=Je[na].split(" ");N.push([Ai[0]+" ",Ts,ms]),Xc=0;for(var Oo=1;Oo<Ai.length;Oo++){var Zc=(ff(Ai[Oo-1]+" "+Ai[Oo])-ff(Ai[Oo]))*Ki+ty;Oo==Ai.length-1?N.push([Ai[Oo],Zc,0]):N.push([Ai[Oo]+" ",Zc,0]),Xc-=Zc}}else N.push([Je[na],Ts,ms]);N.push(["",Xc,0])}else{if(kt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(N=[],Ga=Je.length,ar=ar!==0?ar:Af,na=0;na<Ga;na++){ms=na===0?zi(ce):-Wc,Ts=na===0?Hi($):0;var mf=Je[na].split(" ").length-1,hf=mf>0?(ar-vo[na])/mf:0;na<Ga-1?Yc.push(I(H(hf))):Yc.push(0),N.push([Je[na],Ts,ms])}}}(typeof ge.R2L=="boolean"?ge.R2L:we)===!0&&(N=$c(N,function(Zr,Jr,Vn){return[Zr.split("").reverse().join(""),Jr,Vn]})),Qe={text:N,x:$,y:ce,options:ge,mutex:{pdfEscape:Xr,activeFontKey:it,fonts:St,activeFontSize:De}},lt.publish("postProcessText",Qe),N=Qe.text,Cn=Qe.mutex.isHex||!1;var vd=St[it].encoding;vd!=="WinAnsiEncoding"&&vd!=="StandardEncoding"||(N=$c(N,function(Zr,Jr,Vn){return[uf(Zr),Jr,Vn]})),Je=zc(N),N=[];for(var Jc,eu,Pl,Gi=Array.isArray(Je[0])?1:0,Ll="",yd=function(Zr,Jr,Vn){var da="";return Vn instanceof ot?(Vn=typeof ge.angle=="number"?or(Vn,new ot(1,0,0,1,Zr,Jr)):or(new ot(1,0,0,1,Zr,Jr),Vn),C===j&&(Vn=or(new ot(1,0,0,-1,0,0),Vn)),da=Vn.join(" ")+` Tm 1427`):da=I(Zr)+" "+I(Jr)+` Td 1428`,da},Wa=0;Wa<Je.length;Wa++){switch(Ll="",Gi){case 1:Pl=(Cn?"<":"(")+Je[Wa][0]+(Cn?">":")"),Jc=parseFloat(Je[Wa][1]),eu=parseFloat(Je[Wa][2]);break;case 0:Pl=(Cn?"<":"(")+Je[Wa]+(Cn?">":")"),Jc=Hi($),eu=zi(ce)}Yc!==void 0&&Yc[Wa]!==void 0&&(Ll=Yc[Wa]+` Tw 1429`),Wa===0?N.push(Ll+yd(Jc,eu,Kr)+Pl):Gi===0?N.push(Ll+Pl):Gi===1&&N.push(Ll+yd(Jc,eu,Kr)+Pl)}N=Gi===0?N.join(` Tj 1430T* `):N.join(` Tj 1431`),N+=` Tj 1432`;var fi=`BT 1433/`;return fi+=it+" "+De+` Tf 1434`,fi+=I(De*Ka)+` TL 1435`,fi+=ui+` 1436`,fi+=jn,fi+=N,R(fi+="ET"),h[it]=!0,Hr};var ka=m.__private__.clip=m.clip=function(N){return R(N==="evenodd"?"W*":"W"),this};m.clipEvenOdd=function(){return ka("evenodd")},m.__private__.discardPath=m.discardPath=function(){return R("n"),this};var lr=m.__private__.isValidStyle=function(N){var $=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(N)!==-1&&($=!0),$};m.__private__.setDefaultPathOperation=m.setDefaultPathOperation=function(N){return lr(N)&&(u=N),this};var Zs=m.__private__.getStyle=m.getStyle=function(N){var $=u;switch(N){case"D":case"S":$="S";break;case"F":$="f";break;case"FD":case"DF":$="B";break;case"f":case"f*":case"B":case"B*":$=N}return $},ks=m.close=function(){return R("h"),this};m.stroke=function(){return R("S"),this},m.fill=function(N){return Is("f",N),this},m.fillEvenOdd=function(N){return Is("f*",N),this},m.fillStroke=function(N){return Is("B",N),this},m.fillStrokeEvenOdd=function(N){return Is("B*",N),this};var Is=function(N,$){Qr($)==="object"?Nl($,N):R(N)},go=function(N){N===null||C===j&&N===void 0||(N=Zs(N),R(N))};function an(N,$,ce,ge,Ee){var Qe=new vu($||this.boundingBox,ce||this.xStep,ge||this.yStep,this.gState,Ee||this.matrix
vendor: 4,509 bytes, line 1436
1436);Qe.stream=this.stream;var Je=N+"$$"+this.cloneIndex+++"$$";return Ar(Je,Qe),Qe}var Nl=function(N,$){var ce=ft[N.key],ge=wt[ce];if(ge instanceof ec)R("q"),R(ld($)),ge.gState&&m.setGState(ge.gState),R(N.matrix.toString()+" cm"),R("/"+ce+" sh"),R("Q");else if(ge instanceof vu){var Ee=new ot(1,0,0,-1,0,Hc());N.matrix&&(Ee=Ee.multiply(N.matrix||Fr),ce=an.call(ge,N.key,N.boundingBox,N.xStep,N.yStep,Ee).id),R("q"),R("/Pattern cs"),R("/"+ce+" scn"),ge.gState&&m.setGState(ge.gState),R($),R("Q")}},ld=function(N){switch(N){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},xo=m.moveTo=function(N,$){return R(I(H(N))+" "+I(U($))+" m"),this},Fs=m.lineTo=function(N,$){return R(I(H(N))+" "+I(U($))+" l"),this},Sl=m.curveTo=function(N,$,ce,ge,Ee,Qe){return R([I(H(N)),I(U($)),I(H(ce)),I(U(ge)),I(H(Ee)),I(U(Qe)),"c"].join(" ")),this};m.__private__.line=m.line=function(N,$,ce,ge,Ee){if(isNaN(N)||isNaN($)||isNaN(ce)||isNaN(ge)||!lr(Ee))throw new Error("Invalid arguments passed to jsPDF.line");return C===b?this.lines([[ce-N,ge-$]],N,$,[1,1],Ee||"S"):this.lines([[ce-N,ge-$]],N,$,[1,1]).stroke()},m.__private__.lines=m.lines=function(N,$,ce,ge,Ee,Qe){var Je,It,kt,rr,ar,vr,ra,Kr,Hr,sn,Cn,jn;if(typeof N=="number"&&(jn=ce,ce=$,$=N,N=jn),ge=ge||[1,1],Qe=Qe||!1,isNaN($)||isNaN(ce)||!Array.isArray(N)||!Array.isArray(ge)||!lr(Ee)||typeof Qe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(xo($,ce),Je=ge[0],It=ge[1],rr=N.length,sn=$,Cn=ce,kt=0;kt<rr;kt++)(ar=N[kt]).length===2?(sn=ar[0]*Je+sn,Cn=ar[1]*It+Cn,Fs(sn,Cn)):(vr=ar[0]*Je+sn,ra=ar[1]*It+Cn,Kr=ar[2]*Je+sn,Hr=ar[3]*It+Cn,sn=ar[4]*Je+sn,Cn=ar[5]*It+Cn,Sl(vr,ra,Kr,Hr,sn,Cn));return Qe&&ks(),go(Ee),this},m.path=function(N){for(var $=0;$<N.length;$++){var ce=N[$],ge=ce.c;switch(ce.op){case"m":xo(ge[0],ge[1]);break;case"l":Fs(ge[0],ge[1]);break;case"c":Sl.apply(this,ge);break;case"h":ks()}}return this},m.__private__.rect=m.rect=function(N,$,ce,ge,Ee){if(isNaN(N)||isNaN($)||isNaN(ce)||isNaN(ge)||!lr(Ee))throw new Error("Invalid arguments passed to jsPDF.rect");return C===b&&(ge=-ge),R([I(H(N)),I(U($)),I(H(ce)),I(H(ge)),"re"].join(" ")),go(Ee),this},m.__private__.triangle=m.triangle=function(N,$,ce,ge,Ee,Qe,Je){if(isNaN(N)||isNaN($)||isNaN(ce)||isNaN(ge)||isNaN(Ee)||isNaN(Qe)||!lr(Je))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ce-N,ge-$],[Ee-ce,Qe-ge],[N-Ee,$-Qe]],N,$,[1,1],Je,!0),this},m.__private__.roundedRect=m.roundedRect=function(N,$,ce,ge,Ee,Qe,Je){if(isNaN(N)||isNaN($)||isNaN(ce)||isNaN(ge)||isNaN(Ee)||isNaN(Qe)||!lr(Je))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return Ee=Math.min(Ee,.5*ce),Qe=Math.min(Qe,.5*ge),this.lines([[ce-2*Ee,0],[Ee*It,0,Ee,Qe-Qe*It,Ee,Qe],[0,ge-2*Qe],[0,Qe*It,-Ee*It,Qe,-Ee,Qe],[2*Ee-ce,0],[-Ee*It,0,-Ee,-Qe*It,-Ee,-Qe],[0,2*Qe-ge],[0,-Qe*It,Ee*It,-Qe,Ee,-Qe]],N+Ee,$,[1,1],Je,!0),this},m.__private__.ellipse=m.ellipse=function(N,$,ce,ge,Ee){if(isNaN(N)||isNaN($)||isNaN(ce)||isNaN(ge)||!lr(Ee))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Qe=4/3*(Math.SQRT2-1)*ce,Je=4/3*(Math.SQRT2-1)*ge;return xo(N+ce,$),Sl(N+ce,$-Je,N+Qe,$-ge,N,$-ge),Sl(N-Qe,$-ge,N-ce,$-Je,N-ce,$),Sl(N-ce,$+Je,N-Qe,$+ge,N,$+ge),Sl(N+Qe,$+ge,N+ce,$+Je,N+ce,$),go(Ee),this},m.__private__.circle=m.circle=function(N,$,ce,ge){if(isNaN(N)||isNaN($)||isNaN(ce)||!lr(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(N,$,ce,ce,ge)},m.setFont=function(N,$,ce){return ce&&($=P($,ce)),it=Ss(N,$,{disableWarning:!1}),this};var $v=m.__private__.getFont=m.getFont=function(){return St[Ss.apply(m,arguments)]};m.__private__.getFontList=m.getFontList=function(){var N,$,ce={};for(N in Mt)if(Mt.hasOwnProperty(N))for($ in ce[N]=[],Mt[N])Mt[N].hasOwnProperty($)&&ce[N].push($);return ce},m.addFont=function(N,$,ce,ge,Ee){var Qe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Qe.indexOf(arguments[3])!==-1?Ee=arguments[3]:arguments[3]&&Qe.indexOf(arguments[3])==-1&&(ce=P(ce,ge)),po.call(this,N,$,ce,Ee=Ee||"Identity-H")};var Qc,Xt=e.lineWidth||.200025,qv=m.__private__.getLineWidth=m.getLineWidth=function(){return Xt},Kv=m.__private__.setLineWidth=m.setLineWidth=function(N){return Xt=N,R(I(H(N))+" w"),this};m.__private__.setLineDash=Dt.API.setLineDash=Dt.API.setLineDashPattern=function(N,$){if(N=N||[],$=$||0,isNaN($)||!Array.isArray(N))throw new Error("Invalid arguments passed to
1436jsPDF.setLineDash");return N=N.map(function(ce){return I(H(ce))}).join(" "),$=I(H($)),R("["+N+"] "+$+" d"),this};var Gv=m.__private__.getLineHeight=m.getLineHeight=function(){return De*Qc};m.__private__.getLineHeight=m.getLineHeight=function(){return De*Qc};var Wv=m.__private__.setLineHeightFactor=m.setLineHeightFactor=function(N){return typeof(N=N||1.15)=="number"&&(Qc=N),this},Yv=m.__private__.getLineHeightFactor=m.getLineHeightFactor=function(){return Qc};Wv(e.lineHeight);var Hi=m.__private__.getHorizontalCoordinate=function(N){return H(N)},zi=m.__private__.getVerticalCoordinate=function(N){return C===j?N:Xe[Q].mediaBox.topRightY-Xe[Q].mediaBox.bottomLeftY-H(N)},Xv=m.__private__.getHorizontalCoordinateString=m.getHorizontalCoordinateString=function(N){return I(Hi(N))},Zv=m.__private__.getVerticalCoordinateString=m.getVerticalCoordinateString=function(N){return I(zi(N))},cd=e.strokeColor||"0 G";m.__private__.getStrokeColor=m.getDrawColor=function(){return Tn(cd)},m.__private__.setStrokeColor=m.setDrawColor=function(N,$,ce,ge){return cd=qt({ch1:N,ch2:$,ch3:ce,ch4:ge,pdfColorType:"draw",precision:2}),R(cd),this};var af=e.fillColor||"0 g";m.__private__.getFillColor=m.getFillColor=function(){return Tn(af)},m.__private__.setFillColor=m.setFillColor=function(N,$,ce,ge){return af=qt({ch1:N,ch2:$,ch3:ce,ch4:ge,pdfColorType:"fill",precision:2}),R(af),this};var ui=e.textColor||"0 g",Jv=m.__private__.getTextColor=m.getTextColor=function(){return Tn(u
vendor: 10,621 bytes, lines 1436-1440
1436i)};m.__private__.setTextColor=m.setTextColor=function(N,$,ce,ge){return ui=qt({ch1:N,ch2:$,ch3:ce,ch4:ge,pdfColorType:"text",precision:3}),this};var ud=e.charSpace,ey=m.__private__.getCharSpace=m.getCharSpace=function(){return parseFloat(ud||0)};m.__private__.setCharSpace=m.setCharSpace=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ud=N,this};var sf=0;m.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},m.__private__.setLineCap=m.setLineCap=function(N){var $=m.CapJoinStyles[N];if($===void 0)throw new Error("Line cap style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return sf=$,R($+" J"),this};var kl=0;m.__private__.setLineJoin=m.setLineJoin=function(N){var $=m.CapJoinStyles[N];if($===void 0)throw new Error("Line join style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kl=$,R($+" j"),this},m.__private__.setLineMiterLimit=m.__private__.setMiterLimit=m.setLineMiterLimit=m.setMiterLimit=function(N){if(N=N||0,isNaN(N))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return R(I(H(N))+" M"),this},m.GState=ch,m.setGState=function(N){(N=typeof N=="string"?ie[Ue[N]]:of(null,N)).equals(dt)||(R("/"+N.id+" gs"),dt=N)};var of=function(N,$){if(!N||!Ue[N]){var ce=!1;for(var ge in ie)if(ie.hasOwnProperty(ge)&&ie[ge].equals($)){ce=!0;break}if(ce)$=ie[ge];else{var Ee="GS"+(Object.keys(ie).length+1).toString(10);ie[Ee]=$,$.id=Ee}return N&&(Ue[N]=$.id),lt.publish("addGState",$),$}};m.addGState=function(N,$){return of(N,$),this},m.saveGraphicsState=function(){return R("q"),tr.push({key:it,size:De,color:ui}),this},m.restoreGraphicsState=function(){R("Q");var N=tr.pop();return it=N.key,De=N.size,ui=N.color,dt=null,this},m.setCurrentTransformationMatrix=function(N){return R(N.toString()+" cm"),this},m.comment=function(N){return R("#"+N),this};var Vc=function(N,$){var ce=N||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ce},set:function(Qe){isNaN(Qe)||(ce=parseFloat(Qe))}});var ge=$||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(Qe){isNaN(Qe)||(ge=parseFloat(Qe))}});var Ee="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ee},set:function(Qe){Ee=Qe.toString()}}),this},lf=function(N,$,ce,ge){Vc.call(this,N,$),this.type="rect";var Ee=ce||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ee},set:function(Je){isNaN(Je)||(Ee=parseFloat(Je))}});var Qe=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Qe},set:function(Je){isNaN(Je)||(Qe=parseFloat(Je))}}),this},dd=function(){this.page=Re,this.currentPage=Q,this.pages=_e.slice(0),this.pagesContext=Xe.slice(0),this.x=st,this.y=Ut,this.matrix=Lt,this.width=op(Q),this.height=qi(Q),this.outputDestination=Be,this.id="",this.objectNumber=-1};dd.prototype.restore=function(){Re=this.page,Q=this.currentPage,Xe=this.pagesContext,_e=this.pages,st=this.x,Ut=this.y,Lt=this.matrix,$i(Q,this.width),ip(Q,this.height),Be=this.outputDestination};var cf=function(N,$,ce,ge,Ee){mt.push(new dd),Re=Q=0,_e=[],st=N,Ut=$,Lt=Ee,ta([ce,ge])};for(var Ad in m.beginFormObject=function(N,$,ce,ge,Ee){return cf(N,$,ce,ge,Ee),this},m.endFormObject=function(N){return function($){if(Qt[$])mt.pop().restore();else{var ce=new dd,ge="Xo"+(Object.keys(ut).length+1).toString(10);ce.id=ge,Qt[$]=ge,ut[ge]=ce,lt.publish("addFormObject",ce),mt.pop().restore()}}(N),this},m.doFormObject=function(N,$){var ce=ut[Qt[N]];return R("q"),R($.toString()+" cm"),R("/"+ce.id+" Do"),R("Q"),this},m.getFormObject=function(N){var $=ut[Qt[N]];return{x:$.x,y:$.y,width:$.width,height:$.height,matrix:$.matrix}},m.save=function(N,$){return N=N||"generated.pdf",($=$||{}).returnPromise=$.returnPromise||!1,$.returnPromise===!1?(du(jr(kr()),N),typeof du.unload=="function"&&Zt.setTimeout&&setTimeout(du.unload,911),this):new Promise(function(ce,ge){try{var Ee=du(jr(kr()),N);typeof du.unload=="function"&&Zt.setTimeout&&setTimeout(du.unload,911),ce(Ee)}catch(Qe){ge(Qe.message)}})},Dt.API)Dt.API.hasOwnProperty(Ad)&&(Ad==="events"&&Dt.API.events.length?function(N,$){var ce,ge,Ee;for(Ee=$.length-1;Ee!==-1;Ee--)ce=$[Ee][0],ge=$[Ee][1],N.subscribe.apply(N,[ce].concat(typeof ge=="function"?[ge]:ge))}(lt,Dt.API.events):m[Ad]=Dt.API[Ad]);function op(N){return Xe[N].mediaBox.topRightX-Xe[N].mediaBox.bottomLeftX}function $i(N,$){Xe[N].mediaBox.topRightX=$+Xe[N].mediaBox.bottomLeftX}function qi(N){return Xe[N].mediaBox.topRightY-Xe[N].mediaBox.bottomLeftY}function ip(N,$){Xe[N].mediaBox.topRightY=$+Xe[N].mediaBox.bottomLeftY}var lp=m.getPageWidth=function(N){return op(N=N||Q)/gt},cp=m.setPageWidth=function(N,$){$i(N,$*gt)},Hc=m.getPageHeight=function(N){return qi(N=N||Q)/gt},up=m.setPageHeight=function(N,$){ip(N,$*gt)};return m.internal={pdfEscape:Xr,getStyle:Zs,getFont:$v,getFontSize:me,getCharSpace:ey,getTextColor:Jv,getLineHeight:Gv,getLineHeightFactor:Yv,getLineWidth:qv,write:be,getHorizontalCoordinate:Hi,getVerticalCoordinate:zi,getCoordinateString:Xv,getVerticalCoordinateString:Zv,collections:{},newObject:Tr,newAdditionalObject:_a,newObjectDeferred:Pr,newObjectDeferredBegin:fr,getFilters:bn,putStream:wn,events:lt,scaleFactor:gt,pageSize:{getWidth:function(){return lp(Q)},setWidth:function(N){cp(Q,N)},getHeight:function(){return Hc(Q)},setHeight:function(N){up(Q,N)}},encryptionOptions:d,encryption:qe,getEncryptor:function(N){return d!==null?qe.encryptor(N,0):function($){return $}},output:Xs,getNumberOfPages:li,get pages(){return _e},out:R,f2:k,f3:D,getPageInfo:vt,getPageInfoByObjId:hn,getCurrentPageInfo:ua,getPDFVersion:p,Point:Vc,Rectangle:lf,Matrix:ot,hasHotfix:qa},Object.defineProperty(m.internal.pageSize,"width",{get:function(){return lp(Q)},set:function(N){cp(Q,N)},enumerable:!0,configurable:!0}),Object.defineProperty(m.internal.pageSize,"height",{get:function(){return Hc(Q)},set:function(N){up(Q,N)},enumerable:!0,configurable:!0}),function(N){for(var $=0,ce=at.length;$<ce;$++){var ge=po.call(this,N[$][0],N[$][1],N[$][2],at[$][3],!0);f===!1&&(h[ge]=!0);var Ee=N[$][0].split("-");Ft({id:ge,fontName:Ee[0],fontStyle:Ee[1]||""})}lt.publish("addFonts",{fonts:St,dictionary:Mt})}.call(m,at),it="F1",Ro(s,r),lt.publish("initialized"),m}$d.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},$d.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},$d.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},$d.prototype.processOwnerPassword=function(e,t){return i2(o2(t).substr(0,5),e)},$d.prototype.encryptor=function(e,t){var r=o2(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return i2(r,n)}},ch.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||Qr(e)!==Qr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},Dt.API={events:[]},Dt.version="4.2.1";var Dn=Dt.API,Mj=1,id=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Rd=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Gu=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var r=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(r.length===1?"0"+r:r)})},nr=function(e){return e.toFixed(2)},Kl=function(e){return e.toFixed(5)};Dn.__acroform__={};var Ys=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Gk=function(e){return e*Mj},xi=function(e){var t=new wV,r=Nt.internal.getHeight(e)||0,n=Nt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(nr(n)),Number(nr(r))],t},wje=Dn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},_je=Dn.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Cje=Dn.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Gn=Dn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Cje(e,t-1)},Wn=Dn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return wje(e,t-1)},Yn=Dn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return _je(e,t-1)},jje=Dn.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,s=e[0],o=e[1],i=e[2],l=e[3],c={};return c.lowerLeft_X=r(s)||0,c.lowerLeft_Y=n(o+l)||0,c.upperRight_X=r(s+i)||0,c.upperRight_Y=n(o)||0,[Number(nr(c.lowerLeft_X)),Number(nr(c.lowerLeft_Y)),Number(nr(c.upperRight_X)),Number(nr(c.upperRight_Y))]},Eje=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=l2(e,r),s=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+s+" "+nr(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=xi(e);return o.scope=e.scope,o.stream=t.join(` 1437`),o}},l2=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},s=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");s=e.multiline?s.map(function(k){return k.split(` 1438`)}):s.map(function(k){return[k]});var o=r,i=Nt.internal.getHeight(e)||0;i=i<0?-i:i;var l=Nt.internal.getWidth(e)||0;l=l<0?-l:l;var c=function(k,D,H){if(k+1<s.length){var U=D+" "+s[k+1][0];return Lg(U,e,H).width<=l-4}return!1};o++;e:for(;o>0;){t="",o--;var u,d,f=Lg("3",e,o).height,h=e.multiline?i-o:(i-f)/2,m=h+=2,g=0,p=0,x=0;if(o<=0){t=`(...) Tj 1439`,t+="% Width of Text: "+Lg(t,e,o=12).width+", FieldWidth:"+l+` 1440`;break}for(var y="",b=0,j=0;j<s.length;j++)if(s.hasOwnProperty(j)){var C=!1;
1440if(s[j].length!==1&&x!==s[j].length-1){if((f+2)*(b+2)+2>i)continue e;y+=s[j][x],C=!0,p=j,j--}else{y=(y+=s[j][x]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var T=parseInt(j),L=c(T,y,o),P=j>=s.length-1;if(L&&!P){y+=" ",x=0;continue}if(L||P){if(P)p=T;else if(e.multiline&&(f+2)*(b+2)+2>i)continue e}else{if(!e.multiline||(f+2)*(b+2)+2>i)continue e;p=T}}for(var I="",E=g;E<=p;E++){var O=s[E];if(e.multiline){if(E===p){I+=O[x]+" ",x=(x+1)%O.length;continue}if(E===g){I+=O[O.length-1]+" ";continue}}I+=O[0]+" "}switch(I=I.substr(I.length-1)==" "?I.substr(0,I.length-1):I,d=Lg(I,e,o).width,e.textAlign){case"right":u=l-d-2;break;case"center":u=(l-d)/2;break;default:u=2}t+=nr(u)+" "+nr(m)+` Td 1441`,t+="("+id(I)+`) Tj 1442`,t+=-nr(u)+` 0 Td 1443`,m=-(o+2),d=0,g=C?p:p+1,b++,y=""}break}return n.text=t,n.fontSize=o,n},Lg=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),s=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:s}},Bje={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Nje=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},Sje=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(oi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Bje)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Mj=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new _V,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var s in n)if(n.hasOwnProperty(s)){var o=n[s];o.objId=void 0,o.hasAnnotation&&Nje(o,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,s){var o=!n;for(var i in n||(s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(i)){var l=n[i],c=[],u=l.Rect;if(l.Rect&&(l.Rect=jje(l.Rect,s)),s.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Nt.createDefaultAppearanceStream(l),Qr(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=u,l.hasAppearanceStream&&!l.appearanceStreamContent){var d=Eje(l);c.push({key:"AP",value:"<</N "+d+">>"}),s.internal.acroformPlugin.xForms.push(d)}if(l.appearanceStreamContent){var f="";for(var h in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(h)){var m=l.appearanceStreamContent[h];if(f+="/"+h+" ",f+="<<",Object.keys(m).length>=1||Array.isArray(m)){for(var i in m)if(m.hasOwnProperty(i)){var g=m[i];typeof g=="function"&&(g=g.call(s,l)),f+="/"+i+" "+g+" ",s.internal.acroformPlugin.xForms.indexOf(g)>=0||s.internal.acroformPlugin.xForms.push(g)}}else typeof(g=m)=="function"&&(g=g.call(s,l)),f+="/"+i+" "+g,s.internal.acroformPlugin.xForms.indexOf(g)>=0||s.internal.acroformPlugin.xForms.push(g);f+=">>"}c.push({key:"AP",value:`<< 1444`+f+">>"})}s.internal.putStream({additionalKeyValues:c,objectId:l.objId}),s.internal.out("endobj")}o&&function(p,x){for(var y in p)if(p.hasOwnProperty(y)){var b=y,j=p[y];x.internal.newObjectDeferredBegin(j.objId,!0),Qr(j)==="object"&&typeof j.putStream=="function"&&j.putStream(),delete p[b]}}(s.internal.acroformPlugin.xForms,s)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},bV=Dn.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(i){return i};if(Array.isArray(e)){for(var s="[",o=0;o<e.length;o++)switch(o!==0&&(s+=" "),Qr(e[o])){case"boolean":case"number":case"object":s+=e[o].toString();break;case"string":e[o].substr(0,1)==="/"?s+="/"+Gu(e[o].substr(1)):(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),s+="("+id(n(e[o].toString()))+")")}return s+"]"}
1444throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Bb=function(e,t,r){var n=function(s){return s};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+id(n(e))+")"},Bi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Bi.prototype.toString=function(){return this.objId+" 0 R"},Bi.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Bi.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],s=this[n];s&&(Array.isArray(s)?e.push({key:n,value:bV(s,this.objId,this.scope)}):s instanceof Bi?(s.scope=this.scope,e.push({key:n,value:s.objId+" 0 R"})):typeof s!="function"&&e.push({key:n,value:s}))}return e};var wV=function(){Bi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};Ys(wV,Bi);var _V=function(){Bi.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+id(r(e))+")"}},set:function(r){e=r}})};Ys(_V,Bi);var oi=function e(){Bi.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Gn(t,3)},set:function(y){y?this.F=Wn(t,3):this.F=Yn(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof gx)return;o="FieldObject"+e.FieldNum++}var y=function(b){return b};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+id(y(o))+")"},set:function(y){o=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o}
1444,set:function(y){o=y}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(y){i=y}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/Mj:u},set:function(y){u=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof gx||this instanceof hc))return Bb(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof va==0?Bb(h,this.objId,this.scope):h},set:function(y){y=y.toString(),h=this instanceof va==0?y.substr(0,1)==="("?Rd(y.substr(1,y.length-2)):Rd(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof va==1?Rd(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof va==1?"/"+Gu(y):y}});var m=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(m)return m},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof va==0?Bb(m,this.objId,this.scope):m},set:function(y){y=y.toString(),m=this instanceof va==0?y.substr(0,1)==="("?Rd(y.substr(1,y.length-2)):Rd(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof va==1?Rd(m.substr(1,m.length-1)):m},set:function(y){y=y.toString(),m=this instanceof va==1?"/"+Gu(y):y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var g,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(y){y=!!y,p=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(y){g=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,1)},set:function(y){y?this.Ff=Wn(this.Ff,1):this.Ff=Yn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,2)},set:function(y){y?this.Ff=Wn(this.Ff,2):this.Ff=Yn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,3)},set:function(y){y?this.Ff=Wn(this.Ff,3):this.Ff=Yn(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(x!==null)return x},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');x=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(x){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:x=2;break;case"center":case 1:x=1;break;default:x=0}}})};Ys(oi,Bi);var Eu=function(){oi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return bV(t,this.objId,this.scope)}
1444,set:function(r){var n,s;s=[],typeof(n=r)=="string"&&(s=function(o,i,l){l||(l=1);for(var c,u=[];c=i.exec(o);)u.push(c[l]);return u}(n,/\((.*?)\)/g)),t=s}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,18)},set:function(r){r?this.Ff=Wn(this.Ff,18):this.Ff=Yn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Wn(this.Ff,19):this.Ff=Yn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,20)},set:function(r){r?(this.Ff=Wn(this.Ff,20),t.sort()):this.Ff=Yn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,22)},set:function(r){r?this.Ff=Wn(this.Ff,22):this.Ff=Yn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,23)},set:function(r){r?this.Ff=Wn(this.Ff,23):this.Ff=Yn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,27)},set:function(r){r?this.Ff=Wn(this.Ff,27):this.Ff=Yn(this.Ff,27)}}),this.hasAppearanceStream=!1};Ys(Eu,oi);var Bu=function(){Eu.call(this),this.fontName="helvetica",this.combo=!1};Ys(Bu,Eu);var Nu=function(){Bu.call(this),this.combo=!0};Ys(Nu,Bu);var jm=function(){Nu.call(this),this.edit=!0};Ys(jm,Nu);var va=function(){oi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,15)},set:function(r){r?this.Ff=Wn(this.Ff,15):this.Ff=Yn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,16)},set:function(r){r?this.Ff=Wn(this.Ff,16):this.Ff=Yn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,17)},set:function(r){r?this.Ff=Wn(this.Ff,17):this.Ff=Yn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,26)},set:function(r){r?this.Ff=Wn(this.Ff,26):this.Ff=Yn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,s=[];for(n in s.push("<<"),t)s.push("/"+n+" ("+id(r(t[n]))+")");return s.push(">>"),s.join(` 1445`)}},set:function(r){Qr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){var n=r==null?"":r.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+Gu(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+Gu(r)}})};Ys(va,oi);var Em=function(){va.call(this),this.pushButton=!0};Ys(Em,va);var Su=function(){va.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Ys(Su,va);var gx=function(){var e,t;oi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(s){e=s}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(s){t=s}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(l){return l};this.scope&&(s=this.scope.internal.getEncryptor(this.objId));var o,i=[];for(o in i.push("<<"),n)i.push("/"+o+" ("+id(s(n[o]))+")");return i.push(">>"),i.join(` 1446`)}
1446,set:function(s){Qr(s)==="object"&&(n=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(s){typeof s=="string"&&(n.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(s){var o=s==null?"":s.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),r="/"+Gu(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(s){var o=s==null?"":s.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),r="/"+Gu(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Nt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ys(gx,oi),Su.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},Su.prototype.createOption=function(e){var t=new gx;return t.Parent=this,t.optionName=e,this.Kids.push(t),kje.call(this.scope,t),t};var Bm=function(){va.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Nt.CheckBox.createAppearanceStream()};Ys(Bm,va);var hc=function(){oi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,13)},set:function(t){t?this.Ff=Wn(this.Ff,13):this.Ff=Yn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,21)},set:function(t){t?this.Ff=Wn(this.Ff,21):this.Ff=Yn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,23)},set:function(t){t?this.Ff=Wn(this.Ff,23):this.Ff=Yn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,24)},set:function(t){t?this.Ff=Wn(this.Ff,24):this.Ff=Yn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,25)},set:function(t){t?this.Ff=Wn(this.Ff,25):this.Ff=Yn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,26)},set:function(t){t?this.Ff=Wn(this.Ff,26):this.Ff=Yn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ys(hc,oi);var Nm=function(){hc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Gn(this.Ff,14)},set:function(e){e?this.Ff=Wn(this.Ff,14):this.Ff=Yn(this.Ff,14)}}),this.password=!0};Ys(Nm,hc);var Nt={CheckBox:{createAppearanceStream:function(){return{N:{On:Nt.CheckBox.YesNormal},D:{On:Nt.CheckBox.YesPushDown,Off:Nt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,s=e.scope.__private__.encodeColorString(e.color),o=l2(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+nr(Nt.internal.getWidth(e))+" "+nr(Nt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+nr(o.fontSize)+" Tf "+s),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(` 1447`),t},YesNormal:function(e){var t=xi(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),s=[],o=Nt.internal.getHeight(e),i=Nt.internal.getWidth(e),l=l2(e,e.caption);return s.push("1 g"),s.push("0 0 "+nr(i)+" "+nr(o)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+nr(i-1)+" "+nr(o-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+r+" "+nr(l.fontSize)+" Tf "+n),s.push(l.text),s.push("ET"),s.push("Q"),t.stream=s.join(` 1448`),t},OffPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+nr(Nt.internal.getWidth(e))+" "+nr(Nt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` 1449`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Nt.RadioButton.Circle.OffPushDown},N:{}}
vendor: 4,507 bytes, lines 1449-1455
1449;return t.N[e]=Nt.RadioButton.Circle.YesNormal,t.D[e]=Nt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=xi(e);t.scope=e.scope;var r=[],n=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var s=Nt.internal.Bezier_C,o=Number((n*s).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Kl(Nt.internal.getWidth(e)/2)+" "+Kl(Nt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 1450`),t},YesPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=[],n=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var s=Number((2*n).toFixed(5)),o=Number((s*Nt.internal.Bezier_C).toFixed(5)),i=Number((n*Nt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Kl(Nt.internal.getWidth(e)/2)+" "+Kl(Nt.internal.getHeight(e)/2)+" cm"),r.push(s+" 0 m"),r.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),r.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),r.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),r.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Kl(Nt.internal.getWidth(e)/2)+" "+Kl(Nt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 1451`),t},OffPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=[],n=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var s=Number((2*n).toFixed(5)),o=Number((s*Nt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Kl(Nt.internal.getWidth(e)/2)+" "+Kl(Nt.internal.getHeight(e)/2)+" cm"),r.push(s+" 0 m"),r.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),r.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),r.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),r.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 1452`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Nt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Nt.RadioButton.Cross.YesNormal,t.D[e]=Nt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=xi(e);t.scope=e.scope;var r=[],n=Nt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+nr(Nt.internal.getWidth(e)-2)+" "+nr(Nt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(nr(n.x1.x)+" "+nr(n.x1.y)+" m"),r.push(nr(n.x2.x)+" "+nr(n.x2.y)+" l"),r.push(nr(n.x4.x)+" "+nr(n.x4.y)+" m"),r.push(nr(n.x3.x)+" "+nr(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 1453`),t},YesPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=Nt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+nr(Nt.internal.getWidth(e))+" "+nr(Nt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+nr(Nt.internal.getWidth(e)-2)+" "+nr(Nt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(nr(r.x1.x)+" "+nr(r.x1.y)+" m"),n.push(nr(r.x2.x)+" "+nr(r.x2.y)+" l"),n.push(nr(r.x4.x)+" "+nr(r.x4.y)+" m"),n.push(nr(r.x3.x)+" "+nr(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 1454`),t},OffPushDown:function(e){var t=xi(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+nr(Nt.internal.getWidth(e))+" "+nr(Nt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` 1455`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};Nt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Nt.internal.getWidth(e),r=Nt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Nt.internal.getWidth=function(e){var t=0;return Qr(e)==="object"&&(t=Gk(e.Rect[2])),t},Nt.internal.getHeight=function(e){var t=0;return Qr(e)==="object"&&(t=Gk(e.Rect[3])),t};var kje=Dn.addField=function(e){if(Sje(this,e),!(e instanceof oi))throw new Error("Invalid argument passed to
1455jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Dn.AcroFormChoiceField=Eu,Dn.AcroFormListBox=Bu,Dn.AcroFormComboBox=Nu,Dn.AcroFormEditBox=jm,Dn.AcroFormButton=va,Dn.AcroFormPushButton=Em,Dn.AcroFormRadioButton=Su,Dn.AcroFormCheckBox=Bm,Dn.AcroFormTextField=hc,Dn.AcroFormPasswordField=Nm,Dn.AcroFormAppearance=Nt,Dn.AcroForm={ChoiceField:Eu,ListBox:Bu,ComboBox:Nu,EditBox:jm,Button:va,PushButton:Em,RadioButton:Su,CheckBox:Bm,TextField:hc,PasswordField:Nm,Appearance:Nt},Dt.AcroForm={ChoiceField:Eu,ListBox:Bu,ComboBox:Nu,EditBox:jm,Button:va,PushButton:Em,RadioButton:Su,CheckBox:Bm,TextField:hc,PasswordField:Nm,Appearance:Nt};var Ije=Dt.AcroForm;function CV(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},s=e.__addimage__.getImageFileTypeByImageData=function(k,D){var H,U,ee,ae,V,q=r;if((D=D||r)==="RGBA"||k.data!==void 0&&k.data instanceof Uint8ClampedArray&&"height"in k&&"width"in k)return"RGBA";if(L(k))for(V in n)for(ee=n[V],H=0;H<ee.length;H+=1){for(ae=!0,U=0;U<ee[H].length;U+=1)if(ee[H][U]!==void 0&&ee[H][U]!==k[U]){ae=!1;break}if(ae===!0){q=V;break}}else for(V in n)for(ee=n[V],H=0;H<ee.length;H+=1){for(ae=!0,U=0;U<ee[H].length;U+=1)if(ee[H][U]!==void 0&&ee[H][U]!==k.charCodeAt(U)){ae=!1;break}if(ae===!0){q=V;break}}return q===r&&D!==r&&(q=D),q},o=function k(D){for(var H=this.internal.write,U=this.internal.putStream,ee=(0,this.internal.getFilters)();ee.indexOf("FlateEncode")!==-1;)ee.splice(ee.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var ae=[];if(ae.push({key:"Type",value:"/XObject"}),ae.push({key:"Subtype",value:"/Image"}),ae.push({key:"Width",value:D.width}),ae.push({key:"Height",value:D.height}),D.colorSpace===y.INDEXED?ae.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(ae.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===y.DEVICE_CMYK&&ae.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ae.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&ae.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)&&D.transparency.length>0){for(var V="",q=0,G=D.transparency.length;q<G;q++)V+=D.transparency[q]+" "+D.transparency[q]+" ";ae.push({key:"Mask",value:"["+V+"]"})}D.sMask!==void 0&&ae.push({key:"SMask",value:D.objectId+1+" 0 R"});var Ae=D.filter!==void 0?["/"+D.filter]:void 0;if(U({data:D.data,additionalKeyValues:ae,alreadyAppliedFilters:Ae,objectId:D.objectId}),H("endobj"),"sMask"in D&&D.sMask!==void 0){var se,S=(se=D.sMaskBitsPerComponent)!==null&&se!==void 0?se:D.bitsPerComponent,Q={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:S,data:D.sMask};"filter"in D&&(Q.decodeParameters="/Predictor ".concat(D.predictor," /Colors 1 /BitsPerComponent ").concat(S," /Columns ").concat(D.width),Q.filter=D.filter),k.call(this,Q)}
1455if(D.colorSpace===y.INDEXED){var z=this.internal.newObject();U({data:I(new Uint8Array(D.palette)),objectId:z}),H("endobj")}},i=function(){var k=this.internal.collections[t+"images"];for(var D in k)o.call(this,k[D])},l=function(){var k,D=this.internal.collections[t+"images"],H=this.internal.write;for(var U in D)H("/I"+(k=D[U]).index,k.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var k=this.internal.collections[t+"images"];return c.call(this),k},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},f=function(k){return typeof e["process"+k.toUpperCase()]=="function"},h=function(k){return Qr(k)==="object"&&k.nodeType===1},m=function(k,D){if(k.nodeName==="IMG"&&k.hasAttribute("src")){var H=""+k.getAttribute("src");if(H.indexOf("data:image/")===0)return y0(unescape(H).split("base64,").pop());var U=e.loadFile(H,!0);if(U!==void 0)return U}if(k.nodeName==="CANVAS"){if(k.width===0||k.height===0)throw new Error("Given canvas must have data. Canvas width: "+k.width+", height: "+k.height);var ee;switch(D){case"PNG":ee="image/png";break;case"WEBP":ee="image/webp";break;default:ee="image/jpeg"}return y0(k.toDataURL(ee,1).split("base64,").pop())}},g=function(k){var D=this.internal.collections[t+"images"];if(D){for(var H in D)if(k===D[H].alias)return D[H]}},p=function(k,D,H){return k||D||(k=-96,D=-96),k<0&&(k=-1*H.width*72/k/this.internal.scaleFactor),D<0&&(D=-1*H.height*72/D/this.internal.scaleFactor),k===0&&(k=D*H.width/H.height),D===0&&(D=k*H.height/H.width),[k,D]},x=function(k,D,H,U,ee,ae){var V=p.call(this,H,U,ee),q=this.internal.getCoordinateString,G=this.internal.getVerticalCoordinateString,Ae=u.call(this);if(H=V[0],U=V[1],Ae[ee.index]=ee,ae){ae*=Math.PI/180;var se=Math.cos(ae),S=Math.sin(ae),Q=function(W){return W.toFixed(4)},z=[Q(se),Q(S),Q(-1*S),Q(se),0,0,"cm"]}this.internal.write("q"),ae?(this.internal.write([1,"0","0",1,q(k),G(D+U),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([q(H),"0","0",q(U),"0","0","cm"].join(" "))):this.internal.write([q(H),"0","0",q(U),q(k),G(D+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ee.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},j=e.__addimage__.sHashCode=function(k){var D,H,U=0;if(typeof k=="string")for(H=k.length,D=0;D<H;D++)U=(U<<5)-U+k.charCodeAt(D),U|=0;else if(L(k))for(H=k.byteLength/2,D=0;D<H;D++)U=(U<<5)-U+k[D],U|=0;return U},C=e.__addimage__.validateStringAsBase64=function(k){(k=k||"").toString().trim();var D=!0;return k.length===0&&(D=!1),k.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(k.substr(0,k.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(k.substr(-2))===!1&&(D=!1),D},T=e.__addimage__.extractImageFromDataUrl=function(k){if(k==null||!(k=k.trim()).startsWith("data:"))return null;var D=k.indexOf(",");return D<0?null:k.substring(0,D).trim().endsWith("base64")?k.substring(D+1):null};e.__addimage__.isArrayBuffer=function(k){return k instanceof ArrayBuffer};var L=e.__addimage__.isArrayBufferView=function(k){return k instanceof Int8Array||k instanceof Uint8Array||k instanceof Uint8ClampedArray||k instanceof Int16Array||k instanceof Uint16Array||k instanceof Int32Array||k instanceof Uint32Array||k instanceof Float32Array||k instanceof Float64Array},P=e.__addimage__.binaryStringToUint8Array=function(k){for(var D=k.length,H=new Uint8Array(D),U=0;U<D;U++)H[U]=k.charCodeAt(U);return H},I=e.__addimage__.arrayBufferToBinaryString=function(k){for(var D="",H=L(k)?k:new Uint8Array(k),U=0;U<H.length;U+=8192)D+=String.fromCharCode.apply(null,H.subarray(U,U+8192));return D};e.addImage=function(){var k,D,H,U,ee,ae,V,q,G;if(typeof arguments[1]=="number"?(D=r,H=arguments[1],U=arguments[2],ee=arguments[3],ae=arguments[4],V=arguments[5],q=arguments[6],G=arguments[7]):(D=arguments[1],H=arguments[2],U=arguments[3],ee=arguments[4],ae=arguments[5],V=arguments[6],q=arguments[7],G=arguments[8]),Qr(k=arguments[0])==="object"&&!h(k)&&"imageData"in k){var Ae=k;k=Ae.imageData,D=Ae.format||D||r,H=Ae.x||H||0,U=Ae.y||U||0,ee=Ae.w||Ae.width||ee,ae=Ae.h||Ae.height||ae,V=Ae.alias||V,q=Ae.compression||q,G=Ae.rotation||Ae.angle||G}var se=this.internal.getFilters();if(q===void 0&&se.indexOf("FlateEncode")!==-1&&(q="SLOW"),isNaN(H)||isNaN(U))throw new Error("Invalid coordinates passed to
1455jsPDF.addImage");c.call(this);var S=E.call(this,k,D,V,q);return x.call(this,H,U,ee,ae,S,G),this};var E=function(k,D,H,U){var ee,ae,V;if(typeof k=="string"&&s(k)===r){k=unescape(k);var q=O(k,!1);(q!==""||(q=e.loadFile(k,!0))!==void 0)&&(k=q)}if(h(k)&&(k=m(k,D)),D=s(k,D),!f(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((V=H)==null||V.length===0)&&(H=function(G){return typeof G=="string"||L(G)?j(G):L(G.data)?j(G.data):null}(k)),(ee=g.call(this,H))||(k instanceof Uint8Array||D==="RGBA"||(ae=k,k=P(k)),ee=this["process"+D.toUpperCase()](k,d.call(this),H,function(G){return G&&typeof G=="string"&&(G=G.toUpperCase()),G in e.image_compression?G:b.NONE}(U),ae)),!ee)throw new Error("An unknown error occurred whilst processing the image.");return ee},O=e.__addimage__.convertBase64ToBinaryString=function(k,D){D=typeof D!="boolean"||D;var H,U="";if(typeof k=="string"){var ee;H=(ee=T(k))!==null&&ee!==void 0?ee:k;try{U=y0(H)}catch(ae){if(D)throw C(H)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ae.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};e.getImageProperties=function(k){var D,H,U="";if(h(k)&&(k=m(k)),typeof k=="string"&&s(k)===r&&((U=O(k,!1))===""&&(U=e.loadFile(k)||""),k=U),H=s(k),!f(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(k instanceof Uint8Array||(k=P(k)),!(D=this["process"+H.toUpperCase()](k)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=H,D}})(Dt.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};Dt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,s,o,i=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(r.objId),u=r.pageContext.annotations,d=!1,f=0;f<u.length&&!d;f++)switch((n=u[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var h=0;h<u.length;h++){n=u[h];var m=this.internal.pdfEscape,g=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),b=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+i(n.bounds.x)+" "+l(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y)+"] ")+"/Contents ("+m(y(n.contents))+")",o+=" /Popup "+x.objId+" 0 R",o+=" /P "+c.objId+" 0 R",o+=" /T ("+m(y(b))+") >>",p.content=o;var j=p.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+i(n.bounds.x+30)+" "+l(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w+30)+" "+l(n.bounds.y)+"] ")+" /Parent "+j,n.open&&(o+=" /Open true"),o+=" >>",x.content=o,this.internal.write(p.objId,"0 R",x.objId,"0 R");break;case"freetext":s="/Rect ["+i(n.bounds.x)+" "+l(n.bounds.y)+" "+i(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y+n.bounds.h)+"] ";var C="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+m(g(n.contents))+")",o+=" /DS("+m(g(C))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var T=this.annotations._nameMap[n.options.name];n.options.pageNumber=T.page,n.options.top=T.y}else n.options.top||(n.options.top=0);if(s="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+m(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;default:var L=l(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+L+" "+n.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();
1455switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,s,o,i){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(r),y:u(n),w:c(r+s),h:u(n+o)},options:i,type:"link"})},e.textWithLink=function(r,n,s,o){var i,l,c=this.getTextWidth(r),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var d=this.splitTextToSize(r,l).length;i=Math.ceil(u*d)}else l=c,i=u;return this.text(r,n,s,o),s+=.2*u,o.align==="center"&&(n-=c/2),o.align==="right"&&(n-=c),this.link(n,s-u,l,i,o),c},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(Dt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
14557],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},i=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},l=e.__arabicParser__.isArabicEndLetter=function(p){return i(p)&&o(p)&&t[p.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(p){return i(p)&&s.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return i(p)&&o(p)&&t[p.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return i(p)&&o(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return i(p)&&o(p)&&t[p.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return i(p)&&o(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var x=0,y=r,b="",j=0;for(x=0;x<p.length;x+=1)y[p.charCodeAt(x)]!==void 0?(j++,typeof(y=y[p.charCodeAt(x)])=="number"&&(b+=String.fromCharCode(y),y=r,j=0),x===p.length-1&&(y=r,b+=p.charAt(x-(j-1)),x-=j-1,j=0)):(y=r,b+=p.charAt(x-j),x-=j,j=0);return b};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var h=e.__arabicParser__.getCorrectForm=function(p,x,y){return i(p)?o(p)===!1?-1:!u(p)||!i(x)&&!i(y)||!i(y)&&l(x)||l(p)&&!i(x)||l(p)&&c(x)||l(p)&&l(x)?0:d(p)&&i(x)&&!l(x)&&i(y)&&u(y)?3:l(p)||!i(y)?1:2:-1},m=function(p){var x=0,y=0,b=0,j="",C="",T="",L=(p=p||"").split("\\s+"),P=[];for(x=0;x<L.length;x+=1){for(P.push(""),y=0;y<L[x].length;y+=1)j=L[x][y],C=L[x][y-1],T=L[x][y+1],i(j)?(b=h(j,C,T),P[x]+=b!==-1?String.fromCharCode(t[j.charCodeAt(0)][b]):j):P[x]+=j;P[x]=f(P[x])}return P.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(x)){var b=0;for(y=[],b=0;b<x.length;b+=1)Array.isArray(x[b])?y.push([m(x[b][0]),x[b][1],x[b][2]]):y.push([m(x[b])]);p=y}else p=m(x);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])}(Dt.API),Dt.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(l){r=l}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(l){s=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o}
1455,set:function(l){o=l}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(l){i=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var s;if((r=r||"2d")!=="2d")return null;for(s in n)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=n[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Dt.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var m=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return m},set:function(p){m=p}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(p){g=p}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return n.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,u){n.call(this);var d=(u=u||{}).fontSize||this.getFontSize(),f=u.font||this.getFont(),h=u.scaleFactor||this.internal.scaleFactor,m=0,g=0,p=0,x=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var y=u.maxWidth;y>0?typeof c=="string"?c=this.splitTextToSize(c,y):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(j,C){return j.concat(x.splitTextToSize(C,y))},[])):c=Array.isArray(c)?c:[c];for(var b=0;b<c.length;b++)m<(p=this.getStringUnitWidth(c[b],{font:f})*d)&&(m=p);return m!==0&&(g=c.length),{w:m/=h,h:Math.max((g*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/h,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=e.cell=function(){var c;c=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var u=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,h=this.internal.__cell__.tableHeaderRow,m=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===c.lineNumber?(c.x=(u.x||0)+(u.width||0),c.y=u.y||0):u.y+u.height+c.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=f.top,m&&h&&(this.printHeaderRow(c.lineNumber,!0),c.y+=h[0].height)):c.y=u.y+u.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,r===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};e.table=function(c,u,d,f,h){if(n.call(this),!d)throw new Error("No data for PDF table.");var m,g,p,x,y=[],b=[],j=[],C={},T={},L=[],P=[],I=(h=h||{}).autoSize||!1,E=h.printHeaders!==!1,O=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,k=h.margins||Object.assign({width:this.getPageWidth()},t),D=typeof h.padding=="number"?h.padding:3,H=h.headerBackgroun
1455dColor||"#c8c8c8",U=h.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=E,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=O,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=U,this.setFontSize(O),f==null)b=y=Object.keys(d[0]),j=y.map(function(){return"left"});else if(Array.isArray(f)&&Qr(f[0])==="object")for(y=f.map(function(Ae){return Ae.name}),b=f.map(function(Ae){return Ae.prompt||Ae.name||""}),j=f.map(function(Ae){return Ae.align||"left"}),m=0;m<f.length;m+=1)T[f[m].name]=.7499990551181103*f[m].width;else Array.isArray(f)&&typeof f[0]=="string"&&(b=y=f,j=y.map(function(){return"left"}));if(I||Array.isArray(f)&&typeof f[0]=="string")for(m=0;m<y.length;m+=1){for(C[x=y[m]]=d.map(function(Ae){return Ae[x]}),this.setFont(void 0,"bold"),L.push(this.getTextDimensions(b[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=C[x],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)L.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);T[x]=Math.max.apply(null,L)+D+D,L=[]}if(E){var ee={};for(m=0;m<y.length;m+=1)ee[y[m]]={},ee[y[m]].text=b[m],ee[y[m]].align=j[m];var ae=l.call(this,ee,T);P=y.map(function(Ae){return new o(c,u,T[Ae],ae,ee[Ae].text,void 0,ee[Ae].align)}),this.setTableHeaderRow(P),this.printHeaderRow(1,!1)}var V=f.reduce(function(Ae,se){return Ae[se.name]=se.align,Ae},{});for(m=0;m<d.length;
vendor: 4,132 bytes, line 1455
1455m+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:m,data:d[m]},this);var q=l.call(this,d[m],T);for(p=0;p<y.length;p+=1){var G=d[m][y[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:m,col:p,data:G},this),i.call(this,new o(c,u,T[y[p]],q,G,m+2,V[y[p]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=u,this};var l=function(c,u){var d=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(c).map(function(m){var g=c[m];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,u[m]-d-d)},this).map(function(m){return this.getLineHeightFactor()*m.length*f/h+d+d},this).reduce(function(m,g){return Math.max(m,g)},0)};e.setTableHeaderRow=function(c){n.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,u){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],m=0;m<this.internal.__cell__.tableHeaderRow.length;m+=1){d=this.internal.__cell__.tableHeaderRow[m].clone(),u&&(d.y=this.internal.__cell__.margins.top||0,h.push(d)),d.lineNumber=c;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,d),this.setTextColor(g)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),r=!1}}(Dt.API);var jV={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},EV=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],c2=CV(EV),BV=[100,200,300,400,500,600,700,800,900],Fje=CV(BV);function Nb(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(o){return jV[o=o||"normal"]?o:"normal"}(e.style),n=function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400}(e.weight),s=function(o){return typeof c2[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:s,src:e.src||[],ref:e.ref||{name:t,style:[s,r,n].join(" ")}}}function Wk(e,t,r,n){var s;for(s=r;s>=0&&s<t.length;s+=n)if(e[t[s]])return e[t[s]];for(s=r;s>=0&&s<t.length;s-=n)if(e[t[s]])return e[t[s]]}var Tje={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Yk={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Xk(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Zk(e){return e.trimLeft()}function Pje(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Lje(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Md,Dg,Jk,eI,tI,Sb=["times"];function rI(e,t,r,n,s){var o=4,i=aI;switch(s){case Dt.API.image_compression.FAST:o=1,i=nI;break;case Dt.API.image_compression.MEDIUM:o=6,i=sI;break;case Dt.API.image_compression.SLOW:o=9,i=oI}e=function(c,u,d,f){for(var h,m=c.length/u,g=new Uint8Array(c.length+m),p=[Dje,nI,aI,sI,oI],x=0;x<m;x+=1){var y=x*u,b=c.subarray(y,y+u);if(f)g.set(f(b,d,h),y+x);else{for(var j=p.length,C=[],T=0;T<j;T+=1)C[T]=p[T](b,d,h);var L=Mje(C.concat());g.set(C[L],y+x)}h=b}return g}(e,t,Math.ceil(r*n/8),i);var l=r2(e,{level:o});return Dt.API.__addimage__.arrayBufferToBinaryString(l)}function Dje(e){var t=Array.apply([],e);return t.unshift(0),t}function nI(e,t){var r=e.length,n=[];n[0]=1;for(var s=0;s<r;s+=1){var o=e[s-t]||0;n[s+1]=e[s]-o+256&255}return n}function aI(e,t,r){var n=e.length,s=[];s[0]=2;for(var o=0;o<n;o+=1){var i=r&&r[o]||0;s[o+1]=e[o]-i+256&255}return s}function sI(e,t,r){var n=e.length,s=[];s[0]=3;for(var o=0;o<n;
1455o+=1){var i=e[o-t]||0,l=r&&r[o]||0;s[o+1]=e[o]+256-(i+l>>>1)&255}return s}function oI(e,t,r){var n=e.length,s=[];s[0]=4;for(var o=0;o<n;o+=1){var i=Rje(e[o-t]||0,r&&r[o]||0,r&&r[o-t]||0);s[o+1]=e[o]-i+256&255}return s}function Rje(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),s=Math.abs(e-r),o=Math.abs(e+t-r-r);return n<=s&&n<=o?e:s<=o?t:r}function Mje(e){var t=e.map(function(r){return r.reduce(function(n,s){return n+Math.abs(s)},0)});return t.indexOf(Math.min.apply(null,t))}function kb(e,t,r){var n=t*r,s=Math.floor(n/8),o=16-(n-8*s+r),i=(1<<r)-1;return NV(e,s)>>o&i}function iI(e,t,r,n){var s=r*n,o=Math.floor(s/8),i=16-(s-8*o+n),l=(1<<n)-1,c=(t&l)<<i;(function(u,d,f){if(d+1<u.byteLength)u.setUint16(d,f,!1);else{var h=f>>8&255;u.setUint8(d,h)}})(e,o,NV(e,o)&~(l<<i)&65535|c)}function NV(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Oje(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,s=e[t++],o=s>>7,i=1<<1+(7&s);e[t++],e[t++];var l=null,c=null;o&&(l=t,c=i,t+=3*i);var u=!0,d=[],f=0,h=null,m=0,g=null;for(this.width=r,this.height=n;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,g=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((k=e[t++])>=0))throw Error("Invalid block size");if(k===0)break;t+=k}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];f=e[t++]|e[t++]<<8,h=e[t++],1&p||(h=null),m=p>>2&7,t++;break;case 254:for(;;){if(!((k=e[t++])>=0))throw Error("Invalid block size");if(k===0)break;t+=k}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var x=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,j=e[t++]|e[t++]<<8,C=e[t++],T=C>>6&1,L=1<<1+(7&C),P=l,I=c,E=!1;C>>7&&(E=!0,P=t,I=L,t+=3*L);var O=t;for(t++;;){var k;if(!((k=e[t++])>=0))throw Error("Invalid block size");if(k===0)break;t+=k}d.push({x,y,width:b,height:j,has_local_palette:E,palette_offset:P,palette_size:I,data_offset:O,data_length:t-O,transparent_index:h,interlaced:!!T,delay:f,disposal:m});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return g},this.frameInfo=function(D){if(D<0||D>=d.length)throw new Error("Frame index out of range.");return d[D]},this.decodeAndBlitFrameBGRA=function(D,H){var U=this.frameInfo(D),ee=U.width*U.height;if(ee>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ae=new Uint8Array(ee);lI(e,U.data_offset,ae,ee);var V=U.palette_offset,q=U.transparent_index;q===null&&(q=256);var G=U.width,Ae=r-G,se=G,S=4*(U.y*r+U.x),Q=4*((U.y+U.height)*r+U.x),z=S,W=4*Ae;U.interlaced===!0&&(W+=4*r*7);for(var ne=8,X=0,te=ae.length;X<te;++X){var fe=ae[X];if(se===0&&(se=G,(z+=W)>=Q&&(W=4*Ae+4*r*(ne-1),z=S+(G+Ae)*(ne<<1),ne>>=1)),fe===q)z+=4;else{var pe=e[V+3*fe],_e=e[V+3*fe+1],xe=e[V+3*fe+2];H[z++]=xe,H[z++]=_e,H[z++]=pe,H[z++]=255}--se}},this.decodeAndBlitFrameRGBA=function(D,H){var U=this.frameInfo(D),ee=U.width*U.height;if(ee>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ae=new Uint8Array(ee);lI(e,U.data_offset,ae,ee);var V=U.palette_offset,q=U.transparent_index;q===null&&(q=256);var G=U.width,Ae=r-G,se=G,S=4*(U.y*r+U.x),Q=4*((U.y+U.height)*r+U.x),z=S,W=4*Ae;U.interlaced===!0&&(W+=4*r*7);for(var ne=8,X=0,te=ae.length;X<te;++X){var fe=ae[X];if(se===0&&(se=G,(z+=W)>=Q&&(W=4*Ae+4*r*(ne-1),z=S+(G+Ae)*(ne<<1),ne>>=1)),fe===q)z+=4;else{var pe=e[V+3*fe],_e=e[V+3*fe+1],xe=e[V+3*fe+2];H[z++]=pe,H[z++]=_e,H[z++]=xe,H[z++]=255}--se}}}function lI(e,t,r,n){for(var s=e[t++],o=1<<s,i=o+1,l=i+1,c=s+1,u=(1<<c)-1,d=0,f=0,h=0,m=e[t++],g=new Int32Array(4096),p=null;;){for(;d<16&&m!==0;)f|=e[t++]<<d,d+=8,m===1?m=e[t++]:--m;if(d<c)break;var x=f&u;if(f>>=c,d-=c,x!==o){if(x===i)break;for(var y=x<l?x:p,b=0,j=y;j>o;)j=g[j]>>8,++b;var C=j;if(h+b+(y!==x?1:0)>n)return void Wr.log("Warning, gif stream longer than expected.");r[h++]=C;var T=h+=b;for(y!==x&&(r[h++]=C),j=y;b--;)j=g[j],r[--T]=255&j,j>>=8;p!==null&&l<4096&&(g[l++]=p<<8|C,l>=u+1&&c<12&&(++c,u=u<<1|1)),p=x}else l=i+1,u=(1<<(c=s+1))-1,p=null}return h!==n&&Wr.log("Warning, gif stream shorter than expected."),r}/** 1456 * @license 1457 Copyright (c) 2008, Adobe Systems Incorporated 1458 All rights reserved. 1459 1460 Redistribution and use in source and binary forms, with or without 1461 modification, are permitted provided that the following conditions are 1462 met: 1463 1464 * Redistributions of source code must retain the above copyright notice, 1465 this list of conditions and the following disclaimer. 1466 1467 * Redistributions in binary form must reproduce the above copyright 1468 notice, this list of conditions and the following disclaimer in the 1469 documentation and/or other materials provided with the distribution. 1470 1471 * Neither the name of Adobe Systems Incorporated nor the names of its 1472 contributors may be used to endorse or promote products derived from 1473 this software without specific prior written permission. 1474 1475 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 1476 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 1477 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1478 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 1479 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1480 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 1481 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 1482 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1483 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 1484 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1485 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1486*/function Ib(e){var t,r,n,s,o,i=Math.floor,l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(64),f=new Array(65535),h=new Array(65535),m=new Array(64),g=new Array(64),p=[],x=0,y=7,b=new Array(64),j=new Array(64),C=new Array(64),T=new Array(256),L=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],k=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],D=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ee=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ae(S,Q){for(var z=0,W=0,ne=new Array,X=1;X<=16;X++){for(var te=1;te<=S[X];te++)ne[Q[W]]=[],ne[Q[W]][0]=z,ne[Q[W]][1]=X,W++,z++;z*=2}return ne}function V(S){for(var Q=S[0],z=S[1]-1;z>=0;)Q&1<<z&&(x|=1<<y),z--,--y<0&&(x==255?(q(255),q(0)):q(x),y=7,x=0)}function q(S){p.push(S)}function G(S){q(S>>8&255),q(255&S)}function Ae(S,Q,z,W,ne){for(var X,te=ne[0],fe=ne[240],pe=function(De,le){var me,we,Fe,ze,Pe,$e,ct,pt,it,gt,st=0;for(it=0;it<8;++it){me=De[st],we=De[st+1],Fe=De[st+2],ze=De[st+3],Pe=De[st+4],$e=De[st+5],ct=De[st+6];var Ut=me+(pt=De[st+7]),Lt=me-pt,St=we+ct,Mt=we-ct,tr=Fe+$e,wt=Fe-$e,ft=ze+Pe,ie=ze-Pe,Ue=Ut+ft,dt=Ut-ft,Re=St+tr,Xe=St-tr;De[st]=Ue+Re,De[st+4]=Ue-Re;var lt=.707106781*(Xe+dt);De[st+2]=dt+lt,De[st+6]=dt-lt;var Le=.382683433*((Ue=ie+wt)-(Xe=Mt+Lt)),ut=.5411961*Ue+Le,Qt=1.306562965*Xe+Le,mt=.707106781*(Re=wt+Mt),ot=Lt+mt,or=Lt-mt;De[st+5]=or+ut,De[st+3]=or-ut,De[st+1]=ot+Qt,De[st+7]=ot-Qt,st+=8}for(st=0,it=0;it<8;++it){me=De[st],we=De[st+8],Fe=De[st+16],ze=De[st+24],Pe=De[st+32],$e=De[st+40],ct=De[st+48];var Fr=me+(pt=De[st+56]),Ar=me-pt,Sr=we+ct,Tr=we-ct,Pr=Fe+$e,fr=Fe-$e,_a=ze+Pe,Ns=ze-Pe,Qn=Fr+_a,Tn=Fr-_a,qt=Sr+Pr,bn=Sr-Pr;De[st]=Qn+qt,De[st+32]=Qn-qt;var wn=.707106781*(bn+Tn);De[st+16]=Tn+wn,De[st+48]=Tn-wn;var ir=.382683433*((Qn=Ns+fr)-(bn=Tr+Ar)),Yr=.5411961*Qn+ir,za=1.306562965*bn+ir,mn=.707106781*(qt=fr+Tr),Ca=Ar+mn,qr=Ar-mn;De[st+40]=qr+Yr,De[st+24]=qr-Yr,De[st+8]=Ca+za,De[st+56]=Ca-za,st++}for(it=0;it<64;++it)gt=De[it]*le[it],m[it]=gt>0?gt+.5|0:gt-.5|0;return m}(S,Q),_e=0;_e<64;++_e)g[P[_e]]=pe[_e];var xe=g[0]-z;z=g[0],xe==0?V(W[0]):(V(W[h[X=32767+xe]]),V(f[X]));for(var Be=63;Be>0&&g[Be]==0;)Be--;if(Be==0)return V(te),z;for(var He,R=1;R<=Be;){for(var be=R;g[R]==0&&R<=Be;)++R;var tt=R-be;if(tt>=16){He=tt>>4;for(var at=1;at<=He;++at)V(fe);tt&=15}X=32767+g[R],V(ne[(tt<<4)+h[X]]),V(f[X]),R++}return Be!=63&&V(te),z}function se(S){S=Math.min(Math.max(S,1),100),o!=S&&(function(Q){for(var z=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var ne=i((z[W]*Q+50)/100);ne=Math.min(Math.max(ne,1),255),l[P[W]]=ne}for(var X=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],te=0;te<64;te++){var fe=i((X[te]*Q+50)/100);fe=Math.min(Math.max(fe,1),255),c[P[te]]=fe}for(var pe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_e=0,xe=0;xe<8;xe++)for(var Be=0;Be<8;Be++)u[_e]=1/(l[P[_e]]*pe[xe]*pe[Be]*8),d[_e]=1/(c[P[_e]]*pe[xe]*pe[Be]*8),_e++}
vendor: 5,642 bytes, lines 1486-1492
1486(S<50?Math.floor(5e3/S):Math.floor(200-2*S)),o=S)}this.encode=function(S,Q){Q&&se(Q),p=new Array,x=0,y=7,G(65496),G(65504),G(16),q(74),q(70),q(73),q(70),q(0),q(1),q(1),q(0),G(1),G(1),q(0),q(0),function(){G(65499),G(132),q(0);for(var we=0;we<64;we++)q(l[we]);q(1);for(var Fe=0;Fe<64;Fe++)q(c[Fe])}(),function(we,Fe){G(65472),G(17),q(8),G(Fe),G(we),q(3),q(1),q(17),q(0),q(2),q(17),q(1),q(3),q(17),q(1)}(S.width,S.height),function(){G(65476),G(418),q(0);for(var we=0;we<16;we++)q(I[we+1]);for(var Fe=0;Fe<=11;Fe++)q(E[Fe]);q(16);for(var ze=0;ze<16;ze++)q(O[ze+1]);for(var Pe=0;Pe<=161;Pe++)q(k[Pe]);q(1);for(var $e=0;$e<16;$e++)q(D[$e+1]);for(var ct=0;ct<=11;ct++)q(H[ct]);q(17);for(var pt=0;pt<16;pt++)q(U[pt+1]);for(var it=0;it<=161;it++)q(ee[it])}(),G(65498),G(12),q(3),q(1),q(0),q(2),q(17),q(3),q(17),q(0),q(63),q(0);var z=0,W=0,ne=0;x=0,y=7,this.encode.displayName="_encode_";for(var X,te,fe,pe,_e,xe,Be,He,R,be=S.data,tt=S.width,at=S.height,De=4*tt,le=0;le<at;){for(X=0;X<De;){for(_e=De*le+X,Be=-1,He=0,R=0;R<64;R++)xe=_e+(He=R>>3)*De+(Be=4*(7&R)),le+He>=at&&(xe-=De*(le+1+He-at)),X+Be>=De&&(xe-=X+Be-De+4),te=be[xe++],fe=be[xe++],pe=be[xe++],b[R]=(L[te]+L[fe+256|0]+L[pe+512|0]>>16)-128,j[R]=(L[te+768|0]+L[fe+1024|0]+L[pe+1280|0]>>16)-128,C[R]=(L[te+1280|0]+L[fe+1536|0]+L[pe+1792|0]>>16)-128;z=Ae(b,u,z,t,n),W=Ae(j,d,W,r,s),ne=Ae(C,d,ne,r,s),X+=32}le+=8}if(y>=0){var me=[];me[1]=y+1,me[0]=(1<<y+1)-1,V(me)}return G(65497),new Uint8Array(p)},e=e||50,function(){for(var S=String.fromCharCode,Q=0;Q<256;Q++)T[Q]=S(Q)}(),t=ae(I,E),r=ae(D,H),n=ae(O,k),s=ae(U,ee),function(){for(var S=1,Q=2,z=1;z<=15;z++){for(var W=S;W<Q;W++)h[32767+W]=z,f[32767+W]=[],f[32767+W][1]=z,f[32767+W][0]=W;for(var ne=-(Q-1);ne<=-S;ne++)h[32767+ne]=z,f[32767+ne]=[],f[32767+ne][1]=z,f[32767+ne][0]=Q-1+ne;S<<=1,Q<<=1}}(),function(){for(var S=0;S<256;S++)L[S]=19595*S,L[S+256|0]=38470*S,L[S+512|0]=7471*S+32768,L[S+768|0]=-11059*S,L[S+1024|0]=-21709*S,L[S+1280|0]=32768*S+8421375,L[S+1536|0]=-27439*S,L[S+1792|0]=-5329*S}(),se(e)}/** 1487 * @license 1488 * Copyright (c) 2017 Aras Abbasi 1489 * 1490 * Licensed under the MIT License. 1491 * http://opensource.org/licenses/mit-license 1492 */function $o(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function cI(e){function t(E){if(!E)throw Error("assert :P")}function r(E,O,k){for(var D=0;4>D;D++)if(E[O+D]!=k.charCodeAt(D))return!0;return!1}function n(E,O,k,D,H){for(var U=0;U<H;U++)E[O+U]=k[D+U]}function s(E,O,k,D){for(var H=0;H<D;H++)E[O+H]=k}function o(E){return new Int32Array(E)}function i(E,O){for(var k=[],D=0;D<E;D++)k.push(new O);return k}function l(E,O){var k=[];return function D(H,U,ee){for(var ae=ee[U],V=0;V<ae&&(H.push(ee.length>U+1?[]:new O),!(ee.length<U+1));V++)D(H[V],U+1,ee)}(k,0,E),k}var c=function(){var E=this;function O(v,w){for(var F=1<<w-1>>>0;v&F;)F>>>=1;return F?(v&F-1)+F:v}function k(v,w,F,M,K){t(!(M%F));do v[w+(M-=F)]=K;while(0<M)}function D(v,w,F,M,K){if(t(2328>=K),512>=K)var Y=o(512);else if((Y=o(K))==null)return 0;return function(Z,re,oe,ue,ye,Ie){var de,Ce,Se=re,Ve=1<<oe,ke=o(16),Ke=o(16);for(t(ye!=0),t(ue!=null),t(Z!=null),t(0<oe),Ce=0;Ce<ye;++Ce){if(15<ue[Ce])return 0;++ke[ue[Ce]]}if(ke[0]==ye)return 0;for(Ke[1]=0,de=1;15>de;++de){if(ke[de]>1<<de)return 0;Ke[de+1]=Ke[de]+ke[de]}for(Ce=0;Ce<ye;++Ce)de=ue[Ce],0<ue[Ce]&&(Ie[Ke[de]++]=Ce);if(Ke[15]==1)return(ue=new H).g=0,ue.value=Ie[0],k(Z,Se,1,Ve,ue),Ve;var Ge,nt=-1,rt=Ve-1,Ot=0,Bt=1,cr=1,Tt=1<<oe;for(Ce=0,de=1,ye=2;de<=oe;++de,ye<<=1){if(Bt+=cr<<=1,0>(cr-=ke[de]))return 0;for(;0<ke[de];--ke[de])(ue=new H).g=de,ue.value=Ie[Ce++],k(Z,Se+Ot,ye,Tt,ue),Ot=O(Ot,de)}for(de=oe+1,ye=2;15>=de;++de,ye<<=1){if(Bt+=cr<<=1,0>(cr-=ke[de]))return 0;for(;0<ke[de];--ke[de]){if(ue=new H,(Ot&rt)!=nt){for(Se+=Tt,Ge=1<<(nt=de)-oe;15>nt&&!(0>=(Ge-=ke[nt]));)++nt,Ge<<=1;Ve+=Tt=1<<(Ge=nt-oe),Z[re+(nt=Ot&rt)].g=Ge+oe,Z[re+nt].value=Se-re-nt}ue.g=de-oe,ue.value=Ie[Ce++],k(Z,Se+(Ot>>oe),ye,Tt,ue),Ot=O(Ot,de)}}return Bt!=2*Ke[15]-1?0:Ve}(v,w,F,M,K,Y)}function H(){this.value=this.g=0}function U(){this.value=this.g=0}function ee(){this.G=i(5,H),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=i(pd,U)}function ae(v,w,F,M){t(v!=null),t(w!=null),t(2147483648>M),v.Ca=254,v.I=0,v.b=-8,v.Ka=0,v.oa=w,v.pa=F,v.Jd=w,v.Yc=F+M,v.Zc=4<=M?F+M-4+1:F,te(v)}function V(v,w){for(var F=0;0<w--;)F|=pe(v,128)<<w;return F}function q(v,w){var F=V(v,w);return fe(v)?-F:F}function G(v,w,F,M){var K,Y=0;for(t(v!=null),t(w!=null),t(4294967288>M),v.Sb=M,v.Ra=0,v.u=0,v.h=0,4<M&&(M=4),K=0;K<M;++K)Y+=w[F+K]<<8*K;v.Ra=Y,v.bb=M,v.oa=w,v.pa=F}function Ae(v){for(;8<=v.u&&v.bb<v.Sb;)v.Ra>>>=8,v.Ra+=v.oa[v.pa+v.bb]<<ms-8>>>0,++v.bb,v.u-=8;W(v)&&(v.h=1,v.u=0)}function se(v,w){if(t(0<=w),!v.h&&w<=ff){var F=z(v)&Yc[w];return v.u+=w,Ae(v),F}return v.h=1,v.u=0}function S(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function z(v){return v.Ra>>>(v.u&ms-1)>>>0}function W(v){return t(v.bb<=v.Sb),v.h||v.bb==v.Sb&&v.u>ms}function ne(v,w){v.u=w,v.h=W(v)}function X(v){v.u>=Ts&&(t(v.u>=Ts),Ae(v))}function te(v){t(v!=null&&v.oa!=null),v.pa<v.Zc?(v.I=(v.oa[v.pa++]|v.I<<8)>>>0,v.b+=8):(t(v!=null&&v.oa!=null),v.pa<v.Yc?(v.b+=8,v.I=v.oa[v.pa++]|v.I<<8):v.Ka?v.b=0:(v.I<<=8,v.b+=8,v.Ka=1))}function fe(v){return V(v,1)}function pe(v,w){var F=v.Ca;0>v.b&&te(v);var M=v.b,K=F*w>>>8,Y=(v.I>>>
vendor: 7,143 bytes, line 1492
1492M>K)+0;for(Y?(F-=K,v.I-=K+1<<M>>>0):F=K+1,M=F,K=0;256<=M;)K+=8,M>>=8;return M=7^K+gd[M],v.b-=M,v.Ca=(F<<M)-1,Y}function _e(v,w,F){v[w+0]=F>>24&255,v[w+1]=F>>16&255,v[w+2]=F>>8&255,v[w+3]=255&F}function xe(v,w){return v[w+0]|v[w+1]<<8}function Be(v,w){return xe(v,w)|v[w+2]<<16}function He(v,w){return xe(v,w)|xe(v,w+2)<<16}function R(v,w){var F=1<<w;return t(v!=null),t(0<w),v.X=o(F),v.X==null?0:(v.Mb=32-w,v.Xa=w,1)}function be(v,w){t(v!=null),t(w!=null),t(v.Xa==w.Xa),n(w.X,0,v.X,0,1<<w.Xa)}function tt(){this.X=[],this.Xa=this.Mb=0}function at(v,w,F,M){t(F!=null),t(M!=null);var K=F[0],Y=M[0];return K==0&&(K=(v*Y+w/2)/w),Y==0&&(Y=(w*K+v/2)/v),0>=K||0>=Y?0:(F[0]=K,M[0]=Y,1)}function De(v,w){return v+(1<<w)-1>>>w}function le(v,w){return((4278255360&v)+(4278255360&w)>>>0&4278255360)+((16711935&v)+(16711935&w)>>>0&16711935)>>>0}function me(v,w){E[w]=function(F,M,K,Y,Z,re,oe){var ue;for(ue=0;ue<Z;++ue){var ye=E[v](re[oe+ue-1],K,Y+ue);re[oe+ue]=le(F[M+ue],ye)}}}function we(){this.ud=this.hd=this.jd=0}function Fe(v,w){return((4278124286&(v^w))>>>1)+(v&w)>>>0}function ze(v){return 0<=v&&256>v?v:0>v?0:255<v?255:void 0}function Pe(v,w){return ze(v+(v-w+.5>>1))}function $e(v,w,F){return Math.abs(w-F)-Math.abs(v-F)}function ct(v,w,F,M,K,Y,Z){for(M=Y[Z-1],F=0;F<K;++F)Y[Z+F]=M=le(v[w+F],M)}function pt(v,w,F,M,K){var Y;for(Y=0;Y<F;++Y){var Z=v[w+Y],re=Z>>8&255,oe=16711935&(oe=(oe=16711935&Z)+((re<<16)+re));M[K+Y]=(4278255360&Z)+oe>>>0}}function it(v,w){w.jd=255&v,w.hd=v>>8&255,w.ud=v>>16&255}function gt(v,w,F,M,K,Y){var Z;for(Z=0;Z<M;++Z){var re=w[F+Z],oe=re>>>8,ue=re,ye=255&(ye=(ye=re>>>16)+((v.jd<<24>>24)*(oe<<24>>24)>>>5));ue=255&(ue=(ue+=(v.hd<<24>>24)*(oe<<24>>24)>>>5)+((v.ud<<24>>24)*(ye<<24>>24)>>>5)),K[Y+Z]=(4278255360&re)+(ye<<16)+ue}}function st(v,w,F,M,K){E[w]=function(Y,Z,re,oe,ue,ye,Ie,de,Ce){for(oe=Ie;oe<de;++oe)for(Ie=0;Ie<Ce;++Ie)ue[ye++]=K(re[M(Y[Z++])])},E[v]=function(Y,Z,re,oe,ue,ye,Ie){var de=8>>Y.b,Ce=Y.Ea,Se=Y.K[0],Ve=Y.w;if(8>de)for(Y=(1<<Y.b)-1,Ve=(1<<de)-1;Z<re;++Z){var ke,Ke=0;for(ke=0;ke<Ce;++ke)ke&Y||(Ke=M(oe[ue++])),ye[Ie++]=K(Se[Ke&Ve]),Ke>>=de}else E["VP8LMapColor"+F](oe,ue,Se,Ve,ye,Ie,Z,re,Ce)}}function Ut(v,w,F,M,K){for(F=w+F;w<F;){var Y=v[w++];M[K++]=Y>>16&255,M[K++]=Y>>8&255,M[K++]=255&Y}}function Lt(v,w,F,M,K){for(F=w+F;w<F;){var Y=v[w++];M[K++]=Y>>16&255,M[K++]=Y>>8&255,M[K++]=255&Y,M[K++]=Y>>24&255}}function St(v,w,F,M,K){for(F=w+F;w<F;){var Y=(Z=v[w++])>>16&240|Z>>12&15,Z=240&Z|Z>>28&15;M[K++]=Y,M[K++]=Z}}function Mt(v,w,F,M,K){for(F=w+F;w<F;){var Y=(Z=v[w++])>>16&248|Z>>13&7,Z=Z>>5&224|Z>>3&31;M[K++]=Y,M[K++]=Z}}function tr(v,w,F,M,K){for(F=w+F;w<F;){var Y=v[w++];M[K++]=255&Y,M[K++]=Y>>8&255,M[K++]=Y>>16&255}}function wt(v,w,F,M,K,Y){if(Y==0)for(F=w+F;w<F;)_e(M,((Y=v[w++])[0]>>24|Y[1]>>8&65280|Y[2]<<8&16711680|Y[3]<<24)>>>0),K+=32;else n(M,K,v,w,F)}function ft(v,w){E[w][0]=E[v+"0"],E[w][1]=E[v+"1"],E[w][2]=E[v+"2"],E[w][3]=E[v+"3"],E[w][4]=E[v+"4"],E[w][5]=E[v+"5"],E[w][6]=E[v+"6"],E[w][7]=E[v+"7"],E[w][8]=E[v+"8"],E[w][9]=E[v+"9"],E[w][10]=E[v+"10"],E[w][11]=E[v+"11"],E[w][12]=E[v+"12"],E[w][13]=E[v+"13"],E[w][14]=E[v+"0"],E[w][15]=E[v+"0"]}function ie(v){return v==ay||v==sy||v==vp||v==oy}function Ue(){this.eb=[],this.size=this.A=this.fb=0}function dt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Re(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ue,this.f.kb=new dt,this.sd=null}function Xe(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Le(v){return alert("todo:WebPSamplerProcessPlane"),v.T}function ut(v,w){var F=v.T,M=w.ba.f.RGBA,K=M.eb,Y=M.fb+v.ka*M.A,Z=bo[w.ba.S],re=v.y,oe=v.O,ue=v.f,ye=v.N,Ie=v.ea,de=v.W,Ce=w.cc,Se=w.dc,Ve=w.Mc,ke=w.Nc,Ke=v.ka,Ge=v.ka+v.T,nt=v.U,rt=nt+1>>1;for(Ke==0?Z(re,oe,null,null,ue,ye,Ie,de,ue,ye,Ie,de,K,Y,null,null,nt):(Z(w.ec,w.fc,re,oe,Ce,Se,Ve,ke,ue,ye,Ie,de,K,Y-M.A,K,Y,nt),++F);Ke+2<Ge;Ke+=2)Ce=ue,Se=ye,Ve=Ie,ke=de,ye+=v.Rc,de+=v.Rc,Y+=2*M.A,Z(re,(oe+=2*v.fa)-v.fa,re,oe,Ce,Se,Ve,ke,ue,ye,Ie,de,K,Y-M.A,K,Y,nt);return oe+=v.fa,v.j+Ge<v.o?(n(w.ec,w.fc,re,oe,nt),n(w.cc,w.dc,ue,ye,rt),n(w.Mc,w.Nc,Ie,de,rt),F--):1&Ge||Z(re,oe,null,null,ue,ye,Ie,de,ue,ye,Ie,de,K,Y+M.A,null,null,nt),F}function Qt(v,w,F){var M=v.F,K=[v.J];if(M!=null){var Y=v.U,Z=w.ba.S,re=Z==xp||Z==vp;w=w.ba.f.RGBA;var oe=[0],ue=v.ka;oe[0]=v.T,v.Kb&&(ue==0?--oe[0]:(--ue,K[0]-=v.width),v.j+v.ka+v.T==v.o&&(oe[0]=v.o-v.j-ue));var ye=w.eb;ue=w.fb+ue*w.A,v=sE(M,K[0],v.width,Y,oe,ye,ue+(re?0:3),w.A),t(F==oe),v&&ie(Z)&&gf(ye,ue,re,Y,oe,w.A)}return 0}function mt(v){var w=v.ma,F=w.ba.S,M=11>F,K=F==pp||F==gp||F==xp||F==ny||F==12||ie(F);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!vo(w.Oa,v,K?11:12))return 0;if(K&&ie(F)&&Ki(),v.da)alert("todo:use_scaling");else{if(M){if(w.Ib=Le,v.Kb){if(F=v.U+1>>1,w.memory=o(v.U+2*F),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+v.U,w.Mc=w.cc,w.Nc=w.dc+F,w.Ib=ut,Ki()}}else alert("todo:EmitYUV");K&&(w.Jb=Qt,M&&jn())}if(M&&!bE){for(v=0;256>v;++v)I9[v]=89858*(v-128)+bp>>yp,P9[v]=-22014*(v-128)+bp,T9[v]=-45773*(v-128),F9[v]=113618*(v-128)+bp>>yp;for(v=vf;v<cy;++v)w=76283*(v-16)+bp>>yp,L9[v-vf]=Sa(w,255),D9[v-vf]=Sa(w+8>>4,15);bE=1}return 1}function ot(v){var w=v.ma,F=v.U,M=v.T;return t(!(1&v.ka)),0>=F||0>=M?0:(F=w.Ib(v,w),w.Jb!=null&&w.Jb(v,w,F),w.Dc+=F,1)}function or(v){v.ma.memory=null}function Fr(v,w,F,M){return se(v,8)!=47?0:(w[0]=se(v,14)+1,F[0]=se(v,14)+1,M[0]=se(v,1),se(v,3)!=0?0:!v.h)}function Ar(v,w){if(4>v)return v+1;var F=v-2>>1;return(2+(1&v)<<F)+se(w,F)+1}function Sr(v,w){return 120<w?w-120:1<=(F=((F=g9[w-1])>>4)*v+(8-(15&F)))?F:1;var F}function Tr(v,w,F){var M=z(F),K=v[w+=255&M].g-8;return 0<K&&(ne(F,F.u+8),M=z(F),w+=v[w].value,w+=M&(1<<K)-1),ne(F,F.u+v[w].g),v[w].value}function Pr(v,w,F){return F.g+=v.g,F.value+=v.value<<w>>>0,t(8>=F.g),v.g}function fr(v,w,F){var M=v.xc;return t((w=M==0?0:v.vc[v.md*(F>>M)+(w>>M)])<v.Wb),v.Ya[w]}function _a(v,w,F,M){var K=v.ab,Y=v.c*w,Z=v.C;w=Z+w;var re=F,oe=M;for(M=v.Ta,F=v.Ua;0<K--;){var ue=v.gc[K],ye=Z,Ie=w,de=re,Ce=oe,Se=(oe=M,re=F,ue.Ea);switch(t(ye<Ie),t(Ie<=ue.nc),ue.hc){case 2:xd(de,Ce,(Ie-ye)*Se,oe,re);break;case 0:var Ve=ye,ke=Ie,Ke=oe,Ge=re,nt=(Tt=ue).Ea;Ve==0&&(Fl(de,Ce,null,null,1,Ke,Ge),ct(de,Ce+1,0,0,nt-1,Ke,Ge+1),Ce+=nt,Ge+=nt,++Ve);for(var rt=1<<Tt.b,Ot=rt-1,Bt=De(nt,Tt.b),cr=Tt.K,Tt=Tt.w+(Ve>>Tt.b)*Bt;Ve<ke;){var hr=cr,Aa=Tt,ur=1;for(Tl(de,Ce,Ke,Ge-nt,1,Ke,Ge);ur<nt;){var Pt=(ur&~Ot)+rt;Pt>nt&&(Pt=nt),(0,Oo[hr[Aa++]>>8&15])(de,Ce+ +ur,Ke,Ge+ur-nt,Pt-ur,Ke,Ge+ur),ur=Pt}Ce+=nt,Ge+=nt,++Ve&Ot||(Tt+=Bt)}Ie!=ue.nc&&n(oe,re-Se,oe,re+(Ie-ye-1)*Se,Se);break;case 1:for(Se=de,ke=Ce,nt=(de=ue.Ea)-(Ge=de&~(Ke=(Ce=1<<ue.b)-1)),Ve=De(de,ue.b),rt=ue.K,ue=ue.w+(ye>>ue.b)*Ve;ye<Ie;){for(Ot=rt,Bt=ue,cr=new we,Tt=ke+Ge,hr=ke+de;ke<Tt;)it(Ot[Bt++],cr),Zc(cr,Se,ke,Ce,oe,re),ke+=Ce,re+=Ce;ke<hr&&(it(Ot[Bt++],cr),Zc(cr,Se,ke,nt,oe,re),ke+=nt,re+=nt),++ye&Ke||(ue+=Ve)}break;case 3:if(de==oe&&Ce==re&&0<ue.b){for(ke=oe,de=Se=re+(Ie-ye)*Se-(Ge=(Ie-ye)*
vendor: 5,334 bytes, line 1492
1492De(ue.Ea,ue.b)),Ce=oe,Ke=re,Ve=[],Ge=(nt=Ge)-1;0<=Ge;--Ge)Ve[Ge]=Ce[Ke+Ge];for(Ge=nt-1;0<=Ge;--Ge)ke[de+Ge]=Ve[Ge];Xc(ue,ye,Ie,oe,Se,oe,re)}else Xc(ue,ye,Ie,de,Ce,oe,re)}re=M,oe=F}oe!=F&&n(M,F,re,oe,Y)}function Ns(v,w){var F=v.V,M=v.Ba+v.c*v.C,K=w-v.C;if(t(w<=v.l.o),t(16>=K),0<K){var Y=v.l,Z=v.Ta,re=v.Ua,oe=Y.width;if(_a(v,K,F,M),K=re=[re],t((F=v.C)<(M=w)),t(Y.v<Y.va),M>Y.o&&(M=Y.o),F<Y.j){var ue=Y.j-F;F=Y.j,K[0]+=ue*oe}if(F>=M?F=0:(K[0]+=4*Y.v,Y.ka=F-Y.j,Y.U=Y.va-Y.v,Y.T=M-F,F=1),F){if(re=re[0],11>(F=v.ca).S){var ye=F.f.RGBA,Ie=(M=F.S,K=Y.U,Y=Y.T,ue=ye.eb,ye.A),de=Y;for(ye=ye.fb+v.Ma*ye.A;0<de--;){var Ce=Z,Se=re,Ve=K,ke=ue,Ke=ye;switch(M){case hp:mf(Ce,Se,Ve,ke,Ke);break;case pp:hf(Ce,Se,Ve,ke,Ke);break;case ay:hf(Ce,Se,Ve,ke,Ke),gf(ke,Ke,0,Ve,1,0);break;case AE:eu(Ce,Se,Ve,ke,Ke);break;case gp:wt(Ce,Se,Ve,ke,Ke,1);break;case sy:wt(Ce,Se,Ve,ke,Ke,1),gf(ke,Ke,0,Ve,1,0);break;case xp:wt(Ce,Se,Ve,ke,Ke,0);break;case vp:wt(Ce,Se,Ve,ke,Ke,0),gf(ke,Ke,1,Ve,1,0);break;case ny:vd(Ce,Se,Ve,ke,Ke);break;case oy:vd(Ce,Se,Ve,ke,Ke),aE(ke,Ke,Ve,1,0);break;case fE:Jc(Ce,Se,Ve,ke,Ke);break;default:t(0)}re+=oe,ye+=Ie}v.Ma+=Y}else alert("todo:EmitRescaledRowsYUVA");t(v.Ma<=F.height)}}v.C=w,t(v.C<=v.i)}function Qn(v){var w;if(0<v.ua)return 0;for(w=0;w<v.Wb;++w){var F=v.Ya[w].G,M=v.Ya[w].H;if(0<F[1][M[1]+0].g||0<F[2][M[2]+0].g||0<F[3][M[3]+0].g)return 0}return 1}function Tn(v,w,F,M,K,Y){if(v.Z!=0){var Z=v.qd,re=v.rd;for(t(Rl[v.Z]!=null);w<F;++w)Rl[v.Z](Z,re,M,K,M,K,Y),Z=M,re=K,K+=Y;v.qd=Z,v.rd=re}}function qt(v,w){var F=v.l.ma,M=F.Z==0||F.Z==1?v.l.j:v.C;if(M=v.C<M?M:v.C,t(w<=v.l.o),w>M){var K=v.l.width,Y=F.ca,Z=F.tb+K*M,re=v.V,oe=v.Ba+v.c*M,ue=v.gc;t(v.ab==1),t(ue[0].hc==3),ty(ue[0],M,w,re,oe,Y,Z),Tn(F,M,w,Y,Z,K)}v.C=v.Ma=w}function bn(v,w,F,M,K,Y,Z){var re=v.$/M,oe=v.$%M,ue=v.m,ye=v.s,Ie=F+v.$,de=Ie;K=F+M*K;var Ce=F+M*Y,Se=280+ye.ua,Ve=v.Pb?re:16777216,ke=0<ye.ua?ye.Wa:null,Ke=ye.wc,Ge=Ie<Ce?fr(ye,oe,re):null;t(v.C<Y),t(Ce<=K);var nt=!1;e:for(;;){for(;nt||Ie<Ce;){var rt=0;if(re>=Ve){var Ot=Ie-F;t((Ve=v).Pb),Ve.wd=Ve.m,Ve.xd=Ot,0<Ve.s.ua&&be(Ve.s.Wa,Ve.s.vb),Ve=re+v9}if(oe&Ke||(Ge=fr(ye,oe,re)),t(Ge!=null),Ge.Qb&&(w[Ie]=Ge.qb,nt=!0),!nt)if(X(ue),Ge.jc){rt=ue,Ot=w;var Bt=Ie,cr=Ge.pd[z(rt)&pd-1];t(Ge.jc),256>cr.g?(ne(rt,rt.u+cr.g),Ot[Bt]=cr.value,rt=0):(ne(rt,rt.u+cr.g-256),t(256<=cr.value),rt=cr.value),rt==0&&(nt=!0)}else rt=Tr(Ge.G[0],Ge.H[0],ue);if(ue.h)break;if(nt||256>rt){if(!nt)if(Ge.nd)w[Ie]=(Ge.qb|rt<<8)>>>0;else{if(X(ue),nt=Tr(Ge.G[1],Ge.H[1],ue),X(ue),Ot=Tr(Ge.G[2],Ge.H[2],ue),Bt=Tr(Ge.G[3],Ge.H[3],ue),ue.h)break;w[Ie]=(Bt<<24|nt<<16|rt<<8|Ot)>>>0}if(nt=!1,++Ie,++oe>=M&&(oe=0,++re,Z!=null&&re<=Y&&!(re%16)&&Z(v,re),ke!=null))for(;de<Ie;)rt=w[de++],ke.X[(506832829*rt&4294967295)>>>ke.Mb]=rt}else if(280>rt){if(rt=Ar(rt-256,ue),Ot=Tr(Ge.G[4],Ge.H[4],ue),X(ue),Ot=Sr(M,Ot=Ar(Ot,ue)),ue.h)break;if(Ie-F<Ot||K-Ie<rt)break e;for(Bt=0;Bt<rt;++Bt)w[Ie+Bt]=w[Ie+Bt-Ot];for(Ie+=rt,oe+=rt;oe>=M;)oe-=M,++re,Z!=null&&re<=Y&&!(re%16)&&Z(v,re);if(t(Ie<=K),oe&Ke&&(Ge=fr(ye,oe,re)),ke!=null)for(;de<Ie;)rt=w[de++],ke.X[(506832829*rt&4294967295)>>>ke.Mb]=rt}else{if(!(rt<Se))break e;for(nt=rt-280,t(ke!=null);de<Ie;)rt=w[de++],ke.X[(506832829*rt&4294967295)>>>ke.Mb]=rt;rt=Ie,t(!(nt>>>(Ot=ke).Xa)),w[rt]=Ot.X[nt],nt=!0}nt||t(ue.h==W(ue))}if(v.Pb&&ue.h&&Ie<K)t(v.m.h),v.a=5,v.m=v.wd,v.$=v.xd,0<v.s.ua&&be(v.s.vb,v.s.Wa);else{if(ue.h)break e;Z?.(v,re>Y?Y:re),v.a=0,v.$=Ie-F}return 1}return v.a=3,0}function wn(v){t(v!=null),v.vc=null,v.yc=null,v.Ya=null;var w=v.Wa;w!=null&&(w.X=null),v.vb=null,t(v!=null)}function ir(){var v=new It;return v==null?null:(v.a=0,v.xb=pE,ft("Predictor","VP8LPredictors"),ft("Predictor","VP8LPredictors_C"),ft("PredictorAdd","VP8LPredictorsAdd"),ft("PredictorAdd","VP8LPredictorsAdd_C"),xd=pt,Zc=gt,mf=Ut,hf=Lt,vd=St,Jc=Mt,eu=tr,E.VP8LMapColor32b=na,E.VP8LMapColor8b=Ai,v)}function Yr(v,w,F,M,K){var Y=1,Z=[v],re=[w],oe=M.m,ue=M.s,ye=null,Ie=0;e:for(;;){if(F)for(;Y&&se(oe,1);){var de=Z,Ce=re,Se=M,Ve=1,ke=Se.m,Ke=Se.gc[Se.ab],Ge=se(ke,2);if(Se.Oc&1<<Ge)Y=0;else{switch(Se.Oc|=1<<Ge,Ke.hc=Ge,Ke.Ea=de[0],Ke.nc=Ce[0],Ke.K=[null],++Se.ab,t(4>=Se.ab),Ge){case 0:case 1:Ke.b=se(ke,3)+2,Ve=Yr(De(Ke.Ea,Ke.b),De(Ke.nc,Ke.b),0,Se,Ke.K),Ke.K=Ke.K[0];break;case 3:var nt,rt=se(ke,8)+1,Ot=16<rt?0:4<rt?1:2<rt?2:3;if(de[0]=De(Ke.Ea,Ot),Ke.b=Ot,nt=Ve=Yr(rt,1,0,Se,Ke.K)){var Bt,cr=rt,Tt=Ke,hr=1<<(8>>Tt.b),Aa=o(hr);if(Aa==null)nt=0;else{var ur=Tt.K[0],Pt=Tt.w;for(Aa[0]=Tt.K[0][0],Bt=1;Bt<1*cr;++Bt)Aa[Bt]=le(ur[Pt+Bt],Aa[Bt-1]);for(;Bt<4*hr;++Bt)Aa[Bt]=0;Tt.K[0]=null,Tt.K[0]=Aa,nt=1}}Ve=nt;break;case 2:break;default:t(0)}Y=Ve}}if(Z=Z[0],re=re[0],Y&&se(oe,1)&&!(Y=1<=(Ie=se(oe,4))&&11>=Ie)){M.a=3;break e}var ht;if(ht=Y)t:{var Hn,sr,yr,on=M,Ia=Z,hs=re,Pn=Ie,Ya=F,ps=on.m,fa=on.s,Er=[null],Rr=1,Ln=0,Mr=x9[Pn];r:for(;;){if(Ya&&se(ps,1)){var Fa=se(ps,3)+2,Qo=De(Ia,Fa),zn=De(hs,Fa),Ps=Qo*zn;if(!Yr(Qo,zn,0,on,Er))break r;for(Er=Er[0],fa.xc=Fa,Hn=0;Hn<Ps;++Hn){var Gr=Er[Hn]>>8&65535;Er[Hn]=Gr,Gr>=Rr&&(Rr=Gr+1)}}if(ps.h)break r;for(sr=0;5>sr;++sr){var ma=mE[sr];!sr&&0<Pn&&(ma+=1<<Pn),Ln<ma&&(Ln=ma)}var eo=i(Rr*Mr,H),gs=Rr,to=i(gs,ee);if(to==null)var ro=null;else t(65536>=gs),ro=to;var Ls=o(Ln);if(ro==null||Ls==null||eo==null){on.a=1;break r}var no=eo;for(Hn=yr=0;Hn<Rr;++Hn){var en=ro[Hn],ao=en.G,Vo=en.H,tu=0,Xi=1,Ta=0;for(sr=0;5>sr;++sr){ma=mE[sr],ao[sr]=no,Vo[sr]=yr,!sr&&0<Pn&&(ma+=1<<Pn);
1492a:{var _p,uy=ma,Cp=on,yf=Ls,O9=no,U9=yr,dy=0,Ml=Cp.m,Q9=se(Ml,1);if(s(yf,0,0,uy),Q9){var V9=se(Ml,1)+1,H9=se(Ml,1),CE=se(Ml,H9==0?1:8);yf[CE]=1,V9==2&&(yf[CE=se(Ml,8)]=1);var jp=1}else{var jE=o(19),EE=se(Ml,4)+4;if(19<EE){Cp.a=3;var Ep=0;break a}for(_p=0;_p<EE;++_p)jE[p9[_p]]=se(Ml,3);var Ay=void 0,bf=void 0,BE=Cp,z9=jE,Bp=uy,NE=yf,fy=0,Ol=BE.m,SE=8,kE=i(128,H);n:for(;D(kE,0,7,z9,19);){if(se(Ol,1)){var $9=2+2*se(Ol,3);if((Ay=2+se(Ol,$9))>Bp)break n}else Ay=Bp;for(bf=0;bf<Bp&&Ay--;){X(Ol);var IE=kE[0+(127&z(Ol))];ne(Ol,Ol.u+IE.g);var wd=IE.value;if(16>wd)NE[bf++]=wd,wd!=0&&(SE=wd);else{var q9=wd==16,FE=wd-16,K9=m9[FE],TE=se(Ol,f9[FE])+K9;if(bf+TE>Bp)break n;for(var G9=q9?SE:0;0<TE--;)NE[bf++]=G9}}fy=1;break n}fy||(BE.a=3),jp=fy}(jp=jp&&!Ml.h)&&(dy=D(O9,U9,8,yf,uy)),jp&&dy!=0?Ep=dy:(Cp.a=3,Ep=0)}if(Ep==0)break r;if(Xi&&h9[sr]==1&&(Xi=no[yr].g==0),tu+=no[yr].g,yr+=Ep,3>=sr){var wf,my=Ls[0];for(wf=1;wf<ma;++wf)Ls[wf]>my&&(my=Ls[wf]);Ta+=my}}if(en.nd=Xi,en.Qb=0,Xi&&(en.qb=(ao[3][Vo[3]+0].value<<24|ao[1][Vo[1]+0].value<<16|ao[2][Vo[2]+0].value)>>>0,tu==0&&256>ao[0][Vo[0]+0].value&&(en.Qb=1,en.qb+=ao[0][Vo[0]+0].value<<8)),en.jc=!en.Qb&&6>Ta,en.jc){var Np,Zi=en;for(Np=0;Np<pd;++Np){var Ul=Np,Ql=Zi.pd[Ul],Sp=Zi.G[0][Zi.H[0]+Ul];256<=Sp.value?(Ql.g=Sp.g+256,Ql.value=Sp.value):(Ql.g=0,Ql.value=0,Ul>>=Pr(Sp,8,Ql),Ul>>=Pr(Zi.G[1][Zi.H[1]+Ul],16,Ql),Ul>>=Pr(Zi.G[2][Zi.H[2]+Ul],0,Ql),Pr(Zi.G[3][Zi.H[3]+Ul],24,Ql))}}}fa.vc=Er,fa.Wb=Rr,fa.Ya=ro,fa.yc=eo,ht=1;break t}ht=0}if(!(Y=ht)){M.a=3;break e}if(0<Ie){if(ue.ua=1<<Ie,!R(ue.Wa,Ie)){M.a=1,Y=0;break e}}else ue.ua=0;var hy=M,PE=Z,W9=re,py=hy.s,gy=py.xc;if(hy.c=PE,hy.i=W9,py.md=De(PE,gy),py.wc=gy==0?-1:(1<<gy)-1,F){M.xb=E9;break e}if((ye=o(Z*re))==null){M.a=1,Y=0;break e}Y=(Y=bn(M,ye,0,Z,re,re,null))&&!oe.h;break e}return Y?(K!=null?K[0]=ye:(t(ye==null),t(F)),M.$=0,F||wn(ue)):wn(ue),Y}function za(v,w){var F=v.c*v.i,M=F+w+16*w;return t(v.c<=w),v.V=o(M),v.V==null?(v.Ta=null,v.Ua=0,v.a=1,0):(v.Ta=v.V,v.Ua=v.Ba+F+w,1)}function mn(v,w){var F=v.C,M=w-F,K=v.V,Y=v.Ba+v.c*F;for(t(w<=v.l.o);0<M;){var Z=16<M?16:M,re=v.l.ma,oe=v.l.width,ue=oe*Z,ye=re.ca,Ie=re.tb+oe*F,de=v.Ta,Ce=v.Ua;_a(v,Z,K,Y),oE(de,Ce,ye,Ie,ue),Tn(re,F,F+Z,ye,Ie,oe),M-=Z,K+=Z*v.c,F+=Z}t(F==w),v.C=v.Ma=w}function Ca(){this.ub=this.yd=this.td=this.Rb=0}function qr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ea(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function $a(){this.Yb=function(){var v=[];return function w(F,M,K){for(var Y=K[M],Z=0;Z<Y&&(F.push(K.length>M+1?[]:0),!(K.length<M+1));Z++)w(F[Z],M+1,K)}(v,0,[3,11]),v}()}function Ft(){this.jb=o(3),this.Wc=l([4,8],$a),this.Xc=l([4,17],$a)}function po(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Xr(){this.ld=this.La=this.dd=this.tc=0}function ta(){this.Na=this.la=0}function Ro(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Mo(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Bl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Xr),this.Y=0,this.ya=Array(new Mo),this.aa=0,this.l=new ci}function li(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Ss(){this.cb=this.a=0,this.sc="",this.m=new S,this.Od=new Ca,this.Kc=new qr,this.ed=new po,this.Qa=new ea,this.Ic=this.$c=this.Aa=0,this.D=new Bl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=i(8,S),this.ia=0,this.pb=i(4,Ro),this.Pa=new Ft,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new li),this.Hd=0,this.rb=Array(new ta),this.sb=0,this.wa=Array(new Xr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Mo),this.L=this.aa=0,this.gd=l([4,2],Xr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Sa(v,w){return 0>v?0:v>w?w:v}function ci(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function he(){var v=new Ss;return v!=null&&(v.a=0,v.sc="OK",v.cb=0,v.Xb=0,xf||(xf=jr)),v}function We(v,w,F){return v.a==0&&(v.a=w,v.sc=F,v.cb=0),0}function Cr(v,w,F){return 3<=F&&v[w+0]==157&&v[w+1]==1&&v[w+2]==42}function kr(v,w){if(v==null)return 0;if(v.a=0,v.sc="OK",w==null)return We(v,2,"null VP8Io passed to VP8GetHeaders()");var F=w.data,M=w.w,K=w.ha;if(4>K)return We(v,7,"Truncated header.");var Y=F[M+0]|F[M+1]<<8|F[M+2]<<16,Z=v.Od;if(Z.Rb=!(1&Y),Z.td=Y>>1&7,Z.yd=Y>>4&1,Z.ub=Y>>5,3<Z.td)return We(v,3,"Incorrect keyframe parameters.");
vendor: 11,510 bytes, line 1492
1492if(!Z.yd)return We(v,4,"Frame not displayable.");M+=3,K-=3;var re=v.Kc;if(Z.Rb){if(7>K)return We(v,7,"cannot parse picture header");if(!Cr(F,M,K))return We(v,3,"Bad code word");re.c=16383&(F[M+4]<<8|F[M+3]),re.Td=F[M+4]>>6,re.i=16383&(F[M+6]<<8|F[M+5]),re.Ud=F[M+6]>>6,M+=7,K-=7,v.za=re.c+15>>4,v.Ub=re.i+15>>4,w.width=re.c,w.height=re.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,s((Y=v.Pa).jb,0,255,Y.jb.length),t((Y=v.Qa)!=null),Y.Cb=0,Y.Bb=0,Y.Fb=1,s(Y.Zb,0,0,Y.Zb.length),s(Y.Lb,0,0,Y.Lb)}if(Z.ub>K)return We(v,7,"bad partition length");ae(Y=v.m,F,M,Z.ub),M+=Z.ub,K-=Z.ub,Z.Rb&&(re.Ld=fe(Y),re.Kd=fe(Y)),re=v.Qa;var oe,ue=v.Pa;if(t(Y!=null),t(re!=null),re.Cb=fe(Y),re.Cb){if(re.Bb=fe(Y),fe(Y)){for(re.Fb=fe(Y),oe=0;4>oe;++oe)re.Zb[oe]=fe(Y)?q(Y,7):0;for(oe=0;4>oe;++oe)re.Lb[oe]=fe(Y)?q(Y,6):0}if(re.Bb)for(oe=0;3>oe;++oe)ue.jb[oe]=fe(Y)?V(Y,8):255}else re.Bb=0;if(Y.Ka)return We(v,3,"cannot parse segment header");if((re=v.ed).zd=fe(Y),re.Tb=V(Y,6),re.wb=V(Y,3),re.Pc=fe(Y),re.Pc&&fe(Y)){for(ue=0;4>ue;++ue)fe(Y)&&(re.vd[ue]=q(Y,6));for(ue=0;4>ue;++ue)fe(Y)&&(re.od[ue]=q(Y,6))}if(v.L=re.Tb==0?0:re.zd?1:2,Y.Ka)return We(v,3,"cannot parse filter header");var ye=K;if(K=oe=M,M=oe+ye,re=ye,v.Xb=(1<<V(v.m,2))-1,ye<3*(ue=v.Xb))F=7;else{for(oe+=3*ue,re-=3*ue,ye=0;ye<ue;++ye){var Ie=F[K+0]|F[K+1]<<8|F[K+2]<<16;Ie>re&&(Ie=re),ae(v.Jc[+ye],F,oe,Ie),oe+=Ie,re-=Ie,K+=3}ae(v.Jc[+ue],F,oe,re),F=oe<M?0:5}if(F!=0)return We(v,F,"cannot parse partitions");for(F=V(oe=v.m,7),K=fe(oe)?q(oe,4):0,M=fe(oe)?q(oe,4):0,re=fe(oe)?q(oe,4):0,ue=fe(oe)?q(oe,4):0,oe=fe(oe)?q(oe,4):0,ye=v.Qa,Ie=0;4>Ie;++Ie){if(ye.Cb){var de=ye.Zb[Ie];ye.Fb||(de+=F)}else{if(0<Ie){v.pb[Ie]=v.pb[0];continue}de=F}var Ce=v.pb[Ie];Ce.Sc[0]=iy[Sa(de+K,127)],Ce.Sc[1]=ly[Sa(de+0,127)],Ce.Eb[0]=2*iy[Sa(de+M,127)],Ce.Eb[1]=101581*ly[Sa(de+re,127)]>>16,8>Ce.Eb[1]&&(Ce.Eb[1]=8),Ce.Qc[0]=iy[Sa(de+ue,117)],Ce.Qc[1]=ly[Sa(de+oe,127)],Ce.lc=de+oe}if(!Z.Rb)return We(v,4,"Not a key frame.");for(fe(Y),Z=v.Pa,F=0;4>F;++F){for(K=0;8>K;++K)for(M=0;3>M;++M)for(re=0;11>re;++re)ue=pe(Y,C9[F][K][M][re])?V(Y,8):w9[F][K][M][re],Z.Wc[F][K].Yb[M][re]=ue;for(K=0;17>K;++K)Z.Xc[F][K]=Z.Wc[F][j9[K]]}return v.kc=fe(Y),v.kc&&(v.Bd=V(Y,8)),v.cb=1}function jr(v,w,F,M,K,Y,Z){var re=w[K].Yb[F];for(F=0;16>K;++K){if(!pe(v,re[F+0]))return K;for(;!pe(v,re[F+1]);)if(re=w[++K].Yb[0],F=0,K==16)return 16;var oe=w[K+1].Yb;if(pe(v,re[F+2])){var ue=v,ye=0;if(pe(ue,(de=re)[(Ie=F)+3]))if(pe(ue,de[Ie+6])){for(re=0,Ie=2*(ye=pe(ue,de[Ie+8]))+(de=pe(ue,de[Ie+9+ye])),ye=0,de=y9[Ie];de[re];++re)ye+=ye+pe(ue,de[re]);ye+=3+(8<<Ie)}else pe(ue,de[Ie+7])?(ye=7+2*pe(ue,165),ye+=pe(ue,145)):ye=5+pe(ue,159);else ye=pe(ue,de[Ie+4])?3+pe(ue,de[Ie+5]):2;re=oe[2]}else ye=1,re=oe[1];oe=Z+b9[K],0>(ue=v).b&&te(ue);var Ie,de=ue.b,Ce=(Ie=ue.Ca>>1)-(ue.I>>de)>>31;--ue.b,ue.Ca+=Ce,ue.Ca|=1,ue.I-=(Ie+1&Ce)<<de,Y[oe]=((ye^Ce)-Ce)*M[(0<K)+0]}return 16}function _n(v){var w=v.rb[v.sb-1];w.la=0,w.Na=0,s(v.zc,0,0,v.zc.length),v.ja=0}function ca(v,w,F,M,K){K=v[w+F+32*M]+(K>>3),v[w+F+32*M]=-256&K?0>K?0:255:K}function Xs(v,w,F,M,K,Y){ca(v,w,0,F,M+K),ca(v,w,1,F,M+Y),ca(v,w,2,F,M-Y),ca(v,w,3,F,M-K)}function qa(v){return(20091*v>>16)+v}function qe(v,w,F,M){var K,Y=0,Z=o(16);for(K=0;4>K;++K){var re=v[w+0]+v[w+8],oe=v[w+0]-v[w+8],ue=(35468*v[w+4]>>16)-qa(v[w+12]),ye=qa(v[w+4])+(35468*v[w+12]>>16);Z[Y+0]=re+ye,Z[Y+1]=oe+ue,Z[Y+2]=oe-ue,Z[Y+3]=re-ye,Y+=4,w++}for(K=Y=0;4>K;++K)re=(v=Z[Y+0]+4)+Z[Y+8],oe=v-Z[Y+8],ue=(35468*Z[Y+4]>>16)-qa(Z[Y+12]),ca(F,M,0,0,re+(ye=qa(Z[Y+4])+(35468*Z[Y+12]>>16))),ca(F,M,1,0,oe+ue),ca(F,M,2,0,oe-ue),ca(F,M,3,0,re-ye),Y++,M+=32}function vt(v,w,F,M){var K=v[w+0]+4,Y=35468*v[w+4]>>16,Z=qa(v[w+4]),re=35468*v[w+1]>>16;Xs(F,M,0,K+Z,v=qa(v[w+1]),re),Xs(F,M,1,K+Y,v,re),Xs(F,M,2,K-Y,v,re),Xs(F,M,3,K-Z,v,re)}function hn(v,w,F,M,K){qe(v,w,F,M),K&&qe(v,w+16,F,M+4)}function ua(v,w,F,M){Gi(v,w+0,F,M,1),Gi(v,w+32,F,M+128,1)}function ka(v,w,F,M){var K;for(v=v[w+0]+4,K=0;4>K;++K)for(w=0;4>w;++w)ca(F,M,w,K,v)}function lr(v,w,F,M){v[w+0]&&Wa(v,w+0,F,M),v[w+16]&&Wa(v,w+16,F,M+4),v[w+32]&&Wa(v,w+32,F,M+128),v[w+48]&&Wa(v,w+48,F,M+128+4)}function Zs(v,w,F,M){var K,Y=o(16);for(K=0;4>K;++K){var Z=v[w+0+K]+v[w+12+K],re=v[w+4+K]+v[w+8+K],oe=v[w+4+K]-v[w+8+K],ue=v[w+0+K]-v[w+12+K];Y[0+K]=Z+re,Y[8+K]=Z-re,Y[4+K]=ue+oe,Y[12+K]=ue-oe}for(K=0;4>K;++K)Z=(v=Y[0+4*K]+3)+Y[3+4*K],re=Y[1+4*K]+Y[2+4*K],oe=Y[1+4*K]-Y[2+4*K],ue=v-Y[3+4*K],F[M+0]=Z+re>>3,F[M+16]=ue+oe>>3,F[M+32]=Z-re>>3,F[M+48]=ue-oe>>3,M+=64}function ks(v,w,F){var M,K=w-32,Y=Js,Z=255-v[K-1];for(M=0;M<F;++M){var re,oe=Y,ue=Z+v[w-1];for(re=0;re<F;++re)v[w+re]=oe[ue+v[K+re]];w+=32}}function Is(v,w){ks(v,w,4)}function go(v,w){ks(v,w,8)}function an(v,w){ks(v,w,16)}function Nl(v,w){var F;for(F=0;16>F;++F)n(v,w+32*F,v,w-32,16)}function ld(v,w){var F;for(F=16;0<F;--F)s(v,w,v[w-1],16),w+=32}function xo(v,w,F){var M;for(M=0;16>M;++M)s(w,F+32*M,v,16)}function Fs(v,w){var F,M=16;for(F=0;16>F;++F)M+=v[w-1+32*F]+v[w+F-32];xo(M>>5,v,w)}function Sl(v,w){var F,M=8;for(F=0;16>F;++F)M+=v[w-1+32*F];xo(M>>4,v,w)}function $v(v,w){var F,M=8;for(F=0;16>F;++F)M+=v[w+F-32];xo(M>>4,v,w)}function Qc(v,w){xo(128,v,w)}function Xt(v,w,F){return v+2*w+F+2>>2}function qv(v,w){var F,M=w-32;for(M=new Uint8Array([Xt(v[M-1],v[M+0],v[M+1]),Xt(v[M+0],v[M+1],v[M+2]),Xt(v[M+1],v[M+2],v[M+3]),Xt(v[M+2],v[M+3],v[M+4])]),F=0;4>F;++F)n(v,w+32*F,M,0,M.length)}function Kv(v,w){var F=v[w-1],M=v[w-1+32],K=v[w-1+64],Y=v[w-1+96];_e(v,w+0,16843009*Xt(v[w-1-32],F,M)),_e(v,w+32,16843009*Xt(F,M,K)),_e(v,w+64,16843009*Xt(M,K,Y)),_e(v,w+96,16843009*Xt(K,Y,Y))}function Gv(v,w){var F,M=4;for(F=0;4>F;++F)M+=v[w+F-32]+v[w-1+32*F];for(M>>=3,F=0;4>F;++F)s(v,w+32*F,M,4)}function Wv(v,w){var F=v[w-1+0],M=v[w-1+32],K=v[w-1+64],Y=v[w-1-32],Z=v[w+0-32],re=v[w+1-32],oe=v[w+2-32],ue=v[w+3-32];v[w+0+96]=Xt(M,K,v[w-1+96]),v[w+1+96]=v[w+0+64]=Xt(F,M,K),v[w+2+96]=v[w+1+64]=v[w+0+32]=Xt(Y,F,M),v[w+3+96]=v[w+2+64]=v[w+1+32]=v[w+0+0]=Xt(Z,Y,F),v[w+3+64]=v[w+2+32]=v[w+1+0]=Xt(re,Z,Y),v[w+3+32]=v[w+2+0]=Xt(oe,re,Z),v[w+3+0]=Xt(ue,oe,re)}function Yv(v,w){var F=v[w+1-32],M=v[w+2-32],K=v[w+3-32],Y=v[w+4-32],Z=v[w+5-32],re=v[w+6-32],oe=v[w+7-32];v[w+0+0]=Xt(v[w+0-32],F,M),v[w+1+0]=v[w+0+32]=Xt(F,M,K),v[w+2+0]=v[w+1+32]=v[w+0+64]=Xt(M,K,Y),v[w+3+0]=v[w+2+32]=v[w+1+64]=v[w+0+96]=Xt(K,Y,Z),v[w+3+32]=v[w+2+64]=v[w+1+96]=Xt(Y,Z,re),v[w+3+64]=v[w+2+96]=Xt(Z,re,oe),v[w+3+96]=Xt(re,oe,oe)}function Hi(v,w){var F=v[w-1+0],M=v[w-1+32],K=v[w-1+64],Y=v[w-1-32],Z=v[w+0-32],re=v[w+1-32],oe=v[w+2-32],ue=v[w+3-32];v[w+0+0]=v[w+1+64]=Y+Z+1>>1,v[w+1+0]=v[w+2+64]=Z+re+1>>1,v[w+2+0]=v[w+3+64]=re+oe+1>>1,v[w+3+0]=oe+ue+1>>1,v[w+0+96]=Xt(K,M,F),v[w+0+64]=Xt(M,F,Y),v[w+0+32]=v[w+1+96]=Xt(F,Y,Z),v[w+1+32]=v[w+2+96]=Xt(Y,Z,re),v[w+2+32]=v[w+3+96]=Xt(Z,re,oe),v[w+3+32]=Xt(re,oe,ue)}function zi(v,w){var F=v[w+0-32],M=v[w+1-32],K=v[w+2-32],Y=v[w+3-32],Z=v[w+4-32],re=v[w+5-32],oe=v[w+6-32],ue=v[w+7-32];v[w+0+0]=F+M+1>>1,v[w+1+0]=v[w+0+64]=M+K+1>>1,v[w+2+0]=v[w+1+64]=K+Y+1>>1,v[w+3+0]=v[w+2+64]=Y+Z+1>>1,v[w+0+32]=Xt(F,M,K),v[w+1+32]=v[w+0+96]=Xt(M,K,Y),v[w+2+32]=v[w+1+96]=Xt(K,Y,Z),v[w+3+32]=v[w+2+96]=Xt(Y,Z,re),v[w+3+64]=Xt(Z,re,oe),v[w+3+96]=Xt(re,oe,ue)}function Xv(v,w){var F=v[w-1+0],M=v[w-1+32],K=v[w-1+64],Y=v[w-1+96];v[w+0+0]=F+M+1>>1,v[w+2+0]=v[w+0+32]=M+K+1>>1,v[w+2+32]=v[w+0+64]=K+Y+1>>1,v[w+1+0]=Xt(F,M,K),v[w+3+0]=v[w+1+32]=Xt(M,K,Y),v[w+3+32]=v[w+1+64]=Xt(K,Y,Y),v[w+3+64]=v[w+2+64]=v[w+0+96]=v[w+1+96]=v[w+2+96]=v[w+3+96]=Y}function Zv(v,w){var F=v[w-1+0],M=v[w-1+32],K=v[w-1+64],Y=v[w-1+96],Z=v[w-1-32],re=v[w+0-32],oe=v[w+1-32],ue=v[w+2-32];v[w+0+0]=v[w+2+32]=F+Z+1>>1,v[w+0+32]=v[w+2+64]=M+F+1>>1,v[w+0+64]=v[w+2+96]=K+M+1>>1,v[w+0+96]=Y+K+1>>1,v[w+3+0]=Xt(re,oe,ue),v[w+2+0]=Xt(Z,re,oe),v[w+1+0]=v[w+3+32]=Xt(F,Z,re),v[w+1+32]=v[w+3+64]=Xt(M,F,Z),v[w+1+64]=v[w+3+96]=Xt(K,M,F),v[w+1+96]=Xt(Y,K,M)}function cd(v,w){var F;for(F=0;8>F;++F)n(v,w+32*F,v,w-32,8)}function af(v,w){var F;for(F=0;8>F;++F)s(v,w,v[w-1],8),w+=32}function ui(v,w,F){var M;for(M=0;8>M;++M)s(w,F+32*M,v,8)}function Jv(v,w){var F,M=8;for(F=0;8>F;++F)M+=v[w+F-32]+v[w-1+32*F];ui(M>>4,v,w)}function ud(v,w){var F,M=4;for(F=0;8>F;++F)M+=v[w+F-32];ui(M>>3,v,w)}function ey(v,w){var F,M=4;for(F=0;8>F;++F)M+=v[w-1+32*F];ui(M>>3,v,w)}function sf(v,w){ui(128,v,w)}function kl(v,w,F){var M=v[w-F],K=v[w+0],Y=3*(K-M)+ry[1020+v[w-2*F]-v[w+F]],Z=mp[112+(Y+4>>3)];v[w-F]=Js[255+M+mp[112+(Y+3>>3)]],v[w+0]=Js[255+K-Z]}function of(v,w,F,M){var K=v[w+0],Y=v[w+F];return yo[255+v[w-2*F]-v[w-F]]>M||yo[255+Y-K]>M}function Vc(v,w,F,M){return 4*yo[255+v[w-F]-v[w+0]]+yo[255+v[w-2*F]-v[w+F]]<=M}function lf(v,w,F,M,K){var Y=v[w-3*F],Z=v[w-2*F],re=v[w-F],oe=v[w+0],ue=v[w+F],ye=v[w+2*F],Ie=v[w+3*F];return 4*yo[255+re-oe]+yo[255+Z-ue]>M?0:yo[255+v[w-4*F]-Y]<=K&&yo[255+Y-Z]<=K&&yo[255+Z-re]<=K&&yo[255+Ie-ye]<=K&&yo[255+ye-ue]<=K&&yo[255+ue-oe]<=K}function dd(v,w,F,M){var K=2*M+1;for(M=0;16>M;++M)Vc(v,w+M,F,K)&&kl(v,w+M,F)}function cf(v,w,F,M){var K=2*M+1;for(M=0;16>M;++M)Vc(v,w+M*F,1,K)&&kl(v,w+M*F,1)}function Ad(v,w,F,M){var K;for(K=3;0<K;--K)dd(v,w+=4*F,F,M)}function op(v,w,F,M){var K;for(K=3;0<K;--K)cf(v,w+=4,F,M)}function $i(v,w,F,M,K,Y,Z,re){for(Y=2*Y+1;0<K--;){if(lf(v,w,F,Y,Z))if(of(v,w,F,re))kl(v,w,F);else{var oe=v,ue=w,ye=F,Ie=oe[ue-2*ye],de=oe[ue-ye],Ce=oe[ue+0],Se=oe[ue+ye],Ve=oe[ue+2*ye],ke=27*(Ge=ry[1020+3*(Ce-de)+ry[1020+Ie-Se]])+63>>7,Ke=18*Ge+63>>7,Ge=9*Ge+63>>7;oe[ue-3*ye]=Js[255+oe[ue-3*ye]+Ge],oe[ue-2*ye]=Js[255+Ie+Ke],oe[ue-ye]=Js[255+de+ke],oe[ue+0]=Js[255+Ce-ke],oe[ue+ye]=Js[255+Se-Ke],oe[ue+2*ye]=Js[255+Ve-Ge]}w+=M}}function qi(v,w,F,M,K,Y,Z,re){for(Y=2*Y+1;0<K--;){if(lf(v,w,F,Y,Z))if(of(v,w,F,re))kl(v,w,F);else{var oe=v,ue=w,ye=F,Ie=oe[ue-ye],de=oe[ue+0],Ce=oe[ue+ye],Se=mp[112+(4+(Ve=3*(de-Ie))>>3)],Ve=mp[112+(Ve+3>>3)],ke=Se+1>>1;oe[ue-2*ye]=Js[255+oe[ue-2*ye]+ke],oe[ue-ye]=Js[255+Ie+Ve],oe[ue+0]=Js[255+de-Se],oe[ue+ye]=Js[255+Ce-ke]}w+=M}}function ip(v,w,F,M,K,Y){$i(v,w,F,1,16,M,K,Y)}function lp(v,w,F,M,K,Y){$i(v,w,1,F,16,M,K,Y)}function cp(v,w,F,M,K,Y){var Z;for(Z=3;0<Z;--Z)qi(v,w+=4*F,F,1,16,M,K,Y)}function Hc(v,w,F,M,K,Y){var Z;for(Z=3;0<Z;--Z)qi(v,w+=4,1,F,16,M,K,Y)}function up(v,w,F,M,K,Y,Z,re){$i(v,w,K,1,8,Y,Z,re),$i(F,M,K,1,8,Y,Z,re)}function N(v,w,F,M,K,Y,Z,re){$i(v,w,1,K,8,Y,Z,re),$i(F,M,1,K,8,Y,Z,re)}function $(v,w,F,M,K,Y,Z,re){qi(v,w+4*K,K,1,8,Y,Z,re),qi(F,M+4*K,K,1,8,Y,Z,re)}function ce(v,w,F,M,K,Y,Z,re){qi(v,w+4,1,K,8,Y,Z,re),qi(F,M+4,1,K,8,Y,Z,re)}function ge(){this.ba=new Re,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ee(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Qe(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Je(){this.ua=0,this.Wa=new tt,this.vb=new tt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ee,this.yc=new H}function It(){this.xb=this.a=0,this.l=new ci,this.ca=new Re,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Q,this.Pb=0,this.wd=new Q,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Je,this.ab=0,this.gc=i(4,Qe),this.Oc=0}function kt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ci,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function rr(v,w,F,M,K,Y,Z){for(v=v==null?0:v[w+0],w=0;w<Z;++w)K[Y+w]=v+F[M+w]&255,v=K[Y+w]}function ar(v,w,F,M,K,Y,Z){var re;if(v==null)rr(null,null,F,M,K,Y,Z);else for(re=0;re<Z;++re)K[Y+re]=v[w+re]+F[M+re]&255}function vr(v,w,F,M,K,Y,Z){if(v==null)rr(null,null,F,M,K,Y,Z);
1492else{var re,oe=v[w+0],ue=oe,ye=oe;for(re=0;re<Z;++re)ue=ye+(oe=v[w+re])-ue,ye=F[M+re]+(-256&ue?0>ue?0:255:ue)&255,ue=oe,K[Y+re]=ye}}function ra(v,w,F,M){var K=w.width,Y=w.o;if(t(v!=null&&w!=null),0>F||0>=M||F+M>Y)return null;if(!v.Cc){if(v.ga==null){var Z;if(v.ga=new kt,(Z=v.ga==null)||(Z=w.width*w.o,t(v.Gb.length==0),v.Gb=o(Z),v.Uc=0,v.Gb==null?Z=0:(v.mb=v.Gb,v.nb=v.Uc,v.rc=null,Z=1),Z=!Z),!Z){Z=v.ga;var re=v.Fa,oe=v.P,ue=v.qc,ye=v.mb,Ie=v.nb,de=oe+1,Ce=ue-1,Se=Z.l;if(t(re!=null&&ye!=null&&w!=null),Rl[0]=null,Rl[1]=rr,Rl[2]=ar,Rl[3]=vr,Z.ca=ye,Z.tb=Ie,Z.c=w.width,Z.i=w.height,t(0<Z.c&&0<Z.i),1>=ue)w=0;else if(Z.$a=3&re[oe+0],Z.Z=re[oe+0]>>2&3,Z.Lc=re[oe+0]>>4&3,oe=re[oe+0]>>6&3,0>Z.$a||1<Z.$a||4<=Z.Z||1<Z.Lc||oe)w=0;else if(Se.put=ot,Se.ac=mt,Se.bc=or,Se.ma=Z,Se.width=w.width,Se.height=w.height,Se.Da=w.Da,Se.v=w.v,Se.va=w.va,Se.j=w.j,Se.o=w.o,Z.$a)e:{t(Z.$a==1),w=ir();t:for(;;){if(w==null){w=0;break e}if(t(Z!=null),Z.mc=w,w.c=Z.c,w.i=Z.i,w.l=Z.l,w.l.ma=Z,w.l.width=Z.c,w.l.height=Z.i,w.a=0,G(w.m,re,de,Ce),!Yr(Z.c,Z.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&Qn(w.s)?(Z.ic=1,re=w.c*w.i,w.Ta=null,w.Ua=0,w.V=o(re),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(Z.ic=0,w=za(w,Z.c)),!w))break t;w=1;break e}Z.mc=null,w=0}else w=Ce>=Z.c*Z.i;Z=!w}if(Z)return null;v.ga.Lc!=1?v.Ga=0:M=Y-F}t(v.ga!=null),t(F+M<=Y);e:{if(w=(re=v.ga).c,Y=re.l.o,re.$a==0){if(de=v.rc,Ce=v.Vc,Se=v.Fa,oe=v.P+1+F*w,ue=v.mb,ye=v.nb+F*w,t(oe<=v.P+v.qc),re.Z!=0)for(t(Rl[re.Z]!=null),Z=0;Z<M;++Z)Rl[re.Z](de,Ce,Se,oe,ue,ye,w),de=ue,Ce=ye,ye+=w,oe+=w;else for(Z=0;Z<M;++Z)n(ue,ye,Se,oe,w),de=ue,Ce=ye,ye+=w,oe+=w;v.rc=de,v.Vc=Ce}else{if(t(re.mc!=null),w=F+M,t((Z=re.mc)!=null),t(w<=Z.i),Z.C>=w)w=1;else if(re.ic||jn(),re.ic){re=Z.V,de=Z.Ba,Ce=Z.c;var Ve=Z.i,ke=(Se=1,oe=Z.$/Ce,ue=Z.$%Ce,ye=Z.m,Ie=Z.s,Z.$),Ke=Ce*Ve,Ge=Ce*w,nt=Ie.wc,rt=ke<Ge?fr(Ie,ue,oe):null;t(ke<=Ke),t(w<=Ve),t(Qn(Ie));t:for(;;){for(;!ye.h&&ke<Ge;){if(ue&nt||(rt=fr(Ie,ue,oe)),t(rt!=null),X(ye),256>(Ve=Tr(rt.G[0],rt.H[0],ye)))re[de+ke]=Ve,++ke,++ue>=Ce&&(ue=0,++oe<=w&&!(oe%16)&&qt(Z,oe));else{if(!(280>Ve)){Se=0;break t}Ve=Ar(Ve-256,ye);var Ot,Bt=Tr(rt.G[4],rt.H[4],ye);if(X(ye),!(ke>=(Bt=Sr(Ce,Bt=Ar(Bt,ye)))&&Ke-ke>=Ve)){Se=0;break t}for(Ot=0;Ot<Ve;++Ot)re[de+ke+Ot]=re[de+ke+Ot-Bt];for(ke+=Ve,ue+=Ve;ue>=Ce;)ue-=Ce,++oe<=w&&!(oe%16)&&qt(Z,oe);ke<Ge&&ue&nt&&(rt=fr(Ie,ue,oe))}t(ye.h==W(ye))}qt(Z,oe>w?w:oe);break t}!Se||ye.h&&ke<Ke?(Se=0,Z.a=ye.h?5:3):Z.$=ke,w=Se}else w=bn(Z,Z.V,Z.Ba,Z.c,Z.i,w,mn);if(!w){M=0;break e}}F+M>=Y&&(v.Cc=1),M=1}if(!M)return null;if(v.Cc&&((M=v.ga)!=null&&(M.mc=null),v.ga=null,0<v.Ga))return alert("todo:WebPDequantizeLevels"),null}return v.nb+F*K}function Kr(v,w,F,M,K,Y){for(;0<K--;){var Z,re=v,oe=w+(F?1:0),ue=v,ye=w+(F?0:3);for(Z=0;Z<M;++Z){var Ie=ue[ye+4*Z];Ie!=255&&(Ie*=32897,re[oe+4*Z+0]=re[oe+4*Z+0]*Ie>>23,re[oe+4*Z+1]=re[oe+4*Z+1]*Ie>>23,re[oe+4*Z+2]=re[oe+4*Z+2]*Ie>>23)}w+=Y}}function Hr(v,w,F,M,K){for(;0<M--;){var Y;for(Y=0;Y<F;++Y){var Z=v[w+2*Y+0],re=15&(ue=v[w+2*Y+1]),oe=4369*re,ue=(240&ue|ue>>4)*oe>>16;v[w+2*Y+0]=(240&Z|Z>>4)*oe>>16&240|(15&Z|Z<<4)*oe>>16>>4&15,v[w+2*Y+1]=240&ue|re}w+=K}}function sn(v,w,F,M,K,Y,Z,re){var oe,ue,ye=255;for(ue=0;ue<K;++ue){for(oe=0;oe<M;++oe){var Ie=v[w+oe];Y[Z+4*oe]=Ie,ye&=Ie}w+=F,Z+=re}return ye!=255}function Cn(v,w,F,M,K){var Y;for(Y=0;Y<K;++Y)F[M+Y]=v[w+Y]>>8}function jn(){gf=Kr,aE=Hr,sE=sn,oE=Cn}function Ka(v,w,F){E[v]=function(M,K,Y,Z,re,oe,ue,ye,Ie,de,Ce,Se,Ve,ke,Ke,Ge,nt){var rt,Ot=nt-1>>1,Bt=re[oe+0]|ue[ye+0]<<16,cr=Ie[de+0]|Ce[Se+0]<<16;t(M!=null);var Tt=3*Bt+cr+131074>>2;for(w(M[K+0],255&Tt,Tt>>16,Ve,ke),Y!=null&&(Tt=3*cr+Bt+131074>>2,w(Y[Z+0],255&Tt,Tt>>16,Ke,Ge)),rt=1;rt<=Ot;++rt){var hr=re[oe+rt]|ue[ye+rt]<<16,Aa=Ie[de+rt]|Ce[Se+rt]<<16,ur=Bt+hr+cr+Aa+524296,Pt=ur+2*(hr+cr)>>3;Tt=Pt+Bt>>1,Bt=(ur=ur+2*(Bt+Aa)>>3)+hr>>1,w(M[K+2*rt-1],255&Tt,Tt>>16,Ve,ke+(2*rt-1)*F),w(M[K+2*rt-0],255&Bt,Bt>>16,Ve,ke+(2*rt-0)*F),Y!=null&&(Tt=ur+cr>>1,Bt=Pt+Aa>>1,w(Y[Z+2*rt-1],255&Tt,Tt>>16,Ke,Ge+(2*rt-1)*F),w(Y[Z+2*rt+0],255&Bt,Bt>>16,Ke,Ge+(2*rt+0)*F)),Bt=hr,cr=Aa}1&nt||(Tt=3*Bt+cr+131074>>2,w(M[K+nt-1],255&Tt,Tt>>16,Ve,ke+(nt-1)*F),Y!=null&&(Tt=3*cr+Bt+131074>>2,w(Y[Z+nt-1],255&Tt,Tt>>16,Ke,Ge+(nt-1)*F)))}}function Ki(){bo[hp]=B9,bo[pp]=gE,bo[AE]=N9,bo[gp]=xE,bo[xp]=vE,bo[ny]=yE,bo[fE]=S9,bo[ay]=gE,bo[sy]=xE,bo[vp]=vE,bo[oy]=yE}function uf(v){return v&-16384?0>v?0:255:v>>k9}function zc(v,w){return uf((19077*v>>8)+(26149*w>>8)-14234)}function $c(v,w,F){return uf((19077*v>>8)-(6419*w>>8)-(13320*F>>8)+8708)}function Il(v,w){return uf((19077*v>>8)+(33050*w>>8)-17685)}function qc(v,w,F,M,K){M[K+0]=zc(v,F),M[K+1]=$c(v,w,F),M[K+2]=Il(v,w
1492)}function fd(v,w,F,M,K){M[K+0]=Il(v,w),M[K+1]=$c(v,w,F),M[K+2]=zc(v,F)}function md(v,w,F,M,K){var Y=$c(v,w,F);w=Y<<3&224|Il(v,w)>>3,M[K+0]=248&zc(v,F)|Y>>5,M[K+1]=w}function Ga(v,w,F,M,K){var Y=240&Il(v,w)|15;M[K+0]=240&zc(v,F)|$c(v,w,F)>>4,M[K+1]=Y}function Kc(v,w,F,M,K){M[K+0]=255,qc(v,w,F,M,K+1)}function Gc(v,w,F,M,K){fd(v,w,F,M,K),M[K+3]=255}function df(v,w,F,M,K){qc(v,w,F,M,K),M[K+3]=255}function di(v,w,F){E[v]=function(M,K,Y,Z,re,oe,ue,ye,Ie){for(var de=ye+(-2&Ie)*F;ye!=de;)w(M[K+0],Y[Z+0],re[oe+0],ue,ye),w(M[K+1],Y[Z+0],re[oe+0],ue,ye+F),K+=2,++Z,++oe,ye+=2*F;1&Ie&&w(M[K+0],Y[Z+0],re[oe+0],ue,ye)}}function fs(v,w,F){return F==0?v==0?w==0?6:5:w==0?4:0:F}function dp(v,w,F,M,K){switch(v>>>30){case 3:Gi(w,F,M,K,0);break;case 2:Ll(w,F,M,K);break;case 1:Wa(w,F,M,K)}}function hd(v,w){var F,M,K=w.M,Y=w.Nb,Z=v.oc,re=v.pc+40,oe=v.oc,ue=v.pc+584,ye=v.oc,Ie=v.pc+600;for(F=0;16>F;++F)Z[re+32*F-1]=129;for(F=0;8>F;++F)oe[ue+32*F-1]=129,ye[Ie+32*F-1]=129;for(0<K?Z[re-1-32]=oe[ue-1-32]=ye[Ie-1-32]=129:(s(Z,re-32-1,127,21),s(oe,ue-32-1,127,9),s(ye,Ie-32-1,127,9)),M=0;M<v.za;++M){var de=w.ya[w.aa+M];if(0<M){for(F=-1;16>F;++F)n(Z,re+32*F-4,Z,re+32*F+12,4);for(F=-1;8>F;++F)n(oe,ue+32*F-4,oe,ue+32*F+4,4),n(ye,Ie+32*F-4,ye,Ie+32*F+4,4)}var Ce=v.Gd,Se=v.Hd+M,Ve=de.ad,ke=de.Hc;if(0<K&&(n(Z,re-32,Ce[Se].y,0,16),n(oe,ue-32,Ce[Se].f,0,8),n(ye,Ie-32,Ce[Se].ea,0,8)),de.Za){var Ke=Z,Ge=re-32+16;for(0<K&&(M>=v.za-1?s(Ke,Ge,Ce[Se].y[15],4):n(Ke,Ge,Ce[Se+1].y,0,4)),F=0;4>F;F++)Ke[Ge+128+F]=Ke[Ge+256+F]=Ke[Ge+384+F]=Ke[Ge+0+F];for(F=0;16>F;++F,ke<<=2)Ke=Z,Ge=re+wE[F],Uo[de.Ob[F]](Ke,Ge),dp(ke,Ve,16*+F,Ke,Ge)}else if(Ke=fs(M,K,de.Ob[0]),Dl[Ke](Z,re),ke!=0)for(F=0;16>F;++F,ke<<=2)dp(ke,Ve,16*+F,Z,re+wE[F]);for(F=de.Gc,Ke=fs(M,K,de.Dd),Yi[Ke](oe,ue),Yi[Ke](ye,Ie),ke=Ve,Ke=oe,Ge=ue,255&(de=0|F)&&(170&de?yd(ke,256,Ke,Ge):fi(ke,256,Ke,Ge)),de=ye,ke=Ie,255&(F>>=8)&&(170&F?yd(Ve,320,de,ke):fi(Ve,320,de,ke)),K<v.Ub-1&&(n(Ce[Se].y,0,Z,re+480,16),n(Ce[Se].f,0,oe,ue+224,8),n(Ce[Se].ea,0,ye,Ie+224,8)),F=8*Y*v.B,Ce=v.sa,Se=v.ta+16*M+16*Y*v.R,Ve=v.qa,de=v.ra+8*M+F,ke=v.Ha,Ke=v.Ia+8*M+F,F=0;16>F;++F)n(Ce,Se+F*v.R,Z,re+32*F,16);for(F=0;8>F;++F)n(Ve,de+F*v.B,oe,ue+32*F,8),n(ke,Ke+F*v.B,ye,Ie+32*F,8)}}function Ap(v,w,F,M,K,Y,Z,re,oe){var ue=[0],ye=[0],Ie=0,de=oe!=null?oe.kd:0,Ce=oe??new Ee;if(v==null||12>F)return 7;Ce.data=v,Ce.w=w,Ce.ha=F,w=[w],F=[F],Ce.gb=[Ce.gb];e:{var Se=w,Ve=F,ke=Ce.gb;if(t(v!=null),t(Ve!=null),t(ke!=null),ke[0]=0,12<=Ve[0]&&!r(v,Se[0],"RIFF")){if(r(v,Se[0]+8,"WEBP")){ke=3;break e}var Ke=He(v,Se[0]+4);if(12>Ke||4294967286<Ke){ke=3;break e}if(de&&Ke>Ve[0]-8){ke=7;break e}ke[0]=Ke,Se[0]+=12,Ve[0]-=12}ke=0}if(ke!=0)return ke;for(Ke=0<Ce.gb[0],F=F[0];;){e:{var Ge=v;Ve=w,ke=F;var nt=ue,rt=ye,Ot=Se=[0];if((Tt=Ie=[Ie])[0]=0,8>ke[0])ke=7;else{if(!r(Ge,Ve[0],"VP8X")){if(He(Ge,Ve[0]+4)!=10){ke=3;break e}if(18>ke[0]){ke=7;break e}var Bt=He(Ge,Ve[0]+8),cr=1+Be(Ge,Ve[0]+12);if(2147483648<=cr*(Ge=1+Be(Ge,Ve[0]+15))){ke=3;break e}Ot!=null&&(Ot[0]=Bt),nt!=null&&(nt[0]=cr),rt!=null&&(rt[0]=Ge),Ve[0]+=18,ke[0]-=18,Tt[0]=1}ke=0}}if(Ie=Ie[0],Se=Se[0],ke!=0)return ke;if(Ve=!!(2&Se),!Ke&&Ie)return 3;if(Y!=null&&(Y[0]=!!(16&Se)),Z!=null&&(Z[0]=Ve),re!=null&&(re[0]=0),Z=ue[0],Se=ye[0],Ie&&Ve&&oe==null){ke=0;break}if(4>F){ke=7;break}if(Ke&&Ie||!Ke&&!Ie&&!r(v,w[0],"ALPH")){F=[F],Ce.na=[Ce.na],Ce.P=[Ce.P],Ce.Sa=[Ce.Sa];e:{Bt=v,ke=w,Ke=F;var Tt=Ce.gb;nt=Ce.na,rt=Ce.P,Ot=Ce.Sa,cr=22,t(Bt!=null),t(Ke!=null),Ge=ke[0];var hr=Ke[0];for(t(nt!=null),t(Ot!=null),nt[0]=null,rt[0]=null,Ot[0]=0;;){if(ke[0]=Ge,Ke[0]=hr,8>hr){ke=7;break e}var Aa=He(Bt,Ge+4);if(4294967286<Aa){ke=3;break e}var ur=8+Aa+1&-2;if(cr+=ur,0<Tt&&cr>Tt){ke=3;break e}if(!r(Bt,Ge,"VP8 ")||!r(Bt,Ge,"VP8L")){ke=0;break e}if(hr[0]<ur){ke=7;break e}r(Bt,Ge,"ALPH")||(nt[0]=Bt,rt[0]=Ge+8,Ot[0]=Aa),Ge+=ur,hr-=ur}}if(F=F[0],Ce.na=Ce.na[0],Ce.P=Ce.P[0],Ce.Sa=Ce.Sa[0],ke!=0)break}F=[F],Ce.Ja=[Ce.Ja],Ce.xa=[Ce.xa];e:if(Tt=v,ke=w,Ke=F,nt=Ce.gb[0],rt=Ce.Ja,Ot=Ce.xa,Bt=ke[0],Ge=!r(Tt,Bt,"VP8 "),cr=!r(Tt,Bt,"VP8L"),t(Tt!=null),t(Ke!=null),t(rt!=null),t(Ot!=null),8>Ke[0])ke=7;else{if(Ge||cr){if(Tt=He(Tt,Bt+4),12<=nt&&Tt>nt-12){ke=3;break e}if(de&&Tt>Ke[0]-8){ke=7;break e}rt[0]=Tt,ke[0]+=8,Ke[0]-=8,Ot[0]=cr}else Ot[0]=5<=Ke[0]&&Tt[Bt+0]==47&&!(Tt[Bt+4]>>5),rt[0]=Ke[0];ke=0}if(F=F[0],Ce.Ja=Ce.Ja[0],Ce.xa=Ce.xa[0],w=w[0],ke!=0)break;if(4294967286<Ce.Ja)return 3;if(re==null||Ve||(re[0]=Ce.xa?2:1),Z=[Z],Se=[Se],Ce.xa){if(5>F){ke=7;break}re=Z,de=Se,Ve=Y,v==null||5>F?v=0:5<=F&&v[w+0]==47&&!(v[w+4]>>
14925)?(Ke=[0],Tt=[0],nt=[0],G(rt=new Q,v,w,F),Fr(rt,Ke,Tt,nt)?(re!=null&&(re[0]=Ke[0]),de!=null&&(de[0]=Tt[0]),Ve!=null&&(Ve[0]=nt[0]),v=1):v=0):v=0}else{if(10>F){ke=7;break}re=Se,v==null||10>F||!Cr(v,w+3,F-3)?v=0:(de=v[w+0]|v[w+1]<<8|v[w+2]<<16,Ve=16383&(v[w+7]<<8|v[w+6]),v=16383&(v[w+9]<<8|v[w+8]),1&de||3<(de>>1&7)||!(de>>4&1)||de>>5>=Ce.Ja||!Ve||!v?v=0:(Z&&(Z[0]=Ve),re&&(re[0]=v),v=1))}if(!v||(Z=Z[0],Se=Se[0],Ie&&(ue[0]!=Z||ye[0]!=Se)))return 3;oe!=null&&(oe[0]=Ce,oe.offset=w-oe.w,t(4294967286>w-oe.w),t(oe.offset==oe.ha-F));break}return ke==0||ke==7&&Ie&&oe==null?(Y!=null&&(Y[0]|=Ce.na!=null&&0<Ce.na.length),M!=null&&(M[0]=Z),K!=null&&(K[0]=Se),0):ke}function vo(v,w,F){var M=w.width,K=w.height,Y=0,Z=0,re=M,oe=K;if(w.Da=v!=null&&0<v.Da,w.Da&&(re=v.cd,oe=v.bd,Y=v.v,Z=v.j,11>F||(Y&=-2,Z&=-2),0>Y||0>Z||0>=re||0>=oe||Y+re>M||Z+oe>K))return 0;if(w.v=Y,w.j=Z,w.va=Y+re,w.o=Z+oe,w.U=re,w.T=oe,w.da=v!=null&&0<v.da,w.da){if(!at(re,oe,F=[v.ib],Y=[v.hb]))return 0;w.ib=F[0],w.hb=Y[0]}return w.ob=v!=null&&v.ob,w.Kb=v==null||!v.Sd,w.da&&(w.ob=w.ib<3*M/4&&w.hb<3*K/4,w.Kb=0),1}function Wc(v){if(v==null)return 2;if(11>v.S){var w=v.f.RGBA;w.fb+=(v.height-1)*w.A,w.A=-w.A}else w=v.f.kb,v=v.height,w.O+=(v-1)*w.fa,w.fa=-w.fa,w.N+=(v-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(v-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(v-1)*w.lb,w.lb=-w.lb);return 0}function Af(v,w,F,M){if(M==null||0>=v||0>=w)return 2;if(F!=null){if(F.Da){var K=F.cd,Y=F.bd,Z=-2&F.v,re=-2&F.j;if(0>Z||0>re||0>=K||0>=Y||Z+K>v||re+Y>w)return 2;v=K,w=Y}if(F.da){if(!at(v,w,K=[F.ib],Y=[F.hb]))return 2;v=K[0],w=Y[0]}}M.width=v,M.height=w;e:{var oe=M.width,ue=M.height;if(v=M.S,0>=oe||0>=ue||!(v>=hp&&13>v))v=2;else{if(0>=M.Rd&&M.sd==null){Z=Y=K=w=0;var ye=(re=oe*_E[v])*ue;if(11>v||(Y=(ue+1)/2*(w=(oe+1)/2),v==12&&(Z=(K=oe)*ue)),(ue=o(ye+2*Y+Z))==null){v=1;break e}M.sd=ue,11>v?((oe=M.f.RGBA).eb=ue,oe.fb=0,oe.A=re,oe.size=ye):((oe=M.f.kb).y=ue,oe.O=0,oe.fa=re,oe.Fd=ye,oe.f=ue,oe.N=0+ye,oe.Ab=w,oe.Cd=Y,oe.ea=ue,oe.W=0+ye+Y,oe.Db=w,oe.Ed=Y,v==12&&(oe.F=ue,oe.J=0+ye+2*Y),oe.Tc=Z,oe.lb=K)}if(w=1,K=M.S,Y=M.width,Z=M.height,K>=hp&&13>K)if(11>K)v=M.f.RGBA,w&=(re=Math.abs(v.A))*(Z-1)+Y<=v.size,w&=re>=Y*_E[K],w&=v.eb!=null;else{v=M.f.kb,re=(Y+1)/2,ye=(Z+1)/2,oe=Math.abs(v.fa),ue=Math.abs(v.Ab);var Ie=Math.abs(v.Db),de=Math.abs(v.lb),Ce=de*(Z-1)+Y;w&=oe*(Z-1)+Y<=v.Fd,w&=ue*(ye-1)+re<=v.Cd,w=(w&=Ie*(ye-1)+re<=v.Ed)&oe>=Y&ue>=re&Ie>=re,w&=v.y!=null,w&=v.f!=null,w&=v.ea!=null,K==12&&(w&=de>=Y,w&=Ce<=v.Tc,w&=v.F!=null)}else w=0;v=w?0:2}}return v!=0||F!=null&&F.fd&&(v=Wc(M)),v}var pd=64,Yc=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ff=24,ms=32,Ts=8,gd=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];me("Predictor0","PredictorAdd0"),E.Predictor0=function(){return 4278190080},E.Predictor1=function(v){return v},E.Predictor2=function(v,w,F){return w[F+0]},E.Predictor3=function(v,w,F){return w[F+1]},E.Predictor4=function(v,w,F){return w[F-1]},E.Predictor5=function(v,w,F){return Fe(Fe(v,w[F+1]),w[F+0])},E.Predictor6=function(v,w,F){return Fe(v,w[F-1])},E.Predictor7=function(v,w,F){return Fe(v,w[F+0])},E.Predictor8=function(v,w,F){return Fe(w[F-1],w[F+0])},E.Predictor9=function(v,w,F){return Fe(w[F+0],w[F+1])},E.Predictor10=function(v,w,F){return Fe(Fe(v,w[F-1]),Fe(w[F+0],w[F+1]))},E.Predictor11=function(v,w,F){var M=w[F+0];return 0>=$e(M>>24&255,v>>24&255,(w=w[F-1])>>24&255)+$e(M>>16&255,v>>16&255,w>>16&255)+$e(M>>8&255,v>>8&255,w>>8&255)+$e(255&M,255&v,255&w)?M:v},E.Predictor12=function(v,w,F){var M=w[F+0];return(ze((v>>24&255)+(M>>24&255)-((w=w[F-1])>>24&255))<<24|ze((v>>16&255)+(M>>16&255)-(w>>16&255))<<16|ze((v>>8&255)+(M>>8&255)-(w>>8&255))<<8|ze((255&v)+(255&M)-(255&w)))>>>0},E.Predictor13=function(v,w,F){var M=w[F-1];
vendor: 5,863 bytes, line 1492
1492return(Pe((v=Fe(v,w[F+0]))>>24&255,M>>24&255)<<24|Pe(v>>16&255,M>>16&255)<<16|Pe(v>>8&255,M>>8&255)<<8|Pe(255&v,255&M))>>>0};var Fl=E.PredictorAdd0;E.PredictorAdd1=ct,me("Predictor2","PredictorAdd2"),me("Predictor3","PredictorAdd3"),me("Predictor4","PredictorAdd4"),me("Predictor5","PredictorAdd5"),me("Predictor6","PredictorAdd6"),me("Predictor7","PredictorAdd7"),me("Predictor8","PredictorAdd8"),me("Predictor9","PredictorAdd9"),me("Predictor10","PredictorAdd10"),me("Predictor11","PredictorAdd11"),me("Predictor12","PredictorAdd12"),me("Predictor13","PredictorAdd13");var Tl=E.PredictorAdd2;st("ColorIndexInverseTransform","MapARGB","32b",function(v){return v>>8&255},function(v){return v}),st("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(v){return v},function(v){return v>>8&255});var xd,Xc=E.ColorIndexInverseTransform,na=E.MapARGB,ty=E.VP8LColorIndexInverseTransformAlpha,Ai=E.MapAlpha,Oo=E.VP8LPredictorsAdd=[];Oo.length=16,(E.VP8LPredictors=[]).length=16,(E.VP8LPredictorsAdd_C=[]).length=16,(E.VP8LPredictors_C=[]).length=16;var Zc,mf,hf,vd,Jc,eu,Pl,Gi,Ll,yd,Wa,fi,Zr,Jr,Vn,da,Wi,pf,bd,fp,eE,tE,rE,nE,gf,aE,sE,oE,iE=o(511),lE=o(2041),cE=o(225),uE=o(767),dE=0,ry=lE,mp=cE,Js=uE,yo=iE,hp=0,pp=1,AE=2,gp=3,xp=4,ny=5,fE=6,ay=7,sy=8,vp=9,oy=10,f9=[2,3,7],m9=[3,3,11],mE=[280,256,256,256,40],h9=[0,1,1,1,0],p9=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],g9=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],x9=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],v9=8,iy=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ly=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],xf=null,y9=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],b9=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],hE=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],w9=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
14925,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],_9=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
14921,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],C9=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
14925,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],j9=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Dl=[],Uo=[],Yi=[],E9=1,pE=2,Rl=[],bo=[];Ka("UpsampleRgbLinePair",qc,3),Ka("UpsampleBgrLinePair",fd,3),Ka("UpsampleRgbaLinePair",df,4),Ka("UpsampleBgraLinePair",Gc,4),Ka("UpsampleArgbLinePair",Kc,4),Ka("UpsampleRgba4444LinePair",Ga,2),Ka("UpsampleRgb565LinePair",md,2);var B9=E.UpsampleRgbLinePair,N9=E.UpsampleBgrLinePair,gE=E.UpsampleRgbaLinePair,xE=E.UpsampleBgraLinePair,vE=E.UpsampleArgbLinePair,yE=E.UpsampleRgba4444LinePair,S9=E.UpsampleRgb565LinePair,yp=16,bp=1<<yp-1,vf=-227,cy=482,k9=6,bE=0,I9=o(256),F9=o(256),T9=o(256),P9=o(256),L9=o(cy-vf),D9=o(cy-vf);di("YuvToRgbRow",qc,3),di("YuvToBgrRow",fd,3),di("YuvToRgbaRow",df,4),di("YuvToBgraRow",Gc,4),di("YuvToArgbRow",Kc,4),di("YuvToRgba4444Row",Ga,2),di("YuvToRgb565Row",md,2);var wE=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],wp=[0,2,8],R9=[8,7,6,4,4,2,2,2,1,1,1,1],M9=1;this.WebPDecodeRGBA=function(v,w,F,M,K){var Y=pp,Z=new ge,re=new Re;Z.ba=re,re.S=Y,re.width=[re.width],re.height=[re.height];var oe=re.width,ue=re.height,ye=new Xe;if(ye==null||v==null)var Ie=2;else t(ye!=null),Ie=Ap(v,w,F,ye.width,ye.height,ye.Pd,ye.Qd,ye.format,null);if(Ie!=0?oe=0:(oe!=null&&(oe[0]=ye.width[0]),ue!=null&&(ue[0]=ye.height[0]),oe=1),oe){re.width=re.width[0],re.height=re.height[0],M!=null&&(M[0]=re.width),K!=null&&(K[0]=re.height);e:{if(M=new ci,(K=new Ee).data=v,K.w=w,K.ha=F,K.kd=1,w=[0],t(K!=null),((v=Ap(K.data,K.w,K.ha,null,null,null,w,null,K))==0||v==7)&&w[0]&&(v=4),(w=v)==0){if(t(Z!=null),M.data=K.data,M.w=K.w+K.offset,M.ha=K.ha-K.offset,M.put=ot,M.ac=mt,M.bc=or,M.ma=Z,K.xa){if((v=ir())==null){Z=1;break e}if(function(de,Ce){var Se=[0],Ve=[0],ke=[0];t:for(;;){if(de==null)return 0;if(Ce==null)return de.a=2,0;if(de.l=Ce,de.a=0,G(de.m,Ce.data,Ce.w,Ce.ha),!Fr(de.m,Se,Ve,ke)){de.a=3;break t}if(de.xb=pE,Ce.width=Se[0],Ce.height=Ve[0],!Yr(Se[0],Ve[0],1,de,null))break t;return 1}return t(de.a!=0),0}(v,M)){if(M=(w=Af(M.width,M.height,Z.Oa,Z.ba))==0){t:{M=v;r:for(;;){if(M==null){M=0;break t}if(t(M.s.yc!=null),t(M.s.Ya!=null),t(0<M.s.Wb),t((F=M.l)!=null),t((K=F.ma)!=null),M.xb!=0){if(M.ca=K.ba,M.tb=K.tb,t(M.ca!=null),!vo(K.Oa,F,gp)){M.a=2;break r}if(!za(M,F.width)||F.da)break r;if((F.da||ie(M.ca.S))&&jn(),11>M.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),M.ca.f.kb.F!=null&&jn()),M.Pb&&0<M.s.ua&&M.s.vb.X==null&&!R(M.s.vb,M.s.Wa.Xa)){M.a=1;break r}M.xb=0}if(!bn(M,M.V,M.Ba,M.c,M.i,F.o,Ns))break r;K.Dc=M.Ma,M=1;break t}t(M.a!=0),M=0}M=!M}M&&(w=v.a)}else w=v.a}else{if((v=new he)==null){Z=1;break e}if(v.Fa=K.na,v.P=K.P,v.qc=K.Sa,kr(v,M)){if((w=Af(M.width,M.height,Z.Oa,Z.ba))==0){if(v.Aa=0,F=Z.Oa,t((K=v)!=null),F!=null){if(0<(oe=0>(oe=F.Md)?0:100<oe?255:255*oe/100)){for(ue=ye=0;4>ue;++ue)12>(Ie=K.pb[ue]).lc&&(Ie.ia=oe*R9[0>Ie.lc?0:Ie.lc]>>3),ye|=Ie.ia;ye&&(alert("todo:VP8InitRandom"),K.ia=1)}K.Ga=F.Id,100<K.Ga?K.Ga=100:0>K.Ga&&(K.Ga=0)}(function(de,Ce){if(de==null)return 0;if(Ce==null)return We(de,2,"NULL VP8Io parameter in VP8Decode().");if(!de.cb&&!kr(de,Ce))return 0;if(t(de.cb),Ce.ac==null||Ce.ac(Ce)){Ce.ob&&(de.L=0);var Se=wp[de.L];if(de.L==2?(de.yb=0,de.zb=0):(de.yb=Ce.v-Se>>4,de.zb=Ce.j-Se>>4,0>de.yb&&(de.yb=0),0>de.zb&&(de.zb=0)),de.Va=Ce.o+15+Se>>4,de.Hb=Ce.va+15+Se>>4,de.Hb>de.za&&(de.Hb=de.za),de.Va>de.Ub&&(de.Va=de.Ub),0<de.L){var Ve=de.ed;for(Se=0;4>Se;++Se){var ke;
vendor: 4,438 bytes, line 1492
1492if(de.Qa.Cb){var Ke=de.Qa.Lb[Se];de.Qa.Fb||(Ke+=Ve.Tb)}else Ke=Ve.Tb;for(ke=0;1>=ke;++ke){var Ge=de.gd[Se][ke],nt=Ke;if(Ve.Pc&&(nt+=Ve.vd[0],ke&&(nt+=Ve.od[0])),0<(nt=0>nt?0:63<nt?63:nt)){var rt=nt;0<Ve.wb&&(rt=4<Ve.wb?rt>>2:rt>>1)>9-Ve.wb&&(rt=9-Ve.wb),1>rt&&(rt=1),Ge.dd=rt,Ge.tc=2*nt+rt,Ge.ld=40<=nt?2:15<=nt?1:0}else Ge.tc=0;Ge.La=ke}}}Se=0}else We(de,6,"Frame setup failed"),Se=de.a;if(Se=Se==0){if(Se){de.$c=0,0<de.Aa||(de.Ic=M9);t:{Se=de.Ic,Ve=4*(rt=de.za);var Ot=32*rt,Bt=rt+1,cr=0<de.L?rt*(0<de.Aa?2:1):0,Tt=(de.Aa==2?2:1)*rt;if((Ge=Ve+832+(ke=3*(16*Se+wp[de.L])/2*Ot)+(Ke=de.Fa!=null&&0<de.Fa.length?de.Kc.c*de.Kc.i:0))!=Ge)Se=0;else{if(Ge>de.Vb){if(de.Vb=0,de.Ec=o(Ge),de.Fc=0,de.Ec==null){Se=We(de,1,"no memory during frame initialization.");break t}de.Vb=Ge}Ge=de.Ec,nt=de.Fc,de.Ac=Ge,de.Bc=nt,nt+=Ve,de.Gd=i(Ot,li),de.Hd=0,de.rb=i(Bt+1,ta),de.sb=1,de.wa=cr?i(cr,Xr):null,de.Y=0,de.D.Nb=0,de.D.wa=de.wa,de.D.Y=de.Y,0<de.Aa&&(de.D.Y+=rt),t(!0),de.oc=Ge,de.pc=nt,nt+=832,de.ya=i(Tt,Mo),de.aa=0,de.D.ya=de.ya,de.D.aa=de.aa,de.Aa==2&&(de.D.aa+=rt),de.R=16*rt,de.B=8*rt,rt=(Ot=wp[de.L])*de.R,Ot=Ot/2*de.B,de.sa=Ge,de.ta=nt+rt,de.qa=de.sa,de.ra=de.ta+16*Se*de.R+Ot,de.Ha=de.qa,de.Ia=de.ra+8*Se*de.B+Ot,de.$c=0,nt+=ke,de.mb=Ke?Ge:null,de.nb=Ke?nt:null,t(nt+Ke<=de.Fc+de.Vb),_n(de),s(de.Ac,de.Bc,0,Ve),Se=1}}if(Se){if(Ce.ka=0,Ce.y=de.sa,Ce.O=de.ta,Ce.f=de.qa,Ce.N=de.ra,Ce.ea=de.Ha,Ce.Vd=de.Ia,Ce.fa=de.R,Ce.Rc=de.B,Ce.F=null,Ce.J=0,!dE){for(Se=-255;255>=Se;++Se)iE[255+Se]=0>Se?-Se:Se;for(Se=-1020;1020>=Se;++Se)lE[1020+Se]=-128>Se?-128:127<Se?127:Se;for(Se=-112;112>=Se;++Se)cE[112+Se]=-16>Se?-16:15<Se?15:Se;for(Se=-255;510>=Se;++Se)uE[255+Se]=0>Se?0:255<Se?255:Se;dE=1}Pl=Zs,Gi=hn,yd=ua,Wa=ka,fi=lr,Ll=vt,Zr=ip,Jr=lp,Vn=up,da=N,Wi=cp,pf=Hc,bd=$,fp=ce,eE=dd,tE=cf,rE=Ad,nE=op,Uo[0]=Gv,Uo[1]=Is,Uo[2]=qv,Uo[3]=Kv,Uo[4]=Wv,Uo[5]=Hi,Uo[6]=Yv,Uo[7]=zi,Uo[8]=Zv,Uo[9]=Xv,Dl[0]=Fs,Dl[1]=an,Dl[2]=Nl,Dl[3]=ld,Dl[4]=Sl,Dl[5]=$v,Dl[6]=Qc,Yi[0]=Jv,Yi[1]=go,Yi[2]=cd,Yi[3]=af,Yi[4]=ey,Yi[5]=ud,Yi[6]=sf,Se=1}else Se=0}Se&&(Se=function(hr,Aa){for(hr.M=0;hr.M<hr.Va;++hr.M){var ur,Pt=hr.Jc[hr.M&hr.Xb],ht=hr.m,Hn=hr;for(ur=0;ur<Hn.za;++ur){var sr=ht,yr=Hn,on=yr.Ac,Ia=yr.Bc+4*ur,hs=yr.zc,Pn=yr.ya[yr.aa+ur];if(yr.Qa.Bb?Pn.$b=pe(sr,yr.Pa.jb[0])?2+pe(sr,yr.Pa.jb[2]):pe(sr,yr.Pa.jb[1]):Pn.$b=0,yr.kc&&(Pn.Ad=pe(sr,yr.Bd)),Pn.Za=!pe(sr,145)+0,Pn.Za){var Ya=Pn.Ob,ps=0;for(yr=0;4>yr;++yr){var fa,Er=hs[0+yr];for(fa=0;4>fa;++fa){Er=_9[on[Ia+fa]][Er];for(var Rr=hE[pe(sr,Er[0])];0<Rr;)Rr=hE[2*Rr+pe(sr,Er[Rr])];Er=-Rr,on[Ia+fa]=Er}n(Ya,ps,on,Ia,4),ps+=4,hs[0+yr]=Er}}else Er=pe(sr,156)?pe(sr,128)?1:3:pe(sr,163)?2:0,Pn.Ob[0]=Er,s(on,Ia,Er,4),s(hs,0,Er,4);Pn.Dd=pe(sr,142)?pe(sr,114)?pe(sr,183)?1:3:2:0}if(Hn.m.Ka)return We(hr,7,"Premature end-of-partition0 encountered.");for(;hr.ja<hr.za;++hr.ja){if(Hn=Pt,sr=(ht=hr).rb[ht.sb-1],on=ht.rb[ht.sb+ht.ja],ur=ht.ya[ht.aa+ht.ja],Ia=ht.kc?ur.Ad:0)sr.la=on.la=0,ur.Za||(sr.Na=on.Na=0),ur.Hc=0,ur.Gc=0,ur.ia=0;else{var Ln,Mr;if(sr=on,on=Hn,Ia=ht.Pa.Xc,hs=ht.ya[ht.aa+ht.ja],Pn=ht.pb[hs.$b],yr=hs.ad,Ya=0,ps=ht.rb[ht.sb-1],Er=fa=0,s(yr,Ya,0,384),hs.Za)var Fa=0,Qo=Ia[3];else{Rr=o(16);var zn=sr.Na+ps.Na;if(zn=xf(on,Ia[1],zn,Pn.Eb,0,Rr,0),sr.Na=ps.Na=(0<zn)+0,1<zn)Pl(Rr,0,yr,Ya);else{var Ps=Rr[0]+3>>3;for(Rr=0;256>Rr;Rr+=16)yr[Ya+Rr]=Ps}Fa=1,Qo=Ia[0]}var Gr=15&sr.la,ma=15&ps.la;for(Rr=0;4>Rr;++Rr){var eo=1&ma;for(Ps=Mr=0;4>Ps;++Ps)Gr=Gr>>1|(eo=(zn=xf(on,Qo,zn=eo+(1&Gr),Pn.Sc,Fa,yr,Ya))>Fa)<<7,Mr=Mr<<2|(3<zn?3:1<zn?2:yr[Ya+0]!=0),Ya+=16;Gr>>=4,ma=ma>>1|eo<<7,fa=(fa<<8|Mr)>>>0}for(Qo=Gr,Fa=ma>>4,Ln=0;4>Ln;Ln+=2){for(Mr=0,Gr=sr.la>>4+Ln,ma=ps.la>>4+Ln,Rr=0;2>Rr;++Rr){for(eo=1&ma,Ps=0;2>Ps;++Ps)zn=eo+(1&Gr),Gr=Gr>>1|(eo=0<(zn=xf(on,Ia[2],zn,Pn.Qc,0,yr,Ya)))<<3,Mr=Mr<<2|(3<zn?3:1<zn?2:yr[Ya+0]!=0),Ya+=16;Gr>>=2,ma=ma>>1|eo<<5}Er|=Mr<<4*Ln,Qo|=Gr<<4<<Ln,Fa|=(240&ma)<<Ln}sr.la=Qo,ps.la=Fa,hs.Hc=fa,hs.Gc=Er,hs.ia=43690&Er?0:Pn.ia,Ia=!(fa|Er)}if(0<ht.L&&(ht.wa[ht.Y+ht.ja]=ht.gd[ur.$b][ur.Za],ht.wa[ht.Y+ht.ja].La|=!Ia),Hn.Ka)return We(hr,7,"Premature end-of-file encountered.")}if(_n(hr),ht=Aa,Hn=1,ur=(Pt=hr).D,sr=0<Pt.L&&Pt.M>=Pt.zb&&Pt.M<=Pt.Va,Pt.Aa==0)t:{if(ur.M=Pt.M,ur.uc=sr,hd(Pt,ur),Hn=1,ur=(Mr=Pt.D).Nb,sr=(Er=wp[Pt.L])*Pt.R,on=Er/2*Pt.B,Rr=16*ur*Pt.R,Ps=8*ur*Pt.B,Ia=Pt.sa,hs=Pt.ta-sr+Rr,Pn=Pt.qa,yr=Pt.ra-on+Ps,Ya=Pt.Ha,ps=Pt.Ia-on+Ps,ma=(Gr=Mr.M)==0,fa=Gr>=Pt.Va-1,Pt.Aa==2&&hd(Pt,Mr),Mr.uc)for(eo=(zn=Pt).D.M,t(zn.D.uc),Mr=zn.yb;Mr<zn.Hb;++Mr){Fa=Mr,Qo=eo;var gs=(to=(Ta=zn).D).Nb;Ln=Ta.R;
1492var to=to.wa[to.Y+Fa],ro=Ta.sa,Ls=Ta.ta+16*gs*Ln+16*Fa,no=to.dd,en=to.tc;if(en!=0)if(t(3<=en),Ta.L==1)0<Fa&&tE(ro,Ls,Ln,en+4),to.La&&nE(ro,Ls,Ln,en),0<Qo&&eE(ro,Ls,Ln,en+4),to.La&&rE(ro,Ls,Ln,en);else{var ao=Ta.B,Vo=Ta.qa,tu=Ta.ra+8*gs*ao+8*Fa,Xi=Ta.Ha,Ta=Ta.Ia+8*gs*ao+8*Fa;gs=to.ld,0<Fa&&(Jr(ro,Ls,Ln,en+4,no,gs),da(Vo,tu,Xi,Ta,ao,en+4,no,gs)),to.La&&(pf(ro,Ls,Ln,en,no,gs),fp(Vo,tu,Xi,Ta,ao,en,no,gs)),0<Qo&&(Zr(ro,Ls,Ln,en+4,no,gs),Vn(Vo,tu,Xi,Ta,ao,en+4,no,gs)),to.La&&(Wi(ro,Ls,Ln,en,no,gs),bd(Vo,tu,Xi,Ta,ao,en,no,gs))}}if(Pt.ia&&alert("todo:DitherRow"),ht.put!=null){if(Mr=16*Gr,Gr=16*(Gr+1),ma?(ht.y=Pt.sa,ht.O=Pt.ta+Rr,ht.f=Pt.qa,ht.N=Pt.ra+Ps,ht.ea=Pt.Ha,ht.W=Pt.Ia+Ps):(Mr-=Er,ht.y=Ia,ht.O=hs,ht.f=Pn,ht.N=yr,ht.ea=Ya,ht.W=ps),fa||(Gr-=Er),Gr>ht.o&&(Gr=ht.o),ht.F=null,ht.J=null,Pt.Fa!=null&&0<Pt.Fa.length&&Mr<Gr&&(ht.J=ra(Pt,ht,Mr,Gr-Mr),ht.F=Pt.mb,ht.F==null&&ht.F.length==0)){Hn=We(Pt,3,"Could not decode alpha data.");break t}Mr<ht.j&&(Er=ht.j-Mr,Mr=ht.j,t(!(1&Er)),ht.O+=Pt.R*Er,ht.N+=Pt.B*(Er>>1),ht.W+=Pt.B*(Er>>1),ht.F!=null&&(ht.J+=ht.width*Er)),Mr<Gr&&(ht.O+=ht.v,ht.N+=ht.v>>1,ht.W+=ht.v>>1,ht.F!=null&&(ht.J+=ht.v),ht.ka=Mr-ht.j,ht.U=ht.va-ht.v,ht.T=Gr-Mr,Hn=ht.put(ht))}ur+1!=Pt.Ic||fa||(n(Pt.sa,Pt.ta-sr,Ia,hs+16*Pt.R,sr),n(Pt.qa,Pt.ra-on,Pn,yr+8*Pt.B,on),n(Pt.Ha,Pt.Ia-on,Ya,ps+8*Pt.B,on))}if(!Hn)return We(hr,6,"Output aborted.")}return 1}(de,Ce)),Ce.bc!=null&&Ce.bc(Ce),Se&=1}return Se?(de.cb=0,Se):0})(v,M)||(w=v.a)}}else w=v.a}w==0&&Z.Oa!=null&&Z.Oa.fd&&(w=Wc(Z.ba))}Z=w}Y=Z!=0?null:11>Y?re.f.RGBA.eb:re.f.kb.y}else Y=null;return Y};var _E=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(E,O){for(var k="",D=0;D<4;D++)k+=String.fromCharCode(E[O++]);return k}function d(E,O){return E[O+0]|E[O+1]<<8}function f(E,O){return(E[O+0]|E[O+1]<<8|E[O+2]<<16)>>>0}function h(E,O){return(E[O+0]|E[O+1]<<8|E[O+2]<<16|E[O+3]<<24)>>>0}new c;var m=[0],g=[0],p=[],x=new c,y=e,b=function(E,O){var k={},D=0,H=!1,U=0,ee=0;if(k.frames=[],!function(S,Q){for(var z=0;z<4;z++)if(S[Q+z]!="RIFF".charCodeAt(z))return!0;return!1}(E,O)){for(h(E,O+=4),O+=8;O<E.length;){var ae=u(E,O),V=h(E,O+=4);O+=4;var q=V+(1&V);switch(ae){case"VP8 ":case"VP8L":k.frames[D]===void 0&&(k.frames[D]={}),(se=k.frames[D]).src_off=H?ee:O-8,se.src_size=U+V+8,D++,H&&(H=!1,U=0,ee=0);break;case"VP8X":(se=k.header={}).feature_flags=E[O];var G=O+4;se.canvas_width=1+f(E,G),G+=3,se.canvas_height=1+f(E,G),G+=3;break;case"ALPH":H=!0,U=q+8,ee=O-8;break;case"ANIM":(se=k.header).bgcolor=h(E,O),G=O+4,se.loop_count=d(E,G),G+=2;break;case"ANMF":var Ae,se;(se=k.frames[D]={}).offset_x=2*f(E,O),O+=3,se.offset_y=2*f(E,O),O+=3,se.width=1+f(E,O),O+=3,se.height=1+f(E,O),O+=3,se.duration=f(E,O),O+=3,Ae=E[O++],se.dispose=1&Ae,se.blend=Ae>>1&1}ae!="ANMF"&&(O+=q)}return k}}(y,0);b.response=y,b.rgbaoutput=!0,b.dataurl=!1;var j=b.header?b.header:null,C=b.frames?b.frames:null;if(j){j.loop_counter=j.loop_count,m=[j.canvas_height],g=[j.canvas_width];for(var T=0;T<C.length&&C[T].blend!=0;T++);}var L=C[0],P=x.WebPDecodeRGBA(y,L.src_off,L.src_size,g,m);L.rgba=P,L.imgwidth=g[0],L.imgheight=m[0];for(var I=0;I<g[0]*m[0]*4;I++)p[I]=P[I];return this.width=g,this.height=m,this.data=p,this}/** ==================================================================== 1493 * @license 1494 * jsPDF XMP metadata plugin 1495 * Copyright (c) 2016 Jussi Utunen, [email protected] 1496 * 1497 * Permission is hereby granted, free of charge, to any person obtaining 1498 * a copy of this software and associated documentation files (the 1499 * "Software"), to deal in the Software without restriction, including 1500 * without limitation the rights to use, copy, modify, merge, publish, 1501 * distribute, sublicense, and/or sell copies of the Software, and to 1502 * permit persons to whom the Software is furnished to do so, subject to 1503 * the following conditions: 1504 * 1505 * The above copyright notice and this permission notice shall be 1506 * included in all copies or substantial portions of the Software. 1507 * 1508 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1509 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1510 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1511 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 1512 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 1513 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 1514 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1515 * ==================================================================== 1516 */function Uje(){var e,t=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?r:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function Qje(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,r,n,s,o,i,l,c,u,d=function(S){return S=S||{},this.isStrokeTransparent=S.isStrokeTransparent||!1,this.strokeOpacity=S.strokeOpacity||1,this.strokeStyle=S.strokeStyle||"#000000",this.fillStyle=S.fillStyle||"#000000",this.isFillTransparent=S.isFillTransparent||!1,this.fillOpacity=S.fillOpacity||1,this.font=S.font||"10px sans-serif",this.textBaseline=S.textBaseline||"alphabetic",this.textAlign=S.textAlign||"left",this.lineWidth=S.lineWidth||1,this.lineJoin=S.lineJoin||"miter",this.lineCap=S.lineCap||"butt",this.path=S.path||[],this.transform=S.transform!==void 0?S.transform.clone():new c,this.globalCompositeOperation=S.globalCompositeOperation||"normal",this.globalAlpha=S.globalAlpha||1,this.clip_path=S.clip_path||[],this.currentPoint=S.currentPoint||new i,this.miterLimit=S.miterLimit||10,this.lastPoint=S.lastPoint||new i,this.lineDashOffset=S.lineDashOffset||0,this.lineDash=S.lineDash||[],this.margin=S.margin||[0,0,0,0],this.prevPageLastElemOffset=S.prevPageLastElemOffset||0,this.ignoreClearRect=typeof S.ignoreClearRect!="boolean"||S.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,
1516s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,i=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new d}]);var f=function(S){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Q=S;Object.defineProperty(this,"pdf",{get:function(){return Q}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(R){z=!!R}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(R){W=!!R}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(R){isNaN(R)||(ne=R)}});var X=0;Object.defineProperty(this,"posY",{get:function(){return X},set:function(R){isNaN(R)||(X=R)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(R){var be;typeof R=="number"?be=[R,R,R,R]:((be=new Array(4))[0]=R[0],be[1]=R.length>=2?R[1]:be[0],be[2]=R.length>=3?R[2]:be[0],be[3]=R.length>=4?R[3]:be[1]),u.margin=be}});var te=!1;Object.defineProperty(this,"autoPaging",{get:function(){return te},set:function(R){te=R}});var fe=0;Object.defineProperty(this,"lastBreak",{get:function(){return fe},set:function(R){fe=R}});var pe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pe},set:function(R){pe=R}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(R){R instanceof d&&(u=R)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(R){u.path=R}});var _e=[];Object.defineProperty(this,"ctxStack",{get:function(){return _e},set:function(R){_e=R}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(R){var be;be=h(R),this.ctx.fillStyle=be.style,this.ctx.isFillTransparent=be.a===0,this.ctx.fillOpacity=be.a,this.pdf.setFillColor(be.r,be.g,be.b,{a:be.a}),this.pdf.setTextColor(be.r,be.g,be.b,{a:be.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(R){var be=h(R);this.ctx.strokeStyle=be.style,this.ctx.isStrokeTransparent=be.a===0,this.ctx.strokeOpacity=be.a,be.a===0?this.pdf.setDrawColor(255,255,255):(be.a,this.pdf.setDrawColor(be.r,be.g,be.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(R){["butt","round","square"].indexOf(R)!==-1&&(this.ctx.lineCap=R,this.pdf.setLineCap(R))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(R){isNaN(R)||(this.ctx.lineWidth=R,this.pdf.setLineWidth(R))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(R){["bevel","round","miter"].indexOf(R)!==-1&&(this.ctx.lineJoin=R,this.pdf.setLineJoin(R))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(R){isNaN(R)||(this.ctx.miterLimit=R,this.pdf.setMiterLimit(R))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(R){this.ctx.textBaseline=R}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(R){["right","end","center","left","start"].indexOf(R)!==-1&&(this.ctx.textAlign=R)}});var xe=null,Be=null,He=null;Object.defineProperty(this,"fontFaces",{get:function(){return He},set:function(R){xe=null,Be=null,He=R}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(R){var be;if(this.ctx.font=R,(be=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(R))!==null){var tt=be[1];be[2];var at=be[3],De=be[4];be[5];var le=be[6],me=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(De)[2];De=Math.floor(me==="px"?parseFloat(De)*this.pdf.internal.scaleFactor:me==="em"?parseFloat(De)*this.pdf.getFontSize():parseFloat(De)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(De);var we=function(st){var Ut,Lt,St=[],Mt=st.trim();if(Mt==="")return Sb;if(Mt in Yk)return[Yk[Mt]];for(;Mt!=="";){switch(Lt=null,Ut=(Mt=Zk(Mt)).charAt(0)){case'"':case"'":Lt=Pje(Mt.substring(1),Ut);break;default:Lt=Lje(Mt)}if(Lt===null||(St.push(Lt[0]),(Mt=Zk(Lt[1]))!==""&&Mt.charAt(0)!==","))return Sb;Mt=Mt.replace(/^,/,"")}return St}(le);if(this.fontFaces){var Fe=function(st,Ut){var Lt=st.getFontList(
1516),St=JSON.stringify(Lt);if(xe===null||Be!==St){var Mt=function(tr){var wt=[];return Object.keys(tr).forEach(function(ft){tr[ft].forEach(function(ie){var Ue=null;switch(ie){case"bold":Ue={family:ft,weight:"bold"};break;case"italic":Ue={family:ft,style:"italic"};break;case"bolditalic":Ue={family:ft,weight:"bold",style:"italic"};break;case"":case"normal":Ue={family:ft}}Ue!==null&&(Ue.ref={name:ft,style:ie},wt.push(Ue))})}),wt}(Lt);xe=function(tr){for(var wt={},ft=0;ft<tr.length;++ft){var ie=Nb(tr[ft]),Ue=ie.family,dt=ie.stretch,Re=ie.style,Xe=ie.weight;wt[Ue]=wt[Ue]||{},wt[Ue][dt]=wt[Ue][dt]||{},wt[Ue][dt][Re]=wt[Ue][dt][Re]||{},wt[Ue][dt][Re][Xe]=ie}return wt}(Mt.concat(Ut)),Be=St}return xe}(this.pdf,this.fontFaces),ze=we.map(function(st){return{family:st,stretch:"normal",weight:at,style:tt}}),Pe=function(st,Ut,Lt){for(var St=(Lt=Lt||{}).defaultFontFamily||"times",Mt=Object.assign({},Tje,Lt.genericFontFamilies||{}),tr=null,wt=null,ft=0;ft<Ut.length;++ft)if(Mt[(tr=Nb(Ut[ft])).family]&&(tr.family=Mt[tr.family]),st.hasOwnProperty(tr.family)){wt=st[tr.family];break}if(!(wt=wt||st[St]))throw new Error("Could not find a font-family for the rule '"+Xk(tr)+"' and default family '"+St+"'.");if(wt=function(ie,Ue){if(Ue[ie])return Ue[ie];var dt=c2[ie],Re=dt<=c2.normal?-1:1,Xe=Wk(Ue,EV,dt,Re);if(!Xe)throw new Error("Could not find a matching font-stretch value for "+ie);return Xe}(tr.stretch,wt),wt=function(ie,Ue){if(Ue[ie])return Ue[ie];for(var dt=jV[ie],Re=0;Re<dt.length;++Re)if(Ue[dt[Re]])return Ue[dt[Re]];throw new Error("Could not find a matching font-style for "+ie)}(tr.style,wt),!(wt=function(ie,Ue){if(Ue[ie])return Ue[ie];if(ie===400&&Ue[500])return Ue[500];if(ie===500&&Ue[400])return Ue[400];var dt=Fje[ie],Re=Wk(Ue,BV,dt,ie<400?-1:1);if(!Re)throw new Error("Could not find a matching font-weight for value "+ie);return Re}(tr.weight,wt)))throw new Error("Failed to resolve a font for the rule '"+Xk(tr)+"'.");return wt}(Fe,ze);this.pdf.setFont(Pe.ref.name,Pe.ref.style)}else{var $e="";(at==="bold"||parseInt(at,10)>=700||tt==="bold")&&($e="bold"),tt==="italic"&&($e+="italic"),$e.length===0&&($e="normal");for(var ct="",pt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},it=0;it<we.length;it++){if(this.pdf.internal.getFont(we[it],$e,{noFallback:!0,disableWarning:!0})!==void 0){ct=we[it];break}if($e==="bolditalic"&&this.pdf.internal.getFont(we[it],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ct=we[it],$e="bold";else if(this.pdf.internal.getFont(we[it],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ct=we[it],$e="normal";break}}if(ct===""){for(var gt=0;gt<we.length;gt++)if(pt[we[gt]]){ct=pt[we[gt]];break}}ct=ct===""?"Times":ct,this.pdf.setFont(ct,$e)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(R){this.ctx.globalCompositeOperation=R}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(R){this.ctx.globalAlpha=R}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(R){this.ctx.lineDashOffset=R,se.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(R){this.ctx.lineDash=R,se.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(R){this.ctx.ignoreClearRect=!!R}})};f.prototype.setLineDash=function(S){this.lineDash=S},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){C.call(this,"fill",!1)},f.prototype.stroke=function(){C.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(S,Q){if(isNaN(S)||isNaN(Q))throw Wr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
1516jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new i(S,Q));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new i(S,Q)},f.prototype.closePath=function(){var S=new i(0,0),Q=0;for(Q=this.path.length-1;Q!==-1;Q--)if(this.path[Q].type==="begin"&&Qr(this.path[Q+1])==="object"&&typeof this.path[Q+1].x=="number"){S=new i(this.path[Q+1].x,this.path[Q+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new i(S.x,S.y)},f.prototype.lineTo=function(S,Q){if(isNaN(S)||isNaN(Q))throw Wr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new i(S,Q));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new i(z.x,z.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},f.prototype.quadraticCurveTo=function(S,Q,z,W){if(isNaN(z)||isNaN(W)||isNaN(S)||isNaN(Q))throw Wr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new i(z,W)),X=this.ctx.transform.applyToPoint(new i(S,Q));this.path.push({type:"qct",x1:X.x,y1:X.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new i(ne.x,ne.y)},f.prototype.bezierCurveTo=function(S,Q,z,W,ne,X){if(isNaN(ne)||isNaN(X)||isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W))throw Wr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var te=this.ctx.transform.applyToPoint(new i(ne,X)),fe=this.ctx.transform.applyToPoint(new i(S,Q)),pe=this.ctx.transform.applyToPoint(new i(z,W));this.path.push({type:"bct",x1:fe.x,y1:fe.y,x2:pe.x,y2:pe.y,x:te.x,y:te.y}),this.ctx.lastPoint=new i(te.x,te.y)},f.prototype.arc=function(S,Q,z,W,ne,X){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W)||isNaN(ne))throw Wr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(X=!!X,!this.ctx.transform.isIdentity){var te=this.ctx.transform.applyToPoint(new i(S,Q));S=te.x,Q=te.y;var fe=this.ctx.transform.applyToPoint(new i(0,z)),pe=this.ctx.transform.applyToPoint(new i(0,0));z=Math.sqrt(Math.pow(fe.x-pe.x,2)+Math.pow(fe.y-pe.y,2))}Math.abs(ne-W)>=2*Math.PI&&(W=0,ne=2*Math.PI),this.path.push({type:"arc",x:S,y:Q,radius:z,startAngle:W,endAngle:ne,counterclockwise:X})},f.prototype.arcTo=function(S,Q,z,W,ne){throw new Error("arcTo not implemented.")},f.prototype.rect=function(S,Q,z,W){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W))throw Wr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(S,Q),this.lineTo(S+z,Q),this.lineTo(S+z,Q+W),this.lineTo(S,Q+W),this.lineTo(S,Q),this.lineTo(S+z,Q),this.lineTo(S,Q)},f.prototype.fillRect=function(S,Q,z,W){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W))throw Wr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(S,Q,z,W),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},f.prototype.strokeRect=function(S,Q,z,W){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W))throw Wr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(S,Q,z,W),this.stroke())},f.prototype.clearRect=function(S,Q,z,W){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W))throw Wr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(S,Q,z,W))},f.prototype.save=function(S){S=typeof S!="boolean"||S;for(var Q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");
1516if(this.pdf.setPage(Q),S){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},f.prototype.restore=function(S){S=typeof S!="boolean"||S;for(var Q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(Q),S&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(S){var Q,z,W,ne;if(S.isCanvasGradient===!0&&(S=S.getColor()),!S)return{r:0,g:0,b:0,a:0,style:S};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(S))Q=0,z=0,W=0,ne=0;else{var X=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(S);if(X!==null)Q=parseInt(X[1]),z=parseInt(X[2]),W=parseInt(X[3]),ne=1;else if((X=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(S))!==null)Q=parseInt(X[1]),z=parseInt(X[2]),W=parseInt(X[3]),ne=parseFloat(X[4]);else{if(ne=1,typeof S=="string"&&S.charAt(0)!=="#"){var te=new xV(S);S=te.ok?te.toHex():"#000000"}S.length===4?(Q=S.substring(1,2),Q+=Q,z=S.substring(2,3),z+=z,W=S.substring(3,4),W+=W):(Q=S.substring(1,3),z=S.substring(3,5),W=S.substring(5,7)),Q=parseInt(Q,16),z=parseInt(z,16),W=parseInt(W,16)}}return{r:Q,g:z,b:W,a:ne,style:S}},m=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(S,Q,z,W){if(isNaN(Q)||isNaN(z)||typeof S!="string")throw Wr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!m.call(this)){var ne=q(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;D.call(this,{text:S,x:Q,y:z,scale:X,angle:ne,align:this.textAlign,maxWidth:W})}},f.prototype.strokeText=function(S,Q,z,W){if(isNaN(Q)||isNaN(z)||typeof S!="string")throw Wr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){W=isNaN(W)?void 0:W;var ne=q(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;D.call(this,{text:S,x:Q,y:z,scale:X,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:W})}},f.prototype.measureText=function(S){if(typeof S!="string")throw Wr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Q=this.pdf,z=this.pdf.internal.scaleFactor,W=Q.internal.getFontSize(),ne=Q.getStringUnitWidth(S)*W/Q.internal.scaleFactor;return new function(X){var te=(X=X||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return te}}),this}({width:ne*=Math.round(96*z/72*1e4)/1e4})},f.prototype.scale=function(S,Q){if(isNaN(S)||isNaN(Q))throw Wr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new c(S,0,0,Q,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},f.prototype.rotate=function(S){if(isNaN(S))throw Wr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Q=new c(Math.cos(S),Math.sin(S),-Math.sin(S),Math.cos(S),0,0);this.ctx.transform=this.ctx.transform.multiply(Q)},f.prototype.translate=function(S,Q){if(isNaN(S)||isNaN(Q))throw Wr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new c(1,0,0,1,S,Q);this.ctx.transform=this.ctx.transform.multiply(z)},f.prototype.transform=function(S,Q,z,W,ne,X){if(isNaN(S)||isNaN(Q)||isNaN(z)||isNaN(W)||isNaN(ne)||isNaN(X))throw Wr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
1516jsPDF.context2d.transform");var te=new c(S,Q,z,W,ne,X);this.ctx.transform=this.ctx.transform.multiply(te)},f.prototype.setTransform=function(S,Q,z,W,ne,X){S=isNaN(S)?1:S,Q=isNaN(Q)?0:Q,z=isNaN(z)?0:z,W=isNaN(W)?1:W,ne=isNaN(ne)?0:ne,X=isNaN(X)?0:X,this.ctx.transform=new c(S,Q,z,W,ne,X)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(S,Q,z,W,ne,X,te,fe,pe){var _e=this.pdf.getImageProperties(S),xe=1,Be=1,He=1,R=1;W!==void 0&&fe!==void 0&&(He=fe/W,R=pe/ne,xe=_e.width/W*fe/W,Be=_e.height/ne*pe/ne),X===void 0&&(X=Q,te=z,Q=0,z=0),W!==void 0&&fe===void 0&&(fe=W,pe=ne),W===void 0&&fe===void 0&&(fe=_e.width,pe=_e.height);var be=this.ctx.transform.decompose(),tt=q(be.rotate.shx),at=new c,De=(at=(at=(at=at.multiply(be.translate)).multiply(be.skew)).multiply(be.scale)).applyToRectangle(new l(X-Q*He,te-z*R,W*xe,ne*Be));if(this.autoPaging){for(var le,me=x.call(this,De),we=[],Fe=0;Fe<me.length;Fe+=1)we.indexOf(me[Fe])===-1&&we.push(me[Fe]);j(we);for(var ze=we[0],Pe=we[we.length-1],$e=ze;$e<Pe+1;$e++){this.pdf.setPage($e);var ct=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pt=$e===1?this.posY+this.margin[0]:this.margin[0],it=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],gt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],st=$e===1?0:it+($e-2)*gt;if(this.ctx.clip_path.length!==0){var Ut=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(le,this.posX+this.margin[3],-st+pt+this.ctx.prevPageLastElemOffset),T.call(this,"fill",!0),this.path=Ut}var Lt=JSON.parse(JSON.stringify(De));Lt=b([Lt],this.posX+this.margin[3],-st+pt+this.ctx.prevPageLastElemOffset)[0];var St=($e>ze||$e<Pe)&&p.call(this);St&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ct,gt,null).clip().discardPath()),this.pdf.addImage(S,"JPEG",Lt.x,Lt.y,Lt.w,Lt.h,null,null,tt),St&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(S,"JPEG",De.x,De.y,De.w,De.h,null,null,tt)};var x=function(S,Q,z){var W=[];Q=Q||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(S.type){default:case"mt":case"lt":W.push(Math.floor((S.y+ne)/z)+1);break;case"arc":W.push(Math.floor((S.y+ne-S.radius)/z)+1),W.push(Math.floor((S.y+ne+S.radius)/z)+1);break;case"qct":var X=G(this.ctx.lastPoint.x,this.ctx.lastPoint.y,S.x1,S.y1,S.x,S.y);W.push(Math.floor((X.y+ne)/z)+1),W.push(Math.floor((X.y+X.h+ne)/z)+1);break;case"bct":var te=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,S.x1,S.y1,S.x2,S.y2,S.x,S.y);W.push(Math.floor((te.y+ne)/z)+1),W.push(Math.floor((te.y+te.h+ne)/z)+1);break;case"rect":W.push(Math.floor((S.y+ne)/z)+1),W.push(Math.floor((S.y+S.h+ne)/z)+1)}for(var fe=0;fe<W.length;fe+=1)for(;this.pdf.internal.getNumberOfPages()<W[fe];)y.call(this);return W},y=function(){var S=this.fillStyle,Q=this.strokeStyle,z=this.font,W=this.lineCap,ne=this.lineWidth,X=this.lineJoin;this.pdf.addPage(),this.fillStyle=S,this.strokeStyle=Q,this.font=z,this.lineCap=W,this.lineWidth=ne,this.lineJoin=X},b=function(S,Q,z){for(var W=0;W<S.length;W++)switch(S[W].type){case"bct":S[W].x2+=Q,S[W].y2+=z;case"qct":S[W].x1+=Q,S[W].y1+=z;default:S[W].x+=Q,S[W].y+=z}return S},j=function(S){return S.sort(function(Q,z){return Q-z})},C=function(S,Q){var z=this.fillStyle,W=this.strokeStyle,ne=this.lineCap,X=this.lineWidth,te=Math.abs(X*this.ctx.transform.scaleX),fe=this.lineJoin;if(this.autoPaging){for(var pe,_e,xe=JSON.parse(JSON.stringify(this.path)),Be=JSON.parse(JSON.stringify(this.path)),He=[],R=0;R<Be.length;R++)if(Be[R].x!==void 0)for(var be=x.call(this,Be[R]),tt=0;tt<be.length;tt+=1)He.indexOf(be[tt])===-1&&He.push(be[tt]);for(var at=0;at<He.length;at++)for(;this.pdf.internal.getNumberOfPages()<He[at];)y.call(this);j(He);for(var De=He[0],le=He[He.length-1],me=De;me<le+1;me++){this.pdf.setPage(me),this.fillStyle=z,this.strokeStyle=W,this.lineCap=ne,this.lineWidth=te,this.lineJoin=fe;var we=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fe=me===1?this.posY+this.margin[0]:this.margin[0],ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Pe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],$e=me===1?0:ze+(me-2)*Pe;if(this.ctx.clip_path.length!==0){var ct=this.path;pe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(pe,this.posX+this.margin[3],-$e+Fe+this.ctx.prevPageLastElemOffset),T.call(this,S,!0),this.path=ct}if(_e=JSON.parse(JSON.stringify(xe)),this.path=b(_e,this.posX+this.margin[3],-$e+Fe+this.ctx.prevPageLastElemOffset),Q===!1||me===0){var pt=(me>De||me<le)&&p.call(this);pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],we,Pe,null).clip().discardPath()),T.call(this,S,Q),pt&&this.pdf.restoreGraphicsState()}this.lineWidth=X}this.path=xe}else this.lineWidth=te,T.call(this,S,Q),this.lineWidth=X}
1516,T=function(S,Q){if((S!=="stroke"||Q||!g.call(this))&&(S==="stroke"||Q||!m.call(this))){for(var z,W,ne=[],X=this.path,te=0;te<X.length;te++){var fe=X[te];switch(fe.type){case"begin":ne.push({begin:!0});break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:fe,deltas:[],abs:[]});break;case"lt":var pe=ne.length;if(X[te-1]&&!isNaN(X[te-1].x)&&(z=[fe.x-X[te-1].x,fe.y-X[te-1].y],pe>0)){for(;pe>=0;pe--)if(ne[pe-1].close!==!0&&ne[pe-1].begin!==!0){ne[pe-1].deltas.push(z),ne[pe-1].abs.push(fe);break}}break;case"bct":z=[fe.x1-X[te-1].x,fe.y1-X[te-1].y,fe.x2-X[te-1].x,fe.y2-X[te-1].y,fe.x-X[te-1].x,fe.y-X[te-1].y],ne[ne.length-1].deltas.push(z);break;case"qct":var _e=X[te-1].x+2/3*(fe.x1-X[te-1].x),xe=X[te-1].y+2/3*(fe.y1-X[te-1].y),Be=fe.x+2/3*(fe.x1-fe.x),He=fe.y+2/3*(fe.y1-fe.y),R=fe.x,be=fe.y;z=[_e-X[te-1].x,xe-X[te-1].y,Be-X[te-1].x,He-X[te-1].y,R-X[te-1].x,be-X[te-1].y],ne[ne.length-1].deltas.push(z);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(fe)}}W=Q?null:S==="stroke"?"stroke":"fill";for(var tt=!1,at=0;at<ne.length;at++)if(ne[at].arc)for(var De=ne[at].abs,le=0;le<De.length;le++){var me=De[le];me.type==="arc"?I.call(this,me.x,me.y,me.radius,me.startAngle,me.endAngle,me.counterclockwise,void 0,Q,!tt):H.call(this,me.x,me.y),tt=!0}else if(ne[at].close===!0)this.pdf.internal.out("h"),tt=!1;else if(ne[at].begin!==!0){var we=ne[at].start.x,Fe=ne[at].start.y;U.call(this,ne[at].deltas,we,Fe),tt=!0}W&&E.call(this,W),Q&&O.call(this)}},L=function(S){var Q=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=Q*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return S-z;case"top":return S+Q-z;case"hanging":return S+Q-2*z;case"middle":return S+Q/2-z;default:return S}},P=function(S){return S+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var S=function(){};return S.colorStops=[],S.addColorStop=function(Q,z){this.colorStops.push([Q,z])},S.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},S.isCanvasGradient=!0,S},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var I=function(S,Q,z,W,ne,X,te,fe,pe){for(var _e=ae.call(this,z,W,ne,X),xe=0;xe<_e.length;xe++){var Be=_e[xe];xe===0&&(pe?k.call(this,Be.x1+S,Be.y1+Q):H.call(this,Be.x1+S,Be.y1+Q)),ee.call(this,S,Q,Be.x2,Be.y2,Be.x3,Be.y3,Be.x4,Be.y4)}fe?O.call(this):E.call(this,te)},E=function(S){switch(S){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},O=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(S,Q){this.pdf.internal.out(r(S)+" "+n(Q)+" m")},D=function(S){var Q;switch(S.align){case"right":case"end":Q="right";break;case"center":Q="center";break;default:Q="left"}var z,W,ne,X=this.pdf.getTextDimensions(S.text),te=L.call(this,S.y),fe=P.call(this,te)-X.h,pe=this.ctx.transform.applyToPoint(new i(S.x,te));if(this.autoPaging){var _e=this.ctx.transform.decompose(),xe=new c;xe=(xe=(xe=xe.multiply(_e.translate)).multiply(_e.skew)).multiply(_e.scale);for(var Be=this.ctx.transform.applyToRectangle(new l(S.x,te,X.w,X.h)),He=xe.applyToRectangle(new l(S.x,fe,X.w,X.h)),R=x.call(this,He),be=[],tt=0;tt<R.length;tt+=1)be.indexOf(R[tt])===-1&&be.push(R[tt]);j(be);for(var at=be[0],De=be[be.length-1],le=at;le<De+1;le++){this.pdf.setPage(le);var me=le===1?this.posY+this.margin[0]:this.margin[0],we=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Fe=this.pdf.internal.pageSize.height-this.margin[2],ze=Fe-this.margin[0],Pe=this.pdf.internal.pageSize.width-this.margin[1],$e=Pe-this.margin[3],ct=le===1?0:we+(le-2)*ze;if(this.ctx.clip_path.length!==0){var pt=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(z,this.posX+this.margin[3],-1*ct+me),T.call(this,"fill",!0),this.path=pt}var it=b([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-ct+me+this.ctx.prevPageLastElemOffset)[0];S.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*S.scale),ne=this.lineWidth,this.lineWidth=ne*S.scale);var gt=this.autoPaging!=="text";if(gt||it.y+it.h<=Fe){if(gt||it.y>=me&&it.x<=Pe){var st=gt?S.text:this.pdf.splitTextToSize(S.text,S.maxWidth||Pe-it.x)[0],Ut=b([JSON.parse(JSON.stringify(Be))],this.posX+this.margin[3],-ct+me+this.ctx.prevPageLastElemOffset)[0],Lt=gt&&(le>at||le<De)&&p.call(this);Lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],$e,ze,null).clip().discardPath()),this.pdf.text(st,Ut.x,Ut.y,{angle:S.angle,align:Q,renderingMode:S.renderingMode}),Lt&&this.pdf.restoreGraphicsState()}}else it.y<Fe&&(this.ctx.prevPageLastElemOffset+=Fe-it.y);S.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=ne)}}else S.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*S.scale),ne=this.lineWidth,this.lineWidth=ne*S.scale),this.pdf.text(S.text,pe.x+this.posX,pe.y+this.posY,{angle:S.angle,align:Q,renderingMode:S.renderingMode,maxWidth:S.maxWidth}),S.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=ne)},H=function(S,Q,z,W){z=z||0,W=W||0,this.pdf.internal.out(r(S+z)+" "+n(Q+W)+" l")},U=function(S,Q,z){return this.pdf.lines(S,Q,z,null,null)},ee=function(S,Q,z,W,ne,X,te,fe){this.pdf.internal.out([t(s(z+S)),t(o(W+Q)
vendor: 2,216 bytes, line 1516
1516),t(s(ne+S)),t(o(X+Q)),t(s(te+S)),t(o(fe+Q)),"c"].join(" "))},ae=function(S,Q,z,W){for(var ne=2*Math.PI,X=Math.PI/2;Q>z;)Q-=ne;var te=Math.abs(z-Q);te<ne&&W&&(te=ne-te);for(var fe=[],pe=W?-1:1,_e=Q;te>1e-5;){var xe=_e+pe*Math.min(te,X);fe.push(V.call(this,S,_e,xe)),te-=Math.abs(xe-_e),_e=xe}return fe},V=function(S,Q,z){var W=(z-Q)/2,ne=S*Math.cos(W),X=S*Math.sin(W),te=ne,fe=-X,pe=te*te+fe*fe,_e=pe+te*ne+fe*X,xe=4/3*(Math.sqrt(2*pe*_e)-_e)/(te*X-fe*ne),Be=te-xe*fe,He=fe+xe*te,R=Be,be=-He,tt=W+Q,at=Math.cos(tt),De=Math.sin(tt);return{x1:S*Math.cos(Q),y1:S*Math.sin(Q),x2:Be*at-He*De,y2:Be*De+He*at,x3:R*at-be*De,y3:R*De+be*at,x4:S*Math.cos(z),y4:S*Math.sin(z)}},q=function(S){return 180*S/Math.PI},G=function(S,Q,z,W,ne,X){var te=S+.5*(z-S),fe=Q+.5*(W-Q),pe=ne+.5*(z-ne),_e=X+.5*(W-X),xe=Math.min(S,ne,te,pe),Be=Math.max(S,ne,te,pe),He=Math.min(Q,X,fe,_e),R=Math.max(Q,X,fe,_e);return new l(xe,He,Be-xe,R-He)},Ae=function(S,Q,z,W,ne,X,te,fe){var pe,_e,xe,Be,He,R,be,tt,at,De,le,me,we,Fe,ze=z-S,Pe=W-Q,$e=ne-z,ct=X-W,pt=te-ne,it=fe-X;for(_e=0;_e<41;_e++)at=(be=(xe=S+(pe=_e/40)*ze)+pe*((He=z+pe*$e)-xe))+pe*(He+pe*(ne+pe*pt-He)-be),De=(tt=(Be=Q+pe*Pe)+pe*((R=W+pe*ct)-Be))+pe*(R+pe*(X+pe*it-R)-tt),_e==0?(le=at,me=De,we=at,Fe=De):(le=Math.min(le,at),me=Math.min(me,De),we=Math.max(we,at),Fe=Math.max(Fe,De));return new l(Math.round(le),Math.round(me),Math.round(we-le),Math.round(Fe-me))},se=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var S,Q,z=(S=this.ctx.lineDash,Q=this.ctx.lineDashOffset,JSON.stringify({lineDash:S,lineDashOffset:Q}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(Dt.API),function(e){var t=function(i){var l,c,u,d,f,h,m,g,p,x;for(c=[],u=0,d=(i+=l="\0\0\0\0".slice(i.length%4||4)).length;d>u;u+=4)(f=(i.charCodeAt(u)<<24)+(i.charCodeAt(u+1)<<16)+(i.charCodeAt(u+2)<<8)+i.charCodeAt(u+3))!==0?(h=(f=((f=((f=((f=(f-(x=f%85))/85)-(p=f%85))/85)-(g=f%85))/85)-(m=f%85))/85)%85,c.push(h+33,m+33,g+33,p+33,x+33)):c.push(122);return function(y,b){for(var j=b;j>0;j--)y.pop()}(c,l.length),String.fromCharCode.apply(String,c)+"~>"},r=function(i){var l,c,u,d,f,h=String,m="length",g=255,p="charCo
1516deAt",x="slice",y="replace";for(i[x](-2),i=i[x](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),u=[],d=0,f=(i+=l="uuuuu"[x](i[m]%5||5))[m];f>d;d+=5)c=52200625*(i[p](d)-33)+614125*(i[p](d+1)-33)+7225*(i[p](d+2)-33)+85*(i[p](d+3)-33)+(i[p](d+4)-33),u.push(g&c>>24,g&c>>16,g&c>>8,g&c);return function(b,j){for(var C=j;C>0;C--)b.pop()}(u,l[m]),h.fromCharCode.apply(h,u)},n=function(i){return i.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},s=function(i){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),l.test(i)===!1)return"";for(var c="",u=0;u<i.length;u+=2)c+=String.fromCharCode("0x"+(i[u]+i[u+1]));return c},o=function(i){for(var l=new Uint8Array(i.length),c=i.length;c--;)l[c]=i.charCodeAt(c);return(l=r2(l)).reduce(function(u,d){return u+String.fromCharCode(d)},"")};e.processDataByFilters=function(i,l){var c=0,u=i||"",d=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":u=r(u),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=t(u),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=s(u),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=n(u),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=o(u),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:u,reverseChain:d.reverse().join(" ")}}}(Dt.API),function(e){e.loadFile=function(t,r,n){return function(s,o,i){o=o!==!1,i=typeof i=="function"?i:function(){};var l=void 0;try{l=function(c,u,d){var f=new XMLHttpRequest,h=0,m=function(g){var p=g.length,x=[],y=String.fromCharCode;for(h=0;h<p;h+=1)x.push(y(255&g.charCodeAt(h)));return x.join("")};if(f.open("GET",c,!u),f.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(f.onload=function(){f.status===200?d(m(this.responseText)):d(void 0)}),f.send(null),u&&f.status===200)return m(f.responseText)}(s,o,i)}catch{}return l}(t,r,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Dt.API),function(e){function t(){return(Zt.html2canvas?Promise.resolve(Zt.html2canvas):B(()=>Promise.resolve().then(()=>d5e),void 0)).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function r(){return(Zt.DOMPurify?Promise.resolve(Zt.DOMPurify):B(()=>import("./purify.es-Csrj9YNg.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var n=function(l){var c=Qr(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},s=function(l,c){var u=document.createElement(l);for(var d in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[d]=c.style[d];return u},o=function l(c,u){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),f=c.firstChild;f;f=f.nextSibling)u!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||d.appendChild(l(f,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d},i=function l(c){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),d=l.convert(Promise.resolve(),u);return(d=d.setProgress(1,l,1,[l])).set(c)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(l,c){return l.__proto__=c||i.prototype,l},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(l,c){return this.then(function(){switch(c=c||function(u){switch(n(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l),c){case"string":return this.then(r).then(function(u){return this.set({src:s("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},i.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();
1516case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var u=this.opt.jsPDF,d=this.opt.fontFaces,f=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,h=Object.assign({async:!0,allowTaint:!0,scale:f,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete h.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=d,d)for(var m=0;m<d.length;++m){var g=d[m],p=g.src.find(function(x){return x.format==="truetype"});p&&u.addFont(p.url,g.ref.name,g.ref.style)}return h.windowHeight=h.windowHeight||0,h.windowHeight=h.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):h.windowHeight,u.context2d.save(!0),c(this.prop.container,h)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(l,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},i.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf(
vendor: 22,249 bytes, lines 1516-1522
1516)}]).then(function(){return this.prop.pdf.output(l,c)})},i.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},i.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(l){if(n(l)!=="object")return this;var c=Object.keys(l||{}).map(function(u){if(u in i.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(c)})},i.prototype.get=function(l,c){return this.then(function(){var u=l in i.template.prop?this.prop[l]:this.opt[l];return c?c(u):u})},i.prototype.setMargin=function(l){return this.then(function(){switch(n(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},i.prototype.setPageSize=function(l){function c(u,d){return Math.floor(u*d/72*96)}return this.then(function(){(l=l||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},i.prototype.setProgress=function(l,c,u,d){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(l,c,u,d){return this.setProgress(l?this.progress.val+l:null,c||null,u?this.progress.n+u:null,d?this.progress.stack.concat(d):null)},i.prototype.then=function(l,c){var u=this;return this.thenCore(l,c,function(d,f){return u.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(h){return u.updateProgress(null,d),h}).then(d,f).then(function(h){return u.updateProgress(1),h})})},i.prototype.thenCore=function(l,c,u){u=u||Promise.prototype.then;var d=this;l&&(l=l.bind(d)),c&&(c=c.bind(d));var f=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:i.convert(Object.assign({},d),Promise.prototype),h=u.call(f,l,c);return i.convert(h,d.__proto__)},i.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},i.prototype.thenList=function(l){var c=this;return l.forEach(function(u){c=c.thenCore(u)}),c},i.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return i.convert(c,this)},i.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},i.prototype.error=function(l){return this.then(function(){throw new Error(l)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,Dt.getPageSize=function(l,c,u){if(Qr(l)==="object"){var d=l;l=d.orientation,c=d.unit||c,u=d.format||u}c=c||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var f,h=(""+u).toLowerCase(),m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":f=1;break;case"mm":f=72/25.4;break;case"cm":f=72/2.54;break;case"in":f=72;break;case"px":f=.75;break;case"pc":case"em":f=12;break;case"ex":f=6;break;default:throw"Invalid unit: "+c}var g,p=0,x=0;if(m.hasOwnProperty(h))p=m[h][1]/f,x=m[h][0]/f;else try{p=u[1],x=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",x>p&&(g=x,x=p,p=g);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",p>x&&(g=x,x=p,p=g)}return{width:x,height:p,unit:c,k:f,orientation:l}},e.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Nb):null;var u=new i(c);return c.worker?u:u.from(l).doCallback()}}(Dt.API),Dt.API.addJS=function(e){var t,r,n=function(s){for(var o="",i=0;i<s.length;i++){var l=s[i];if(l==="("||l===")"){for(var c=0,u=i-1;u>=0&&s[u]==="\\";u--)c++;o+=c%2==0?"\\"+l:l}else o+=l}return o}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&r!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=r.outline.render().split(/\r\n/),o=0;o<s.length;o++){var i=s[o],l=n.exec(i);if(l!=null){var c=l[1];r.internal.newObjectDeferredBegin(c,!1)}r.internal.write(i)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,d=[];for(o=0;o<u;o++){var f=r.internal.newObject();d.push(f);var h=r.internal.getPageInfo(o+1);r.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var m=r.internal.newObject();for(r.internal.write("<< /Names [ "),o=0;o<d.length;o++)r.internal.write("(page_"+(o+1)+")"+d[o]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+m+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,s,o){var i={title:s,options:o,children:[]};return n==null&&(n=this.root),n.children.push(i),i},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var s=0;s<n.children.length;s++)this.genIds_r(n.children[s])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<n.children.length;o++){var i=n.children[o];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(n)),o>0&&this.line("/Prev "+this.makeRef(n.children[o-1])),o<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[o+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var l=this.count=this.count_r({count:0},i);if(l>0&&this.line("/Count "+l),i.options&&i.options.pageNumber){var c=r.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var u=0;u<n.children.length;u++)this.renderItems(n.children[u])},r.outline.line=function(n){this.ctx.val+=n+`\r 1517`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r 1518`+n.id+` 0 obj\r 1519<<\r 1520`},r.outline.objEnd=function(){this.ctx.val+=`>> \r 1521endobj\r 1522`},r.outline.count_r=function(n,s){for(var o=0;o<s.children.length;o++)n.count++,this.count_r(n,s.children[o]);return n.count}}])}(Dt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,s,o,i,l){var c,u=this.decode.DCT_DECODE,d=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=i||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,c=function(f){for(var h,m=256*f.charCodeAt(4)+f.charCodeAt(5),g=f.length,p={width:0,height:0,numcomponents:1},x=4;x<g;x+=2){if(x+=m,t.indexOf(f.charCodeAt(x+1))!==-1){h=256*f.charCodeAt(x+5)+f.charCodeAt(x+6),p={width:256*f.charCodeAt(x+7)+f.charCodeAt(x+8),height:h,numcomponents:f.charCodeAt(x+9)};break}m=256*f.charCodeAt(x+2)+f.charCodeAt(x+3)}return p}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}d={data:r,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:u,index:n,alias:s}}return d}}(Dt.API),Dt.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var s,o=gje(e,{checkCrc:!0}),i=o.width,l=o.height,c=o.channels,u=o.palette,d=o.depth;s=u&&c===1?function(I){for(var E=I.width,O=I.height,k=I.data,D=I.palette,H=I.depth,U=!1,ee=[],ae=[],V=void 0,q=!1,G=0,Ae=0;Ae<D.length;Ae++){var se=ak(D[Ae],4),S=se[0],Q=se[1],z=se[2],W=se[3];ee.push(S,Q,z),W!=null&&(W===0?(G++,ae.length<1&&ae.push(Ae)):W<255&&(q=!0))}if(q||G>1){U=!0,ae=void 0;var ne=E*O;V=new Uint8Array(ne);for(var X=new DataView(k.buffer),te=0;te<ne;te++){var fe=kb(X,te,H),pe=ak(D[fe],4)[3];V[te]=pe}}else G===0&&(ae=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:k,alphaBytes:V,needSMask:U,palette:ee,mask:ae}}(o):c===2||c===4?function(I){for(var E=I.data,O=I.width,k=I.height,D=I.channels,H=I.depth,U=D===2?"DeviceGray":"DeviceRGB",ee=D-1,ae=O*k,V=ee,q=ae*V,G=1*ae,Ae=Math.ceil(q*H/8),se=Math.ceil(G*H/8),S=new Uint8Array(Ae),Q=new Uint8Array(se),z=new DataView(E.buffer),W=new DataView(S.buffer),ne=new DataView(Q.buffer),X=!1,te=0;te<ae;te++){for(var fe=te*D,pe=0;pe<V;pe++)iI(W,kb(z,fe+pe,H),te*V+pe,H);var _e=kb(z,fe+V,H);_e<(1<<H)-1&&(X=!0),iI(ne,_e,1*te,H)}return{colorSpace:U,colorsPerPixel:ee,sMaskBitsPerComponent:X?H:void 0,colorBytes:S,alphaBytes:Q,needSMask:X}}(o):function(I){var E=I.data,O=I.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:O,colorsPerPixel:O==="DeviceGray"?1:3,colorBytes:E instanceof Uint16Array?function(k){for(var D=k.length,H=new Uint8Array(2*D),U=new DataView(H.buffer,H.byteOffset,H.byteLength),ee=0;ee<D;ee++)U.setUint16(2*ee,k[ee],!1);return H}(E):E,needSMask:!1}}(o);var f,h,m,g=s,p=g.colorSpace,x=g.colorsPerPixel,y=g.sMaskBitsPerComponent,b=g.colorBytes,j=g.alphaBytes,C=g.needSMask,T=g.palette,L=g.mask,P=null;return n!==Dt.API.image_compression.NONE&&typeof r2=="function"?(P=function(I){var E;switch(I){case Dt.API.image_compression.FAST:E=11;break;case Dt.API.image_compression.MEDIUM:E=13;break;case Dt.API.image_compression.SLOW:E=14;break;default:E=12}return E}(n),f=this.decode.FLATE_DECODE,h="/Predictor ".concat(P," /Colors ").concat(x," /BitsPerComponent ").concat(d," /Columns ").concat(i),e=rI(b,Math.ceil(i*x*d/8),x,d,n),C&&(m=rI(j,Math.ceil(i*y/8),1,y,n))):(f=void 0,h=void 0,e=b,C&&(m=j)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:r,data:e,index:t,filter:f,decodeParameters:h,transparency:L,palette:T,sMask:m,predictor:P,width:i,height:l,bitsPerComponent:d,sMaskBitsPerComponent:y,colorSpace:p}}},function(e){e.processGIF89A=function(t,r,n,s){var o=new Oje(t),i=o.width,l=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:i,height:l},d=new Ib(100).encode(u,100);return e.processJPEG.call(this,d,r,n,s)},e.processGIF87A=e.processGIF89A}(Dt.API),$o.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:s,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},$o.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(r){Wr.log("bit decode error:"+r)}},$o.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,s=0;s<t;s++)for(var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+8*s*4,l=0;l<8&&8*s+l<this.width;l++){var c=this.palette[o>>7-l&1];this.data[i+4*l]=c.blue,this.data[i+4*l+1]=c.green,this.data[i+4*l+2]=c.red,this.data[i+4*l+3]=255}r!==0&&(this.pos+=4-r)}},$o.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,s=0;s<e;s++){var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+2*s*4,l=o>>4,c=15&o,u=this.palette[l];if(this.data[i]=u.blue,this.data[i+1]=u.green,this.data[i+2]=u.red,this.data[i+3]=255,2*s+1>=this.width)break;u=this.palette[c],this.data[i+4]=u.blue,this.data[i+4+1]=u.green,this.data[i+4+2]=u.red,this.data[i+4+3]=255}t!==0&&(this.pos+=4-t)}},$o.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;if(s<this.palette.length){var i=this.palette[s];this.data[o]=i.red,this.data[o+1]=i.green,this.data[o+2]=i.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},$o.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(o&t)/t*255|0,l=(o>>5&t)/t*255|0,c=(o>>10&t)/t*255|0,u=o>>15?255:0,d=n*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=i,this.data[d+3]=u}this.pos+=e}},$o.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var s=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(i&t)/t*255|0,c=(i>>5&r)/r*255|0,u=(i>>11)/t*255|0,d=s*this.width*4+4*o;this.data[d]=u,this.data[d+1]=c,this.data[d+2]=l,this.data[d+3]=255}this.pos+=e}},$o.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;this.data[i]=o,this.data[i+1]=s,this.data[i+2]=n,this.data[i+3]=255}this.pos+=this.width%4}},$o.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*r;this.data[l]=o,this.data[l+1]=s,this.data[l+2]=n,this.data[l+3]=i}},$o.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,s){var o=new $o(t,!1),i=o.width,l=o.height,c={data:o.getData(),width:i,height:l},u=new Ib(100).encode(c,100);return e.processJPEG.call(this,u,r,n,s)}}(Dt.API),cI.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,s){var o=new cI(t),i=o.width,l=o.height,c={data:o.getData(),width:i,height:l},u=new Ib(100).encode(c,100);return e.processJPEG.call(this,u,r,n,s)}}(Dt.API),Dt.API.processRGBA=function(e,t,r){for(var n=e.data,s=n.length,o=new Uint8Array(s/4*3),i=new Uint8Array(s/4),l=0,c=0,u=0;u<s;u+=4){var d=n[u],f=n[u+1],h=n[u+2],m=n[u+3];o[l++]=d,o[l++]=f,o[l++]=h,i[c++]=m}var g=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(i),data:g,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Dt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Sp
1522ain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Md=Dt.API,Dg=Md.getCharWidthsArray=function(e,t){var r,n,s=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),i=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:s.metadata.Unicode.widths,c=l.fof?l.fof:1,u=t.kerning?t.kerning:s.metadata.Unicode.kerning,d=u.fof?u.fof:1,f=t.doKerning!==!1,h=0,m=e.length,g=0,p=l[0]||c,x=[];for(r=0;r<m;r++)n=e.charCodeAt(r),typeof s.metadata.widthOfString=="function"?x.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n))+i*(1e3/o)||0)/1e3):(h=f&&Qr(u[n])==="object"&&!isNaN(parseInt(u[n][g],10))?u[n][g]/d:0,x.push((l[n]||p)/c+h)),g=n;return x},Jk=Md.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),s=t.charSpace||this.internal.getCharSpace();return Md.processArabic&&(e=Md.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,s)/r:Dg.apply(this,arguments).reduce(function(o,i){return o+i},0)},eI=function(e,t,r,n){for(var s=[],o=0,i=e.length,l=0;o!==i&&l+t[o]<r;)l+=t[o],o++;s.push(e.slice(0,o));var c=o;for(l=0;o!==i;)l+t[o]>n&&(s.push(e.slice(c,o)),l=0,c=o),l+=t[o],o++;return c!==o&&s.push(e.slice(c,o)),s},tI=function(e,t,r){r||(r={});var n,s,o,i,l,c,u,d=[],f=[d],h=r.textIndent||0,m=0,g=0,p=e.split(" "),x=Dg.apply(this,[" ",r])[0];if(c=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(c).join(" "),b=[];p.map(function(C){(C=C.split(/\s*\n/)).length>1?b=b.concat(C.map(function(T,L){return(L&&T.length?` 1523`:"")+T})):b.push(C[0])}),p=b,c=Jk.apply(this,[y,r])}for(o=0,i=p.length;o<i;o++){var j=0;if(n=p[o],c&&n[0]==` 1524`&&(n=n.substr(1),j=1),h+m+(g=(s=Dg.apply(this,[n,r])).reduce(function(C,T){return C+T},0))>t||j){if(g>t){for(l=eI.apply(this,[n,s,t-(h+m),t]),d.push(l.shift()),d=[l.pop()];l.length;)f.push([l.shift()]);g=s.slice(n.length-(d[0]?d[0].length:0)).reduce(function(C,T){return C+T},0)}else d=[n];f.push(d),h=g+c,m=x}else d.push(n),h+=m+g,m=x}return u=c?function(C,T){return(T?y:"")+C.join(" ")}:function(C){return C.join(" ")},f.map(u)},Md.splitTextToSize=function(e,t,r){var n,s=(r=r||{}).fontSize||this.internal.getFontSize(),o=function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var f=this.internal.getFont(d.fontName,d.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);
1524n=Array.isArray(e)?e:String(e).split(/\r?\n/);var i=1*this.internal.scaleFactor*t/s;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/s:0,o.lineIndent=r.lineIndent;var l,c,u=[];for(l=0,c=n.length;l<c;l++)u=u.concat(tI.apply(this,[n[l],i,o]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},s={},o=0;o<16;o++)n[r[o]]=t[o],s[t[o]]=r[o];var i=function(h){return"0x"+parseInt(h,10).toString(16)},l=e.__fontmetrics__.compress=function(h){var m,g,p,x,y=["{"];for(var b in h){if(m=h[b],isNaN(parseInt(b,10))?g="'"+b+"'":(b=parseInt(b,10),g=(g=i(b).slice(2)).slice(0,-1)+s[g.slice(-1)]),typeof m=="number")m<0?(p=i(m).slice(3),x="-"):(p=i(m).slice(2),x=""),p=x+p.slice(0,-1)+s[p.slice(-1)];else{if(Qr(m)!=="object")throw new Error("Don't know what to do with value type "+Qr(m)+".");p=l(m)}y.push(g+p)}return y.push("}"),y.join("")},c=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,g,p,x,y={},b=1,j=y,C=[],T="",L="",P=h.length-1,I=1;I<P;I+=1)(x=h[I])=="'"?m?(p=m.join(""),m=void 0):m=[]:m?m.push(x):x=="{"?(C.push([j,p]),j={},p=void 0):x=="}"?((g=C.pop())[0][g[1]]=j,p=void 0,j=g[0]):x=="-"?b=-1:p===void 0?n.hasOwnProperty(x)?(T+=n[x],p=parseInt(T,16)*b,b=1,T=""):T+=x:n.hasOwnProperty(x)?(L+=n[x],j[p]=parseInt(L,16)*b,b=1,p=void 0,L=""):L+=x;return y},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u
vendor: 14,731 bytes, line 1524
1524}},f={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
1524h){var m=h.font,g=f.Unicode[m.postScriptName];g&&(m.metadata.Unicode={},m.metadata.Unicode.widths=g.widths,m.metadata.Unicode.kerning=g.kerning);var p=d.Unicode[m.postScriptName];p&&(m.metadata.Unicode.encoding=p,m.encoding=p.codePages[0])}])}(Dt.API),function(e){var t=function(r){for(var n=r.length,s=new Uint8Array(n),o=0;o<n;o++)s[o]=r.charCodeAt(o);return s};e.API.events.push(["addFont",function(r){var n=void 0,s=r.font,o=r.instance;if(!s.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(n=o.existsFileInVFS(s.postScriptName)===!1?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(i,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(y0(l)),i.metadata=e.API.TTFFont.open(l),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]})(s,n)}}])}(Dt),Dt.API.addSvgAsImage=function(e,t,r,n,s,o,i,l){if(isNaN(t)||isNaN(r))throw Wr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(s))throw Wr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=n,c.height=s;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(Zt.canvg?Promise.resolve(Zt.canvg):B(()=>import("./index.es-jcQxEZyF.js"),__vite__mapDeps([0,1,2,3]))).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(u,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(d)}).then(function(){f.addImage(c.toDataURL("image/jpeg",1),t,r,n,s,i,l)})},Dt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var s=0;s<this.internal.pages[n].length;s++)this.internal.pages[n][s]=this.internal.pages[n][s].replace(t,r);return this},Dt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,s,o,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(i),c=[],u=0,d=0,f=0;function h(g,p){var x,y=!1;for(x=0;x<g.length;x+=1)g[x]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=l.length;for(f=0;f<m;f+=1)r[l[f]].value=r[l[f]].defaultValue,r[l[f]].explicitSet=!1}if(Qr(e)==="object"){for(s in e)if(o=e[s],h(l,s)&&o!==void 0){if(r[s].type==="boolean"&&typeof o=="boolean")r[s].value=o;else if(r[s].type==="name"&&h(r[s].valueSet,o))r[s].value=o;else if(r[s].type==="integer"&&Number.isInteger(o))r[s].value=o;else if(r[s].type==="array"){for(u=0;
1524u<o.length;u+=1)if(n=!0,o[u].length===1&&typeof o[u][0]=="number")c.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!="number"&&(n=!1);n===!0&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}r[s].value="["+c.join(" ")+"]"}else r[s].value=r[s].defaultValue;r[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var g,p=[];for(g in r)r[g].explicitSet===!0&&(r[g].type==="name"?p.push("/"+g+" /"+r[g].value):p.push("/"+g+" "+r[g].value));p.length!==0&&this.internal.write(`/ViewerPreferences 1525<< 1526`+p.join(` 1527`)+` 1528>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Dt.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",Qje),this.internal.events.subscribe("postPutResources",Uje)),this},function(e){var t=e.API,r=t.pdfEscape16=function(o,i){for(var l,c=i.metadata.Unicode.widths,u=["","0","00","000","0000"],d=[""],f=0,h=o.length;f<h;++f){if(l=i.metadata.characterToGlyph(o.charCodeAt(f)),i.metadata.glyIdsUsed.push(l),i.metadata.toUnicode[l]=o.charCodeAt(f),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(i.metadata.widthOfGlyph(l),10)])),l=="0")return d.join("");l=l.toString(16),d.push(u[4-l.length],l)}return d.join("")},n=function(o){var i,l,c,u,d,f,h;for(d=`/CIDInit /ProcSet findresource begin 152912 dict begin 1530begincmap 1531/CIDSystemInfo << 1532 /Registry (Adobe) 1533 /Ordering (UCS) 1534 /Supplement 0 1535>> def 1536/CMapName /Adobe-Identity-UCS def 1537/CMapType 2 def 15381 begincodespacerange 1539<0000><ffff> 1540endcodespacerange`,c=[],f=0,h=(l=Object.keys(o).sort(function(m,g){return m-g})).length;f<h;f++)i=l[f],c.length>=100&&(d+=` 1541`+c.length+` beginbfchar 1542`+c.join(` 1543`)+` 1544endbfchar`,c=[]),o[i]!==void 0&&o[i]!==null&&typeof o[i].toString=="function"&&(u=("0000"+o[i].toString(16)).slice(-4),i=("0000"+(+i).toString(16)).slice(-4),c.push("<"+i+"><"+u+">"));return c.length&&(d+=` 1545`+c.length+` beginbfchar 1546`+c.join(` 1547`)+` 1548endbfchar 1549`),d+`endcmap 1550CMapName currentdict /CMap defineresource pop 1551end 1552end`};t.events.push(["putFont",function(o){(function(i){var l=i.font,c=i.out,u=i.newObject,d=i.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var f=l.metadata.Unicode.widths,h=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),m="",g=0;g<h.length;g++)m+=String.fromCharCode(h[g]);var p=u();d({data:m,addLength1:!0,objectId:p}),c("endobj");var x=u();d({data:n(l.metadata.toUnicode),addLength1:!0,objectId:x}),c("endobj");var y=u();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+qd(l.fontName)),c("/FontFile2 "+p+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var b=u();c("<<"),c("/Type /Font"),c("/BaseFont /"+qd(l.fontName)),c("/FontDescriptor "+y+" 0 R"),c("/W "+e.API.PDFObject.convert(f)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=u(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+x+" 0 R"),c("/BaseFont /"+qd(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+b+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(i){var l=i.font,c=i.out,u=i.newObject,d=i.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var f=l.metadata.rawData,h="",m=0;m<f.length;m++)h+=String.fromCharCode(f[m]);var g=u();d({data:h,addLength1:!0,objectId:g}),c("endobj");var p=u();d({data:n(l.metadata.toUnicode),addLength1:!0,objectId:p}),c("endobj");var x=u();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+g+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+qd(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=u();for(var y=0;y<l.metadata.hmtx.widths.length;y++)l.metadata.hmtx.widths[y]=parseInt(l.metadata.hmtx.widths[y]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+qd(l.fontName)+"/FontDescriptor "+x+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]);var s=function(o){var i,l=o.text||"",c=o.x,u=o.y,d=o.options||{},f=o.mutex||{},h=f.pdfEscape,m=f.activeFontKey,g=f.fonts,p=m,x="",y=0,b="",j=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:l,x:c,y:u,options:d,mutex:f};for(b=l,p=m,Array.isArray(l)&&(b=l[0]),y=0;y<b.length;y+=1)g[p].metadata.hasOwnProperty("cmap")&&(i=g[p].metadata.cmap.unicode.codeMap[b[y].charCo
1552deAt(0)]),i||b[y].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?x+=b[y]:x+="";var C="";return parseInt(p.slice(1))<14||j==="WinAnsiEncoding"?C=h(x,p).split("").map(function(T){return T.charCodeAt(0).toString(16)}).join(""):j==="Identity-H"&&(C=r(x,g[p])),f.isHex=!0,{text:C,x:c,y:u,options:d,mutex:f}};t.events.push(["postProcessText",function(o){var i=o.text||"",l=[],c={text:i,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(i)){var u=0;for(u=0;u<i.length;u+=1)Array.isArray(i[u])&&i[u].length===3?l.push([s(Object.assign({},c,{text:i[u][0]})).text,i[u][1],i[u][2]]):l.push(s(Object.assign({},c,{text:i[u]})).text);o.text=l}else o.text=s(Object.assign({},c,{text:i})).text}])}(Dt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(Dt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var s,o,i,l,c,u,d,f=t,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],g={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},x=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â
","â","â
","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),b=!1,j=0;this.__bidiEngine__={};var C=function(k){var D=k.charCodeAt(),H=D>>8,U=p[H];return U!==void 0?f[256*U+(255&D)]:H===252||H===253?"AL":y.test(H)?"L":H===8?"R":"N"},T=function(k){for(var D,H=0;H<k.length;H++){if((D=C(k.charAt(H)))==="L")return!1;if(D==="R")return!0}return!1},L=function(k,D,H,U){var ee,ae,V,q,G=D[U];switch(G){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"N":case"AN":break;case"EN":b&&(G="AN");break;case"AL":b=!0,G="R";break;case"WS":case"BN":G="N";break;case"CS":U<1||U+1>
1552=D.length||(ee=H[U-1])!=="EN"&&ee!=="AN"||(ae=D[U+1])!=="EN"&&ae!=="AN"?G="N":b&&(ae="AN"),G=ae===ee?ae:"N";break;case"ES":G=(ee=U>0?H[U-1]:"B")==="EN"&&U+1<D.length&&D[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&H[U-1]==="EN"){G="EN";break}if(b){G="N";break}for(V=U+1,q=D.length;V<q&&D[V]==="ET";)V++;G=V<q&&D[V]==="EN"?"EN":"N";break;case"NSM":if(i&&!l){for(q=D.length,V=U+1;V<q&&D[V]==="NSM";)V++;if(V<q){var Ae=k[U],se=Ae>=1425&&Ae<=2303||Ae===64286;if(ee=D[V],se&&(ee==="R"||ee==="AL")){G="R";break}}}G=U<1||(ee=D[U-1])==="B"?"N":H[U-1];break;case"B":b=!1,s=!0,G=j;break;case"S":o=!0,G="N"}return G},P=function(k,D,H){var U=k.split("");return H&&I(U,H,{hiLevel:j}),U.reverse(),D&&D.reverse(),U.join("")},I=function(k,D,H){var U,ee,ae,V,q,G=-1,Ae=k.length,se=0,S=[],Q=j?m:h,z=[];for(b=!1,s=!1,o=!1,ee=0;ee<Ae;ee++)z[ee]=C(k[ee]);for(ae=0;ae<Ae;ae++){if(q=se,S[ae]=L(k,z,S,ae),U=240&(se=Q[q][g[S[ae]]]),se&=15,D[ae]=V=Q[se][5],U>0)if(U===16){for(ee=G;ee<ae;ee++)D[ee]=1;G=-1}else G=-1;if(Q[se][6])G===-1&&(G=ae);else if(G>-1){for(ee=G;ee<ae;ee++)D[ee]=V;G=-1}z[ae]==="B"&&(D[ae]=0),H.hiLevel|=V}o&&function(W,ne,X){for(var te=0;te<X;te++)if(W[te]==="S"){ne[te]=j;for(var fe=te-1;fe>=0&&W[fe]==="WS";fe--)ne[fe]=j}}(z,D,Ae)},E=function(k,D,H,U,ee){if(!(ee.hiLevel<k)){if(k===1&&j===1&&!s)return D.reverse(),void(H&&H.reverse());for(var ae,V,q,G,Ae=D.length,se=0;se<Ae;){if(U[se]>=k){for(q=se+1;q<Ae&&U[q]>=k;)q++;for(G=se,V=q-1;G<V;G++,V--)ae=D[G],D[G]=D[V],D[V]=ae,H&&(ae=H[G],H[G]=H[V],H[V]=ae);se=q}se++}}},O=function(k,D,H){var U=k.split(""),ee={hiLevel:j};return H||(H=[]),I(U,H,ee),function(ae,V,q){if(q.hiLevel!==0&&d)for(var G,Ae=0;Ae<ae.length;Ae++)V[Ae]===1&&(G=x.indexOf(ae[Ae]))>=0&&(ae[Ae]=x[G+1])}(U,H,ee),E(2,U,D,H,ee),E(1,U,D,H,ee),U.join("")};return this.__bidiEngine__.doBidiReorder=function(k,D,H){if(function(ee,ae){if(ae)for(var V=0;V<ee.length;V++)ae[V]=V;l===void 0&&(l=T(ee)),u===void 0&&(u=T(ee))}(k,D),i||!c||u)if(i&&c&&l^u)j=l?1:0,k=P(k,D,H);else if(!i&&c&&u)j=l?1:0,k=O(k,D,H),k=P(k,D);else if(!i||l||c||u){if(i&&!c&&l^u)k=P(k,D),l?(j=0,k=O(k,D,H)):(j=1,k=O(k,D,H),k=P(k,D));else if(i&&l&&!c&&u)j=1,k=O(k,D,H),k=P(k,D);else if(!i&&!c&&l^u){var U=d;l?(j=1,k=O(k,D,H),j=0,d=!1,k=O(k,D,H),d=U):(j=0,k=O(k,D,H),k=P(k,D),j=1,d=!1,k=O(k,D,H),d=U,k=P(k,D))}}else j=0,k=O(k,D,H);else j=l?1:0,k=O(k,D,H);return k},this.__bidiEngine__.setOptions=function(k){k&&(i=k.isInputVisual,c=k.isOutputVisual,l=k.isInputRtl,u=k.isOutputRtl,d=k.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var s=n.text;n.x,n.y;var o=n.options||{};
1552n.mutex,o.lang;var i=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,r.setOptions(o),Object.prototype.toString.call(s)==="[object Array]"){var l=0;for(i=[],l=0;l<s.length;l+=1)Object.prototype.toString.call(s[l])==="[object Array]"?i.push([r.doBidiReorder(s[l][0]),s[l][1],s[l][2]]):i.push([r.doBidiReorder(s[l])]);n.text=i}else n.text=r.doBidiReorder(s);r.setOptions({isInputVisual:!0})}])}(Dt),Dt.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new Bc(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new rEe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Vje(this.contents),this.head=new zje(this),this.name=new Wje(this),this.cmap=new SV(this),this.toUnicode={},this.hhea=new $je(this),this.maxp=new Yje(this),this.hmtx=new Xje(this),this.post=new Kje(this),this.os2=new qje(this),this.loca=new tEe(this),this.glyf=new Zje(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,s,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var i,l,c,u;for(u=[],i=0,l=(c=this.bbox).length;i<l;i++)t=c[i],u.push(Math.round(t*this.scaleFactor));return u}.call(this),this.stemV=0,this.post.exists?(n=255&(s=this.post.italic_angle),32768&(r=s>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var s,o,i,l;for(i=0,o=0,l=(t=""+t).length;0<=l?o<l:o>l;o=0<=l?++o:--o)s=t.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(s))+n*(1e3/r)||0;return i*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var ii,Bc=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,s;for(s=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)s.push(this.writeByte(t.charCodeAt(r)));return s},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,s,o,i,l,c;return t=this.readByte(),r=this.readByte(),n=this.readByte(),s=this.readByte(),o=this.readByte(),i=this.readByte(),l=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^s)+16777216*(255^o)+65536*(255^i)+256*(255^l)+(255^c)+1):72057594037927940*t+281474976710656*r
vendor: 3,034 bytes, line 1552
1552+1099511627776*n+4294967296*s+16777216*o+65536*i+256*l+c},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,s,o;for(o=[],n=0,s=t.length;n<s;n++)r=t[n],o.push(this.writeByte(r));return o},e}(),Vje=function(){var e;function t(r){var n,s,o;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},s=0,o=this.tableCount;0<=o?s<o:s>o;s=0<=o?++s:--s)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,s,o,i,l,c,u,d,f,h,m,g,p;for(p in m=Object.keys(r).length,c=Math.log(2),f=16*Math.floor(Math.log(m)/c),i=Math.floor(f/c),d=16*m-f,(s=new Bc).writeInt(this.scalarType),s.writeShort(m),s.writeShort(f),s.writeShort(i),s.writeShort(d),o=16*m,u=s.pos+o,l=null,g=[],r)for(h=r[p],s.writeString(p),s.writeInt(e(h)),s.writeInt(u),s.writeInt(h.length),g=g.concat(h),p==="head"&&(l=u),u+=h.length;u%4;)g.push(0),u++;return s.write(g),n=2981146554-e(s.data),s.pos=l+8,s.writeUInt32(n),s.data},e=function(r){var n,s,o,i;for(r=kV.call(r);r.length%4;)r.push(0);for(o=new Bc(r),s=0,n=0,i=r.length;n<i;n=n+=4)s+=o.readUInt32();return 4294967295&s},t}(),Hje={}.hasOwnProperty,Vi=function(e,t){for(var r in t)Hje.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};ii=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var zje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;
1552return(r=new Bc).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),uI=function(){function e(t,r){var n,s,o,i,l,c,u,d,f,h,m,g,p,x,y,b,j;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(m=t.readUInt16(),h=m/2,t.pos+=6,o=function(){var C,T;for(T=[],c=C=0;0<=h?C<h:C>h;c=0<=h?++C:--C)T.push(t.readUInt16());return T}(),t.pos+=2,p=function(){var C,T;for(T=[],c=C=0;0<=h?C<h:C>h;c=0<=h?++C:--C)T.push(t.readUInt16());return T}(),u=function(){var C,T;for(T=[],c=C=0;0<=h?C<h:C>h;c=0<=h?++C:--C)T.push(t.readUInt16());return T}(),d=function(){var C,T;for(T=[],c=C=0;0<=h?C<h:C>h;c=0<=h?++C:--C)T.push(t.readUInt16());return T}(),s=(this.length-t.pos+this.offset)/2,l=function(){var C,T;for(T=[],c=C=0;0<=s?C<s:C>s;c=0<=s?++C:--C)T.push(t.readUInt16());return T}(),c=y=0,j=o.length;y<j;c=++y)for(x=o[c],n=b=g=p[c];g<=x?b<=x:b>=x;n=g<=x?++b:--b)d[c]===0?i=n+u[c]:(i=l[d[c]/2+(n-g)-(h-c)]||0)!==0&&(i+=u[c]),this.codeMap[n]=65535&i}t.pos=f}return e.encode=function(t,r){var n,s,o,i,l,c,u,d,f,h,m,g,p,x,y,b,j,C,T,L,P,I,E,O,k,D,H,U,ee,ae,V,q,G,Ae,se,S,Q,z,W,ne,X,te,fe,pe,_e,xe;switch(U=new Bc,i=Object.keys(t).sort(function(Be,He){return Be-He}),r){case"macroman":for(p=0,x=function(){var Be=[];for(g=0;g<256;++g)Be.push(0);return Be}(),b={0:0},o={},ee=0,G=i.length;ee<G;ee++)b[fe=t[s=i[ee]]]==null&&(b[fe]=++p),o[s]={old:t[s],new:b[t[s]]},x[s]=b[t[s]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(x),{charMap:o,subtable:U.data,maxGlyphID:p+1};case"unicode":for(D=[],f=[],j=0,b={},n={},y=u=null,ae=0,Ae=i.length;ae<Ae;ae++)b[T=t[s=i[ae]]]==null&&(b[T]=++j),n[s]={old:T,new:b[T]},l=b[T]-s,y!=null&&l===u||(y&&f.push(y),D.push(s),u=l),y=s;for(y&&f.push(y),f.push(65535),D.push(65535),O=2*(E=D.length),I=2*Math.pow(Math.log(E)/Math.LN2,2),h=Math.log(I/2)/Math.LN2,P=2*E-I,c=[],L=[],m=[],g=V=0,se=D.length;V<se;g=++V){if(k=D[g],d=f[g],k===65535){c.push(0),L.push(0);break}if(k-(H=n[k].new)>=32768)for(c.push(0),L.push(2*(m.length+E-g)),s=q=k;k<=d?q<=d:q>=d;s=k<=d?++q:--q)m.push(n[s].new);else c.push(H-k),L.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*E+2*m.length),U.writeUInt16(0),U.writeUInt16(O),U.writeUInt16(I),U.writeUInt16(h),U.writeUInt16(P),X=0,S=f.length;X<S;X++)s=f[X],U.writeUInt16(s);for(U.writeUInt16(0),te=0,Q=D.length;te<Q;te++)s=D[te],U.writeUInt16(s);for(pe=0,z=c.length;pe<z;pe++)l=c[pe],U.writeUInt16(l);for(_e=0,W=L.length;_e<W;_e++)C=L[_e],U.writeUInt16(C);for(xe=0,ne=m.length;xe<ne;xe++)p=m[xe],U.writeUInt16(p);return{charMap:n,subtable:U.data,maxGlyphID:j+1}}},e}(),SV=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,s;for(t.pos=this.offset,this.version=t.readUInt16(),s=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=s?n<s:n>s;n=0<=s?++n:--n)r=new uI(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,s;return r==null&&(r="macroman"),n=uI.encode(t,r),(s=new Bc).writeUInt16(0),s.writeUInt16(1),n.table=s.data.concat(n.subtable),n},e}(),$je=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),qje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;
vendor: 9,519 bytes, lines 1552-1553
1552r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),Kje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,s;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(n=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],s=[];t.pos<this.offset+this.length;)r=t.readByte(),s.push(this.names.push(t.readString(r)));return s;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var i,l,c;for(c=[],o=i=0,l=this.file.maxp.numGlyphs;0<=l?i<l:i>l;o=0<=l?++i:--i)c.push(t.readUInt32());return c}.call(this)}},e}(),Gje=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Wje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,s,o,i,l,c,u,d,f,h;for(t.pos=this.offset,t.readShort(),r=t.readShort(),l=t.readShort(),n=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(c={},o=d=0,f=n.length;d<f;o=++d)s=n[o],t.pos=s.offset,u=t.readString(s.length),i=new Gje(u,s),c[h=s.nameID]==null&&(c[h]=[]),c[s.nameID].push(i);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},e}(),Yje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),Xje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,s,o,i,l,c;for(t.pos=this.offset,this.metrics=[],r=0,l=this.file.hhea.numberOfMetrics;0<=l?r<l:r>l;r=0<=l?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(s=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=s?u<s:u>s;r=0<=s?++u:--u)d.push(t.readInt16());return d}(),this.widths=function(){var u,d,f,h;for(h=[],u=0,d=(f=this.metrics).length;u<d;u++)o=f[u],h.push(o.advance);return h}.call(this),n=this.widths[this.widths.length-1],c=[],r=i=0;0<=s?i<s:i>s;r=0<=s?++i:--i)c.push(this.widths.push(n));return c},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),kV=[].slice,Zje=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,s,o,i,l,c,u,d,f;return t in this.cache?this.cache[t]:(o=this.file.loca,r=this.file.contents,n=o.indexOf(t),(s=o.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,i=(l=new Bc(r.read(s))).readShort(),u=l.readShort(),f=l.readShort(),c=l.readShort(),d=l.readShort(),this.cache[t]=i===-1?new eEe(l,u,f,c,d):new Jje(l,i,u,f,c,d),this.cache[t]))},e.prototype.encode=function(t,r,n){var s,o,i,l,c;for(i=[],o=[],l=0,c=r.length;l<c;l++)s=t[r[l]],o.push(i.length),s&&(i=i.concat(s.encode(n)));return o.push(i.length),{table:i,offsets:o}},e}(),Jje=function(){function e(t,r,n,s,o,i){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=s,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),eEe=function(){function e(t,r,n,s,o){var i,l;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=s,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;l=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&l;)i.pos+=1&l?4:2,128&l?i.pos+=8:64&l?i.pos+=4:8&l&&(i.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new Bc(kV.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),tEe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Vi(e,ii),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?function(){var s,o;for(o=[],n=0,s=this.length;n<s;n+=2)o.push(2*t.readUInt16());return o}.call(this):function(){var s,o;for(o=[],n=0,s=this.length;n<s;n+=4)o.push(t.readUInt32());return o}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),s=0,o=0,i=0;i<n.length;++i)if(n[i]=s,o<r.length&&r[o]==i){++o,n[i]=s;var l=this.offsets[i],c=this.offsets[i+1]-l;c>0&&(s+=c)}for(var u=new Array(4*n.length),d=0;d<n.length;++d)u[4*d+3]=255&n[d],u[4*d+2]=(65280&n[d])>>8,u[4*d+1]=(16711680&n[d])>>16,u[4*d]=(4278190080&n[d])>>24;return u},e}(),rEe=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,s,o;for(r in s=this.font.cmap.tables[0].codeMap,t={},o=this.subset)n=o[r],t[r]=s[n];return t},e.prototype.glyphsFor=function(t){var r,n,s,o,i,l,c;for(s={},i=0,l=t.length;i<l;i++)s[o=t[i]]=this.font.glyf.glyphFor(o);for(o in r=[],s)(n=s[o])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(o in c=this.glyphsFor(r))n=c[o],s[o]=n;return s},e.prototype.encode=function(t,r){var n,s,o,i,l,c,u,d,f,h,m,g,p,x,y;for(s in n=SV.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),m={0:0},y=n.charMap)m[(c=y[s]).old]=c.new;for(g in h=n.maxGlyphID,i)g in m||(m[g]=h++);return d=function(b){var j,C;for(j in C={},b)C[b[j]]=j;return C}(m),f=Object.keys(d).sort(function(b,j){return b-j}),p=function(){var b,j,C;for(C=[],b=0,j=f.length;b<j;b++)l=f[b],C.push(d[l]);return C}(),o=this.font.glyf.encode(i,p,m),u=this.font.loca.encode(o.offsets,p),x={cmap:this.font.cmap.raw(),glyf:o.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(x["OS/2"]=this.font.os2.raw()),this.font.directory.encode(x)},e}();Dt.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,s,o,i;if(Array.isArray(r))return"["+function(){var l,c,u;for(u=[],l=0,c=r.length;l<c;l++)n=r[l],u.push(t.convert(n));return u}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(s in o=["<<"],r)i=r[s],o.push("/"+s+" "+t.convert(i));return o.push(">>"),o.join(` 1553`)}return""+r},t}();const K8e=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:Ije,AcroFormAppearance:Nt,AcroFormButton:va,AcroFormCheckBox:Bm,AcroFormChoiceField:Eu,AcroFormComboBox:Nu,AcroFormEditBox:jm,AcroFormListBox:Bu,AcroFormPasswordField:Nm,AcroFormPushButton:Em,AcroFormRadioButton:Su,AcroFormTextField:hc,GState:ch,ShadingPattern:ec,TilingPattern:vu,default:Dt,jsPDF:Dt},Symbol.toStringTag,{value:"Module"}));function nEe({open:e,onOpenChange:t,recommendations:r,salary:n,leadId:s,leadName:o,leadEmail:i,quizAnswers:l,onSchedule:c,onExportPDF:u}){const[d,f]=A.useState(!1),h=r?.primary_courses?.[0],m=h?.course?.title||"Especialização em Tecnologia";r?.profile_summary;const g={sap_erp:"Consultor SAP / ERP",seguranca:"Analista de Cybersecurity",dados_bi:"Analista de Dados, BI & IA",infra_devops:"Engenheiro Cloud / DevOps",dev_fullstack:"Desenvolvedor / Programador",gestao_projetos:"Gestor de Projetos de TI",marketing_ecommerce:"Marketing Digital & E-commerce",design_ux:"Designer UX/UI",office_produtivida
1553de:"Analista Office / Produtividade",estudante_transicao:"Estudante em Transição para TI"},p=l?.role,x=p&&g[p]||p||"Profissional de TI",y=Math.round((n.potential-n.current)/n.current*100),b=async()=>{f(!0),s&&J.from("leads").update({is_priority:!0,priority_set_at:new Date().toISOString(),interest:h?.course?.title||void 0}).eq("id",s).then(({error:C})=>{C&&console.warn("[SkillMapCareerPopup] promoção a prioritário falhou:",C)}),J.from("path_analytics_events").insert([{event_type:"career_popup_cta_clicked",event_data:{lead_id:s,course:h?.course?.title}}]).then(()=>{}),t(!1),setTimeout(()=>{c(),f(!1)},300)},j=()=>{J.from("path_analytics_events").insert([{event_type:"career_popup_pdf_clicked",event_data:{lead_id:s}}]).then(()=>{}),u?.(),t(!1)};return a.jsx(Qa,{open:e,onOpenChange:t,children:a.jsx(Ba,{className:"max-w-md w-[92vw] sm:w-full p-0 border-0 bg-transparent shadow-none overflow-hidden max-h-none sm:max-h-[92vh]",children:a.jsxs("div",{className:"bg-gradient-to-b from-[#0d1225] to-[#0a0e1a] border border-white/10 rounded-2xl max-h-[92vh] overflow-y-auto sm:overflow-visible",children:[a.jsxs("div",{className:"px-4 pt-3 pb-1 text-center",children:[a.jsxs(Ze.div,{initial:{scale:.8,opacity:0}
1553,animate:{scale:1,opacity:1},transition:{delay:.15,type:"spring"},className:"inline-flex items-center gap-1 px-2 py-0 rounded-full bg-orange-500/15 border border-orange-500/30 text-orange-400 text-[9px] font-semibold mb-1",children:[a.jsx(Nr,{className:"w-2.5 h-2.5"})," Diagnóstico concluÃdo"]}),a.jsxs(Ze.h2,{initial:{y:8,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2},className:"text-base sm:text-lg font-extrabold text-white leading-tight",children:["Seu próximo nÃvel"," ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 to-orange-600 bg-clip-text text-transparent",children:"começa agora"})]})]}),a.jsx("div",{className:"px-4 py-2",children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute left-[13px] top-3 bottom-3 w-[2px] bg-gradient-to-b from-red-500/30 via-orange-500/30 via-cyan-500/30 to-green-500/30"}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsxs(Rg,{index:0,label:"HOJE",icon:vh,color:"text-red-400",bg:"bg-red-500/15",border:"border-red-500/30",children:[a.jsx("p",{className:"text-white font-semibold text-[11px] leading-tight",children:x}),a.jsxs("p",{className:"text-white/50 text-[10px] leading-tight",children:["R$ ",a.jsx("span",{className:"text-white/70 font-semibold",children:n.current.toLocaleString("pt-BR")})]})]}),a.jsxs(Rg,{index:1,label:"ESPECIALIZAÃÃO",icon:LA,color:"text-orange-400",bg:"bg-orange-500/15",border:"border-orange-500/30",children:[a.jsx("p",{className:"text-orange-400 font-bold text-[11px] leading-tight line-clamp-2",children:m}),a.jsx("p",{className:"text-white/50 text-[9px] leading-tight",children:"Ferramentas · certificação · posicionamento"})]}),a.jsxs(Rg,{index:2,label:"EM 6 MESES",icon:ls,color:"text-cyan-400",bg:"bg-cyan-500/15",border:"border-cyan-500/30",children:[a.jsx("p",{className:"text-white text-[11px] leading-tight",children:"Profissional especializado"}),a.jsxs("p",{className:"text-white/50 text-[10px] leading-tight",children:["R$ ",a.jsx("span",{className:"text-cyan-400 font-bold",children:Math.round(n.current+(n.potential-n.current)*.5).toLocaleString("pt-BR")})]})]}),a.jsxs(Rg,{index:3,label:"EM 12 MESES",icon:jx,color:"text-green-400",bg:"bg-green-500/15",border:"border-green-500/30",children:[a.jsx("p",{className:"text-white text-[11px] leading-tight",children:"Profissional avançado"}),a.jsxs("div",{className:"flex items-center gap-1 flex-wrap leading-tight",children:[a.jsxs("p",{className:"text-white/50 text-[10px]",children:["R$ ",a.jsxs("span",{className:"text-green-400 font-bold",children:[n.potential.toLocaleString("pt-BR"),"+"]})]}),a.jsxs("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0 rounded-full bg-green-500/15 border border-green-500/30 text-green-400 text-[9px] font-bold",children:[a.jsx(ls,{className:"w-2.5 h-2.5"})," +",y,"%"]})]})]})]})]})}),a.jsxs("div",{className:"px-4 pb-3 space-y-1.5",children:[a.jsxs("div",{className:"flex items-center justify-center gap-1 text-white/40 text-[10px]",children:[a.jsx(wa,{className:"w-3 h-3"}),a.jsx("span",{children:"+3.200 profissionais já seguiram essa trilha"})]}),a.jsxs(Oe,{onClick:b,disabled:d,className:"w-full h-10 bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-bold text-[13px] rounded-xl shadow-lg shadow-orange-500/20",children:[a.jsx(zs,{className:"w-4 h-4 mr-2"}),d?"Preparando...":"Mostrar meu plano profissional"]}),u&&a.jsxs(Oe,{onClick:j,variant:"ghost",className:"w-full h-7 text-white/50 hover:text-white hover:bg-white/5 text-[11px] rounded-xl",children:[a.jsx(S2,{className:"w-3 h-3 mr-1"})," Receber trilha em PDF"]}),a.jsx("p",{className:"text-center text-white/30 text-[10px] leading-tight",children:"Consultoria gratuita de carreira. Sem compromisso."})]})]})})})}function Rg({index:e,label:t,icon:r,color:n,bg:s,border:o,children:i}){return a.jsxs(Ze.div,{initial:{x:-20,opacity:0},animate:{x:0,opacity:1},transition:{delay:.4+e*.1,duration:.35},className:"relative flex gap-2 pl-0",children:[a.jsx("div",{className:`relative z-10 flex-shrink-0 w-7 h-7 rounded-full ${s} border ${o} flex items-center justify-center`,children:a.jsx(r,{className:`w-3 h-3 ${n}`})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:`text-[9px] uppercase tracking-wider font-bold ${n} leading-tight`,children:t}),i]})]})}function aEe({end:e,duration:t=1200,start:r=0,enabled:n=!0}){const[s,o]=A.useState(n?r:e),i=A.useRef(0),l=A.useRef(0);return A.useEffect(()=>{if(!n){o(e);return}o(r),l.current=performance.now();const c=u=>{const d=u-l.current,f=Math.min(d/t,1),h=1-Math.pow(1-f,3),m=Math.round(r+(e-r)*h);o(m),f<1&&(i.current=requestAnimationFrame(c))};return i.current=requestAnimationFrame(c),()=>cancelAnimationFrame(i.current)},[e,t,r,n]),s}const sEe=[{value:200,suffix:" mil",label:"Alunos formados e impactados",color:"text-orange-400",icon:wa},{value:23,suffix:" mil",label:"Empresas atendidas e certificadas",color:"text-blue-400",icon:Ra},{value:250,suffix:"",label:"Cursos e certificações disponÃveis",color:"text-emerald-400",icon:Zo},{value:20,suffix:"",label:"Anos de atuação no mercado",color:"text-purple-400",icon:Vr}];function oEe({value:e,suffix:t,label:r,color:n,inView:s}){const o=aEe({end:e,duration:1400,enabled:s});return a.jsxs("div",{className:"text-center p-4 rounded-xl bg-white/[0.03] border border-white/[0.06] hover:bg-white/[0.06] transition-colors",children:[a.jsxs("p",{className:`text-2xl md:text-3xl font-extrabold ${n} mb-1`,children:["+",o,t]}),a.jsx("p",{className:"text-white/50 text-[11px] font-medium",children:r})]})}function iEe({variant:e="dark"}){const t=A.useRef(null),r=$M(t,{once:!0,margin:"-80px"}),n=e==="dark";return a.jsx("section",{ref:t,className:`py-16 md:py-20 ${n?"bg-slate-950":"bg-muted/30"}`,children:a.jsx("div",{className:"max-w-5xl mx-auto px-4",children:a.jsxs(Ze.div,{initial:{opacity:0,y:30},animate:r?{opacity:1,y:0}:{},transition:{duration:.6},className:`rounded-2xl border p-6 md:p-8 ${n?"border-white/[0.08] bg-gradient-to-br from-orange-500/5 via-purple-500/5 to-blue-500/5":"border-border bg-gradient-to-br from-orange-50 via-purple-50/30 to-blue-50/30"}`,children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx(P2,{className:`w-10 h-10 mx-auto mb-3 ${n?"text-orange-400":"text-orange-500"}`}),a.jsx("h2",{className:`text-xl md:text-2xl font-bold ${n?"text-white":"text-foreground"}`,children:"Por que confiar na Trainning Education?"}),a.jsx("p",{className:`text-sm mt-2 max-w-lg mx-auto ${n?"text-white/40":"text-muted-foreground"}`,children:"A maior plataforma educacional de tecnologia da América Latina, referência em formação SAP e carreiras digitais há mais de duas décadas."})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-6",children:[a.jsxs("div",{className:`flex items-center gap-3 p-4 rounded-xl ${n?"bg-orange-500/5 border border-orange-500/10":"bg-orange-50 border border-orange-200/50"}`,children:[a.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 ${n?"bg-orange-500/15":"bg-orange-100"}`,children:a.jsx(yT,{className:`w-5 h-5 ${n?"text-orange-400":"text-orange-500"}`})}),a.jsx("p",{className:`text-sm font-semibold ${n?"text-white/80":"text-foreground"}`,children:"Maior Plataforma Educacional de Tecnologia da América Latina"})]}),a.jsxs("div",{className:`flex items-center gap-3 p-4 rounded-xl ${n?"bg-blue-500/5 border border-blue-500/10":"bg-blue-50 border border-blue-200/50"}`,children:[a.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 ${n?"bg-blue-500/15":"bg-blue-100"}`,children:a.jsx(kn,{className:`w-5 h-5 ${n?"text-blue-400":"text-blue-500"}`})}),a.jsx("p",{className:`text-sm font-semibold ${n?"text-white/80":"text-foreground"}`,children:"Maior Centro de Treinamento SAP da América Latina"})]})]}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
1553p-3",children:[sEe.map(s=>a.jsx(oEe,{...s,inView:r},s.label)),a.jsxs("div",{className:`text-center p-4 rounded-xl col-span-2 sm:col-span-1 hover:bg-white/[0.06] transition-colors ${n?"bg-white/[0.03] border border-white/[0.06]":"bg-white border border-border"}`,children:[a.jsxs("div",{className:"flex items-center justify-center gap-1 mb-1",children:[a.jsx(os,{className:"w-4 h-4 text-yellow-400 fill-yellow-400"}),a.jsx("p",{className:"text-2xl md:text-3xl font-extrabold text-yellow-400",children:"9,9"})]}),a.jsx("p",{className:`text-[11px] font-medium ${n?"text-white/50":"text-muted-foreground"}`,children:"NPS avaliado pelos clientes"})]})]})]})})})}const lEe=.4,u2=12;function Sm(e){if(e==null||e==="")return null;const t=typeof e=="number"?e:parseFloat(String(e));return Number.isFinite(t)&&t>0?t:null}function cEe(e,t,r=u2){const n=Sm(e),s=Sm(t),o=Math.max(1,Math.round(Sm(r)??u2));return n===null?{total:null,normalized:!1}:s!==null&&n<s*lEe?{total:n*o,normalized:!0}:{total:n,normalized:!1}}function Oj(e){const t=Sm(e.price_cash),r=Math.max(1,Math.round(Sm(e.installments_count)??u2)),{total:n,normalized:s}=cEe(e.price_installments,e.price_cash,r),o=n??t;return{cashPrice:t,installmentCount:r,installmentValue:o!==null?o/r:null,totalInstallments:o,normalized:s}}function G8e(e){return Oj(e).installmentValue}function uEe(e){return e.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})}const dEe=.5,dI=1,AI=24;function Mg(e){return Math.round(e*100)/100}function AEe(e){const t=[],r=typeof e.cashPrice=="number"&&Number.isFinite(e.cashPrice)&&e.cashPrice>0?Mg(e.cashPrice):null;r===null&&t.push({code:"PRICE_NOT_AVAILABLE",message:"Preço não disponÃvel â condição sob consulta.",detail:`Produto "${e.productName}" sem price_cash utilizável.`});const n=typeof e.installmentValue=="number"&&Number.isFinite(e.installmentValue)&&e.installmentValue>0?Mg(e.installmentValue):null,s=typeof e.installments=="number"&&Number.isInteger(e.installments)?e.installments:null;let o=n,i=s,l=null,c=!1,u=!1;return s!==null&&(s<dI||s>AI)?(t.push({code:"INSTALLMENT_COUNT_INVALID",message:"Parcelamento não disponÃvel.",detail:`installments=${s} fora da faixa ${dI}..${AI}.`}),o=null,i=null):n===null||s===null?(t.push({code:"INSTALLMENT_NOT_AVAILABLE",message:"Parcelamento não disponÃvel.",detail:`installmentValue=${String(e.installmentValue)} installments=${String(e.installments)}.`}),o=null,i=null):(l=Mg(n*s),r===null?u=!1:Math.abs(l-r)<=dEe?(c=!0,u=!0):(u=!1,t.push({code:"INSTALLMENT_TOTAL_DIVERGES",message:"Parcelamento não publicado â condição sob consulta.",detail:`${s}x de ${n.toFixed(2)} = ${l.toFixed(2)}, mas o preço à vista é ${r.toFixed(2)}. Divergência de ${Mg(Math.abs(l-r)).toFixed(2)}.`}))),{productName:e.productName,publishable:r!==null,cashPrice:r,installmentValue:u?o:null,installments:u?i:null,financedTotal:l,interestFree:c,installmentPublishable:u,validityMonths:typeof e.validityMonths=="number"&&e.validityMonths>0?e.validityMonths:null,issues:t}}function Og(e){return e.toLocaleString("pt-BR",{minimumFractionDigits:0,maximumFractionDigits:0})}function fEe({priceCash:e,installmentsCount:t=12,priceInstallmentsTotal:r,salarioPleno:n,variant:s="compact",className:o,showCashPrice:i=!0}){if(!e||e<=0)return null;const l=Oj({price_cash:e,price_installments:r??e,installments_count:t}),u=AEe({productName:"catalogo",cashPrice:l.cashPrice,installmentValue:l.installmentValue,installments:l.installmentCount,validityMonths:null}).installmentPublishable,d=uEe(l.installmentValue??0),f=n&&n>0?Math.round(n*12/e*100):null;return s==="compact"?a.jsxs("div",{className:je("space-y-1",o),children:[a.jsxs("div",{className:"flex items-baseline gap-1.5",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-semibold",children:"Por"}),u?a.jsxs("span",{className:"text-sm font-extrabold text-foreground",children:[t,"x"," ",a.jsxs("span",{className:"text-orange-500",children:["R$ ",d]})]}):a.jsx("span",{className:"text-sm font-extrabold text-foreground",children:a.jsxs("span",{className:"text-orange-500",children:["R$ ",Og(e)]})})]}),i&&u&&a.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["ou R$ ",Og(e)," à vista"]}),!u&&a.jsx("p",{className:"text-[11px] text-muted-foreground",children:"à vista · parcelamento sob consulta"}),f&&f>0&&a.jsxs(Vt,{variant:"outline",className:"text-[9px] gap-1 border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400 font-bold px-1.5 py-0.5",children:[a.jsx(ls,{className:"w-2.5 h-2.5"}),"ROI ESTIMADO +",f,"%"]})]}):a.jsxs("div",{className:je("space-y-2",o),children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground font-semibold mb-1",children:"Por"}),a.jsx("p",{className:"text-2xl font-extrabold text-foreground",children:u?a.jsxs(a.Fragment,{children:[t,"x"," ",a.jsxs("span",{className:"text-orange-500",children:["R$ ",d
1553]})]}):a.jsxs("span",{className:"text-orange-500",children:["R$ ",Og(e)]})}),!u&&a.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"à vista · condições de parcelamento sob consulta"}),i&&u&&a.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:["ou R$ ",Og(e)," à vista"]})]}),f&&f>0&&a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-2 rounded-xl bg-green-500/10 border border-green-500/20",children:a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-green-600 dark:text-green-400 font-bold",children:"ROI estimado"}),a.jsxs("p",{className:"text-lg font-extrabold text-green-600 dark:text-green-400",children:["+",f,"%"]}),a.jsx("p",{className:"text-[10px] text-muted-foreground",children:"retorno em 12 meses"})]})})]})}const xn={hidden:{opacity:0,y:20},visible:e=>({opacity:1,y:0,transition:{delay:e*.08,duration:.5}})},fI={programacao:{current:6500,potential:16e3},cloud_devops:{current:8e3,potential:2e4},ia_ml:{current:9e3,potential:22e3},seguranca:{current:7500,potential:18e3},dados_bi:{current:7e3,potential:17e3},sap_erp:{current:8500,potential:19e3},gestao_projetos:{current:7e3,potential:16e3},marketing_ecommerce:{current:5e3,potential:13e3},design_ux:{current:5500,potential:14e3},office_produtividade:{current:4e3,potential:9e3}};function mEe(e){const r=(e?.primary_courses||[]).map(s=>s.course?.category_slug||s.course?.category_name?.toLowerCase()).filter(Boolean);for(const s of r)for(const[o,i]of Object.entries(fI))if(s.includes(o)||o.includes(s))return i;const n=(e?.profile_summary||"").toLowerCase();for(const[s,o]of Object.entries(fI))if(n.includes(s.replace("_"," ")))return o;return{current:7e3,potential:16e3}}function Fb({message:e,label:t,size:r="default"}){const s=`https://wa.me/551131712002?text=${encodeURIComponent(e)}`;return a.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-2 bg-green-600 hover:bg-green-700 text-white font-semibold rounded-xl transition-all ${r==="sm"?"px-4 py-2 text-xs":"px-6 py-3 text-sm"}`,children:[a.jsx(qs,{className:"w-4 h-4"})," ",t]})}function Ug({text:e,variant:t}){const r={fire:"bg-red-500/15 text-red-400 border-red-500/30",calendar:"bg-orange-500/15 text-orange-400 border-orange-500/30",popular:"bg-blue-500/15 text-blue-400 border-blue-500/30",cert:"bg-green-500/15 text-green-400 border-green-500/30"},n={fire:a.jsx(vi,{className:"w-3 h-3"}),calendar:a.jsx(dn,{className:"w-3 h-3"}),popular:a.jsx(wa,{className:"w-3 h-3"}),cert:a.jsx(kn,{className:"w-3 h-3"})};return a.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full border text-[10px] font-semibold ${r[t]}`,children:[n[t]," ",e]})}function mI({rec:e,index:t,onClick:r}){const n=e.course;if(!n)return null;const s=n.next_cohort_date?Kt(Ir(n.next_cohort_date),"dd 'de' MMMM",{locale:cn}):null;return a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:t,onClick:r,className:"p-5 rounded-2xl border border-white/[0.08] bg-white/[0.02] hover:border-orange-500/30 hover:bg-white/[0.04] cursor-pointer transition-all group",children:a.jsxs("div",{className:"flex items-start justify-between gap-4",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-2",children:[e.match_score&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-green-500/15 border border-green-500/30 text-green-400 text-[10px] font-bold",children:[e.match_score,"% match"]}),n.recent_enrollments>20&&a.jsx(Ug,{text:`${n.recent_enrollments}+ alunos recentes`,variant:"fire"}),s&&a.jsx(Ug,{text:`Turma ${s}`,variant:"calendar"}),n.has_certification&&a.jsx(Ug,{text:"Certificação",variant:"cert"}),n.is_most_searched&&a.jsx(Ug,{text:"Alta demanda",variant:"popular"})]}),a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-orange-400 font-semibold mb-0.5",children:n.category_name}),a.jsx("h4",{className:"font-bold text-base text-white group-hover:text-orange-400 transition-colors",children:n.title}),a.jsx("p",{className:"text-white/40 text-xs mt-1 line-clamp-2",children:e.reason}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mt-3 text-white/40 text-xs",children:[n.duration_hours&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Vr,{className:"w-3 h-3"})," ",n.duration_hours,"h"]}),n.next_cohort_format&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(DA,{className:"w-3 h-3"})," ",n.next_cohort_format]}),n.price_cash&&a.jsxs("span",{className:"flex items-center gap-1 text-white/60 font-semibold",children:[a.jsx(N2,{className:"w-3 h-3"}
1553)," R$ ",Number(n.price_cash).toLocaleString("pt-BR")]})]})]}),a.jsxs(Oe,{size:"sm",className:"bg-orange-500/20 hover:bg-orange-500/30 text-orange-400 border border-orange-500/30 rounded-xl flex-shrink-0 mt-1",children:["Inscrever ",a.jsx(Vs,{className:"w-4 h-4 ml-1"})]})]})})}function hEe({recommendations:e,onReset:t,leadId:r,leadName:n,leadEmail:s,leadPhone:o,quizAnswers:i}){const l=jl(),c=A.useRef(null),[u,d]=A.useState(!1),[f,h]=A.useState(null),[m,g]=A.useState(!1),[p,x]=A.useState(!1),{config:y}=xj();if(A.useEffect(()=>{const R=setTimeout(()=>g(!0),3e3);return()=>clearTimeout(R)},[]),!e)return null;const b=e.primary_courses||[],j=e.complementary_courses||[],C=e.upsell,T=e.reasoning_summary,L=/[a-z]+_[a-z]+|\b(expert|beginner|intermediate|advanced|fullstack|career|salary|team|change|certified)\b/i,P=e.profile_summary,I=(()=>{if(P&&!L.test(P))return P;const R=b[0]?.course?.category_name?[b[0].course.category_name]:[];return`Você está em processo de evolução profissional${R.length?`, com foco em ${R.join(", ")}`:""}. A trilha abaixo foi montada priorizando cursos com turmas ativas e alta aderência ao seu objetivo declarado.`})(),E=e.featured_formation,O=e.featured_subscription,k=e.market_jobs||[],D=e.top_companies||[],H=e.market_insights||[],U=e.career_tips||[],ee=Array.isArray(e.action_plan)?e.action_plan:[],ae=mEe(e),V=b.length>0?Math.round(b.reduce((R,be)=>R+(be.match_score||70),0)/b.length):65,q=Math.min(Math.max(V-15,35),75),G=95,Ae=b.slice(0,3).map((R,be)=>({step:be+1,title:be===0?"Fundamentos":be===1?"Especialização":"Certificação",course:R.course?.title||`Etapa ${be+1}`,icon:be===0?"ð¯":be===1?"ð":"ð"})),se=R=>R&&(b.find(be=>be.id===R||be.course?.id===R)||j.find(be=>be.id===R||be.course?.id===R))||null,S=(R,be)=>{J.from("path_analytics_events").insert([{event_type:R,event_data:be}]).then(()=>{})},Q=R=>{S("recommendation_clicked",{course_id:R.course?.id,priority:R.priority}),R.course?.slug&&l(`/curso/${R.course.slug}`)},W=`ð Acabei de mapear minha trilha de carreira em tech com o Trainning SkillMap! 1554 1555Cursos recomendados: 1556${b.map(R=>R.course?.title).filter(Boolean).slice(0,3).map(R=>`⢠${R}`).join(` 1557`)} 1558 1559Descubra a sua trilha:`,ne=f||`${window.location.origin}/skillmap`,X=()=>{S("share_email");const R="Meu Roadmap Trainning SkillMap",be=`${W} 1560 1561${ne}`;window.location.href=`mailto:?subject=${encodeURIComponent(R)}&body=${encodeURIComponent(be)}`},te=async()=>{if(S("share_pdf_export"),!!c.current)try{et.info("Gerando PDF...");const R=await O7(c.current,{scale:2,useCORS:!0,backgroundColor:"#0a0e1a"}),be=R.toDataURL("image/png"),tt=new Dt({orientation:"portrait",unit:"mm",format:"a4"}),at=tt.internal.pageSize.getWidth(),De=R.height*at/R.width;tt.addImage(be,"PNG",0,0,at,De),tt.save("meu-roadmap-trainning.pdf"),et.success("PDF exportado!")}catch{et.error("Erro ao gerar PDF")}},fe=()=>{S("share_linkedin");const R=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(ne)}`;window.open(R,"_blank")},pe=()=>{S("share_whatsapp");const R=`https://wa.me/?text=${encodeURIComponent(`${W} 1562${ne}`)}`;window.open(R,"_blank")},_e=async()=>{S("share_copy_link");try{await navigator.clipboard.writeText(ne),et.success("Link copiado!")}catch{et.error("Erro ao copiar")}},xe=async()=>{if(f){await navigator.clipboard.writeText(f),et.success("Link copiado novamente!");return}d(!0),S("share_save_result");try{const{data:R,error:be}=await J.rpc("save_path_result",{p_recommendations:e});if(be)throw be;const tt=`${window.location.origin}/resultado/${R}`;h(tt),await navigator.clipboard.writeText(tt),et.success("Resultado salvo! Link copiado.")}catch{et.error("Erro ao salvar resultado")}finally{d(!1)}},Be=[...b,...j].filter(R=>R.course?.next_cohort_date).sort((R,be)=>new Date(R.course.next_cohort_date).getTime()-new Date(be.course.next_cohort_date).getTime()).slice(0,5),He=[{icon:mo,label:"Email",onClick:X,color:"bg-blue-500/15 hover:bg-blue-500/25 text-blue-400 border-blue-500/30"},{icon:S2,label:"PDF",onClick:te,color:"bg-orange-500/15 hover:bg-orange-500/25 text-orange-400 border-orange-500/30"},{icon:_T,label:"LinkedIn",onClick:fe,color:"bg-sky-500/15 hover:bg-sky-500/25 text-sky-400 border-sky-500/30"},{icon:qs,label:"WhatsApp",onClick:pe,color:"bg-green-500/15 hover:bg-green-500/25 text-green-400 border-green-500/30"},{icon:Bx,label:"Copiar",onClick:_e,color:"bg-purple-500/15 hover:bg-purple-500/25 text-purple-400 border-purple-500/30"},{icon:ST,label:f?"Salvo â":"Salvar",onClick:xe,color:f?"bg-green-500/15 text-green-400 border-green-500/30":"bg-white/5 hover:bg-white/10 text-white/60 border-white/10"}];return a.jsxs("div",{className:"min-h-[80vh] bg-[#0a0e1a] text-white",ref:c,children:[a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-20 right-1/4 w-[600px] h-[600px] bg-
1562orange-500/5 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute bottom-20 left-1/4 w-[600px] h-[600px] bg-purple-600/5 rounded-full blur-[150px]"})]}),a.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-12 relative",children:[a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:0,className:"text-center mb-6",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-green-500/10 border border-green-500/20 text-green-400 text-sm font-medium mb-6",children:[a.jsx(ss,{className:"w-4 h-4"})," Seu roadmap está pronto"]}),a.jsxs("h1",{className:"text-3xl sm:text-4xl font-extrabold mb-3",children:["Sua ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 to-orange-600 bg-clip-text text-transparent",children:"trilha recomendada"})]})]}),I&&a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:.3,className:"mb-6",children:a.jsxs("div",{className:"p-5 rounded-2xl border border-green-500/20 bg-gradient-to-br from-green-500/10 to-transparent text-center",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-green-500/15 border border-green-500/25 mb-3",children:[a.jsx(fl,{className:"w-4 h-4 text-green-400"}),a.jsx("span",{className:"text-xs uppercase tracking-wider text-green-400 font-bold",children:"Perfil identificado"})]}),a.jsx("p",{className:"text-white text-lg font-bold",children:I})]})}),a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:.5,className:"mb-8",children:a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-5 rounded-2xl border border-purple-500/20 bg-purple-500/5",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(Lu,{className:"w-4 h-4 text-purple-400"}),a.jsx("span",{className:"text-xs uppercase tracking-wider text-purple-400 font-bold",children:"Score de carreira"})]}),a.jsxs("div",{className:"flex items-end gap-3 mb-3",children:[a.jsx("span",{className:"text-4xl font-extrabold text-white",children:q}),a.jsxs("span",{className:"text-white/30 text-sm pb-1",children:["/ ",G]})]}),a.jsx(Sv,{value:q/G*100,className:"h-2 bg-white/10 mb-2"}),a.jsxs("p",{className:"text-white/40 text-xs",children:["Você está a ",a.jsxs("span",{className:"text-purple-400 font-semibold",children:[G-q," pontos"]})," do nÃvel especialista"]})]}),a.jsxs("div",{className:"p-5 rounded-2xl border border-orange-500/20 bg-orange-500/5",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(ls,{className:"w-4 h-4 text-orange-400"}),a.jsx("span",{className:"text-xs uppercase tracking-wider text-orange-400 font-bold",children:"Potencial salarial"})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[a.jsx("span",{className:"text-white/40",children:"Atual estimado"}),a.jsxs("span",{className:"text-white font-semibold",children:["R$ ",ae.current.toLocaleString("pt-BR")]})]}),a.jsx("div",{className:"h-2 rounded-full bg-white/10 overflow-hidden",children:a.jsx(Ze.div,{initial:{width:0},animate:{width:`${ae.current/ae.potential*100}%`},transition:{delay:.8,duration:.8},className:"h-full rounded-full bg-white/30"})})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[a.jsx("span",{className:"text-white/40",children:"Potencial após trilha"}),a.jsxs("span",{className:"text-green-400 font-bold",children:["R$ ",ae.potential.toLocaleString("pt-BR")]})]}),a.jsx("div",{className:"h-2 rounded-full bg-white/10 overflow-hidden",children:a.jsx(Ze.div,{initial:{width:0},animate:{width:"100%"},transition:{delay:1,duration:.8},className:"h-full rounded-full bg-gradient-to-r from-orange-500 to-green-500"})})]})]}),a.jsxs("p",{className:"text-white/40 text-xs mt-2",children:["Aumento potencial de ",a.jsxs("span",{className:"text-green-400 font-semibold",children:["+",Math.round((ae.potential-ae.current)/ae.current*100),"%"]})]})]})]})}),Ae.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:.8,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Nr,{className:"w-5 h-5 text-orange-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Seu roadmap de carreira"})]}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute left-6 top-8 bottom-8 w-0.5 bg-gradient-to-b from-orange-500/50 via-purple-500/50 to-green-500/50"}),a.jsx("div",{className:"space-y-4",children:Ae.map((R,be)=>a.jsxs(Ze.div,{initial:{opacity:0,x:-20}
1562,animate:{opacity:1,x:0},transition:{delay:1+be*.2},className:"flex items-start gap-4 relative",children:[a.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center text-xl flex-shrink-0 z-10 ${be===0?"bg-orange-500/20 border border-orange-500/30":be===1?"bg-purple-500/20 border border-purple-500/30":"bg-green-500/20 border border-green-500/30"}`,children:R.icon}),a.jsxs("div",{className:"flex-1 p-4 rounded-xl border border-white/[0.08] bg-white/[0.02]",children:[a.jsx("div",{className:"flex items-center gap-2 mb-1",children:a.jsxs("span",{className:`text-[10px] uppercase tracking-wider font-bold ${be===0?"text-orange-400":be===1?"text-purple-400":"text-green-400"}`,children:["Etapa ",R.step," â ",R.title]})}),a.jsx("p",{className:"text-white text-sm font-semibold",children:R.course})]})]},be))})]})]}),ee.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:.9,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(AT,{className:"w-5 h-5 text-orange-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Seu plano de ação"})]}),a.jsx("p",{className:"text-white/50 text-sm mb-4",children:"Passos sequenciais para transformar essa trilha em resultado real."}),a.jsx("div",{className:"space-y-3",children:ee.map((R,be)=>{const tt=se(R.linked_course_id),at=be===0?"orange":be===1?"purple":be===2?"sky":be===3?"green":"amber",De={orange:"bg-orange-500/15 border-orange-500/30 text-orange-400",purple:"bg-purple-500/15 border-purple-500/30 text-purple-400",sky:"bg-sky-500/15 border-sky-500/30 text-sky-400",green:"bg-green-500/15 border-green-500/30 text-green-400",amber:"bg-amber-500/15 border-amber-500/30 text-amber-400"};return a.jsxs(Ze.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.15+be*.08},className:"p-4 rounded-xl border border-white/[0.08] bg-white/[0.02]",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[a.jsx("span",{className:`text-[10px] uppercase tracking-wider font-bold px-2 py-1 rounded-md border ${De[at]}`,children:R.horizon}),a.jsxs("span",{className:"text-[10px] uppercase tracking-wider text-white/40 font-semibold",children:["Passo ",be+1]})]}),a.jsx("p",{className:"text-white text-sm font-semibold leading-relaxed",children:R.action}),R.why&&a.jsx("p",{className:"text-white/60 text-xs mt-2 leading-relaxed",children:R.why}),tt?.course?.slug&&a.jsxs("button",{onClick:()=>Q(tt),className:"mt-3 inline-flex items-center gap-1.5 text-xs font-semibold text-orange-400 hover:text-orange-300",children:["Ver curso relacionado ",a.jsx(_r,{className:"w-3 h-3"})]})]},be)})})]}),a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:1,className:"mb-8 p-4 rounded-2xl bg-white/[0.03] border border-white/[0.06]",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(IT,{className:"w-4 h-4 text-white/40"}),a.jsx("span",{className:"text-xs font-semibold text-white/40 uppercase tracking-wider",children:"Compartilhar resultado"})]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:He.map(R=>a.jsxs("button",{onClick:R.onClick,disabled:R.label==="Salvar"&&u,className:`inline-flex items-center gap-1.5 px-3 py-2 rounded-xl border text-xs font-semibold transition-all ${R.color}`,children:[a.jsx(R.icon,{className:"w-3.5 h-3.5"}),u&&R.label==="Salvar"?"Salvando...":R.label]},R.label))})]}),T&&a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:1.5,className:"mb-8 p-5 rounded-2xl bg-gradient-to-br from-orange-500/5 to-purple-600/5 border border-orange-500/10",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-9 h-9 rounded-xl bg-orange-500/20 flex items-center justify-center flex-shrink-0",children:a.jsx(Nr,{className:"w-4 h-4 text-orange-400"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-xs text-orange-400 mb-1.5",children:"Recomendação baseada no seu perfil"}),a.jsx("p",{className:"text-white/70 text-sm leading-relaxed",children:T})]})]})}),b.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:2,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(os,{className:"w-5 h-5 text-yellow-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Cursos recomendados"})]}),a.jsx("div",{className:"space-y-3",children:b.map((R,be)=>a.jsx(mI,{rec:R,index:2+be,onClick:()=>Q(R)},R.id||be))})]}),j.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:5,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Lu,{className:"w-5 h-5 text-purple-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Complementares"})]}),a.jsx("div",{className:"space-y-3",children:j.map((R,be)=>a.jsx(mI,{rec:R,index:5+be,onClick:()=>Q(R)},R.id||be))})]}),k.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(zs,{className:"w-5 h-5 text-emerald-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Vagas do mercado para seu perfil"})]}),a.jsx("div",{className:"space-y-3",children:k.slice(0,5).map((R,be)=>a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6+be*.1,className:"p-4 rounded-2xl border border-white/[0.08] bg-white/[0.02] hover:border-emerald-500/30 hover:bg-white/[0.04] transition-all",children:a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-1.5",children:[R.salary_range&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-emerald-500/15 border border-emerald-500/30 text-emerald-400 text-[10px] font-bold",children:[a.jsx(N2,{className:"w-3 h-3"})," ",R.salary_range]}),R.location&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-blue-500/15 border border-blue-500/30 text-blue-400 text-[10px] font-bold",children:[a.jsx(Sx,{className:"w-3 h-3"})," ",R.location]})]}),a.jsx("h4",{className:"font-bold text-sm text-white",children:R.title}),a.jsx("p",{className:"text-orange-400 text-xs font-semibold mt-0.5",children:R.company}),R.reason&&a.jsx("p",{className:"text-white/40 text-xs mt-1",children:R.reason})]}),a.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center flex-shrink-0",children:a.jsx(zs,{className:"w-4 h-4 text-emerald-400"})})]})},R.id||be))})]}),D.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6.5,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Ra,{className:"w-5 h-5 text-sky-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Empresas que mais contratam"})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:D.slice(0,5).map((R,be)=>a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6.5+be*.1,className:"p-4 rounded-2xl border border-white/[0.08] bg-white/[0.02] hover:border-sky-500/30 hover:bg-white/[0.04] transition-all",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 border border-sky-500/20 flex items-center justify-center flex-shrink-0",children:a.jsx(Ra,{className:"w-4 h-4 text-sky-400"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h4",{className:"font-bold text-sm text-white",children:R.name}),R.sector&&a.jsx("p",{className:"text-sky-400 text-[10px] font-semibold uppercase tracking-wider",children:R.sector}),R.job_count&&a.jsxs("span",{className:"inline-flex items-center gap-1 mt-1 px-2 py-0.5 rounded-full bg-sky-500/10 border border-sky-500/20 text-sky-400 text-[10px] font-bold",children:[R.job_count," vagas abertas"]}),R.why&&a.jsx("p",{className:"text-white/40 text-xs mt-1",children:R.why})]})]})},R.name||be))})]}),H.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6.8,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(I2,{className:"w-5 h-5 text-amber-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Tendências e novidades na sua área"})]}),a.jsx("div",{className:"space-y-3",children:H.map((R,be)=>a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:6.8+be*.1,className:"p-4 rounded-2xl border border-white/[0.08] bg-gradient-to-br from-amber-500/5 to-transparent hover:border-amber-500/20 transition-all",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 border border-amber-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx(ls,{className:"w-4 h-4 text-amber-400"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold text-sm text-white mb-1",children:R.title}),a.jsx("p",{className:"text-white/50 text-xs leading-relaxed",children:R.description})]})]})},be))})]}),U.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:7,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(Tm,{className:"w-5 h-5 text-yellow-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Dicas de carreira para você"})]}),a.jsx("div",{className:"space-y-3",children:U.map((R,be)=>a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:7+be*.1,className:"p-4 rounded-2xl border border-white/[0.08] bg-gradient-to-br from-yellow-500/5 to-transparent hover:border-yellow-500/20 transition-all",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-yellow-500/10 border border-yellow-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx(Tm,{className:"w-4 h-4 text-yellow-400"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold text-sm text-white mb-1",children:R.tip}),R.context&&a.jsx("p",{className:"text-white/50 text-xs leading-relaxed",children:R.context})]})]})},be))})]}),(C?.formation||E)&&a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:7,className:"mb-6",children:a.jsxs("div",{className:"rounded-2xl overflow-hidden border border-purple-500/20 bg-gradient-to-br from-purple-500/10 via-orange-500/5 to-transparent p-6",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(jx,{className:"w-5 h-5 text-purple-400"}),a.jsx("span",{className:"text-xs uppercase tracking-wider text-purple-400 font-bold",children:"Formação recomendada"})]}),a.jsx("h3",{className:"text-xl font-bold mb-2",children:C?.formation?.name||E?.name||C?.title}),a.jsx("p",{className:"text-white/50 text-sm mb-3",children:C?.reason}),(()=>{const R=Number(C?.formation?.price_cash||E?.price_cash||0);return R>0?a.jsx("div",{className:"mb-4",children:a.jsx(fEe,{priceCash:R,installmentsCount:12,salarioPleno:ae.potential,variant:"full"})}):null})(),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[a.jsxs(Oe,{onClick:()=>{S("upsell_clicked",{upsell_id:C?.id});const R=C?.formation?.slug||E?.slug;l(R?`/formacoes/${R}`:"/formacoes")},className:"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700 text-white font-semibold px-6 rounded-xl",children:["Ver formação completa ",a.jsx(_r,{className:"w-4 h-4 ml-2"})]}),a.jsx(Fb,{message:`Olá! Tenho interesse na formação "${C?.formation?.name||E?.name||C?.title}" e gostaria de saber mais.`,label:"Negociar condição",size:"sm"})]})]})}),a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:8,className:"mb-6",children:a.jsxs("div",{className:"rounded-2xl overflow-hidden border border-orange-500/20 bg-gradient-to-br from-orange-500/10 via-yellow-500/5 to-transparent p-6",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(DA,{className:"w-5 h-5 text-orange-400"}),a.jsx("span",{className:"text-xs uppercase tracking-wider text-orange-400 font-bold",children:"ð¥ Acelerador de carreira"})]}),a.jsx("h3",{className:"text-xl font-bold mb-2",children:"Formação MasterTech 12 Meses"}),a.jsx("p",{className:"text-white/50 text-sm mb-3",children:"Acesso completo a todas as trilhas de tecnologia da Trainning Education durante 12 meses. Inclui SAP, Cloud, Data, Cybersecurity, IA e muito mais â ideal para quem quer dominar múltiplas áreas e acelerar a carreira."}),(()=>{const R=O?.monthly_price?Number(O.monthly_price)*12:4990,be=R/12,tt=Math.round((ae.potential-ae.current)*12/R*100);return a.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-white/40 text-[10px] uppercase tracking-wider",children:"Por"}),a.jsxs("p",{className:"text-2xl font-extrabold text-white",children:["12x ",a.jsxs("span",{className:"text-orange-400",children:["R$ ",be.toLocaleStr
1562ing("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),a.jsxs("p",{className:"text-white/30 text-xs",children:["ou R$ ",R.toLocaleString("pt-BR")," à vista"]})]}),a.jsxs("div",{className:"px-3 py-2 rounded-xl bg-green-500/10 border border-green-500/20",children:[a.jsx("p",{className:"text-[10px] uppercase tracking-wider text-green-400 font-bold",children:"ROI estimado"}),a.jsxs("p",{className:"text-lg font-extrabold text-green-400",children:["+",tt,"%"]}),a.jsx("p",{className:"text-white/30 text-[10px]",children:"retorno em 12 meses"})]})]})})(),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[a.jsxs(Oe,{onClick:()=>{S("mastertech_upsell_clicked"),O?.slug?l(`/formacoes/${O.slug}`):l("/formacoes/mastertech")},className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-semibold px-6 rounded-xl",children:["Ver MasterTech ",a.jsx(_r,{className:"w-4 h-4 ml-2"})]}),a.jsx(Fb,{message:"Olá! Tenho interesse na Formação MasterTech 12 Meses e gostaria de saber mais sobre condições especiais.",label:"Negociar condição",size:"sm"})]})]})}),Be.length>0&&a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:9,className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx(dn,{className:"w-5 h-5 text-blue-400"}),a.jsx("h2",{className:"text-lg font-bold",children:"Próximas turmas"})]}),a.jsx("div",{className:"space-y-2",children:Be.map((R,be)=>{const tt=R.course,at=tt.next_cohort_date?Kt(Ir(tt.next_cohort_date),"dd/MM/yyyy"):"";return a.jsxs("div",{onClick:()=>Q(R),className:"flex items-center justify-between p-3 rounded-xl border border-white/[0.06] bg-white/[0.02] hover:border-blue-500/30 cursor-pointer transition-all group",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-500/10 border border-blue-500/20 flex items-center justify-center flex-shrink-0",children:a.jsx(dn,{className:"w-4 h-4 text-blue-400"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-sm text-white group-hover:text-blue-400 transition-colors",children:tt.title}),a.jsxs("p",{className:"text-white/40 text-xs",children:[tt.next_cohort_format||"Online ao vivo"," ⢠",at]})]})]}),tt.available_spots&&tt.available_spots<=10&&a.jsxs(Vt,{variant:"destructive",className:"text-[10px] bg-red-500/20 text-red-400 border-red-500/30",children:[tt.available_spots," vagas"]})]},`upcoming-${be}`)})})]}),a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:10,className:"mb-8",children:a.jsxs("div",{className:"rounded-2xl border border-green-500/20 bg-gradient-to-br from-green-500/5 to-transparent p-6 text-center",children:[a.jsx(qs,{className:"w-7 h-7 text-green-400 mx-auto mb-3"}),a.jsx("h3",{className:"text-lg font-bold mb-1",children:"Quer orientação personalizada?"}),a.jsx("p",{className:"text-white/50 text-xs mb-4 max-w-md mx-auto",children:"Nossos consultores ajudam a escolher a melhor opção e negociar condições especiais."}),a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[a.jsx(Fb,{message:"Olá! Acabei de receber meu mapa personalizado de carreira da Trainning e quero falar com um consultor.",label:"Falar com consultor"}),a.jsxs("a",{href:"tel:+551131712002",className:"inline-flex items-center gap-2 px-5 py-2.5 text-sm text-white/50 hover:text-white border border-white/10 rounded-xl hover:bg-white/5 transition-all",children:[a.jsx(Pu,{className:"w-4 h-4"})," (11) 3171-2002"]})]})]})}),a.jsx(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:10.5,className:"mb-8",children:a.jsx(iEe,{variant:"dark"})}),a.jsxs(Ze.div,{initial:"hidden",animate:"visible",variants:xn,custom:11,className:"flex flex-wrap gap-3 justify-center pb-12",children:[a.jsxs(Oe,{onClick:()=>l("/cursos"),size:"lg",className:"bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-semibold px-8 rounded-xl",children:[a.jsx(Zo,{className:"w-4 h-4 mr-2"})," Explorar Certificações"]}),a.jsxs(Oe,{onClick:t,variant:"ghost",size:"lg",className:"text-white/40 hover:text-white hover:bg-white/5 px-6 rounded-xl",children:[a.jsx(NT,{className:"w-4 h-4 mr-2"})," Refazer"]})]}),a.jsx(nEe,{open:m,onOpenChange:g,recommendations:e,salary:ae,leadId:r,leadName:n,leadEmail:s,quizAnswers:i,onSchedule:()=>x(!0),onExportPDF:te}),a.jsx(gj,{open:p,onOpenChange:x,config:y,formType:"skillmap_career_popup",leadId:r,leadName:n,leadEmail:s,leadPhone:o})]})]})}const Qg=[{icon:vl,label:"Analisando seu perfil profissional",duration:1400},{icon:wa,label:"Cruzando com 1.200+ trilhas de carreira",duration:1200}
1562,{icon:_x,label:"Verificando salários do mercado 2026",duration:1300},{icon:kn,label:"Analisando certificações mais valorizadas",duration:1100},{icon:d$,label:"Montando seu roadmap personalizado",duration:1500}];function pEe({onComplete:e}){const[t,r]=A.useState([]),[n,s]=A.useState(0),[o,i]=A.useState(!1);A.useEffect(()=>{let c,u=0;const d=()=>{if(u>=Qg.length){i(!0),c=setTimeout(e,800);return}s(u),c=setTimeout(()=>{r(f=>[...f,u]),u++,d()},Qg[u].duration)};return c=setTimeout(d,600),()=>clearTimeout(c)},[e]);const l=t.length/Qg.length*100;return a.jsxs("div",{className:"min-h-[80vh] bg-[#0a0e1a] flex items-center justify-center relative overflow-hidden",children:[a.jsx(Nv,{}),a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-1/4 left-1/3 w-[500px] h-[500px] bg-orange-500/8 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute bottom-1/4 right-1/3 w-[500px] h-[500px] bg-purple-600/8 rounded-full blur-[150px]"})]}),a.jsxs("div",{className:"relative z-10 w-full max-w-lg mx-auto px-6",children:[a.jsx(Ze.div,{className:"flex justify-center mb-8",animate:{scale:[1,1.05,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:a.jsxs("div",{className:"relative w-20 h-20",children:[a.jsx("div",{className:"absolute inset-0 rounded-full bg-orange-500/20 animate-ping",style:{animationDuration:"2s"}}),a.jsx("div",{className:"absolute inset-2 rounded-full bg-gradient-to-br from-orange-500/30 to-purple-600/30 backdrop-blur-sm flex items-center justify-center",children:a.jsx(vl,{className:"w-8 h-8 text-orange-400"})})]})}),a.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"text-center mb-10",children:[a.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white mb-2",children:o?"Análise concluÃda!":"Analisando seu perfil..."}),a.jsx("p",{className:"text-white/40 text-sm",children:"Montando seu mapa personalizado de carreira"})]}),a.jsxs("div",{className:"mb-8",children:[a.jsx(Sv,{value:l,className:"h-2 bg-white/10"}),a.jsxs("p",{className:"text-right text-white/30 text-xs mt-1.5 font-mono",children:[Math.round(l),"%"]})]}),a.jsx("div",{className:"space-y-3",children:Qg.map((c,u)=>{const d=t.includes(u),f=n===u&&!d,h=!d&&!f,m=c.icon;return a.jsxs(Ze.div,{initial:{opacity:0,x:-20},animate:{opacity:h?.3:1,x:0},transition:{delay:u*.1,duration:.3},className:`flex items-center gap-3 p-3 rounded-xl transition-all duration-300 ${d?"bg-green-500/10 border border-green-500/20":f?"bg-orange-500/10 border border-orange-500/20":"bg-white/[0.02] border border-white/[0.05]"}`,children:[a.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 ${d?"bg-green-500/20":f?"bg-orange-500/20":"bg-white/5"}`,children:d?a.jsx(Ze.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500},children:a.jsx($s,{className:"w-4 h-4 text-green-400"})}):f?a.jsx($r,{className:"w-4 h-4 text-orange-400 animate-spin"}):a.jsx(m,{className:"w-4 h-4 text-white/30"})}),a.jsx("span",{className:`text-sm font-medium ${d?"text-green-400":f?"text-orange-400":"text-white/30"}`,children:c.label})]},u)})}),!o&&a.jsx("div",{className:"flex gap-1.5 justify-center mt-8",children:[0,1,2,3,4].map(c=>a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-orange-500 animate-pulse",style:{animationDelay:`${c*200}ms`}},c))})]})]})}function gEe({onComplete:e,onBack:t,variant:r="pre-quiz",source:n,embedded:s=!1,enrichment:o}){const[i,l]=A.useState(!1),[c,u]=A.useState({full_name:"",email:"",phone:""}),[d,f]=A.useState(!1),[h,m]=A.useState({}),g=()=>{const b={};(!c.full_name.trim()||c.full_name.trim().length<3)&&(b.full_name="Digite seu nome completo");const j=c.email.trim().toLowerCase();return(!j||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j))&&(b.email="Digite um e-mail válido"),(!c.phone.trim()||!d)&&(b.phone=c.phone.trim()?"Telefone inválido":"Digite seu WhatsApp"),m(b),Object.keys(b).length===0},p=async b=>{if(b.preventDefault(),!!g()){l(!0);try{const j=await ef(),C=c.email.trim().toLowerCase(),L=(c.phone.trim()?jv(c.phone):null)?.digits||"",P=n||"trilha_perfeita",{data:I,error:E}=await J.functions.invoke("submit-public-lead",{body:{name:c.full_name.trim(),email:C,whatsapp:L,source:P,form_name:"AI_Career_Advisor",page_url:window.location.href,...j,...o||{}}});if(E)throw E;if(I?.error)throw new Error(I.error);const O=I?.id||I?.leadId||I?.lead?.id;if(!O)throw new Error("Lead não criado");J.from("path_analytics_events").insert([{event_type:"lead_captured",event_data:{lead_id:O}}]).then(()=>{}),e(O,{name:c.full_name,email:c.email,phone:c.phone})}catch(j){console.error("Lead form error:",j);const C=j?.message||"Erro ao enviar. Tente novamente.";et.error(C)}finally{l(!1)}}},x={hidden:{opacity:0,y:12},visible:b=>({opacity:1,y:0,transition:{delay:b*.1,duration:.4,ease:[.25,.46,.45,.94]}})},y=a.jsxs("form",{onSubmit:p,className:"space-y-3",children:[a.jsxs(Ze.div,{custom:0,variants:x,initial:"hidden",animate:"visible",children:[a.jsx($t,{htmlFor:"lead-name",className:"text-white/70 text-sm",children:"Nome completo *"}),a.jsx(Jt,{id:"lead-name",placeholder:"Seu nome completo",value:c.full_name,onChange:b=>{u({...c,full_name:b.target.value}),h.full_name&&m({...h,full_name:""})},className:"bg-white/5 border-white/10 text-white placeholder:text-white/30 h-10 md:h-11 rounded-xl mt-1 focus:border-orange-500/50 focus:ring-orange-500/20 focus:shadow-[0_0_15px_rgba(249,115,22,0.1)] transition-all duration-200",required:!0}),h.full_name&&a.jsx("p",{className:"text-red-400 text-xs mt-1",children:h.full_name})]}),a.jsxs(Ze.div,{custom:1,variants:x,initial:"hidden",animate:"visible",children:[a.jsx($t,{htmlFor:"lead-email",className:"text-white/70 text-sm",children:"E-mail *"}),a.jsx(Jt,{id:"lead-email",type:"email",placeholder:"[email protected]",value:c.email,onChange:b=>{u({...c,email:b.target.value}),h.email&&m({...h,email:""})},className:"bg-white/5 border-white/10 text-white placeholder:text-white/30 h-10 md:h-11 rounded-xl mt-1 focus:border-orange-500/50 focus:ring-orange-500/20 focus:shadow-[0_0_15px_rgba(249,115,22,0.1)] transition-all duration-200",required:!0}),h.email&&a.jsx("p",{className:"text-red-400 text-xs mt-1",children:h.email})]}),a.jsxs(Ze.div,{custom:2,variants:x,initial:"hidden",animate:"visible",children:[a.jsx($t,{htmlFor:"lead-phone",className:"text-white/70 text-sm",children:"WhatsApp / Telefone *"}),a.jsx(th,{value:c.phone,onChange:(b,j)=>{u({...c,phone:b}),f(j),h.phone&&m({...h,phone:""})},disabled:i,showValidation:!0}
1562),h.phone&&a.jsx("p",{className:"text-red-400 text-xs mt-1",children:h.phone})]}),a.jsx(Ze.div,{custom:3,variants:x,initial:"hidden",animate:"visible",children:a.jsx(Oe,{type:"submit",disabled:i,className:"w-full h-11 bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white font-semibold rounded-xl text-sm md:text-base shadow-[0_0_30px_rgba(249,115,22,0.25)] hover:shadow-[0_0_40px_rgba(249,115,22,0.35)] transition-all duration-300",children:i?a.jsx($r,{className:"w-5 h-5 animate-spin"}):a.jsxs(a.Fragment,{children:[a.jsx(vl,{className:"w-4 h-4 mr-2"}),r==="pre-results"?"Liberar meu mapa de carreira":"Iniciar diagnóstico de carreira"]})})})]});return s?y:a.jsxs("div",{className:"min-h-[80vh] bg-[#0a0e1a] flex items-center justify-center px-4 py-16 relative overflow-hidden",children:[a.jsx(Nv,{}),a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-1/3 left-1/4 w-96 h-96 bg-orange-500/8 rounded-full blur-[120px]"}),a.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-96 h-96 bg-purple-600/8 rounded-full blur-[120px]"})]}),a.jsxs(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"relative w-full max-w-md",children:[a.jsxs("button",{onClick:t,className:"flex items-center gap-2 text-white/50 hover:text-white mb-8 transition-colors",children:[a.jsx(TA,{className:"w-4 h-4"})," Voltar"]}),a.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-xl p-8",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-medium mb-4",children:[a.jsx(Nr,{className:"w-3 h-3"})," Diagnóstico gratuito"]}),a.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:r==="pre-results"?"Cadastre-se para ver seu roadmap":"Seus dados para o diagnóstico"}),a.jsx("p",{className:"text-white/50 text-sm",children:r==="pre-results"?"Preencha seus dados para receber seu plano personalizado de carreira":"Preencha para iniciar sua análise de carreira personalizada com IA"})]}),y,a.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6 text-white/30 text-xs",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Nx,{className:"w-3 h-3"})," Dados seguros"]}),a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(_i,{className:"w-3 h-3"})," Sem spam"]})]})]})]})]})}function xEe({onComplete:e,onBack:t,source:r}){return a.jsxs("div",{className:"bg-[#0a0e1a] relative overflow-hidden flex flex-col justify-center min-h-[100dvh] max-h-[100dvh]",children:[a.jsx(Nv,{}),a.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[a.jsx("div",{className:"absolute top-1/4 left-1/4 w-[500px] h-[500px] bg-orange-500/6 rounded-full blur-[150px]"}),a.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-[500px] h-[500px] bg-purple-600/6 rounded-full blur-[150px]"})]}),a.jsxs("div",{className:"relative z-10 w-full max-w-xl mx-auto px-4 sm:px-6 py-4",children:[a.jsxs("button",{onClick:t,className:"flex items-center gap-2 text-white/50 hover:text-white mb-3 transition-colors text-sm",children:[a.jsx(TA,{className:"w-4 h-4"})," Voltar"]}),a.jsxs(Ze.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},children:[a.jsxs("div",{className:"text-center mb-4",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-[11px] font-bold mb-2.5",children:[a.jsx(Nr,{className:"w-3 h-3"})," Diagnóstico de carreira gratuito"]}),a.jsxs("h1",{className:"text-xl sm:text-2xl font-extrabold text-white mb-1.5 leading-snug",children:["Preencha rapidamente para"," ",a.jsx("span",{className:"bg-gradient-to-r from-orange-400 to-orange-600 bg-clip-text text-transparent",children:"enviarmos o resultado"})," ","do seu diagnóstico"]}),a.jsx("p",{className:"text-white/60 text-xs sm:text-sm max-w-md mx-auto",children:"Enviamos seu mapa de carreira por e-mail e WhatsApp assim que a IA terminar a análise."})]}),a.jsxs("div",{className:"rounded-2xl border border-orange-500/20 bg-white/[0.03] backdrop-blur-xl p-4 sm:p-5",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3 text-white/70 text-xs",children:[a.jsx(vl,{className:"w-4 h-4 text-orange-400"}),a.jsx("span",{children:"3 dados · leva menos de 20 segundos"})]}),a.jsx(gEe,{variant:"pre-quiz",source:r||"trilha_perfeita",onComplete:e,onBack:t,embedded:!0}),a.jsxs("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-[11px]",children:[a.jsxs("span",{className:"text-yellow-400/70 flex items-center gap-1",children:[a.jsx(Vr,{className:"w-3 h-3"})," Resultado em até 2 minutos"]}),a.jsxs("span",{className:"text-white/30 flex items-center gap-1",children:[a.jsx(Nx,{className:"w-3 h-3"})," Dados seguros"]}),a.jsxs("span",{className:"text-white/30 flex items-center gap-1",children:[a.jsx(_i,{className:"w-3 h-3"})," Sem spam"]})]})]})]})]})]})}function vEe({source:e="trilha_perfeita",origin:t="page",onSkip:r,onLeadCaptured:n}){gL();const s=jl(),[o,i]=A.useState("landing"),[l,c]=A.useState(null),[u,d]=A.useState(null),[f,h]=A.useState(!1),[m,g]=A.useState(!1),[p,x]=A.useState(null),[y,b]=A.useState(),[j,C]=A.useState(),[T,L]=A.useState(),P=A.useRef(!1);A.useEffect(()=>{ef().then(se=>{J.from("path_analytics_events").insert([{event_type:"landing_view",event_data:{...se,origin:t,source:e},page_url:window.location.href,utm_source:se.utm_source,utm_medium:se.utm_medium,utm_campaign:se.utm_campaign}]).then(()=>{})})},[t,e]);const I=()=>
1562{i("capture"),J.from("path_analytics_events").insert([{event_type:"pre_quiz_capture_viewed",event_data:{origin:t,source:e},page_url:window.location.href}]).then(()=>{})},E=(se,S)=>{x(se),b(S?.name),C(S?.email),L(S?.phone);try{n?.(se)}catch{}J.from("path_analytics_events").insert([{event_type:"lead_captured_pre_quiz",event_data:{lead_id:se,origin:t,source:e}}]).then(()=>{}),i("quiz"),J.from("path_analytics_events").insert([{event_type:"quiz_started_direct",event_data:{origin:t,source:e,lead_id:se},page_url:window.location.href}]).then(()=>{})},O=A.useRef(null),k=A.useRef(""),D=A.useRef(null),H=A.useRef(!1),U=A.useRef(null);U.current=p;const ee=A.useCallback((se=!1)=>{const S=U.current,Q=D.current;if(!S||!Q)return;D.current=null,O.current&&(clearTimeout(O.current),O.current=null);const z=JSON.stringify({leadId:S,quizAnswers:Q,partial:!0});if(se&&typeof fetch=="function")try{fetch("https://nobmaxndasqwzxzotkzj.supabase.co/functions/v1/skillmap-enrich-lead",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5vYm1heG5kYXNxd3p4em90a3pqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTkzODQ2NDQsImV4cCI6MjA3NDk2MDY0NH0.xxkEsj4nmMt2C8jQloqRcI_prWrutqcvCad5MQIQFIQ",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5vYm1heG5kYXNxd3p4em90a3pqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTkzODQ2NDQsImV4cCI6MjA3NDk2MDY0NH0.xxkEsj4nmMt2C8jQloqRcI_prWrutqcvCad5MQIQFIQ"},body:z});return}catch{}J.functions.invoke("skillmap-enrich-lead",{body:JSON.parse(z)}).then(({error:W})=>{W&&console.error("SkillMap partial save failed:",W)})},[]),ae=A.useCallback(se=>{if(!U.current)return;const Q=JSON.stringify(se);if(Q!==k.current){if(k.current=Q,D.current=se,!H.current){H.current=!0,ee(!1);return}O.current&&clearTimeout(O.current),O.current=setTimeout(()=>ee(!1),800)}},[ee]);A.useEffect(()=>{const se=()=>ee(!0),S=()=>{document.visibilityState==="hidden"&&ee(!0)};return window.addEventListener("pagehide",se),document.addEventListener("visibilitychange",S),()=>{window.removeEventListener("pagehide",se),document.removeEventListener("visibilitychange",S),ee(!0)}},[ee]);const V=async se=>{c(se),i("analyzing"),h(!1),g(!1),P.current=!1,p&&(D.current=null,O.current&&clearTimeout(O.current),J.functions.invoke("skillmap-enrich-lead",{body:{leadId:p,quizAnswers:se,partial:!0}}).then(({error:S})=>{S&&console.error("SkillMap quiz persist failed:",S)})),J.from("path_analytics_events").insert([{event_type:"quiz_completed",event_data:{...se,origin:t,source:e,lead_id:p}}]).then(()=>{});try{const S=crypto.randomUUID(),{error:Q}=await J.from("path_onboarding").insert({id:S,lead_id:p,role:se.role||null,experience_level:se.experience_level||null,goals:se.goals||[],interest_areas:se.interest_areas||[],preferred_format:se.preferred_format||null,decision_factors:se.decision_factors||[],wants_certification:se.wants_certification||!1,skipped:!1,status:"processing"});if(Q)throw Q;let z=null;for(let W=0;W<2&&!z;W++){const{data:ne,error:X}=await J.functions.invoke("recommend-path",{body:{onboarding_id:S}});if(!X&&ne?.recommendations)z=ne.recommendations;else if(W===0)await new Promise(te=>setTimeout(te,1500));else if(X)throw X}if(!z)throw new Error("Sem recomendações");if(d({...z,_onboarding_id:S}),h(!0),J.from("path_analytics_events").insert([{event_type:"skillmap_recommendation_generated",event_data:{onboarding_id:S,recommendation_version:z.recommendation_version,ai_enriched:z.ai_enriched}}]).then(()=>{}),p){const W=z||{},ne={primary_courses:(W.primary_courses||[]).map(X=>({id:X.id,title:X.course?.title||X.title,match_score:X.match_score,reason:X.reason})),complementary_courses:(W.complementary_courses||[]).map(X=>({id:X.id,title:X.course?.title||X.title,match_score:X.match_score,reason:X.reason})),reasoning_summary:W.reasoning_summary,profile_summary:W.profile_summary,generated_at:new Date().toISOString()};J.functions.invoke("skillmap-enrich-lead",{body:{leadId:p,quizAnswers:se,aiSummary:ne,primaryCourseTitle:(W.primary_courses||[]).map(X=>
1562X.course?.title||X.title).filter(Boolean)[0]||null,partial:!0}}).then(({error:X})=>{X&&console.error("SkillMap early AI persist failed:",X)})}}catch(S){console.error("Recommendation error:",S),et.error("Erro ao gerar recomendações. Tente novamente."),i("quiz")}},q=A.useCallback(()=>{g(!0)},[]),G=A.useCallback(async()=>{if(P.current)return;P.current=!0;const se=p,S=u?._onboarding_id;if(se&&S&&await J.functions.invoke("recommend-path",{body:{onboarding_id:S,lead_id:se,link_only:!0}}).then(({error:z})=>{z&&console.error("Lead link after SkillMap failed:",z)}),se){const z=[`[Trainning SkillMap - Diagnóstico IA - ${tv()}]`,`Cargo: ${l?.role||"N/A"}`,`Experiência: ${l?.experience_level||"N/A"}`,`Objetivos: ${(l?.goals||[]).join(", ")||"N/A"}`,`Ãreas de interesse: ${(l?.interest_areas||[]).join(", ")||"N/A"}`,`Formato preferido: ${l?.preferred_format||"N/A"}`,`Fatores de decisão: ${(l?.decision_factors||[]).join(", ")||"N/A"}`,`Quer certificação: ${l?.wants_certification?"Sim":"Não"}`].join(` 1563`),W={primary_courses:(u?.primary_courses||[]).map(ne=>({id:ne.id,title:ne.course?.title,match_score:ne.match_score,reason:ne.reason})),reasoning_summary:u?.reasoning_summary,profile_summary:u?.profile_summary,generated_at:new Date().toISOString()};try{const ne=(u?.primary_courses||[]).map(te=>te.course?.title||te.title).filter(Boolean)[0]||null,{error:X}=await J.functions.invoke("skillmap-enrich-lead",{body:{leadId:se,quizAnswers:l??null,aiSummary:W,primaryCourseTitle:ne,quizObservacoes:z}});X&&console.error("SkillMap â lead enrichment failed:",X)}catch(ne){console.error("SkillMap enrichment exception:",ne)}J.functions.invoke("qualify-lead-local",{body:{leadId:se,forceRefresh:!0,actor:"skillmap"}}).then(({error:ne})=>{ne&&console.error("Re-qualification after SkillMap failed:",ne)}),J.functions.invoke("execute-automation",{body:{leadId:se,triggerType:"skillmap_completed"}}).then(({error:ne})=>{ne&&console.error("Automation trigger after SkillMap failed:",ne)})}let Q;try{const{data:z}=await J.rpc("save_path_result",{p_recommendations:u});Q=z??void 0}catch(z){console.error("Failed to save result:",z)}if(se){J.functions.invoke("send-skillmap-result-email",{body:{leadId:se,recommendations:u,savedResultId:Q}}).then(({error:W})=>{W&&console.error("Result email failed:",W)});const z=(u?.primary_courses||[]).map(W=>W.course?.title||W.title).filter(Boolean).join(", ");J.from("lead_solicitacoes").insert({lead_id:se,form_name:t==="modal"?"Trainning SkillMap (Modal)":"Trainning SkillMap",course_title:z||null,page_url:window.location.href}).then(({error:W})=>{W&&console.error("Failed to register lead_solicitacao:",W)}),J.from("path_analytics_events").insert([{event_type:"lead_captured_post_quiz",event_data:{lead_id:se,onboarding_id:S,savedResultId:Q,origin:t,source:e}}]).then(()=>{})}},[p,u,l,t,e]);A.useEffect(()=>{f&&m&&o==="analyzing"&&G().finally(()=>{i("results")})},[f,m,o,G]);const Ae=()=>{J.from("path_analytics_events").insert([{event_type:"quiz_skipped",event_data:{origin:t,source:e,lead_id:p}}]).then(()=>{}),r?r():s("/cursos")};return a.jsxs(a.Fragment,{children:[o==="landing"&&a.jsx(kye,{onCTAClick:I,compact:t==="modal"}),o==="capture"&&a.jsx(xEe,{source:e,onComplete:E,onBack:()=>i("landing")}),o==="quiz"&&a.jsx(Tye,{onComplete:V,onSkip:Ae,onAnswersChange:ae}),o==="analyzing"&&a.jsx(pEe,{onComplete:q}),o==="results"&&a.jsx(hEe,{recommendations:u,onReset:()=>i("landing"),leadId:p||void 0,leadName:y,leadEmail:j,leadPhone:T,quizAnswers:l})]})}const yEe=["/admin","/auth","/aluno","/plataforma","/settings","/pagamento","/assinar-contrato","/empresa","/comercial","/app-dashboard","/skillmap","/f/skillmap","/trilha-perfeita","/diagnostico-carreira","/resultado"],bEe="te_popup_converted_at",wEe=30*24*60*60*1e3;function _Ee(){if(typeof window>"u")return!1;try{const e=localStorage.getItem(bEe);if(!e)return!1;const t=parseInt(e,10);return Number.isFinite(t)?Date.now()-t<=wEe:!1}catch{return!1}}function CEe({onConvert:e,onDismiss:t}={}){const r=fn(),[n,s]=A.useState(null),[o,i]=A.useState(!1),[l,c]=A.useState(!1),u=A.useRef(!1),d=A.useRef(!1),f=(n?.excluded_pages||yEe).some(p=>r.pathname===p||r.pathname.startsWith(p+"/"));A.useEffect(()=>{if(f)return;let p=!1;return(async()=>{const{data:x}=await J.from("popup_configs").select("id, title, trigger_type, show_once_per_session, excluded_pages, is_active").eq("variant","skillmap_exit").eq("is_active",!0).limit(1).maybeSingle();!p&&x&&s(x)})(),()=>{p=!0}},[f]);const h=A.useCallback(()=>
1563{if(!n||u.current||n.trigger_type!=="exit_intent"&&n.trigger_type!=="both"||_Ee())return;const p=`popup_shown_${n.id}`;if(!(n.show_once_per_session&&sessionStorage.getItem(p))&&(u.current=!0,c(!0),i(!0),n.show_once_per_session))try{sessionStorage.setItem(p,"true")}catch{}},[n]),m=!!n&&!f&&!l;SQ({onExitIntent:h,enabled:m}),A.useEffect(()=>{if(!m||typeof window>"u"||!window.matchMedia?.("(pointer: coarse)")?.matches)return;let x=window.scrollY,y=Date.now();const b=()=>{const j=window.scrollY,C=Date.now(),T=x-j,L=Math.max(C-y,1),P=T/L;x=j,y=C,j<=24&&P>1.2&&h()};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[m,h]),A.useEffect(()=>{if(!o)return;mv();const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{hv(),document.body.style.overflow=p}},[o]);const g=A.useCallback(()=>{i(!1),d.current?e?.():t?.()},[e,t]);return o?a.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-3 sm:p-6 bg-black/70 backdrop-blur-sm",onClick:()=>{d.current||g()},children:a.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Diagnóstico SkillMap",onClick:p=>p.stopPropagation(),className:"relative w-full max-w-2xl max-h-[88dvh] overflow-y-auto overflow-x-hidden rounded-2xl border border-border bg-background shadow-2xl [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[a.jsx("button",{type:"button",onClick:g,"aria-label":"Fechar diagnóstico",className:"absolute top-3 right-3 z-[110] rounded-full bg-black/60 hover:bg-black/80 text-white p-2 transition-colors backdrop-blur-sm",children:a.jsx(Ua,{className:"h-5 w-5"})}),a.jsx(vEe,{source:"skillmap_exit_popup",origin:"modal",onSkip:g,onLeadCaptured:()=>{d.current=!0}})]})}):null}const jEe=A.lazy(()=>B(()=>import("./index-C-9Waosp.js").then(e=>e.k),__vite__mapDeps([4,5,1,2])));function EEe(e){return a.jsx(A.Suspense,{fallback:a.jsx("div",{className:"animate-pulse bg-muted rounded h-4 w-full"}),children:a.jsx(jEe,{...e})})}let Tb=null;function BEe(){return Tb||(Tb=B(()=>import("./index-BJL-poRs.js"),__vite__mapDeps([6,5])).then(e=>e.default)),Tb}function W8e(){const[e,t]=A.useState(null);return A.useEffect(()=>{BEe().then(r=>t(()=>r))},[]),e?[e]:void 0}const Qf="/assets/camila-avatar-D74vSW7j.jpeg";function NEe(){const e="chatbot_visitor_session";let t=sessionStorage.getItem(e);return t||(t=crypto.randomUUID(),sessionStorage.setItem(e,t)),t}function SEe(e){const t=e.match(/\[BUTTONS:\[(.*?)\]\]/);let r=null;try{t&&(r=JSON.parse(`[${t[1]}]`))}catch(s){console.warn("Failed to parse chatbot buttons:",s)}return{text:e.replace(/\[BUTTONS:\[.*?\]\]/,"").trim(),buttons:r}}function kEe(e){return e.includes("[SPLIT]")?e.split("[SPLIT]").map(t=>t.trim()).filter(Boolean):[e]}function IEe({onInteract:e}){const[t,r]=A.useState(!1),[n,s]=A.useState(!1),o=A.useMemo(()=>typeof window<"u"&&window.innerWidth<768,[]);A.useEffect(()=>{if(!o){s(!0);return}const V=setTimeout(()=>s(!0),15e3),q=()=>{window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)>.4&&s(!0)};return window.addEventListener("scroll",q,{passive:!0}),()=>{clearTimeout(V),window.removeEventListener("scroll",q)}},[o]);const[i,l]=A.useState(!1),[c,u]=A.useState([]),[d,f]=A.useState(""),[h,m]=A.useState(!1),[g,p]=A.useState({}),[x,y]=A.useState(!1),[b,j]=A.useState({enabled:!1,position:"bottom-left"}),[C,T]=A.useState(!1),[L,P]=A.useState(null),I=A.useRef(null),E=A.useRef(NEe()),O=A.useRef(!1);A.useEffect(()=>{(async()=>{try{const{data:q,error:G}=await J.from("ai_knowledge_base").select("value").eq("key","chatbot_config").eq("category","chatbot").maybeSingle();if(G){console.error("Config do chatbot ilegÃvel â widget não será exibido:",G);return}if(!q?.value){console.warn("Config do chatbot ausente â widget não será exibido.");return}try{const Ae=JSON.parse(q.value);j({enabled:Ae.enabled??!1,position:Ae.position??"bottom-left"})}catch(Ae){console.error("Config do chatbot inválida â widget não será exibido:",Ae)}}catch(q){console.error("Erro ao carregar config do chatbot:",q)}finally{T(!0)}})()},[]),A.useEffect(()=>{const V=setTimeout(()=>{I.current?.scrollIntoView({behavior:"smooth"})},100);return()=>clearTimeout(V)},[c,h]);const k=A.useCallback(()=>{!O.current&&e&&(O.current=!0,e())},[e]),D=V=>{const G=kEe(V).map(Ae=>({role:"assistant",content:Ae,timestamp:new Date}));u(Ae=>[...Ae,...G])},H=A.useCallback(async V=>{if(!V.trim()||h)return;k();const q={role:"user",content:V.trim(),timestamp:new Date};u(G=>[...G,q]),f(""),m(!0);try{const G=c.map(z=>({role:z.role,content:z.content})),Ae=await ef(),{data:se,error:S}=await J.functions.invoke("public-chatbot",{body:{message:q.content,conversationHistory:G,collectedData:g,conversationId:L,visitorSessionId:E.current,pageUrl:window.location.href,userAgent:navigator.userAgent,trackingData:Ae}});if(S)throw S;const Q=se.response||"Desculpe, não consegui processar sua mensagem.";D(Q),se.collectedData&&p(se.collectedData),se.conversationId&&P(se.conversationId),x||y(!0)}catch(G){console.error("Erro no chatbot:",G),u(Ae=>[...Ae,{role:"assistant",content:"Desculpe, ocorreu um erro. Por favor, tente novamente ou entre em contato pelo nosso WhatsApp.",timestamp:new Date}]),x||y(!0),et.error("Erro ao enviar mensagem")}finally{m(!1)}},[h,c,g,L,k,x]),U=A.useCallback(async()=>{d.trim()&&await H(d)},[d,H]),ee=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),U())},ae=lfe();return!C||!b.enabled||ae?null:t?i?a.jsx("div",{className:"fixed left-4 md:left-6 z-[55] cursor-pointer group",style:{bottom:"calc(var(--action-bar-height, 0px) + 76px)"},onClick:()=>l(!1),children:a.jsxs("div",{className:"flex items-center gap-2 bg-accent/90 hover:bg-accent rounded-full shadow-lg pl-1 pr-4 py-1 transition-colors",children:[a.jsx("img",{src:Qf,alt:"Consultor",className:"h-10 w-10 rounded-full object-cover border-2 border-white/30"}),a.jsx("span",{className:"font-medium text-white text-sm",children:"Camila"}),c.length>1&&a.jsx("span",{className:"bg-white/20 px-2 py-0.5 rounded-full text-xs text-white",children:c.length-1})]})}):a.jsxs(us,{className:"fixed left-2 right-2 md:left-6 md:right-auto md:w-[380px] max-h-[calc(100vh-100px)] shadow-2xl z-[60] flex flex-col border-accent/20 h-[calc(100vh-80px)] md:h-[500px]",style:{bottom:"calc(var(--action-bar-height, 0px) + 12px)"},children:[a.jsx(qM,{className:"p-4 bg-gradient-to-r from-accent to-accent/80 text-white rounded-t-lg flex-shrink-0",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("img",{src:Qf,alt:"Camila",className:"h-10 w-10 rounded-full object-cover border-2 border-white/30"}),a.jsxs("div",{children:[a.jsx(KM,{className:"text-lg font-semibold",children:"Camila"}),a.jsx("p",{className:"text-xs text-white/80",children:"TRAINNING EDUCATION"})]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(Oe,{variant:"ghost",size:"icon",onClick:()=>l(!0),className:"h-8 w-8 text-white hover:bg-white/20",children:a.jsx(m$,{className:"h-4 w-4"})}),a.jsx(Oe,{variant:"ghost",size:"icon",onClick:()=>r(!1),className:"h-8 w-8 text-white hover:bg-white/20",children:a.jsx(Ua,{className:"h-4 w-4"})})]})]})}),a.jsxs(ds,{className:"flex-1 flex flex-col p-0 overflow-hidden",children:[a.jsx(Xx,{className:"flex-1 p-4",children:a.jsxs("div",{className:"space-y-4",children:[c.map((V,q)=>{const{text:G,buttons:Ae}=SEe(V.content);return a.jsxs("div",{className:`flex gap-3 ${V.role==="user"?"flex-row-reverse":""}`,children:[V.role==="user"?a.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center bg-primary text-primary-foreground",children:a.jsx(cs,{className:"h-4 w-4"})}):a.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full overflow-hidden border border-accent/20",children:a.jsx("img",{src:Qf,alt:"Camila",className:"h-full w-full object-cover"})}),a.jsxs("div",{className:"flex-1 max-w-[85%] flex flex-col gap-2",children:[a.jsx("div",{className:`rounded-2xl px-4 py-3 ${V.role==="user"?"bg-primary text-primary-foreground rounded-tr-sm":"bg-muted rounded-tl-sm"}`,children:a.jsx("div",{className:`text-sm prose prose-sm max-w-none ${V.role==="user"?"prose-invert":""}`,children:a.jsx(EEe,{components:{p:({children:se})=>a.jsx("p",{className:"mb-2 last:mb-0",children:se}),ul:({children:se})=>a.jsx("ul",{className:"list-disc pl-4 mb-2",children:se}),li:({children:se})=>a.jsx("li",{className:"mb-1",children:se}),strong:({children:se})=>a.jsx("strong",{className:"font-semibold",children:se})},children:G})})}),Ae&&V.role==="assistant"&&a.jsx("div",{className:"flex flex-wrap gap-2",children:Ae.map((se,S)=>a.jsx(Oe,{variant:"outline",size:"sm",className:"text-xs h-auto py-2 px-3 border-accent/30 hover:bg-accent hover:text-white transition-colors whitespace-normal text-left",onClick:()=>H(se),disabled:h,children:se},S))})]})]},q)}),h&&a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full overflow-hidden border border-accent/20",children:a.jsx("img",{src:Qf,alt:"Camila",className:"h-full w-full object-cover"})}),a.jsx("div",{className:"bg-muted rounded-2xl rounded-tl-sm px-4 py-3",children:a.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[a.jsx($r,{className:"h-4 w-4 animate-spin"}),a.jsx("span",{className:"text-sm",children:"Digitando..."})]})})]}),a.jsx("div",{ref:I})]})}),a.jsxs("div",{className:"p-4 border-t bg-background/50 backdrop-blur-sm",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx(hl,{value:d,onChange:V=>f(V.target.value),onKeyDown:ee,placeholder:"Digite sua mensagem...",className:"min-h-[44px] max-h-[120px] resize-none",disabled:h}),a.jsx(Oe,{onClick:U,disabled:!d.trim()||h,size:"icon",className:"h-[44px] w-[44px] flex-shrink-0",children:a.jsx(kT,{className:"h-4 w-4"})})]}),a.jsx("p",{className:"text-[10px] text-muted-foreground text-center mt-2",children:"Pressione Enter para enviar ⢠Shift+Enter para nova linha"})]})]})]}):!n&&o?null:a.jsxs("div",{className:"fixed left-4 md:left-6 z-[55] flex flex-col items-center gap-1 cursor-pointer group",style:{bottom:"calc(var(--action-bar-height, 0px) + 76px)"},onClick:()=>{r(!0),k()},children:[a.jsxs("div",{className:"relative h-14 w-14 md:h-16 md:w-16 rounded-full shadow-lg border-2 border-accent overflow-hidden bg-white group-hover:scale-105 transition-transform",children:[a.jsx("img",{src:Qf,alt:"Consultora",className:"h-full w-full object-cover"}),a.jsx("div",{className:"absolute bottom-0 right-0 h-3.5 w-3.5 md:h-4 md:w-4 bg-green-500 border-2 border-white rounded-full animate-[pulse_3s_ease-in-out_infinite]"}),a.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-accent/40 animate-[ping_4s_ease-in-out_infinite] opacity-30"})]}),a.jsx("span",{className:"text-[10px] font-semibold text-white bg-accent/90 px-2 py-0.5 rounded-full shadow whitespace-nowrap",children:"Fale com a Camila"})]})}const d2="te_popup_converted_at",FEe=30*24*60*60*1e3;
1563function TEe(){if(typeof window>"u")return!1;try{const e=localStorage.getItem(d2);if(!e)return localStorage.getItem("te_popup_converted")==="1"&&localStorage.removeItem("te_popup_converted"),!1;const t=parseInt(e,10);return Number.isFinite(t)?Date.now()-t>FEe?(localStorage.removeItem(d2),!1):!0:!1}catch{return!1}}function PEe(){const{user:e}=Zn(),[t,r]=A.useState(!1),[n,s]=A.useState(()=>TEe());A.useEffect(()=>{if(typeof window>"u")return;const c=()=>r(!0),u=()=>r(!1);return window.addEventListener("form:overlay:open",c),window.addEventListener("form:overlay:close",u),()=>{window.removeEventListener("form:overlay:open",c),window.removeEventListener("form:overlay:close",u)}},[]);const o=A.useCallback(()=>{s(!0);try{localStorage.setItem(d2,String(Date.now()))}catch{}},[]),i=A.useCallback(()=>{},[]);if(e)return null;const l=!n&&!t;return a.jsxs(a.Fragment,{children:[a.jsx(wye,{onConvert:o,onDismiss:i}),a.jsx(CEe,{onConvert:o,onDismiss:i}),l&&a.jsx(IEe,{})]})}const pc=Object.freeze({id:"trainning-19-anos-digital-20260918",source:"aniversario_19_anos_digital",path:"/aniversario-19-anos-digital",formName:"Aniversário 19 anos | Digital",lotSize:10,installments:12,fulfillment:"consultant_confirmed"}),IV=[{id:"sap",name:"SAP Full Access Digital",slug:"sap-full-access-digital",eyebrow:"FOCO NO ECOSSISTEMA SAP",description:"Para começar, aprofundar conhecimentos e construir o seu próximo passo em SAP.",referenceCents:499e3,priceCents:399e3,areas:["S/4HANA","FI","MM","SD","ABAP","Basis","BTP","Fiori"]},{id:"mastertech",name:"MasterTech Digital",slug:"mastertech-digital-acesso-imediato",eyebrow:"MAIS ÃREAS DE TECNOLOGIA",description:"Para conectar SAP a outras competências e ampliar o seu repertório profissional.",referenceCents:599e3,priceCents:459e3,areas:["SAP","Inteligência Artificial","Cloud","Dados","Governança","Projetos"]}],dA=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e/100),FV=e=>IV.find(t=>t.id===e);function Y8e(e){const t=new URLSearchParams(e).get("plano");return t==="sap"||t==="mastertech"||t==="orientacao"?t:""}const X8e={name:"",email:"",whatsapp:"",interest:"",start:"",contactAccepted:!1,marketingOptIn:!1,website:""};function TV(e){const t=e.replace(/\D/g,"");return!e.trim().startsWith("+")&&(t.length===10||t.length===11)?`55${t}`:t}function Z8e(e){const t={};(e.name.trim().length<2||e.name.trim().length>120)&&(t.name="Informe seu nome (entre 2 e 120 caracteres)."),(e.email.trim().length>254||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email.trim()))&&(t.email="Informe um e-mail válido.");const r=TV(e.whatsapp),n=r.startsWith("55")?r.slice(2):r;return(!/^[1-9]\d{7,14}$/.test(r)||/^(\d)\1+$/.test(n)||r.startsWith("55")&&(!/^\d{10,11}$/.test(n)||!/^[1-9][1-9]/.test(n)))&&(t.whatsapp="Informe o WhatsApp com DDD. Para outros paÃses, inclua + e o código do paÃs."),["sap","mastertech","orientacao"].includes(e.interest)||(t.interest="Escolha um plano ou peça orientação."),["imediato","breve","pesquisando"].includes(e.start)||(t.start="Selecione quando pretende iniciar."),e.contactAccepted||(t.contactAccepted="Autorize o contato sobre esta solicitação para continuar."),t}const J8e={situation:"",problem:"",impact:"",goal:""},PV=[{key:"situation",title:"Em que momento você está?",options:["Quero começar em tecnologia","Quero migrar para SAP","Já trabalho com SAP","Quero ampliar minhas competências"]},{key:"problem",title:"O que mais dificulta seu próximo passo?",options:["Escolher uma trilha","Aprofundar conhecimentos","Organizar meus estudos","Conectar diferentes tecnologias"]},{key:"impact",title:"Isso tem dificultado qual objetivo?",options:["Participar de projetos","Mudar de área","Ganhar autonomia no trabalho","Ainda não percebo um impacto"]},{key:"goal",title:"O que seria mais útil para você agora?",options:["Aprofundar meus conhecimentos em SAP","Combinar SAP com outras tecnologias","Conversar antes de decidir"]}];function eQe(e){return PV.every(t=>t.options.includes(e[t.key]))?e.goal==="Aprofundar meus conhecimentos em SAP"?"sap":e.goal==="Combinar SAP com outras tecnologias"?"mastertech":"orientacao":""}function LEe(e){return PV.filter(t=>t.options.includes(e[t.key])).map(t=>`${t.title} ${e[t.key]}`).join(" | ")}function tQe(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Recebimento não confirmado.");const t=e;if(t.success===!1||t.blocked||t.error||t.skipped||t.dry_run||t.queued)throw new Error("Recebimento não confirmado.");const n=(t.lead&&typeof t.lead=="object"?t.lead:{}).id??t.lead_id??t.leadId??t.id;
1563if(typeof n!="string"||!/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i.test(n))throw new Error("Recebimento não confirmado.");return n}function rQe(e,t,r,n){const s=FV(e.interest),o=s?`${dA(s.priceCents)}; ${pc.installments}x ${dA(s.priceCents/pc.installments)} sem juros`:"Plano a definir com consultor";return{lead_type:"pf",course_format:"curso_digital",interest:"Formação",course_title:s?.name??"SAP Full Access Digital ou MasterTech Digital â orientação",formation_id:s?n:void 0,quando_pretende:e.start,is_priority:e.start==="imediato",qualification_goal:t.goal||void 0,qualification_summary:LEe(t)||void 0,terms_accepted:e.contactAccepted,marketing_opt_in:e.marketingOptIn,observacoes:`[${pc.id}] ${s?.name??"Orientação"} | ${o} | Modalidade digital | CTA: ${r}. Solicitação de atendimento; sem reserva de vaga e sem pedido gerado.`}}function DEe(e){const t=new URL(e),r=new URL(t.origin+pc.path),n=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","wbraid","gbraid","msclkid","ttclid","li_fat_id"];for(const s of n){const o=t.searchParams.get(s);o&&r.searchParams.set(s,o.slice(0,512))}return r.toString()}function nQe(e){const t=FV(e),r=t?`Olá! Tenho interesse na campanha de 19 anos da Trainning: ${t.name} por ${dA(t.priceCents)}, em até ${pc.installments}x sem juros. Gostaria de confirmar a disponibilidade e receber os detalhes.`:"Olá! Quero orientação sobre o SAP Full Access Digital e o MasterTech Digital na campanha de 19 anos da Trainning.";return`https://wa.me/551131712002?text=${encodeURIComponent(r)}`}function aQe(e){const t=TV(e);if(t.startsWith("55")&&/^\d{12,13}$/.test(t)){const r=t.slice(2);return`+55 (${r.slice(0,2)}) ${r.slice(2,-4)}-${r.slice(-4)}`}return e.trim().startsWith("+")?t?`+${t}`:"":e.trim()}const AA=Object.freeze({enabled:!0,version:"anniversary-home-entry-20260922-v2",compact:!0,showOnHome:!0,showOnInternalPages:!1,settingKey:"anniversary_home_entry"});function REe(e,t=AA){return t.enabled===!1?!1:e==="/"?t.showOnHome!==!1:t.showOnInternalPages===!0&&e!==pc.path}function hI(e,t){const r=new URL(DEe(`https://www.trainning.com.br/${e.startsWith("?")?e:`?${e}`}`));return(t==="sap"||t==="mastertech")&&r.searchParams.set("plano",t),pc.path+r.search}const Vg={enabled:AA.enabled,showOnHome:AA.showOnHome,showOnInternalPages:AA.showOnInternalPages};function MEe(){const[e,t]=A.useState(Vg);return A.useEffect(()=>{let r=!0;return J.from("site_settings").select("value").eq("key",AA.settingKey).maybeSingle().then(({data:n,error:s})=>{if(!r||s||!n?.value||typeof n.value!="object"||Array.isArray(n.value))return;const o=n.value;t({enabled:typeof o.enabled=="boolean"?o.enabled:Vg.enabled,showOnHome:typeof o.showOnHome=="boolean"?o.showOnHome:Vg.showOnHome,showOnInternalPages:typeof o.showOnInternalPages=="boolean"?o.showOnInternalPages:Vg.showOnInternalPages})}),()=>{r=!1}},[]),e}function OEe(){return Zu()?a.jsx(UEe,{}):null}function UEe(){const{pathname:e,search:t}=fn(),r=MEe();return REe(e,r)?a.jsxs("section",{"aria-labelledby":"anniversary-home-heading","data-anniversary-home-entry":AA.version,className:"relative isolate overflow-hidden border-b border-white/10 bg-[#071427] text-white",children:[a.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_10%_50%,rgba(255,119,15,.18),transparent_26%),radial-gradient(circle_at_85%_0%,rgba(34,110,196,.22),transparent_30%)]"}),a.jsxs("div",{className:"relative mx-auto flex w-full max-w-7xl flex-col gap-3 px-4 py-3 sm:px-6 md:py-4 lg:flex-row lg:items-center lg:gap-6",children:[a.jsxs("div",{className:"flex min-w-0 items-center gap-3 lg:w-[32%]",children:[a.jsxs("div",{className:"hidden shrink-0 items-center gap-2 border-r border-white/15 pr-4 sm:flex",children:[a.jsx("span",{className:"bg-gradient-to-b from-amber-200 via-orange-300 to-orange-500 bg-clip-text text-4xl font-black leading-none text-transparent",children:"19"}),a.jsxs("span",{className:"text-[10px] font-bold uppercase leading-tight tracking-[.18em] text-orange-100",children:["anos",a.jsx("br",{}),"Trainning"]})]}),a.jsxs("div",{className:"min-w-0",children:[a.jsxs("p",{className:"mb-1 flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[.17em] text-orange-300 sm:hidden",children:[a.jsx(Nr,{className:"h-3 w-3"}),"19 anos Trainning"]}),a.jsx("h2",{id:"anniversary-home-heading",className:"text-base font-bold leading-tight tracking-tight sm:text-lg",children:"Condição especial de aniversário"}),a.jsx("p",{className:"mt-1 text-xs leading-relaxed text-slate-300",children:"10 vagas para duas formações digitais."})]})]}),a.jsx("div",{className:"grid min-w-0 flex-1 grid-cols-2 divide-x divide-white/10 rounded-xl border border-white/10 bg-white/[.045]",children:IV.map(n=>a.jsxs(Te,{to:hI(t,n.id),className:"group min-w-0 px-3 py-2.5 transition-colors hover:bg-white/[.06] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-orange-400 sm:px-4","aria-label":`Conhecer ${n.name} por ${dA(n.priceCents)}`,children:[a.jsx("span",{className:"block truncate text-[11px] font-semibold text-slate-200 sm:text-xs",children:n.name}),a.jsx("strong",{className:"mt-0.5 block text-lg font-black tracking-tight sm:text-xl",children:dA(n.priceCents)}),a.jsxs("span",{className:"block text-[10px] leading-tight text-slate-400 sm:text-[11px]",children:["12x de ",dA(n.priceCents/pc.installments)," sem juros"]})]},n.id))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-3 lg:w-auto",children:[a.jsxs(Te,{to:hI(t),className:"inline-flex min-h-10 flex-1 items-center justify-center gap-2 rounded-lg bg-orange-500 px-4 text-xs font-bold text-white shadow-[0_8px_30px_rgba(249,115,22,.22)] transition hover:bg-orange-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-orange-300 lg:flex-none",children:["Ver condição especial ",a.jsx(_r,{className:"h-4 w-4","aria-hidden":"true"})]}),a.jsx("span",{className:"hidden max-w-28 text-[10px] leading-snug text-slate-400 xl:block",children:"Lote compartilhado. Consulte disponibilidade."})]})]})]}):null}function A2({children:e,className:t="",showWhatsApp:r=!0,showSearch:n=!1,breadcrumbItems:s,disablePopup:o=!1}){return a.jsxs("div",{className:`min-h-screen overflow-x-hidden ${t}`,style:{paddingTop:"var(--header-height, 56px)",paddingBottom:"var(--action-bar-height, 0px)"},children:[a.jsx(yve,{}),r&&a.jsx(hQ,{}),n&&a.jsx(xye,{}),s&&s.length>0&&a.jsx(Cve,{items:s}
1563),a.jsxs("main",{id:"conteudo-principal",tabIndex:-1,className:"focus:outline-none",children:[a.jsx(OEe,{}),e]}),!o&&a.jsx(PEe,{})]})}const sQe={hero_banner:"Hero Banner",featured_courses:"Mais Procurados (dinâmico)",courses_by_category:"Por Categoria",formations:"Formações",digital_courses:"Cursos Digitais",testimonials:"Depoimentos",free_classes:"Aulas Gratuitas",knowledge_pills:"PÃlulas de Conhecimento",jobs:"Vagas",institutional_clients:"Cases de Empresas",success_cases:"Cases de Sucesso",category_unified:"Formações e Cursos em Destaque (/cursos)",most_searched:"Mais Procurados (curadoria)"};function oQe(){return jt({queryKey:["carousel_pages"],queryFn:async()=>{const{data:e,error:t}=await J.from("carousel_pages").select("*").eq("is_active",!0).order("name");if(t)throw t;return e??[]}})}function LV(e){return jt({queryKey:["carousel_configs",e],enabled:!!e,queryFn:async()=>{const{data:t,error:r}=await J.from("carousel_configs").select("*").eq("page_slug",e).order("display_order");if(r)throw r;return t??[]}})}function iQe(){const e=vn(),t=i=>{e.invalidateQueries({queryKey:["carousel_configs",i]}),e.invalidateQueries({queryKey:["carousel_configs"]})},r=Dr({mutationFn:async i=>{const{data:l,error:c}=await J.from("carousel_configs").insert(i).select().single();if(c)throw c;return l},onSuccess:i=>t(i.page_slug)}),n=Dr({mutationFn:async({id:i,patch:l})=>{const{data:c,error:u}=await J.from("carousel_configs").update(l).eq("id",i).select().single();if(u)throw u;return c},onSuccess:i=>t(i.page_slug)}),s=Dr({mutationFn:async i=>{const{error:l}=await J.from("carousel_configs").delete().eq("id",i);if(l)throw l},onSuccess:()=>t()}),o=Dr({mutationFn:async i=>{await Promise.all(i.map(l=>J.from("carousel_configs").update({display_order:l.display_order}).eq("id",l.id)))},onSuccess:()=>t()});return{create:r,update:n,remove:s,reorder:o}}function lQe(e){return jt({queryKey:["client_carousel_items",e],enabled:!!e,queryFn:async()=>{const{data:t,error:r}=await J.from("client_carousel_items").select("*").eq("carousel_config_id",e).order("display_order");if(r)throw r;return t??[]}})}function cQe(e){const t=vn(),r=()=>t.invalidateQueries({queryKey:["client_carousel_items",e]}),n=Dr({mutationFn:async i=>{const{data:l,error:c}=await J.from("client_carousel_items").insert(i).select().single();if(c)throw c;return l},onSuccess:r}),s=Dr({mutationFn:async({id:i,patch:l})=>{const{data:c,error:u}=await J.from("client_carousel_items").update(l).eq("id",i).select().single();if(u)throw u;return c},onSuccess:r}),o=Dr({mutationFn:async i=>{const{error:l}=await J.from("client_carousel_items").delete().eq("id",i);if(l)throw l},onSuccess:r});return{create:n,update:s,remove:o}}function QEe(){return jt({queryKey:["institutional_clients_public"],queryFn:async()=>{const{data:e,error:t}=await J.from("carousel_configs").select("id, title, subtitle").eq("carousel_type","institutional_clients").eq("is_active",!0).is("empresa_fatura_id",null).order("display_order").limit(1);if(t)throw t;const r=e?.[0];if(!r)return{config:null,items:[]};const{data:n,error:s}=await J.from("client_carousel_items").select("*").eq("carousel_config_id",r.id).eq("is_active",!0).order("display_order");if(s)throw s;return{config:r,items:n??[]}}})}function su({className:e,...t}){return a.jsx("div",{className:je("animate-pulse rounded-md bg-muted",e),...t})}const DV=()=>a.jsxs(us,{className:"overflow-hidden h-full min-h-[420px] flex flex-col",children:[a.jsx(su,{className:"aspect-[40/28] w-full"}),a.jsxs(ds,{className:"p-4 flex-1 flex flex-col",children:[a.jsxs("div",{className:"flex gap-2 mb-3",children:[a.jsx(su,{className:"h-5 w-16"}),a.jsx(su,{className:"h-5 w-20"})]}),a.jsx(su,{className:"h-6 w-full mb-2"}),a.jsx(su,{className:"h-6 w-3/4 mb-4"}),a.jsx(su,{className:"h-4 w-32 mb-2"}),a.jsx(su,{className:"h-9 w-full mt-auto"})]})]});function VEe(e){return Object.prototype.toString.call(e)==="[object Object]"}function pI(e){return VEe(e)||Array.isArray(e)}function HEe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Uj(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==o?!1:r.every(i=>{const l=e[i],c=t[i];return typeof l=="function"?`${l}`==`${c}`:!pI(l)||!pI(c)?l===c:Uj(l,c)})}function gI(e){return e.concat().sort((t,r)=>t.name>
vendor: 18,940 bytes, line 1563
1563r.name?1:-1).map(t=>t.options)}function zEe(e,t){if(e.length!==t.length)return!1;const r=gI(e),n=gI(t);return r.every((s,o)=>{const i=n[o];return Uj(s,i)})}function Qj(e){return typeof e=="number"}function f2(e){return typeof e=="string"}function Vv(e){return typeof e=="boolean"}function xI(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sn(e){return Math.abs(e)}function Vj(e){return Math.sign(e)}function km(e,t){return Sn(e-t)}function $Ee(e,t){if(e===0||t===0||Sn(e)<=Sn(t))return 0;const r=km(Sn(e),Sn(t));return Sn(r/e)}function qEe(e){return Math.round(e*100)/100}function uh(e){return dh(e).map(Number)}function Jo(e){return e[Jh(e)]}function Jh(e){return Math.max(0,e.length-1)}function Hj(e,t){return t===Jh(e)}function vI(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function dh(e){return Object.keys(e)}function RV(e,t){return[e,t].reduce((r,n)=>(dh(n).forEach(s=>{const o=r[s],i=n[s],l=xI(o)&&xI(i);r[s]=l?RV(o,i):i}),r),{})}function m2(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function KEe(e,t){const r={start:n,center:s,end:o};function n(){return 0}function s(c){return o(c)/2}function o(c){return t-c}function i(c,u){return f2(e)?r[e](c):e(t,c,u)}return{measure:i}}function Ah(){let e=[];function t(s,o,i,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(o,i,l),c=()=>s.removeEventListener(o,i,l);else{const u=s;u.addListener(i),c=()=>u.removeListener(i)}return e.push(c),n}function r(){e=e.filter(s=>s())}const n={add:t,clear:r};return n}function GEe(e,t,r,n){const s=Ah(),o=1e3/60;let i=null,l=0,c=0;function u(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function d(){m(),s.clear()}function f(x){if(!c)return;i||(i=x,r(),r());const y=x-i;for(i=x,l+=y;l>=o;)r(),l-=o;const b=l/o;n(b),c&&(c=t.requestAnimationFrame(f))}function h(){c||(c=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(c),i=null,l=0,c=0}function g(){i=null,l=0}return{init:u,destroy:d,start:h,stop:m,update:r,render:n}}function WEe(e,t){const r=t==="rtl",n=e==="y",s=n?"y":"x",o=n?"x":"y",i=!n&&r?-1:1,l=d(),c=f();function u(g){const{height:p,width:x}=g;return n?p:x}function d(){return n?"top":r?"right":"left"}function f(){return n?"bottom":r?"left":"right"}function h(g){return g*i}return{scroll:s,cross:o,startEdge:l,endEdge:c,measureSize:u,direction:h}}function Wu(e=0,t=0){const r=Sn(e-t);function n(u){return u<e}function s(u){return u>t}function o(u){return n(u)||s(u)}function i(u){return o(u)?n(u)?e:t:u}function l(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:i,reachedAny:o,reachedMax:s,reachedMin:n,removeOffset:l}}function MV(e,t,r){const{constrain:n}=Wu(0,e),s=e+1;let o=i(t);function i(h){return r?Sn((s+h)%s):n(h)}function l(){return o}function c(h){return o=i(h),f}function u(h){return d().set(l()+h)}function d(){return MV(e,l(),r)}const f={get:l,set:c,add:u,clone:d};return f}function YEe(e,t,r,n,s,o,i,l,c,u,d,f,h,m,g,p,x,y,b){const{cross:j,direction:C}=e,T=["INPUT","SELECT","TEXTAREA"],L={passive:!1},P=Ah(),I=Ah(),E=Wu(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},D=g?43:25;let H=!1,U=0,ee=0,ae=!1,V=!1,q=!1,G=!1;function Ae(xe){if(!b)return;function Be(R){(Vv(b)||b(xe,R))&&ne(R)}const He=t;P.add(He,"dragstart",R=>R.preventDefault(),L).add(He,"touchmove",()=>{},L).add(He,"touchend",()=>{}).add(He,"touchstart",Be).add(He,"mousedown",Be).add(He,"touchcancel",te).add(He,"contextmenu",te).add(He,"click",fe,!0)}function se(){P.clear(),I.clear()}function S(){const xe=G?r:t;I.add(xe,"touchmove",X,L).add(xe,"touchend",te).add(xe,"mousemove",X,L).add(xe,"mouseup",te)}function Q(xe){const Be=xe.nodeName||"";return T.includes(Be)}function z(){return(g?k:O)[G?"mouse":"touch"]}function W(xe,Be){const He=f.add(Vj(xe)*-1),R=d.byDistance(xe,!g).distance;return g||Sn(xe)<E?R:x&&Be?R*.5:d.byIndex(He.get(),0).distance}function ne(xe){const Be=m2(xe,n);G=Be,q=g&&Be&&!xe.buttons&&H,H=km(s.get(),i.get())>=2,!(Be&&xe.button!==0)&&(Q(xe.target)||(ae=!0,o.pointerDown(xe),u.useFriction(0).useDuration(0),s.set(i),S(),U=o.readPoint(xe),ee=o.readPoint(xe,j),h.emit("pointerDown")))}function X(xe){if(!m2(xe,n)&&xe.touches.length>=2)return te(xe);const He=o.readPoint(xe),R=o.readPoint(xe,j),be=km(He,U),tt=km(R,ee);if(!V&&!G&&(!xe.cancelable||(V=be>tt,!V)))return te(xe);const at=o.pointerMove(xe);be>p&&(q=!0),u.useFriction(.3).useDuration(.75),l.start(),s.add(C(at)),xe.preventDefault()}function te(xe){const He=d.byDistance(0,!1).index!==f.get(),R=o.pointerUp(xe)*z(),be=W(C(R),He),tt=$Ee(R,be),at=D-10*tt,De=y+tt/50;V=!1,ae=!1,I.clear(),u.useDuration(at).useFriction(De),c.distance(be,!g),G=!1,h.emit("pointerUp")}function fe(xe){q&&(xe.stopPropagation(),xe.preventDefault(),q=!1)}function pe(){return ae}return{init:Ae,destroy:se,pointerDown:pe}}function XEe(e,t){let n,s;function o(f){return f.timeStamp}function i(f,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(m2(f,t)?f:f.touches[0])[g]}function l(f){return n=f,s=f,i(f)}function c(f){const h=i(f)-i(s),m=o(f)-o(n)>170;return s=f,m&&(n=f),h}function u(f){if(!n||!s)return 0;const h=i(s)-i(n),m=o(f)-o(n),g=o(f)-o(s)>170,p=h/m;return m&&!g&&Sn(p)>.1?p:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:i}}function ZEe(){function e(r){const{offsetTop:n,offsetLeft:s,offsetWidth:o,offsetHeight:i}=r;return{top:n,right:s+o,bottom:n+i,left:s,width:o,height:i}}return{measure:e}}function JEe(e){function t(n){return e*(n/100)}return{measure:t}}function eBe(e,t,r,n,s,o,i){const l=[e].concat(n);let c,u,d=[],f=!1;function h(x){return s.measureSize(i.measure(x))}function m(x){if(!o)return;u=h(e),d=n.map(h);function y(b){for(const j of b){if(f)return;const C=j.target===e,T=n.indexOf(j.target),L=C?u:d[T],P=h(C?e:n[T]);if(Sn(P-L)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(Vv(o)||o(x,b))&&y(b)}),r.requestAnimationFrame(()=>{l.forEach(b=>c.observe(b))})}function g(){f=!0,c&&c.disconnect()}return{init:m,destroy:g}}function tBe(e,t,r,n,s,o){let i=0,l=0,c=s,u=o,d=e.get(),f=0;function h(){const L=n.get()-e.get(),P=!c;let I=0;return P?(i=0,r.set(n),e.set(n),I=L):(r.set(e),i+=L/c,i*=u,d+=i,e.add(i),I=d-f),l=Vj(I),f=d,T}function m(){const L=n.get()-t.get();return Sn(L)<.001}function g(){return c}function p(){return l}function x(){return i}function y(){return j(s)}function b(){return C(o)}function j(L){return c=L,T}function C(L){return u=L,T}const T={direction:p,duration:g,velocity:x,seek:h,settled:m,useBaseFriction:b,useBaseDuration:y,useFriction:C,useDuration:j};return T}function rBe(e,t,r,n,s){const o=s.measure(10),i=s.measure(50),l=Wu(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function d(m){if(!u())return;const g=e.reachedMin(t.get())?"min":"max",p=Sn(e[g]-t.get()),x=r.get()-t.get(),y=l.constrain(p/i);r.subtract(x*y),!m&&Sn(x)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function f(m){c=!m}return{shouldConstrain:u,constrain:d,toggleActive:f}}function nBe(e,t,r,n,s){const o=Wu(-t+e,0),i=f(),l=d(),c=h();function u(g,p){return km(g,p)<=1}function d(){const g=i[0],p=Jo(i),x=i.lastIndexOf(g),y=i.indexOf(p)+1;return Wu(x,y)}function f(){return r.map((g,p)=>{const{min:x,max:y}=o,b=o.constrain(g),j=!p,C=Hj(r,p);return j?y:C||u(x,b)?x:u(y,b)?y:b}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+s)return[o.max];if(n==="keepSnaps")return i;const{min:g,max:p}=l;return i.slice(g,p)}return{snapsContained:c,scrollContainLimit:l}}function aBe(e,t,r){const n=t[0],s=r?n-e:Jo(t);return{limit:Wu(s,n)}}function sBe(e,t,r,n){const o=t.min+.1,i=t.max+.1,{reachedMin:l,reachedMax:c}=Wu(o,i);function u(h){return h===1?c(r.get()):h===-1?l(r.get()):!1}function d(h){if(!u(h))return;const m=e*(h*-1);n.forEach(g=>g.add(m))}return{loop:d}}function oBe(e){const{max:t,length:r}=e;function n(o){const i=o-t;return r?i/-r:0}return{get:n}}function iBe(e,t,r,n,s){const{startEdge:o,endEdge:i}=e,{groupSlides:l}=s,c=f().map(t.measure),u=h(),d=m();function f(){return l(n).map(p=>Jo(p)[i]-p[0][o]).map(Sn)}function h(){return n.map(p=>r[o]-p[o]).map(p=>-Sn(p))}function m(){return l(u).map(p=>p[0]).map((p,x)=>p+c[x])}return{snaps:u,snapsAligned:d}}function lBe(e,t,r,n,s,o){const{groupSlides:i}=s,{min:l,max:c}=n,u=d();function d(){const h=i(o),m=!e||t==="keepSnaps";return r.length===1?[o]:m?h:h.slice(l,c).map((g,p,x)=>{const y=!p,b=Hj(x,p);if(y){const j=Jo(x[0])+1;return vI(j)}if(b){const j=Jh(o)-Jo(x)[0]+1;return vI(j,Jo(x)[0])}return g})}return{slideRegistry:u}}function cBe(e,t,r,n,s){const{reachedAny:o,removeOffset:i,constrain:l}=n;function c(g){return g.concat().sort((p,x)=>Sn(p)-Sn(x))[0]}function u(g){const p=e?i(g):l(g),x=t.map((b,j)=>({diff:d(b-p,0),index:j})).sort((b,j)=>Sn(b.diff)-Sn(j.diff)),{index:y}=x[0];return{index:y,distance:p}}function d(g,p){const x=[g,g+r,g-r];if(!e)return g;if(!p)return c(x);const y=x.filter(b=>Vj(b)===p);return y.length?c(y):Jo(x)-r}function f(g,p){const x=t[g]-s.get(),y=d(x,p);return{index:g,distance:y}}function h(g,p){const x=s.get()+g,{index:y,distance:b}=u(x),j=!e&&o(x);if(!p||j)return{index:y,distance:g};const C=t[y]-b,T=g+d(C,0);return{index:y,distance:T}}return{byDistance:h,byIndex:f,shortcut:d}}function uBe(e,t,r,n,s,o,i){function l(f){const h=f.distance,m=f.index!==t.get();o.add(h),h&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(r.set(t.get()),t.set(f.index),i.emit("select"))}function c(f,h){const m=s.byDistance(f,h);l(m)}function u(f,h){const m=t.clone().set(f),g=s.byIndex(m.get(),h);l(g)}return{distance:c,index:u}}function dBe(e,t,r,n,s,o,i,l){const c={passive:!0,capture:!0};let u=0;function d(m){if(!l)return;function g(p){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const b=r.findIndex(j=>j.includes(p));Qj(b)&&(s.useDuration(0),n.index(b,0),i.emit("slideFocus"))}o.add(document,"keydown",f,!1),t.forEach((p,x)=>{o.add(p,"focus",y=>{(Vv(l)||l(m,y))&&g(x)},c)})}function f(m){m.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function nm(e){let t=e;function r(){return t}function n(c){t=i(c)}function s(c){t+=i(c)}function o(c){t-=i(c)}function i(c){return Qj(c)?c:c.get()}return{get:r,set:n,add:s,subtract:o}}function OV(e,t){const r=e.scroll==="x"?i:l,n=t.style;let s=null,o=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function l(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(o)return;const m=qEe(e.direction(h));m!==s&&(n.transform=r(m),s=m)}function u(h){o=!h}function d(){o||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:c,toggleActive:u}}function ABe(e,t,r,n,s,o,i,l,c){const d=uh(s),f=uh(s).reverse(),h=y().concat(b());function m(P,I){return P.reduce((E,O)=>E-s[O],I)}function g(P,I){return P.reduce((E,O)=>m(E,I)>0?E.concat([O]):E,[])}function p(P){return o.map((I,E)=>({start:I-n[E]+.5+P,end:I+t-.5+P}))}function x(P,I,E){const O=p(I);return P.map(k=>{const D=E?0:-r,H=E?r:0,U=E?"end":"start",ee=O[k][U];return{index:k,loopPoint:ee,slideLocation:nm(-1),translate:OV(e,c[k]),target:()=>l.get()>ee?D:H}})}function y(){const P=i[0],I=g(f,P);return x(I,r,!1)}function b(){const P=t-i[0]-1,I=g(d,P);return x(I,-r,!0)}function j(){return h.every(({index:P})=>{const I=d.filter(E=>E!==P);return m(I,t)<=.1})}function C(){h.forEach(P=>{const{target:I,translate:E,slideLocation:O}=P,k=I();k!==O.get()&&(E.to(k),O.set(k))})}function T(){h.forEach(P=>P.translate.clear())}return{canLoop:j,clear:T,loop:C,loopPoints:h}}function fBe(e,t,r){let n,s=!1;function o(c){if(!r)return;function u(d){for(const f of d)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(d=>{s||(Vv(r)||r(c,d))&&u(d)}),n.observe(e,{childList:!0})}function i(){n&&n.disconnect(),s=!0}return{init:o,destroy:i}}function mBe(e,t,r,n){const s={};let o=null,i=null,l,c=!1;function u(){l=new IntersectionObserver(g=>{c||(g.forEach(p=>{const x=t.indexOf(p.target);s[x]=p}),o=null,i=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(g=>l.observe(g))}function d(){l&&l.disconnect(),c=!0}function f(g){return dh(s).reduce((p,x)=>{const y=parseInt(x),{isIntersecting:b}=s[y];return(g&&b||!g&&!b)&&p.push(y),p},[])}function h(g=!0){if(g&&o)return o;if(!g&&i)return i;const p=f(g);return g&&(o=p),g||(i=p),p}return{init:u,destroy:d,get:h}}function hBe(e,t,r,n,s,o){const{measureSize:i,startEdge:l,endEdge:c}=e,u=r[0]&&s,d=g(),f=p(),h=r.map(i),m=x();function g(){if(!u)return 0;const b=r[0];return Sn(t[l]-b[l])}function p(){if(!u)return 0;const b=o.getComputedStyle(Jo(n));return parseFloat(b.getPropertyValue(`margin-${c}`))}function x(){return r.map((b,j,C)=>{const T=!j,L=Hj(C,j);return T?h[j]+d:L?h[j]+f:C[j+1][l]-b[l]}).map(Sn)}return{slideSizes:h,slideSizesWithGaps:m,startGap:d,endGap:f}}function pBe(e,t,r,n,s,o,i,l,c){const{startEdge:u,endEdge:d,direction:f}=e,h=Qj(r);function m(y,b){return uh(y).filter(j=>j%b===0).map(j=>y.slice(j,j+b))}function g(y){return y.length?uh(y).reduce((b,j,C)=>{const T=Jo(b)||0,L=T===0,P=j===Jh(y),I=s[u]-o[T][u],E=s[u]-o[j][d],O=!n&&L?f(i):0,k=!n&&P?f(l):0,D=Sn(E-k-(I+O));return C&&D>t+c&&b.push(j),P&&b.push(y.length),b},[]).map((b,j,C)=>{const T=Math.max(C[j-1]||0);return y.slice(T,b)}):[]}function p(y){return h?m(y,r):g(y)}return{groupSlides:p}}function gBe(e,t,r,n,s,o,i){const{align:l,axis:c,direction:u,startIndex:d,loop:f,duration:h,dragFree:m,dragThreshold:g,inViewThreshold:p,slidesToScroll:x,skipSnaps:y,containScroll:b,watchResize:j,watchSlides:C,watchDrag:T,watchFocus:L}=o,P=2,I=ZEe(),E=I.measure(t),O=r.map(I.measure),k=WEe(c,u),D=k.measureSize(E),H=JEe(D),U=KEe(l,D),ee=!f&&!!b,ae=f||!!b,{slideSizes:V,slideSizesWithGaps:q,startGap:G,endGap:Ae}=hBe(k,E,O,r,ae,s),se=pBe(k,D,x,f,E,O,G,Ae,P),{snaps:S,snapsAligned:Q}=iBe(k,U,E,O,se),z=-Jo(S)+Jo(q),{snapsContained:W,scrollContainLimit:ne}=nBe(D,z,Q,b,P),X=ee?W:Q,{limit:te}=aBe(z,X,f),fe=MV(Jh(X),d,f),pe=fe.clone(),_e=uh(r),xe=({dragHandler:gt,scrollBody:st,scrollBounds:Ut,options:{loop:Lt}})=>{Lt||Ut.constrain(gt.pointerDown()),st.seek()},Be=({scrollBody:gt,translate:st,location:Ut,offsetLocation:Lt,previousLocation:St,scrollLooper:Mt,slideLooper:tr,dragHandler:wt,animation:ft,eventHandler:ie,scrollBounds:Ue,options:{loop:dt}},Re)=>{const Xe=gt.settled(),lt=!Ue.shouldConstrain(),Le=dt?Xe:Xe&<,ut=Le&&!wt.pointerDown();ut&&ft.stop();const Qt=Ut.get()*Re+St.get()*(1-Re);Lt.set(Qt),dt&&(Mt.loop(gt.direction()),tr.loop()),st.to(Lt.get()),ut&&ie.emit("settle"),Le||ie.emit("scroll")},He=GEe(n,s,()=>xe(it),gt=>Be(it,gt)),R=.68,be=X[fe.get()],tt=nm(be),at=nm(be),De=nm(be),le=nm(be),me=tBe(tt,De,at,le,h,R),we=cBe(f,X,z,te,le),Fe=uBe(He,fe,pe,me,we,le,i),ze=oBe(te),Pe=Ah(),$e=mBe(t,r,i,p),{slideRegistry:ct}=lBe(ee,b,X,ne,se,_e),pt=dBe(e,r,ct,Fe,me,Pe,i,L),it={ownerDocument:n,ownerWindow:s,eventHandler:i,containerRect:E,slideRects:O,animation:He,axis:k,dragHandler:YEe(k,e,n,s,le,XEe(k,s),tt,He,Fe,me,we,fe,i,H,m,g,y,R,T),eventStore:Pe,percentOfView:H,index:fe,indexPrevious:pe,limit:te,location:tt,offsetLocation:De,previousLocation:at,options:o,resizeHandler:eBe(t,i,s,r,k,j,I),scrollBody:me,scrollBounds:rBe(te,De,le,me,H),scrollLooper:sBe(z,te,De,[tt,De,at,le]),scrollProgress:ze,scrollSnapList:X.map(ze.get),scrollSnaps:X,scrollTarget:we,scrollTo:Fe,slideLooper:ABe(k,D,z,V,q,S,X,De,r),slideFocus:pt,slidesHandler:fBe(t,i,C),slidesInView:$e,slideIndexes:_e,slideRegistry:ct,slidesToScroll:se,target:le,translate:OV(k,t)};return it}function xBe(){let e={},t;function r(u){t=u}function n(u){return e[u]||[]}function s(u){return n(u).forEach(d=>d(t,u)),c}function o(u,d){return e[u]=n(u).concat([d]),c}function i(u,d){return e[u]=n(u).filter(f=>f!==d),c}function l(){e={}}const c={init:r,emit:s,off:i,on:o,clear:l};return c}const vBe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function yBe(e){function t(o,i){return RV(o,i||{})}function r(o){const i=o.breakpoints||{},l=dh(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,u)=>t(c,u),{});return t(o,l)}function n(o){return o.map(i=>dh(i.breakpoints||{})).reduce((i,l)=>i.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function bBe(e){let t=[];function r(o,i){return t=i.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(o,e)),i.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function n(){t=t.filter(o=>o.destroy())}return{init:r,destroy:n}}function xx(e,t,r){const n=e.ownerDocument,s=n.defaultView,o=yBe(s),i=bBe(o),l=Ah(),c=xBe(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:h,off:m,emit:g}=c,p=k;let x=!1,y,b=u(vBe,xx.globalOptions),j=u(b),C=[],T,L,P;function I(){const{container:_e,slides:xe}=j;L=(f2(_e)?e.querySelector(_e):_e)||e.children[0];const He=f2(xe)?L.querySelectorAll(xe):xe;P=[].slice.call(He||L.children)}function E(_e){const xe=gBe(e,L,P,n,s,_e,c);if(_e.loop&&!xe.slideLooper.canLoop()){const Be=Object.assign({},_e,{loop:!1});return E(Be)}return xe}function O(_e,xe){x||(b=u(b,_e),j=d(b),C=xe||C,I(),y=E(j),f([b,...C.map(({options:Be})=>Be)]).forEach(Be=>l.add(Be,"change",k)),j.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(pe),y.eventHandler.init(pe),y.resizeHandler.init(pe),y.slidesHandler.init(pe),y.options.loop&&y.slideLooper.loop(),L.offsetParent&&P.length&&y.dragHandler.init(pe),T=i.init(pe,C)))}function k(_e,xe){const Be=se();D(),O(u({startIndex:Be},_e),xe),c.emit("reInit")}function D(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),l.clear()}function H(){x||(x=!0,l.clear(),D(),c.emit("destroy"),c.clear())}function U(_e,xe,Be){!j.active||x||(y.scrollBody.useBaseFriction().useDuration(xe===!0?0:j.duration),y.scrollTo.index(_e,Be||0))}function ee(_e){const xe=y.index.add(1).get();U(xe,_e,-1)}function ae(_e){const xe=y.index.add(-1).get();U(xe,_e,1)}function V(){return y.index.add(1).get()!==se()}function q(){return y.index.add(-1).get()!==se()}function G(){return y.scrollSnapList}function Ae(){return y.scrollProgress.get(y.offsetLocation.get())}function se(){return y.index.get()}function S(){return y.indexPrevious.get()}function Q(){return y.slidesInView.get()}function z(){return y.slidesInView.get(!1)}function W(){return T}function ne(){return y}function X(){return e}function te(){return L}function fe(){return P}const pe={canScrollNext:V,canScrollPrev:q,containerNode:te,internalEngine:ne,destroy:H,off:m,on:h,emit:g,plugins:W,previousScrollSnap:S,reInit:p,rootNode:X,scrollNext:ee,scrollPrev:ae,scrollProgress:Ae,scrollSnapList:G,scrollTo:U,selectedScrollSnap:se,slideNodes:fe,slidesInView:Q,slidesNotInView:z};return O(t,r),setTimeout(()=>
1563c.emit("init"),0),pe}xx.globalOptions=void 0;function zj(e={},t=[]){const r=A.useRef(e),n=A.useRef(t),[s,o]=A.useState(),[i,l]=A.useState(),c=A.useCallback(()=>{s&&s.reInit(r.current,n.current)},[s]);return A.useEffect(()=>{Uj(r.current,e)||(r.current=e,c())},[e,c]),A.useEffect(()=>{zEe(n.current,t)||(n.current=t,c())},[t,c]),A.useEffect(()=>{if(HEe()&&i){xx.globalOptions=zj.globalOptions;const u=xx(i,r.current,n.current);return o(u),()=>u.destroy()}else o(void 0)},[i,o]),[l,s]}zj.globalOptions=void 0;const UV=A.createContext(null);function Hv(){const e=A.useContext(UV);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const ep=A.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:s,children:o,...i},l)=>{const[c,u]=zj({...t,axis:e==="horizontal"?"x":"y"},n),[d,f]=A.useState(!1),[h,m]=A.useState(!1),g=A.useCallback(b=>{b&&(f(b.canScrollPrev()),m(b.canScrollNext()))},[]),p=A.useCallback(()=>{u?.scrollPrev()},[u]),x=A.useCallback(()=>{u?.scrollNext()},[u]),y=A.useCallback(b=>{b.key==="ArrowLeft"?(b.preventDefault(),p()):b.key==="ArrowRight"&&(b.preventDefault(),x())},[p,x]);return A.useEffect(()=>{!u||!r||r(u)},[u,r]),A.useEffect(()=>{if(u)return g(u),u.on("reInit",g),u.on("select",g),()=>{u?.off("select",g)}},[u,g]),a.jsx(UV.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:x,canScrollPrev:d,canScrollNext:h},children:a.jsx("div",{ref:l,onKeyDownCapture:y,className:je("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});ep.displayName="Carousel";const tp=A.forwardRef(({className:e,...t},r)=>{const{carouselRef:n,orientation:s}=Hv();return a.jsx("div",{ref:n,className:"overflow-hidden",children:a.jsx("div",{ref:r,className:je("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});tp.displayName="CarouselContent";const rp=A.forwardRef(({className:e,...t},r)=>{const{orientation:n}=Hv();return a.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:je("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});rp.displayName="CarouselItem";const np=A.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:l}=Hv();return a.jsxs(Oe,{ref:s,variant:t,size:r,className:je("absolute h-8 w-8 rounded-full",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...n,children:[a.jsx(TA,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Ver item anterior"})]})});np.displayName="CarouselPrevious";const ap=A.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},s)=>{const{orientation:o,scrollNext:i,canScrollNext:l}=Hv();return a.jsxs(Oe,{ref:s,variant:t,size:r,className:je("absolute h-8 w-8 rounded-full",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:i,...n,children:[a.jsx(_r,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Ver próximo item"})]})});ap.displayName="CarouselNext";const wBe={xs:5,sm:5,md:4,lg:3},_Be={xs:"basis-1/3 md:basis-1/4 lg:basis-1/5",sm:"basis-[55%] sm:basis-1/3 md:basis-1/4 lg:basis-1/5",md:"basis-[85%] sm:basis-1/2 md:basis-1/3 lg:basis-1/4",lg:"basis-full sm:basis-1/2 lg:basis-1/3"};function uo({items:e,renderItem:t,getKey:r,itemWidth:n="md",loop:s,className:o,showSwipeHint:i=!0,ariaLabel:l}){const c=A.useMemo(()=>typeof s=="boolean"?s:e.length>wBe[n],[s,e.length,n]),u=A.useMemo(()=>c||e.length>2,[c,e.length]);return e.length===0?null:a.jsxs("div",{className:je("w-full",o),"aria-label":l,children:[a.jsxs(ep,{opts:{align:"start",loop:c},className:"w-full",children:[a.jsx(tp,{className:"-ml-2 md:-ml-4",children:e.map((d,f)=>a.jsx(rp,{className:je("pl-2 md:pl-4",_Be[n]),children:t(d,f)},r(d,f)))}),u&&a.jsxs(a.Fragment,{children:[a.jsx(np,{className:"hidden sm:flex -left-4 md:-left-12"}),a.jsx(ap,{className:"hidden sm:flex -right-4 md:-right-12"})]})]}),i&&a.jsx("p",{className:"sm:hidden text-center text-xs text-muted-foreground mt-3",children:"â Deslize para ver mais â"})]})}const QV=({variant:e,className:t})=>
1563{if(e==="compact")return a.jsxs("div",{className:je("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-semibold","bg-emerald-900/80 text-emerald-300 border border-emerald-700/50",t),children:[a.jsx(_i,{className:"w-3 h-3 fill-emerald-400/30"}),a.jsx("span",{children:"Certificado Digital"})]});if(e==="inline")return a.jsxs("div",{className:je("flex items-center gap-2 text-sm",t),children:[a.jsx(_i,{className:"w-4 h-4 text-emerald-500 flex-shrink-0"}),a.jsxs("span",{className:"text-muted-foreground",children:["Certificado com ",a.jsx("span",{className:"font-semibold text-emerald-600 dark:text-emerald-400",children:"validação digital"})]})]});const r=[{icon:S$,label:"Validação por QR Code"},{icon:Bx,label:"Código único rastreável"},{icon:k2,label:"Verificação pública online"},{icon:_i,label:"Proteção contra fraudes"}];return a.jsx("div",{className:je("rounded-xl border border-emerald-700/40 overflow-hidden","bg-gradient-to-br from-emerald-950 via-gray-900 to-emerald-950",t),children:a.jsxs("div",{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("div",{className:"p-2 rounded-lg bg-emerald-500/20 border border-emerald-500/30",children:a.jsx(_i,{className:"w-6 h-6 text-emerald-400"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold text-white text-lg",children:"Certificado Digital com Validação"}),a.jsx("p",{className:"text-emerald-300/70 text-sm",children:"Verificável online ⢠Autenticidade garantida"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-5",children:r.map(n=>a.jsxs("div",{className:"flex items-center gap-2.5 p-2.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:[a.jsx(n.icon,{className:"w-4 h-4 text-emerald-400 flex-shrink-0"}),a.jsx("span",{className:"text-sm text-emerald-100",children:n.label})]},n.label))}),a.jsxs(Te,{to:"/verificar-certificado",className:"inline-flex items-center gap-2 text-sm text-emerald-400 hover:text-emerald-300 transition-colors font-medium",children:[a.jsx(Iu,{className:"w-4 h-4"}),"Verificar autenticidade de um certificado"]})]})})},VV=({text:e,color:t="gold",className:r,pulse:n=!1})=>{const s={gold:"bg-gradient-to-r from-yellow-500 to-yellow-600 text-black shadow-lg shadow-yellow-500/50",red:"bg-gradient-to-r from-red-600 to-red-700 text-white shadow-lg shadow-red-500/50",black:"bg-black border-2 border-yellow-500 text-yellow-500 shadow-lg shadow-yellow-500/30"};return a.jsx("div",{className:je("inline-flex items-center justify-center px-3 py-1.5 rounded-lg font-bold text-xs uppercase tracking-wider",s[t],n&&"animate-pulse",r),children:e})};function yI(e){if(e>=1e3){const t=e/1e3;return t%1===0?`${t}k`:`${t.toFixed(1)}k`}return e.toLocaleString("pt-BR")}function Pb(e){return e.toLocaleString("pt-BR",{maximumFractionDigits:0})}const bI=({children:e})=>a.jsx(LP,{children:a.jsxs(WX,{children:[a.jsx(YX,{asChild:!0,children:e}),a.jsx(DP,{side:"top",className:"text-xs",children:a.jsx("p",{children:"Fonte: Glassdoor, LinkedIn Jobs, Catho"})})]})});function CBe({cargo_destino:e,salario_pleno:t,salario_senior:r,exibir_salario_mercado:n,price_cash:s,variant:o="compact"}){if(!n||!t)return null;const i=t*12;if(o==="compact")return a.jsx(bI,{children:a.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground cursor-help",children:[a.jsx(zs,{className:"w-3 h-3 text-green-500 flex-shrink-0"}),a.jsxs("span",{className:"truncate",children:[e?`${e} · `:"",a.jsxs("span",{className:"font-semibold text-green-600",children:["R$ ",yI(t),r?`â${yI(r)}`:""]})]})]})});const l=s&&t?Math.ceil(s/(t/30)):null;return a.jsxs("div",{className:"space-y-3 p-4 rounded-xl bg-green-500/5 border border-green-500/20",children:[a.jsx(bI,{children:a.jsxs("div",{className:"cursor-help",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(zs,{className:"w-4 h-4 text-green-500"}),a.jsx("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Salário no mercado"})]}),e&&a.jsx("p",{className:"text-sm font-medium text-foreground mb-0.5",children:e}),a.jsxs("p",{className:"text-lg font-bold text-green-600",children:["R$ ",Pb(t),r?` a R$ ${Pb(r)}`:""]})]})}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ls,{className:"w-4 h-4 text-green-500"}),a.jsxs("div",{children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"ROI estimado"}),a.jsxs("p",{className:"text-sm font-bold text-green-600",children:["+R$ ",Pb(i),"/ano"]})]})]}),l&&l>0&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Vr,{className:"w-4 h-4 text-green-500"}),a.jsxs("div",{children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"Investimento recuperado em"}),a.jsxs("p",{className:"text-sm font-bold text-green-600",children:["~",l," dias de trabalho"]})]})]}
1563),a.jsx("p",{className:"text-[10px] text-muted-foreground/60",children:"ð Dados médios de mercado · Fonte: Glassdoor, LinkedIn, Catho"})]})}const wI=({type:e,value:t,variant:r="default"})=>{const s={limited_spots:{icon:wa,label:t?`Restam apenas ${t} vagas`:"Vagas limitadas",color:"destructive",pulse:!0},price_increase:{icon:ls,label:t?`Preço aumenta em ${t}`:"Preço aumenta em breve",color:"default",pulse:!1},high_demand:{icon:Cx,label:"Alta procura",color:"secondary",pulse:!0}}[e],o=s.icon;return r==="compact"?a.jsxs(Vt,{variant:s.color,className:"flex items-center gap-1.5 text-xs",children:[a.jsx(o,{className:"w-3 h-3"}),s.label]}):a.jsxs("div",{className:` 1564 flex items-center gap-2 px-3 py-2 rounded-lg border 1565 ${e==="limited_spots"?"bg-destructive/10 border-destructive/20 text-destructive":""} 1566 ${e==="price_increase"?"bg-primary/10 border-primary/20 text-primary":""} 1567 ${e==="high_demand"?"bg-secondary/10 border-secondary/20 text-secondary-foreground":""} 1568 ${s.pulse?"animate-pulse":""} 1569 `,children:[a.jsx(o,{className:"w-4 h-4 flex-shrink-0"}),a.jsx("span",{className:"text-sm font-medium",children:s.label})]})},jBe=({targetDate:e,onExpire:t,variant:r="full",label:n,showIcon:s=!0})=>{const[o,i]=A.useState(l());function l(){const c=+e-+new Date;return c<=0?null:{days:Math.floor(c/(1e3*60*60*24)),hours:Math.floor(c/(1e3*60*60)%24),minutes:Math.floor(c/1e3/60%60),seconds:Math.floor(c/1e3%60)}}return A.useEffect(()=>{const c=setInterval(()=>{const u=l();i(u),!u&&t&&t()},1e3);return()=>clearInterval(c)},[e,t]),o?r==="compact"?a.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-amber-500",children:[s&&a.jsx(Vr,{className:"w-4 h-4"}),a.jsxs("span",{children:[o.days>0&&`${o.days}d `,String(o.hours).padStart(2,"0"),":",String(o.minutes).padStart(2,"0"),":",String(o.seconds).padStart(2,"0")]})]}):a.jsxs("div",{className:"bg-gradient-to-r from-destructive/10 to-destructive/5 border border-destructive/20 rounded-lg p-4",children:[n&&a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(Vr,{className:"w-5 h-5 text-destructive"}),a.jsx("span",{className:"text-sm font-semibold text-destructive",children:n})]}),a.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[a.jsx("div",{className:"text-center",children:a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border",children:[a.jsx("div",{className:"text-2xl font-bold text-foreground",children:String(o.days).padStart(2,"0")}),a.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Dias"})]})}),a.jsx("div",{className:"text-center",children:a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border",children:[a.jsx("div",{className:"text-2xl font-bold text-foreground",children:String(o.hours).padStart(2,"0")}),a.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Horas"})]})}),a.jsx("div",{className:"text-center",children:a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border",children:[a.jsx("div",{className:"text-2xl font-bold text-foreground",children:String(o.minutes).padStart(2,"0")}),a.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Min"})]})}),a.jsx("div",{className:"text-center",children:a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border",children:[a.jsx("div",{className:"text-2xl font-bold text-foreground",children:String(o.seconds).padStart(2,"0")}),a.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Seg"})]})})]})]}):null};function uQe({certifications:e,courseTitle:t,onEnroll:r}){return!e||e.length===0?null:a.jsxs("div",{className:"relative overflow-hidden rounded-2xl border-2 border-yellow-400/60 bg-gradient-to-br from-yellow-50 via-amber-50/80 to-orange-50 dark:from-yellow-950/30 dark:via-amber-950/20 dark:to-orange-950/20 dark:border-yellow-500/40",children:[a.jsx("div",{className:"absolute -top-20 -right-20 w-60 h-60 bg-yellow-300/20 rounded-full blur-3xl pointer-events-none"}),a.jsx("div",{className:"absolute -bottom-10 -left-10 w-40 h-40 bg-orange-300/15 rounded-full blur-2xl pointer-events-none"}),a.jsxs("div",{className:"relative p-6 md:p-8",children:[a.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[a.jsx("div",{className:"flex-shrink-0 w-14 h-14 roun
1569ded-2xl bg-gradient-to-br from-yellow-400 to-orange-500 flex items-center justify-center shadow-lg shadow-yellow-500/25",children:a.jsx(Fu,{className:"w-7 h-7 text-white"})}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsxs("h3",{className:"text-xl md:text-2xl font-extrabold text-foreground",children:["ð ",e.length>1?`${e.length} Certificações Bônus`:"Certificação Bônus"," IncluÃda",e.length>1?"s":""]}),a.jsx(Nr,{className:"w-5 h-5 text-yellow-500 animate-pulse"})]}),a.jsxs("p",{className:"text-sm md:text-base text-muted-foreground",children:["Ao se inscrever neste curso, você ganha ",a.jsx("span",{className:"font-bold text-foreground",children:"gratuitamente"})," ",e.length>1?"estas certificações profissionais":"esta certificação profissional"," reconhecida",e.length>1?"s":""," pelo mercado"]})]})]}),a.jsx("div",{className:`grid gap-4 mb-6 ${e.length===1?"grid-cols-1":"grid-cols-1 md:grid-cols-2"}`,children:e.map(n=>a.jsx(us,{className:"border border-yellow-300/50 bg-white/70 dark:bg-card/60 backdrop-blur-sm shadow-sm hover:shadow-md transition-all hover:scale-[1.01]",children:a.jsx(ds,{className:"p-5",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-xl bg-gradient-to-br from-green-400 to-emerald-500 flex items-center justify-center",children:a.jsx(P2,{className:"w-5 h-5 text-white"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[a.jsx("h4",{className:"font-bold text-base text-foreground",children:n.name}),n.badge_text&&a.jsx(Vt,{className:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300 text-[10px]",children:n.badge_text})]}),a.jsxs("p",{className:"text-xs text-muted-foreground mb-2",children:["por ",n.provider]}),n.description&&a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:n.description})]})]})})},n.id))}),a.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 p-4 rounded-xl bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-950/30 dark:to-emerald-950/20 border border-green-200/50 dark:border-green-800/30",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(kn,{className:"w-6 h-6 text-green-600"}),a.jsxs("div",{children:[a.jsxs("p",{className:"text-sm font-bold text-green-800 dark:text-green-300",children:["Valor agregado de R$ ",(e.length*497).toLocaleString("pt-BR"),",00"]}),a.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"Incluso gratuitamente na sua matrÃcula"})]})]}),r&&a.jsx(Oe,{onClick:r,className:"bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white shadow-md shadow-green-500/20",children:"Garantir Minha Vaga + Bônus"})]})]})]})}function EBe({count:e,compact:t=!1}){return e<=0?null:t?a.jsxs(Vt,{className:"bg-gradient-to-r from-yellow-400 to-orange-400 text-white text-[10px] gap-1 px-1.5 py-0.5 shadow-sm",children:[a.jsx(Fu,{className:"w-2.5 h-2.5"}),"+",e," Cert",e>1?"s":""," Bônus"]}):a.jsx("div",{className:"p-2 bg-gradient-to-r from-yellow-50 to-orange-50 dark:from-yellow-950/20 dark:to-orange-950/20 border border-yellow-300/40 dark:border-yellow-700/30 rounded-md",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Fu,{className:"w-4 h-4 text-yellow-600"}),a.jsxs("p",{className:"text-xs font-semibold text-yellow-800 dark:text-yellow-300",children:["ð +",e," Certificação",e>1?"ões":""," Bônus Grátis"]})]})})}function BBe(e){return typeof e?.available_spots=="number"&&e.available_spots<=0}function NBe({courseTitle:e,courseId:t,categoryName:r,itemType:n="curso",cohort:s,placement:o,label:i,size:l="sm",className:c="",icon:u,block:d=!1,hasDigitalVersion:f,courseFormat:h}){const[m,g]=A.useState(!1),p=BBe(s),x=!!(s?.id||s?.start_date),y=i??(p?"Entrar na lista de espera":x?"Garantir minha vaga":"Quero me inscrever"),b=()=>{Ju("cta_click",{content_name:e,content_category:o,cta_text:y,...s?.cohort_code?{cohort_code:s.cohort_code}:{}}),g(!0)},j=p?Vr:ss;return a.jsxs(a.Fragment,{children:[a.jsxs(Oe,{size:l,onClick:b,className:[p?"bg-amber-600 hover:bg-amber-700":"bg-[#F26522] hover:bg-[#c94e18]","text-white font-semibold",d?"w-full":"",c].filter(
1569Boolean).join(" "),children:[u??a.jsx(j,{className:"w-3.5 h-3.5 mr-1.5 shrink-0"}),y]}),a.jsx(sd,{formType:"fazer_inscricao",isOpen:m,onClose:()=>g(!1),courseTitle:e,categoryName:r??void 0,itemType:n,courseId:t??void 0,hasDigitalVersion:f,courseFormat:h,cohortInfo:x?{cohort_id:s?.id??void 0,cohort_code:s?.cohort_code??void 0,start_date:s?.start_date??void 0,schedule_days:s?.schedule_days??void 0,schedule_time:s?.schedule_time??void 0,format:s?.format??void 0}:void 0})]})}const HV=(e,t)=>{const{getItemPrice:r,isLoading:n,refresh:s,items:o,showCourseLabels:i}=_ee();return{blackFridayData:A.useMemo(()=>{if(n||!i||!e&&!t)return null;const c=r(e,t);if(!c)return null;const u=c.specialPrice||c.originalPrice*(1-c.discountPercentage/100),d=c.stockLimit?c.stockLimit-c.stockUsed:null;return{isBlackFriday:!0,originalPrice:c.originalPrice,discountedPrice:u,discountPercentage:c.discountPercentage,badgeText:c.badgeText,badgeColor:c.badgeColor,stockLimit:c.stockLimit,stockUsed:c.stockUsed,stockRemaining:d}},[e,t,r,n,o,i]),loading:n,refresh:s}};function SBe(e){return jt({queryKey:["bonus-certifications",e],queryFn:async()=>{if(!e)return[];const{data:t,error:r}=await J.from("certification_course_offers").select(` 1570 id, 1571 badge_text, 1572 custom_title, 1573 offer_type, 1574 certification:free_certifications(id, name, provider, description, url) 1575 `).eq("course_id",e).eq("is_active",!0).eq("offer_type","bonus").order("position",{ascending:!0});if(r)throw r;return(t||[]).filter(n=>n.certification).map(n=>
1575({id:n.certification.id,offer_id:n.id,name:n.custom_title||n.certification.name,provider:n.certification.provider,description:n.certification.description,url:n.certification.url,badge_text:n.badge_text,custom_title:n.custom_title}))},enabled:!!e,staleTime:5*60*1e3})}const Im=(e,t,r,n)=>n==="en-US"&&t?t:n==="es-ES"&&r?r:e||"";function tc(e,t=2){return e.toLocaleString("pt-BR",{minimumFractionDigits:t,maximumFractionDigits:t})}function kBe(e,t,r,n){const s=n;switch(r){case"12x_or_cash":return{line1:a.jsxs("div",{className:"flex items-baseline gap-1.5",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-semibold",children:"Por"}),a.jsxs("span",{className:"text-sm font-extrabold text-foreground",children:[t,"x ",a.jsxs("span",{className:"text-orange-500",children:["R$ ",tc(s)]})]})]}),line2:a.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["ou R$ ",tc(e,0)," à vista"]})};case"monthly_only":return{line1:a.jsxs("div",{className:"flex items-baseline gap-1.5",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-semibold",children:"Por"}),a.jsxs("span",{className:"text-sm font-extrabold text-foreground",children:[t,"x ",a.jsxs("span",{className:"text-orange-500",children:["R$ ",tc(s)]})]})]}),line2:null};case"cash_only":return{line1:a.jsxs("div",{className:"text-xl font-extrabold text-orange-500",children:["R$ ",tc(e,2)]}),line2:null};case"from_price":return{line1:a.jsxs("div",{className:"flex items-baseline gap-1.5",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-semibold",children:"A partir de"}),a.jsxs("span",{className:"text-sm font-extrabold text-orange-500",children:["R$ ",tc(s),"/mês"]})]}),line2:null}}}function zV({priceCash:e,originalPrice:t,discountPercent:r,savings:n,installmentsCount:s=12,priceInstallmentsTotal:o,settings:i,className:l}){if(!i.show_price||!e||e<=0)return null;const c=Oj({price_cash:e,price_installments:o??e,installments_count:s}),{line1:u,line2:d}=i.show_installments?kBe(e,c.installmentCount,i.installment_format,c.installmentValue??0):{line1:a.jsxs("div",{className:"text-xl font-extrabold text-orange-500",children:["R$ ",tc(e,2)]}),line2:null};return a.jsxs("div",{className:je("space-y-1",l),children:[i.show_original_price&&t&&t>e&&a.jsxs("p",{className:"text-xs text-muted-foreground line-through",children:["R$ ",tc(t,2)]}),u,d,i.show_discount_badge&&r&&r>0&&a.jsxs(Vt,{className:"bg-red-500 hover:bg-red-500 text-white text-[10px]",children:["-",Math.round(r),"% OFF"]}),i.show_savings&&n&&n>0&&a.jsxs("p",{className:"text-[11px] text-green-500 font-semibold",children:["Economize R$ ",tc(n,2)]})]})}const IBe={online:"Ao Vivo",presencial:"Presencial",ead:"EAD",online_ou_presencial:"Online ou Presencial",online_ao_vivo:"Online ao Vivo",presencial_sp:"Presencial em SP",curso_digital:"Curso Digital"},FBe={online:cl,presencial:wa,ead:cl,online_ou_presencial:cl,online_ao_vivo:cl,presencial_sp:wa,curso_digital:cl};function sp({course:e,settings:t,onRequestInfo:r,disableLink:n}){const{i18n:s}=mh(),[o,i]=A.useState(!1),{blackFridayData:l}=HV(e.id),{data:c=[]}=SBe(e.id),u=Im(e.title,e.title_en,e.title_es,s.language),d=Im(e.subtitle,e.subtitle_en,e.subtitle_es,s.language),f=e.cohorts?.filter(U=>new Date(U.start_date)>new Date).sort((U,ee)=>new Date(U.start_date).getTime()-new Date(ee.start_date).getTime())[0]??void 0,h=f?.format||e.format||"online",m=FBe[h]||cl,g=IBe[h]||h,p=e.bonusCourseData?.bonus_hours??e.bonus_hours??null,x=e.bonusCourseData?.bonus_discount??e.bonus_discount??null,y=l?.isBlackFriday?l.discountedPrice:e.price_cash||0,b=e.original_price??e.list_price??void 0,j=b&&b>y?(b-y)/b*100:void 0,C=b&&b>y?b-y:void 0,T=e.duration_hours||0,L=e.labels??e.course_labels?.map(U=>U.labels).filter(Boolean)??[],P=e.availableSpots,I=e.priceIncreaseData,E=e.nextCohortDate||f?.start_date,O=U=>{U.preventDefault(),U.stopPropagation(),r?r(e.title):i(!0)},k=!!l?.isBlackFriday,D=a.jsxs(us,{className:"group overflow-hidden card-hover h-full min-h-[420px] flex flex-col relative",children:[k&&a.jsx("div",{className:"absolute top-2 left-2 z-20",children:a.jsx(VV,{text:l.badgeText,color:l.badgeColor,pulse:!0})}),t.show_most_searched_badge&&e.is_most_searched&&!k&&a.jsx("div",{className:"absolute top-2 right-2 z-10",children:a.jsxs(Vt,{className:"bg-amber-500 text-white flex items-center gap-1 px-2 py-1",children:[a.jsx(os,{className:"w-3 h-3 fill-white"}),a.jsx(os,{className:"w-3 h-3 fill-white"}),a.jsx(os,{className:"w-3 h-3 fill-white"}),a.jsx("span",{className:"text-xs font-semibold ml-1",children:"Mais Procurado"})]})}),t.show_category_badge&&e.category_label&&!k&&a.jsx(Vt,{className:"absolute top-2 left-2 z-10 bg-yellow-600/90 text-white text-[10px]",children:e.category_label}),t.show_urgency&&P!==void 0&&P!==null&&P<=5&&P>0&&!k&&a.jsx("div",{className:"absolute top-2 left-2 z-10",children:a.jsx(wI,{type:"limited_spots",value:P,variant:"compact"})}),a.jsx("div",{className:"aspect-[40/28] overflow-hidden bg-muted relative",children:e.thumbnail_url?a.jsx("img",{src:e.thumbnail_url,alt:e.title,loading:"lazy",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}):a.jsx("div",{className:"w-full h-full bg-gradient-to-br from-muted to-muted/50 flex items-center justify-center",children:a.jsx(cl,{className:"w-12 h-12 text-muted-foreground
1575/50"})})}),a.jsxs(ds,{className:"p-4 flex-1 flex flex-col",children:[t.show_urgency&&I&&I.daysUntilIncrease<=7&&a.jsxs("div",{className:"mb-3 flex flex-col items-center gap-1",children:[a.jsx(jBe,{targetDate:I.increaseDate,variant:"compact",showIcon:!1}),a.jsx(wI,{type:"price_increase",value:`${I.daysUntilIncrease} ${I.daysUntilIncrease===1?"dia":"dias"}`,variant:"compact"})]}),(t.show_duration||t.show_format_badge)&&a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.show_duration&&a.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[a.jsx(Vr,{className:"w-4 h-4"}),a.jsx("span",{children:p?a.jsxs(a.Fragment,{children:[T+p,"h",a.jsxs("span",{className:"text-xs text-muted-foreground ml-1",children:["(",T,"h + ",p,"h)"]})]}):`${T}h`})]}),t.show_format_badge&&a.jsxs("div",{className:"flex gap-1 flex-wrap",children:[a.jsxs(Vt,{variant:"secondary",className:"flex items-center gap-1",children:[a.jsx(m,{className:"w-3 h-3"}),g]}),e.has_digital_version&&a.jsxs(Vt,{variant:"outline",className:"flex items-center gap-1 bg-primary/10 border-primary/30",children:[a.jsx(cl,{className:"w-3 h-3"}),"Digital",e.digital_discount_percentage&&e.digital_discount_percentage>0&&a.jsxs("span",{className:"text-green-600 font-bold ml-1",children:["-",e.digital_discount_percentage,"%"]})]})]})]}),t.show_bonus_badges&&p?a.jsxs(Vt,{variant:"outline",className:"mb-2 text-xs gap-1 border-accent/30 bg-accent/10 w-fit",children:["ð +",p,"h bônus",x&&x>0&&a.jsx("span",{className:"font-bold text-green-600",children:x===100?"Grátis":`${x}% OFF`})]}):null,t.show_bonus_badges&&c.length>0&&a.jsx("div",{className:"mb-3",children:a.jsx(EBe,{count:c.length})}),t.show_labels&&L.length>0&&a.jsx("div",{className:"flex gap-1 flex-wrap mb-3",children:L.map(U=>a.jsx(Vt,{style:{backgroundColor:U.color,color:U.text_color},className:"text-xs",children:U.name},U.id))}),t.show_certificate_badge&&e.has_certification&&a.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[a.jsxs(Vt,{variant:"outline",className:"flex items-center gap-1 w-fit",children:[a.jsx(kn,{className:"w-3 h-3"}),"Certificado"]}),a.jsx(QV,{variant:"compact"})]}),a.jsx("h3",{className:"font-bold text-lg mb-2 line-clamp-2 min-h-[3.5rem] group-hover:text-accent transition-colors",children:u}),t.show_subtitle&&(d||e.description)&&a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:d||e.description}),t.show_salary_roi&&e.exibir_salario_mercado&&e.salario_pleno&&a.jsx("div",{className:"mb-2",children:a.jsx(CBe,{cargo_destino:e.cargo_destino??void 0,salario_pleno:e.salario_pleno??void 0,salario_senior:e.salario_senior??void 0,exibir_salario_mercado:e.exibir_salario_mercado??void 0,variant:"compact"})}),a.jsxs("div",{className:"mt-auto space-y-2",children:[k&&a.jsxs("div",{className:"space-y-1 pt-2 border-t",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-sm text-muted-foreground line-through",children:["R$"," ",l.originalPrice.toLocaleString("pt-BR",{minimumFractionDigits:2})]}),a.jsxs(Vt,{className:"bg-red-600 text-white",children:["-",l.discountPercentage,"% OFF"]})]}),a.jsxs("div",{className:"text-2xl font-black bg-gradient-to-r from-yellow-400 to-yellow-600 bg-clip-text text-transparent",children:["R$"," ",l.discountedPrice.toLocaleString("pt-BR",{minimumFractionDigits:2})]}),a.jsxs("div",{className:"text-xs text-green-600 font-medium",children:["Economize: R$"," ",(l.originalPrice-l.discountedPrice).toLocaleString("pt-BR",{minimumFractionDigits:2})]}),l.stockRemaining&&l.stockRemaining<=10&&a.jsxs("div",{className:"text-xs text-red-600 font-semibold",children:["â ï¸ Apenas ",l.stockRemaining," vagas disponÃveis!"]})]}),!k&&a.jsx(zV,{priceCash:y,originalPrice:b,discountPercent:j,savings:C,installmentsCount:e.installments_count||12,priceInstallmentsTotal:Number(e.price_cash)===Number(y)?e.price_installments:void 0,settings:t}),t.show_next_cohort&&E?a.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t text-sm text-primary font-medium",children:[a.jsx(dn,{className:"w-4 h-4"}),a.jsxs("span",{children:["Próxima turma:"," ",WA(E)]})]}):null,a.jsx("div",{className:"pt-2 border-t",children:a.jsx(NBe,{placement:"carrossel_curso",courseTitle:e.title,courseId:e.id,courseFormat:e.format,hasDigitalVersion:e.has_digital_version,cohort:f?{id:f.id,cohort_code:f.cohort_code,start_date:f.start_date,schedule_time:f.schedule_time,format:f.format,available_spots:f.available_spots}:void 0,label:t.cta_label||void 0,block:!0,className:"w-full"})}),t.show_secondary_cta&&a.jsx(Oe,{size:"sm",variant:"outline",className:"w-full",onClick:O,children:t.cta_secondary_label||"Pedir Informações"})]})]})]}),H=n?D:a.jsx(Te,{to:`/curso/${e.slug}`,className:"block h-full",children:D});return a.jsxs(a.Fragment,{children:[H,!r&&a.jsx(sd,{formType:"pedir_informacoes",isOpen:o,onClose:()=>i(!1),courseTitle:e.title})]})}function vx({formation:e,settings:t,onRequestInfo:r,disableLink:n}){const{blackFridayData:s}=HV(void 0,e.id),o=e.formation_courses||[],l=o.flatMap(b=>{const j=b.courses||b.course;return(j?.cohorts||[]).map(C=>({...C,courseTitle:j?.title}))}).filter(b=>new Date(b.start_date)>new Date).sort((b,j)=>new Date(b.start_date).getTime()-new Date(j.start_date).getTime())[0],c=e.totalHours??o.reduce((b,j)=>b+((j.courses||j.course)?.duration_hours||0),0),u=e.totalPrice??o.reduce((b,j)=>b+((j.courses||j.course)?.price_cash||0),0),d=Number(e.price_cash)||0,f=d>0?d:u*(1-(e.discount_percentage||0)/100),h=s?.isBlackFriday?s.discountedPrice:f,m=u>h?u-h:void 0,g=u>h?(u-h)/u*100:void 0,p=o.map(b=>
1575(b.courses||b.course)?.title).filter(Boolean).slice(0,2),x=Math.max(0,o.length-p.length),y=a.jsxs(us,{className:"group overflow-hidden h-full border-2 border-primary/20 hover:border-primary transition-all",children:[a.jsxs("div",{className:"aspect-[40/28] overflow-hidden bg-muted relative",children:[e.thumbnail_url?a.jsx("img",{src:e.thumbnail_url,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):a.jsx("div",{className:"w-full h-full bg-gradient-to-br from-primary/20 to-primary/5 flex items-center justify-center",children:a.jsx(Mn,{className:"w-12 h-12 text-primary/50"})}),t.show_category_badge&&a.jsxs(Vt,{className:"absolute top-2 right-2 bg-purple-600 text-white text-[10px]",children:[a.jsx(kn,{className:"w-3 h-3 mr-1"}),"FORMAÃÃO"]}),s?.isBlackFriday?a.jsx("div",{className:"absolute top-2 left-2",children:a.jsx(VV,{text:s.badgeText,color:s.badgeColor,pulse:!0})}):t.show_discount_badge&&e.discount_percentage&&e.discount_percentage>0&&a.jsxs(Vt,{className:"absolute top-2 left-2 bg-green-600",children:[e.discount_percentage,"% OFF"]})]}),a.jsxs(ds,{className:"p-4 flex flex-col flex-1",children:[(t.show_duration||t.show_hours_badge)&&a.jsxs("div",{className:"flex items-center gap-2 mb-2 text-sm text-muted-foreground",children:[a.jsx(Vr,{className:"w-4 h-4"}),a.jsxs("span",{children:[c,"h"]}),a.jsx("span",{className:"text-muted-foreground/50",children:"â¢"}),a.jsxs("span",{children:[e.courseCount??o.length," cursos"]})]}),a.jsx("h3",{className:"font-bold text-base line-clamp-2 min-h-[3.5rem] group-hover:text-primary transition-colors mb-2",children:e.name}),t.show_included_courses&&p.length>0&&a.jsxs("div",{className:"mb-3 space-y-1",children:[a.jsx("p",{className:"text-[10px] uppercase font-semibold text-muted-foreground",children:"Cursos incluÃdos:"}),p.map(b=>a.jsxs("p",{className:"text-xs text-foreground/80 line-clamp-1",children:["â ",b]},b)),x>0&&a.jsxs("p",{className:"text-xs text-primary font-semibold",children:["+",x," cursos"]})]}),t.show_next_cohort&&l&&a.jsxs("div",{className:"flex items-center gap-2 text-xs text-primary font-medium mb-3",children:[a.jsx(dn,{className:"w-3 h-3"}),a.jsxs("span",{children:["Próxima turma: ",new Date(l.start_date).toLocaleDateString("pt-BR")]})]}),t.show_certificate_badge&&a.jsx(QV,{variant:"compact",className:"mb-3"}),a.jsxs("div",{className:"mt-auto space-y-3",children:[a.jsx(zV,{priceCash:h,originalPrice:u>h?u:void 0,discountPercent:g,savings:m,priceInstallmentsTotal:d>0&&Number(h)===d?e.price_installments:void 0,settings:t}),a.jsx(Oe,{size:"sm",variant:t.cta_variant==="primary"?"default":t.cta_variant,className:"w-full",onClick:b=>{b.preventDefault(),b.stopPropagation(),r?.(e.name)},children:t.cta_label||"Garantir Vaga"})]})]})]});return n?y:a.jsx(Te,{to:`/formacoes/${e.slug}`,className:"block h-full",children:y})}const Xo={layout:{items_per_view:4,loop:!0,autoplay:!1},card:{show_price:!0,show_installments:!0,installment_format:"12x_or_cash",show_original_price:!0,show_discount_badge:!0,show_savings:!0,show_duration:!0,show_format_badge:!0,show_next_cohort:!0,show_certificate_badge:!0,show_category_badge:!0,show_included_courses:!0,show_hours_badge:!0,show_salary_roi:!0,show_most_searched_badge:!0,show_bonus_badges:!0,show_urgency:!0,show_labels:!0,show_subtitle:!0,cta_label:"Garantir Vaga",cta_secondary_label:"Pedir Informações",cta_variant:"primary",show_secondary_cta:!1},content:{max_items:12,sort_by:"manual",filter:{category_id:null,only_featured:!1}}};function _I(e){const t=e&&typeof e=="object"?e:{};return{layout:{...Xo.layout,...t.layout??{}},card:{...Xo.card,...t.card??{}},content:{...Xo.content,...t.content??{},filter:{...Xo.content.filter,...t.content?.filter??{}}}}}const dQe={"12x_or_cash":"12x + à vista (padrão)",monthly_only:"Apenas parcelado",cash_only:"Apenas à vista",from_price:"A partir de R$ ..."},AQe={manual:"Manual (display_order)",next_cohort:"Próxima turma",price_asc:"Menor preço",price_desc:"Maior preço",featured:"Destaque",recent:"Mais recente"};function TBe(e){return A.useMemo(()=>
1575{if(!e)return _I(void 0);const t=e.settings??e;return _I(t)},[e])}function CI(e,t,r="course"){switch(t){case"price_asc":return e.order("price_cash",{ascending:!0,nullsFirst:!1});case"price_desc":return e.order("price_cash",{ascending:!1,nullsFirst:!1});case"recent":return e.order("created_at",{ascending:!1});case"featured":return r==="formation"?e.order("is_featured",{ascending:!1}).order("display_order",{ascending:!0,nullsFirst:!1}):e.order("priority",{ascending:!1,nullsFirst:!1});case"manual":case"next_cohort":default:return r==="formation"?e.order("display_order",{ascending:!0,nullsFirst:!1}):e.order("priority",{ascending:!1,nullsFirst:!1})}}function $V({config:e}){const t=TBe(e),[r,n]=A.useState(null),s=A.useMemo(()=>{switch(e.carousel_type){case"featured_courses":case"courses_by_category":case"digital_courses":return"course";case"formations":return"formation";default:return null}},[e.carousel_type]),{data:o,isLoading:i}=jt({queryKey:["carousel_renderer",e.id,e.carousel_type,t.content],enabled:!!s,queryFn:async()=>{const{max_items:u,sort_by:d,filter:f}=t.content;if(s==="formation"){let p=J.from("formations").select(` 1576 id, name, slug, thumbnail_url, price_cash, discount_percentage, 1577 formation_courses( 1578 courses:course_id( 1579 title, duration_hours, price_cash, 1580 cohorts(start_date, format) 1581 ) 1582 ) 1583 `).eq("is_active",!0).limit(u);f.only_featured&&(p=p.eq("is_featured",!0)),p=CI(p,d,"formation");const{data:x,error:y}=await p;if(y)throw y;return x}let h=J.from("courses").select(` 1584 id, title, slug, thumbnail_url, duration_hours, price_cash, list_price, 1585 format, cargo_destino, salario_pleno, salario_senior, exibir_salario_mercado, 1586 cohorts(start_date, format) 1587 `).eq("approval_status","approved").limit(u);f.category_id&&(h=h.eq("category_id",f.category_id)),f.only_featured&&(h=h.eq("is_featured",!0)),e.carousel_type==="digital_courses"&&(h=h.or("format.eq.curso_digital,has_digital_version.eq.true")),h=CI(h,d);const{data:m,error:g}=await h;if(g)throw g;return(m??[]).map(p=>({...p,original_price:p.list_price??void 0}))}});if(!s)return null;const l=Math.min(Math.max(t.layout.items_per_view||4,1),6),c=l>=5?"sm":l===4?"md":"lg";return a.jsxs("section",{className:"py-8 md:py-10",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[(e.title||e.subtitle)&&a.jsxs("div",{className:"mb-6",children:[e.title&&a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:e.title}),e.subtitle&&a.jsx("p",{className:"text-muted-foreground mt-1",children:e.subt
1587itle})]}),i?a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((u,d)=>a.jsx(DV,{},d))}):!o||o.length===0?null:a.jsx(uo,{items:o,getKey:u=>u.id,itemWidth:c,loop:t.layout.loop,renderItem:u=>s==="course"?a.jsx(sp,{course:u,settings:t.card,onRequestInfo:d=>n(d)}):a.jsx(vx,{formation:u,settings:t.card,onRequestInfo:d=>n(d)})})]}),r&&a.jsx(sd,{isOpen:!!r,onClose:()=>n(null),formType:"pedir_informacoes",courseTitle:r})]})}function qV({pageSlug:e}){const{data:t}=LV(e);if(!t||t.length===0)return null;const r=new Set(["featured_courses","courses_by_category","formations","digital_courses"]),n=t.filter(s=>s.is_active&&r.has(s.carousel_type)).sort((s,o)=>s.display_order-o.display_order);return n.length===0?null:a.jsx(a.Fragment,{children:n.map(s=>a.jsx($V,{config:s},s.id))})}const PBe=["id","title","slug","excerpt","featured_image_url","author_name","author_avatar_url","category","tags","is_published","is_featured","views_count","published_at","created_at","updated_at"],LBe=PBe.join(", "),fQe=24,DBe=()=>{const{data:e=[]}=jt({queryKey:["latest-blog-posts"],queryFn:async()=>{const{data:t}=await J.from("blog_posts").select(LBe).eq("is_published",!0).order("published_at",{ascending:!1}).limit(3);return t??[]}});return e.length===0?null:a.jsx("section",{className:"py-12 border-t border-primary-foreground/20",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"flex items-center justify-between mb-8",children:[a.jsx("h3",{className:"text-2xl font-bold text-primary-foreground",children:"Ãltimas NotÃcias"}),a.jsxs(Te,{to:"/blog",className:"text-sm text-primary-foreground/80 hover:text-accent transition-colors flex items-center gap-1",children:["Ver todas",a.jsx(_r,{className:"w-4 h-4"})]})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:e.map(t=>a.jsxs(Te,{to:`/blog/${t.slug}`,className:"group block bg-primary-foreground/5 hover:bg-primary-foreground/10 rounded-lg overflow-hidden transition-all",children:[t.featured_image_url&&a.jsx("div",{className:"aspect-video overflow-hidden",children:a.jsx("img",{src:t.featured_image_url,alt:t.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs("div",{className:"p-4",children:[a.jsx("h4",{className:"font-semibold text-primary-foreground mb-2 line-clamp-2 group-hover:text-accent transition-colors",children:t.title}),t.excerpt&&a.jsx("p",{className:"text-sm text-primary-foreground/70 mb-3 line-clamp-2",children:t.excerpt}),a.jsxs("div",{className:"flex items-center text-xs text-primary-foreground/60",children:[a.jsx(dn,{className:"w-3 h-3 mr-1"}),a.jsx("span",{children:Kt(new Date(t.published_at),"dd 'de' MMM",{locale:cn})})]})]})]},t.id))})]})})},Lb={razao_social:"",nome_fantasia:"",cnpj:"",inscricao_estadual:"",inscricao_municipal:"",endereco_logradouro:"",endereco_numero:"",endereco_complemento:"",endereco_bairro:"",endereco_cidade:"",endereco_estado:"",endereco_cep:"",telefone:"",whatsapp:"",email_comercial:"",email_suporte:"",email_financeiro:"",facebook_url:"",instagram_url:"",linkedin_url:"",youtube_url:"",website:"",representante_nome:"",representante_cargo:"",logo_principal:"",logo_branco:"",logo_icone:""};function RBe(){return jt({queryKey:["company-settings"],queryFn:async()=>{const{data:e,error:t}=await J.from("system_settings").select("value").eq("key","company_settings").maybeSingle();return t?(console.error("Erro ao buscar configurações da empresa:",t),Lb):e?.value?{...Lb,...e.value}:Lb},staleTime:1e3*60*5})}function mQe(){const e=vn();return Dr({mutationFn:async t=>{const{data:r}=await J.from("system_settings").select("id").eq("key","company_settings").maybeSingle();if(r){const{error:n}=await J.from("system_settings").update({value:t,updated_at:new Date().toISOString()}).eq("key","company_settings");if(n)throw n}else{const{error:n}=await J.from("system_settings").insert([{key:"company_settings",value:t}]);if(n)throw n}try{const n=(t.whatsapp||"").replace(/\D/g,""),{error:s}=await J.from("company_info").update({razao_social:t.razao_social||null,cnpj:t.cnpj||null,phone:t.telefone||null,whatsapp:n||null,email:t.email_comercial||null,company_name:t.nome_fantasia||t.razao_social||null,address:[t.endereco_logradouro,t.endereco_numero,t.endereco_complemento,t.endereco_bairro,t.endereco_cidade,t.endereco_estado].filter(
1587Boolean).join(", ")||null,website:t.website||null}).eq("id","cf637098-b489-4764-b859-5cf0ecbc3014");s?console.warn("Aviso: não foi possÃvel sincronizar company_info:",s):console.log("company_info sincronizado com sucesso")}catch(n){console.warn("Erro ao sincronizar company_info:",n)}return t},onSuccess:()=>{e.invalidateQueries({queryKey:["company-settings"]}),et.success("Configurações salvas e sincronizadas com sucesso!")},onError:t=>{console.error("Erro ao salvar configurações:",t),et.error("Erro ao salvar configurações")}})}function MBe(e){return e?[e.endereco_logradouro,e.endereco_numero,e.endereco_complemento,e.endereco_bairro,`${e.endereco_cidade}/${e.endereco_estado}`,e.endereco_cep].filter(Boolean).join(", "):""}function OBe(e){if(!e)return{line1:"",line2:""};const t=[e.endereco_logradouro,e.endereco_numero,e.endereco_complemento].filter(Boolean).join(", "),r=[e.endereco_bairro,`${e.endereco_cidade} - ${e.endereco_estado}`,`CEP: ${e.endereco_cep}`].filter(Boolean).join(" | ");return{line1:t,line2:r}}function UBe(e){if(!e){const i={};return Object.keys(QBe).forEach(l=>{i[l]=""}),i}const t=OBe(e),r=MBe(e),n=`${e.representante_nome} 1588${e.representante_cargo} 1589${e.nome_fantasia||e.razao_social}`,s=`${e.razao_social} | CNPJ: ${e.cnpj} 1590${r} 1591${e.telefone} | ${e.email_comercial} | ${e.website}`,o=`${e.nome_fantasia||e.razao_social} 1592CNPJ: ${e.cnpj}`;return{"{{empresa_razao_social}}":e.razao_social||"","{{empresa_nome_fantasia}}":e.nome_fantasia||"","{{empresa_nome}}":e.razao_social||e.nome_fantasia||"","{{empresa_cnpj}}":e.cnpj||"","{{empresa_ie}}":e.inscricao_estadual||"","{{empresa_im}}":e.inscricao_municipal||"","{{empresa_endereco}}":r,"{{empresa_endereco_linha1}}":t.line1,"{{empresa_endereco_linha2}}":t.line2,"{{empresa_logradouro}}":e.endereco_logradouro||"","{{empresa_numero}}":e.endereco_numero||"","{{empresa_complemento}}":e.endereco_complemento||"","{{empresa_bairro}}":e.endereco_bairro||"","{{empresa_cidade}}":e.endereco_cidade||"","{{empresa_estado}}":e.endereco_estado||"","{{empresa_cep}}":e.endereco_cep||"","{{empresa_cidade_estado}}":`${e.endereco_cidade}/${e.endereco_estado}`,"{{empresa_telefone}}":e.telefone||"","{{empresa_whatsapp}}":e.whatsapp||"","{{empresa_email}}":e.email_comercial||"","{{empresa_email_comercial}}":e.email_comercial||"","{{empresa_email_suporte}}":e.email_suporte||"","{{empresa_email_financeiro}}":e.email_financeiro||"","{{empresa_website}}":e.website||"","{{empresa_site}}":e.website||"","{{empresa_facebook}}":e.facebook_url||"","{{empresa_instagram}}":e.instagram_url||"","{{empresa_linkedin}}":e.linkedin_url||"","{{empresa_youtube}}":e.youtube_url||"","{{empresa_representante}}":e.representante_nome||"","{{empresa_representante_nome}}":e.representante_nome||"","{{empresa_representante_cargo}}":e.representante_cargo||"","{{empresa_logo}}":e.logo_principal||"","{{empresa_logo_principal}}":e.logo_principal||"","{{empresa_logo_branco}}":e.logo_branco||"","{{empresa_logo_icone}}":e.logo_icone||"","{{empresa_assinatura}}":n,"{{empresa_rodape}}":s,"{{empresa_cabecalho}}":o}}const QBe={"{{empresa_razao_social}}":"Razão Social da empresa","{{empresa_nome_fantasia}}":"Nome Fantasia","{{empresa_nome}}":"Nome da empresa (razão social)","{{empresa_cnpj}}":"CNPJ formatado","{{empresa_ie}}":"Inscrição Estadual","{{empresa_im}}":"Inscrição Municipal","{{empresa_endereco}}":"Endereço completo em uma linha","{{empresa_endereco_linha1}}":"Logradouro, número e complemento","{{empresa_endereco_linha2}}":"Bairro, cidade, estado e CEP","{{empresa_logradouro}}":"Logradouro (rua, avenida)","{{empresa_numero}}":"Número do endereço","{{empresa_complemento}}":"Complemento","{{empresa_bairro}}":"Bairro","{{empresa_cidade}}":"Cidade","{{empresa_estado}}":"Estado (UF)","{{empresa_cep}}":"CEP","{{empresa_cidade_estado}}":"Cidade/Estado","{{empresa_telefone}}":"Telefone principal","{{empresa_whatsapp}}":"WhatsApp","{{empresa_email}}":"E-mail comercial","{{empresa_email_comercial}}":"E-mail comercial","{{empresa_email_suporte}}":"E-mail de suporte","{{empresa_email_financeiro}}":"E-mail financeiro","{{empresa_website}}":"Website","{{empresa_site}}":"Website (alias)","{{empresa_facebook}}":"URL do Facebook","{{empresa_instagram}}":"URL do Instagram","{{empresa_linkedin}}":"URL do LinkedIn","{{empresa_youtube}}":"URL do YouTube","{{empresa_representante}}":"Nome do representante legal","{{empresa_representante_nome}}":"Nome do representante","{{empresa_representante_cargo}}":"Cargo do representante","{{empresa_logo}}":"URL do logo principal","{{empresa_logo_principal}}":"URL do logo principal","{{empresa_logo_branco}}":"URL do logo branco","{{empresa_logo_icone}}":"URL do Ãcone/favicon","{{empresa_assinatura}}":"Bloco de assinatura (nome, cargo, empresa)","{{empresa_rodape}}":"Rodapé completo para documentos","{{empresa_cabecalho}}":"Cabeçalho para documentos"};function hQe(e,t){if(!e||!t)return e;const r=UBe(t);let n=e;return Object.entries(r).forEach(([s,o])=>{const i=new RegExp(s.replace(/[{}]/g,"\\$&"),"g");n=n.replace(i,o)}),n}const jI=()=>{const{data:e}=RBe(),[t,r]=A.useState(!1),[n,s]=A.useState(""),[o,i]=A.useState(!1),l=async u=>
1592{if(u.preventDefault(),!(!n||!n.includes("@"))){i(!0);try{const{error:d}=await J.from("newsletter_subscribers").insert([{email:n.toLowerCase().trim()}]);if(d)if(d.code==="23505")et.success("Você já está inscrito na nossa newsletter!");else throw d;else et.success("Inscrito com sucesso! Você receberá nossas novidades em breve.");s("")}catch(d){console.error("Erro ao inscrever:",d),et.error("Não foi possÃvel concluir a inscrição. Tente novamente.")}finally{i(!1)}}},{data:c}=jt({queryKey:["footer-categories"],queryFn:async()=>{const{data:u}=await J.from("categories").select("*").eq("approval_status","approved").order("display_order");return u||[]}});return a.jsxs("footer",{className:"bg-primary text-primary-foreground",children:[a.jsx(sd,{formType:"proposta_corporativa",isOpen:t,onClose:()=>r(!1),courseTitle:"Proposta Corporativa"}),a.jsx(DBe,{}),a.jsxs("div",{className:"container mx-auto px-4 py-8 md:py-12",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 md:gap-8",children:[a.jsxs("div",{children:[a.jsx("img",{src:FC,alt:e?.nome_fantasia||"Trainning Education",className:"h-8 md:h-10 mb-3 md:mb-4"}),a.jsxs("p",{className:"text-xs md:text-sm text-primary-foreground/80 mb-3 md:mb-4",children:["Mais de 300.000 alunos formados e 20.000 empresas atendidas. Sua carreira em tecnologia começa aqui.",a.jsx("br",{}),a.jsx("br",{}),e?.razao_social," ",e?.cnpj]}),a.jsxs("div",{className:"flex gap-3",children:[e?.facebook_url&&a.jsx("a",{href:e.facebook_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent transition-colors",children:a.jsx(Oz,{className:"w-5 h-5"})}),e?.instagram_url&&a.jsx("a",{href:e.instagram_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent transition-colors",children:a.jsx(s$,{className:"w-5 h-5"})}),e?.linkedin_url&&a.jsx("a",{href:e.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent transition-colors",children:a.jsx(_T,{className:"w-5 h-5"})}),e?.youtube_url&&a.jsx("a",{href:e.youtube_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent transition-colors",children:a.jsx(Aq,{className:"w-5 h-5"})})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold mb-3 md:mb-4 text-sm md:text-base",children:"Links Rápidos"}),a.jsxs("ul",{className:"space-y-2 text-xs md:text-sm",children:[a.jsx("li",{children:a.jsx(Te,{to:"/",className:"hover:text-accent transition-colors",children:"Home"})}),a.jsx("li",{children:a.jsx(Te,{to:"/cursos",className:"hover:text-accent transition-colors",children:"Cursos"})}),a.jsx("li",{children:a.jsx(Te,{to:"/formacoes",className:"hover:text-accent transition-colors",children:"Formações"})}),a.jsx("li",{children:a.jsx(Te,{to:"/cursos-gratuitos",className:"hover:text-accent transition-colors",children:"Cursos Gratuitos"})}),a.jsx("li",{children:a.jsx(Te,{to:"/cursos-digitais",className:"hover:text-accent transition-colors",children:"Cursos Digitais"})}),a.jsx("li",{children:a.jsx(Te,{to:"/mastertech",className:"hover:text-accent transition-colors",children:"MasterTech"})}),a.jsx("li",{children:a.jsx(Te,{to:"/certificacoes",className:"hover:text-accent transition-colors",children:"Certificações"})}),a.jsx("li",{children:a.jsx(Te,{to:"/vagas",className:"hover:text-accent transition-colors",children:"Vagas"})}),a.jsx("li",{children:a.jsx(Te,{to:"/blog",className:"hover:text-accent transition-colors",children:"Blog"})}),a.jsx("li",{children:a.jsx(Te,{to:"/pilulas-de-conhecimento",className:"hover:text-accent transition-colors",children:"PÃlulas de Conhecimento"})})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold mb-3 md:mb-4 text-sm md:text-base",children:"Institucional"}),a.jsxs("ul",{className:"space-y-2 text-xs md:text-sm",children:[a.jsx("li",{children:a.jsx(Te,{to:"/empresas",className:"hover:text-accent transition-colors",children:"Empresas Atendidas"})}),a.jsx("li",{children:a.jsx(Te,{to:"/plataforma-trainning360",className:"hover:text-accent transition-colors",children:"Plataforma TRAINNING360"})}),a.jsx("li",{children:a.jsx(Te,{to:"/skill-gap",className:"hover:text-accent transition-colors",children:"Skill Gap SAP · diagnóstico gratuito"})}),a.jsx("li",{children:a.jsx(Te,{to:"/training-university",className:"hover:text-accent transition-colors",children:"Training University"})}),a.jsx("li",{children:a.jsx(Te,{to:"/training-corporate-subscriptions",className:"hover:text-accent transition-colors",children:"Assinaturas Corporativas"})}),a.jsx("li",{children:a.jsx(Te,{to:"/sobre",className:"hover:text-accent transition-colors",children:"Sobre Nós"})}),a.jsx("li",{children:a.jsx(Te,{to:"/contato",className:"hover:text-accent transition-colors",children:"Contato"})}),a.jsx("li",{children:a.jsx(Te,{to:"/calendario",className:"hover:text-accent transition-colors",children:"Calendário"})}),a.jsx("li",{children:a.jsx(Te,{to:"/simulados",className:"hover:text-accent transition-colors",children:"Simulados"})}),a.jsx("li",{children:a.jsx(Te,{to:"/auth",className:"hover:text-accent transition-colors",children:"Acesso Interno"})})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold mb-3 md:mb-4 text-sm md:text-base",children:"Categorias"}),a.jsx("ul",{className:"space-y-2 text-xs md:text-sm",children:c?.map(u=>a.jsx("li",{children:a.jsx(Te,{to:`/cursos/${u.slug}`,className:"hover:text-accent transition-colors",children:u.name})},u.slug))})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold mb-3 md:mb-4 text-sm md:text-base",children:"Fique por Dentro"}),a.jsx("p",{className:"text-xs md:text-sm text-primary-foreground
1592/80 mb-3",children:"Receba novidades e ofertas exclusivas"}),a.jsxs("form",{onSubmit:l,className:"flex gap-2 mb-3 md:mb-4",children:[a.jsx(Jt,{type:"email",placeholder:"Seu e-mail",value:n,onChange:u=>s(u.target.value),required:!0,disabled:o,className:"bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/50 text-xs md:text-sm"}),a.jsx(Oe,{type:"submit",disabled:o,className:"accent-gradient text-xs md:text-sm",children:o?"...":"Enviar"})]}),a.jsxs("div",{className:"space-y-2 text-xs md:text-sm",children:[a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(Pu,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:e?.telefone||"(11) 3171-2002"})]}),a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(mo,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:e?.email_comercial||"[email protected]"})]}),a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(Sx,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:e?.endereco_cidade&&e?.endereco_estado?`${e.endereco_cidade}, ${e.endereco_estado} - Brasil`:"São Paulo, SP - Brasil"})]})]})]})]}),a.jsxs("div",{className:"border-t border-primary-foreground/20 mt-6 md:mt-8 pt-6 md:pt-8 flex flex-col md:flex-row justify-between items-center gap-3 md:gap-4 text-xs md:text-sm text-primary-foreground/60",children:[a.jsx("p",{className:"text-center md:text-left",children:"© 2025 Trainning Education. Todos os direitos reservados."}),a.jsxs("div",{className:"flex gap-3 md:gap-4 flex-wrap justify-center",children:[a.jsx(Te,{to:"/privacidade",className:"hover:text-accent transition-colors",children:"PolÃtica de Privacidade"}),a.jsx(Te,{to:"/termos",className:"hover:text-accent transition-colors",children:"Termos de Uso"})]})]})]})]})},zv=({categoryId:e,limit:t=6})=>{const[r,n]=A.useState([]),[s,o]=A.useState(!0);A.useEffect(()=>{i()},[e]);const i=async()=>{try{let d=J.from("testimonials").select("*").eq("is_active",!0).order("display_order");e&&(d=d.or(`category_id.eq.${e},category_id.is.null`)),t&&(d=d.limit(t));const{data:f,error:h}=await d;if(h)throw h;n(f||[])}catch(d){console.error("Erro ao carregar depoimentos:",d)}finally{o(!1)}},l=d=>a.jsx("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(f=>a.jsx(os,{className:`w-4 h-4 ${f<=d?"fill-accent text-accent":"text-muted-foreground/30"}`},f))}),c=d=>d.split(" ").map(f=>f[0]).join("").toUpperCase().slice(0,2),u=d=>!(!d||d.includes("exemplo.com")||d.includes("example.com"));return s||r.length===0?null:a.jsx("section",{className:"py-16 bg-secondary/50",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4 text-foreground",children:"O que nossos alunos dizem"}),a.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Veja os depoimentos de quem já transformou sua carreira com nossos cursos"})]}),a.jsx(uo,{items:r,itemWidth:"lg",getKey:d=>d.id,renderItem:d=>a.jsx(us,{className:"h-full",children:a.jsxs(ds,{className:"p-6 space-y-4",children:[a.jsx(k$,{className:"w-8 h-8 text-accent opacity-50"}),d.rating&&a.jsx("div",{children:l(d.rating)}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:['"',d.testimonial_text,'"']}),a.jsxs("div",{className:"flex items-center gap-4 pt-4 border-t",children:[a.jsxs(zA,{children:[u(d.student_photo_url)&&a.jsx(Sh,{src:d.student_photo_url}),a.jsx($A,{children:c(d.student_name)})]}),a.jsxs("div",{children:[a.jsx("div",{className:"font-semibold",children:d.student_name}),d.student_role&&a.jsx("div",{className:"text-sm text-muted-foreground",children:d.student_role}),d.student_company&&a.jsx("div",{className:"text-sm text-muted-foreground",children:d.student_company}),d.course_title&&a.jsx("div",{className:"text-sm text-accent mt-1",children:d.course_title})]})]})]})})})]})})},VBe={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function HBe(e,t){const r=e.scrollSnapList();return typeof t=="number"?r.map(()=>t):t(r,e)}function zBe(e,t){const r=e.rootNode();return t&&t(r)||r}function $j(e={}){let t,r,n,s,o=null,i=0,l=!1,c=!1,u=!1,d=!1;function f(U,ee){r=U;const{mergeOptions:ae,optionsAtMedia:V}=ee,q=ae(VBe,$j.globalOptions),G=ae(q,e);if(t=V(G),r.scrollSnapList().length<=1)return;d=t.jump,n=!1,s=HBe(r,t.delay);const{eventStore:Ae,ownerDocument:se}=r.internalEngine(),S=!!r.internalEngine().options.watchDrag,Q=zBe(r,t.rootNode);
1592Ae.add(se,"visibilitychange",y),S&&r.on("pointerDown",j),S&&!t.stopOnInteraction&&r.on("pointerUp",C),t.stopOnMouseEnter&&Ae.add(Q,"mouseenter",T),t.stopOnMouseEnter&&!t.stopOnInteraction&&Ae.add(Q,"mouseleave",L),t.stopOnFocusIn&&r.on("slideFocusStart",x),t.stopOnFocusIn&&!t.stopOnInteraction&&Ae.add(r.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){r.off("pointerDown",j).off("pointerUp",C).off("slideFocusStart",x),x(),n=!0,l=!1}function m(){const{ownerWindow:U}=r.internalEngine();U.clearTimeout(i),i=U.setTimeout(k,s[r.selectedScrollSnap()]),o=new Date().getTime(),r.emit("autoplay:timerset")}function g(){const{ownerWindow:U}=r.internalEngine();U.clearTimeout(i),i=0,o=null,r.emit("autoplay:timerstopped")}function p(){if(!n){if(b()){u=!0;return}l||r.emit("autoplay:play"),m(),l=!0}}function x(){n||(l&&r.emit("autoplay:stop"),g(),l=!1)}function y(){if(b())return u=l,x();u&&p()}function b(){const{ownerDocument:U}=r.internalEngine();return U.visibilityState==="hidden"}function j(){c||x()}function C(){c||p()}function T(){c=!0,x()}function L(){c=!1,p()}function P(U){typeof U<"u"&&(d=U),p()}function I(){l&&x()}function E(){l&&p()}function O(){return l}function k(){const{index:U}=r.internalEngine(),ee=U.clone().add(1).get(),ae=r.scrollSnapList().length-1,V=t.stopOnLastSnap&&ee===ae;if(r.canScrollNext()?r.scrollNext(d):r.scrollTo(0,d),r.emit("autoplay:select"),V)return x();p()}function D(){if(!o)return null;const U=s[r.selectedScrollSnap()],ee=new Date().getTime()-o;return U-ee}return{name:"autoplay",options:e,init:f,destroy:h,play:P,stop:I,reset:E,isPlaying:O,timeUntilNext:D}}$j.globalOptions=void 0;function qj(){const{data:e}=QEe(),t=A.useRef($j({delay:4500,stopOnInteraction:!0}));return!e||e.items.length===0?null:a.jsx("section",{className:"bg-slate-950 py-16",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white",children:e.config?.title||"Empresas que Transformamos"}),a.jsx("p",{className:"text-slate-400 mt-2",children:e.config?.subtitle||"Cases reais de implementação SAP e Tecnologia"})]}),a.jsxs(ep,{opts:{loop:!0,align:"start"},plugins:[t.current],className:"w-full",children:[a.jsx(tp,{children:e.items.map(r=>a.jsx(rp,{className:"basis-full sm:basis-1/2 lg:basis-1/3",children:a.jsx($Be,{item:r})},r.id))}),a.jsx(np,{className:"hidden md:flex bg-white/10 hover:bg-white/20 border-white/20 text-white"}),a.jsx(ap,{className:"hidden md:flex bg-white/10 hover:bg-white/20 border-white/20 text-white"})]})]})})}function $Be({item:e}){return a.jsxs("div",{className:"group relative rounded-xl overflow-hidden aspect-[4/3] cursor-pointer bg-slate-900",children:[e.background_image_url?a.jsx("img",{src:e.background_image_url,alt:e.client_name,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-800 to-slate-950"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/50 to-transparent"}),e.client_logo_url&&a.jsx("img",{src:e.client_logo_url,alt:`${e.client_name} â empresa cliente da Trainning Education`,className:"absolute top-3 left-3 h-7 object-contain"}),e.website_url&&a.jsx("span",{className:"absolute top-3 right-3 text-[10px] text-white/50",children:e.website_url}),e.sap_module&&a.jsx("div",{className:"absolute bottom-3 right-3 bg-blue-600/80 text-white text-[10px] font-bold rounded-full px-2 py-1",children:"SAP"}),a.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:[a.jsx("h3",{className:"text-white font-bold text-sm mb-2",children:e.client_name}),e.problem_value&&a.jsxs("div",{className:"flex gap-1 items-baseline",children:[a.jsxs("span",{className:"text-orange-400 text-[11px] font-semibold",children:[e.problem_label,":"]}),a.jsx("span",{className:"text-white/80 text-[11px]",children:e.problem_value})]}),e.solution_value&&a.jsxs("div",{className:"flex gap-1 items-baseline",children:[a.jsxs("span",{className:"text-green-400 text-[11px] font-semibold",children:[e.solution_label,":"]}
1592),a.jsx("span",{className:"text-white/80 text-[11px]",children:e.solution_value})]})]})]})}function fA({location:e,fallback:t,className:r=""}){const[n,s]=A.useState(null),[o,i]=A.useState(!0);RO();const{user:l}=Zn();A.useEffect(()=>{c()},[e]);const c=async()=>{try{const{data:m,error:g}=await J.from("cta_configs").select("*").eq("is_active",!0).or(`location.eq.${e},page_location.eq.${e}`).order("display_order",{ascending:!0}).limit(1).maybeSingle();g?(console.error("Error loading CTA:",g),s(null)):m?.expires_at&&new Date(m.expires_at)<new Date?s(null):s(m)}catch(m){console.error("Error fetching CTA:",m),s(null)}finally{i(!1)}};if(o)return null;if(!n)return t?a.jsx(a.Fragment,{children:t}):null;if(n.requires_auth&&!l)return t?a.jsx(a.Fragment,{children:t}):null;const u=m=>n.button_text,d=n.variant||"default",f=n.size||"default",h=[n.show_on_mobile===!1?"hidden md:flex":"",n.show_on_desktop===!1?"flex md:hidden":""].filter(Boolean).join(" ");return a.jsx("div",{className:`${r} ${h}`,children:a.jsx(Oe,{asChild:!0,variant:d,size:f,onClick:()=>{n.id&&console.log(`CTA clicked: ${e} - ${n.id}`)},children:a.jsxs(Te,{to:n.button_link,className:"gap-2",children:[n.icon&&a.jsx(NA,{name:n.icon,className:"h-4 w-4",suspenseFallback:a.jsx("span",{className:"h-4 w-4"})}),u()]})})})}const Db={skills:.8,seniority:.1,workplace:.1},qBe=2;function b0(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9/#+.]+/g," ").trim()}const KV=[{canonical:"SAP S/4HANA",aliases:["s/4hana","s4hana","s/4 hana","sap s4"]},{canonical:"SAP FI",aliases:["sap fi","sap fico","sap fi/co"]},{canonical:"SAP CO",aliases:["sap co"]},{canonical:"SAP MM",aliases:["sap mm"]},{canonical:"SAP SD",aliases:["sap sd"]},{canonical:"SAP PP",aliases:["sap pp"]},{canonical:"SAP QM",aliases:["sap qm"]},{canonical:"SAP PM",aliases:["sap pm"]},{canonical:"SAP WM/EWM",aliases:["sap wm","sap ewm"]},{canonical:"SAP ABAP",aliases:["abap"]},{canonical:"SAP BTP",aliases:["sap btp","business technology platform"]},{canonical:"SAP Basis",aliases:["sap basis"]},{canonical:"SAP HANA",aliases:["sap hana","hana db"]},{canonical:"SAP Fiori",aliases:["fiori","sapui5","ui5"]},{canonical:"SAP SuccessFactors",aliases:["successfactors","sap sf"]},{canonical:"SAP Ariba",aliases:["ariba"]},{canonical:"SAP",aliases:["sap"]},{canonical:"Power BI",aliases:["power bi","powerbi"]},{canonical:"Python",aliases:["python"]},{canonical:"Java",aliases:["java"]},{canonical:"JavaScript",aliases:["javascript","js"]},{canonical:"TypeScript",aliases:["typescript"]},{canonical:"React",aliases:["react","react.js","reactjs"]},{canonical:"Node.js",aliases:["node.js","nodejs","node js"]},{canonical:"Angular",aliases:["angular"]},{canonical:"Vue.js",aliases:["vue","vue.js","vuejs"]},{canonical:".NET",aliases:[".net","dotnet","asp.net"]},{canonical:"C#",aliases:["c#","csharp"]},{canonical:"SQL",aliases:["sql","pl/sql","t-sql"]},{canonical:"AWS",aliases:["aws","amazon web services"]},{canonical:"Microsoft Azure",aliases:["azure"]},{canonical:"Google Cloud",aliases:["gcp","google cloud"]},{canonical:"Docker",aliases:["docker"]},{canonical:"Kubernetes",aliases:["kubernetes","k8s"]},{canonical:"Terraform",aliases:["terraform"]},{canonical:"DevOps",aliases:["devops"]},{canonical:"Linux",aliases:["linux"]},{canonical:"Cybersecurity",aliases:["cybersecurity","cyber security","seguranca da informacao","seguranca cibernetica","pentest","soc analyst"]},{canonical:"IA Generativa",aliases:["ia generativa","generative ai","genai","llm","chatgpt","copilot"]},{canonical:"Machine Learning",aliases:["machine learning","aprendizado de maquina","deep learning"]},{canonical:"Inteligência Artificial",aliases:["inteligencia artificial","artificial intelligence","ai engineer"]},{canonical:"Data Science",aliases:["data science","ciencia de dados","cientista de dados"]},{canonical:"Engenharia de Dados",aliases:["engenharia de dados","data engineer","etl","data pipeline"]},{canonical:"Databricks",aliases:["databricks"]},{canonical:"Snowflake",aliases:["snowflake"]},{canonical:"Excel",aliases:["excel"]},{canonical:"Scrum",aliases:["scrum","agil","agile"]},{canonical:"ITIL",aliases:["itil"]},{canonical:"COBIT",aliases:["cobit"]},{canonical:"Salesforce",aliases:["salesforce"]},{canonical:"Oracle",aliases:["oracle"]},{canonical:"Microsoft 365",aliases:["microsoft 365","office 365"]},{canonical:"Inglês",aliases:["ingles","english"]},{canonical:"Espanhol",aliases:["espanhol","spanish"]}],KBe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");KV.map(e=>({canonical:e.canonical,regexes:e.aliases.map(t=>new RegExp(`(?:^|[^a-z0-9])${KBe(b0(t))}(?:[^a-z0-9]|$)`))}));function pQe(){return KV.map(e=>e.canonical)}const GBe=864e5;function WBe(e,t){if(!e)return null;const r=Date.parse(e),n=Date.parse(t);return Number.isNaN(r)||Number.isNaN(n)?null:Math.max(0,(n-r)/GBe)}function YBe(e,t){const r=WBe(e,t);
1592return r===null?"antiga":r<=2?"nova":r<=7?"recente":r<=30?"ativa":"antiga"}const EI={estagio:0,junior:1,pleno:2,senior:3,especialista:4,gestao:4,unknown:-1};function XBe(e,t){const r=[...new Set(e.skills.map(f=>f.trim()).filter(Boolean))];if(r.length<qBe)return{score:null,matchedSkills:[],missingSkills:[],reasons:["perfil_incompleto"]};if(t.skills.length===0)return{score:null,matchedSkills:[],missingSkills:[],reasons:["vaga_sem_skills_extraidas"]};const n=new Set(r.map(b0)),s=t.skills.filter(f=>n.has(b0(f))),o=t.skills.filter(f=>!n.has(b0(f))),i=s.length/t.skills.length;let l=.5;if(e.seniority&&e.seniority!=="unknown"&&t.seniority!=="unknown"){const f=Math.abs(EI[e.seniority]-EI[t.seniority]);l=f===0?1:f===1?.6:.2}let c=.5;e.prefersRemote===!0?c=t.workplaceType==="remote"?1:t.workplaceType==="hybrid"?.6:.3:e.prefersRemote===!1&&(c=t.workplaceType==="onsite"||t.workplaceType==="hybrid"?1:.5);const u=Math.round(100*(i*Db.skills+l*Db.seniority+c*Db.workplace)),d=[];return s.length>0&&d.push("skills_compativeis"),o.length>0&&d.push("skills_faltantes"),{score:Math.max(0,Math.min(100,u)),matchedSkills:s,missingSkills:o,reasons:d}}function GV(e){return e.published_at??e.first_seen_at??null}function ZBe(e,t){return YBe(GV(e),t.toISOString())}function gQe(e){const t=lne(),r=e.filter(o=>{const i=o.first_seen_at;return i!==null&&i>=t.start&&i<=t.end}).length,n=new Set(e.map(o=>o.company.trim().toLowerCase())),s=e.filter(o=>o.remote===!0||o.workplace_type==="remote").length;return{newToday:r,companiesHiring:n.size,remoteJobs:s,topSkills:JBe(e).slice(0,4).map(({skill:o,count:i})=>({skill:o,count:i})),engineHasTodayData:r>0}}function JBe(e){const t=oN(7),r=oN(14),n=new Map;for(const s of e){const o=s.first_seen_at,i=o!==null&&o>=t.start,l=o!==null&&o>=r.start&&o<t.start;for(const c of s.skills??[]){const u=n.get(c)??{count:0,last7:0,previous7:0};u.count+=1,i&&(u.last7+=1),l&&(u.previous7+=1),n.set(c,u)}}return[...n.entries()].map(([s,o])=>({skill:s,...o,trend:o.previous7===0?null:o.last7>o.previous7?"up":o.last7<o.previous7?"down":"flat"})).sort((s,o)=>o.count-s.count||s.skill.localeCompare(o.skill))}function xQe(e){const t=new Map;for(const r of e){const n=r.company.trim();t.set(n,[...t.get(n)??[],r])}return[...t.entries()].map(([r,n])=>{const s=new Map;for(const o of n)for(const i of o.skills??[])s.set(i,(s.get(i)??0)+1);return{company:r,jobCount:n.length,topSkills:[...s.entries()].sort((o,i)=>i[1]-o[1]||o[0].localeCompare(i[0])).slice(0,3).map(([o])=>o),remoteCount:n.filter(o=>o.remote===!0).length}}).sort((r,n)=>n.jobCount-r.jobCount||r.company.localeCompare(n.company))}function eNe(e,t){return XBe({skills:e.skills,seniority:e.seniority,prefersRemote:e.prefersRemote},{skills:t.skills??[],seniority:t.seniority??"unknown",workplaceType:t.workplace_type??"unknown"})}function vQe(e,t){return t.map(r=>({job:r,match:eNe(e,r)})).filter(r=>r.match.score!==null).sort((r,n)=>(n.match.score??0)-(r.match.score??0)||(n.job.quality_score??0)-(r.job.quality_score??0)||(n.job.freshness_score??0)-(r.job.freshness_score??0))}const tNe={nova:{label:"Nova",className:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 border-emerald-500/30"},recente:{label:"Recente",className:"bg-sky-500/15 text-sky-600 dark:text-sky-400 border-sky-500/30"},ativa:{label:"Ainda ativa",className:"bg-muted text-muted-foreground border-border"},antiga:null},rNe={remote:"Remoto",hybrid:"HÃbrido",onsite:"Presencial"},nNe={estagio:"Estágio",junior:"Júnior",pleno:"Pleno",senior:"Sênior",especialista:"Especialista",gestao:"Gestão"};function aNe({job:e,match:t,saved:r,onToggleSave:n,now:s}){const o=tNe[ZBe(e,s)],i=GV(e),l=e.workplace_type?rNe[e.workplace_type]:null,c=e.seniority?nNe[e.seniority]:null,u=(e.skills??[]).slice(0,4),d=t?.score??null,f=fn();return a.jsx(us,{className:"group h-full flex flex-col rounded-2xl border-border/70 hover:border-orange-400/60 hover:shadow-lg transition-[border-color,box-shadow]",children:a.jsxs(ds,{className:"p-4 md:p-5 flex-1 flex flex-col gap-3",children:[a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[o&&a.jsx(Vt,{variant:"outline",className:je("text-[11px] font-semibold",o.className),children:o.label}),l&&a.jsx(Vt,{variant:"outline",className:"text-[11px]",children:l}),c&&a.jsx(Vt,{variant:"outline",className:"text-[11px]",children:c})]}),a.jsx("button",{type:"button","aria-label":r?"Remover vaga salva":"Salvar vaga",onClick:()=>n(e.id),className:"text-muted-foreground hover:text-primary transition-colors shrink-0",children:r?a.jsx(gz,{className:"w-5 h-5 text-primary"}):a.jsx(lT,{className:"w-5 h-5"})})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-base leading-snug line-clamp-2",children:e.title_canonical||e.t
1592itle}),a.jsxs("p",{className:"text-sm text-primary font-medium mt-1 flex items-center gap-1.5",children:[a.jsx(Ra,{className:"w-3.5 h-3.5 shrink-0"}),e.company]})]}),a.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(Sx,{className:"w-3.5 h-3.5 shrink-0"}),a.jsx("span",{className:"line-clamp-1",children:e.location})]}),i&&a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(Vr,{className:"w-3.5 h-3.5 shrink-0"}),a.jsxs("span",{children:[e.published_at?"Publicada ":"Vista ",vne(i)]})]})]}),u.length>0&&a.jsx("div",{className:"flex flex-wrap gap-1",children:u.map(h=>a.jsx("span",{className:"px-2 py-0.5 rounded-full bg-primary/10 text-primary text-[11px] font-medium",children:h},h))}),e.salary_range&&a.jsx("p",{className:"text-xs font-medium text-foreground",children:e.salary_range}),a.jsxs("div",{className:"mt-auto flex items-center justify-between gap-2 pt-1",children:[d!==null?a.jsxs("span",{className:je("text-sm font-bold",d>=75?"text-emerald-600 dark:text-emerald-400":d>=50?"text-amber-600 dark:text-amber-400":"text-muted-foreground"),children:[d,"% de aderência"]}):a.jsx("span",{className:"text-[11px] text-muted-foreground",children:e.source&&e.source!=="legado-manual"?`Fonte: ${e.source}`:""}),a.jsx(Oe,{asChild:!0,size:"sm",className:"shrink-0",children:a.jsx(Te,{to:`/vaga/${e.id}`,state:{jobsReturnTo:f.pathname+f.search},onClick:()=>{try{sessionStorage.setItem("t360.jobs.scroll",JSON.stringify({url:f.pathname+f.search,y:window.scrollY}))}catch{}},children:"Ver vaga completa"})})]})]})})}const sNe="id, title, title_canonical, company, location, salary_range, salary_min, salary_max, salary_currency, employment_type, created_at, published_at, first_seen_at, engine_status, skills, seniority, workplace_type, remote, city, state, quality_score, freshness_score, source, source_kind, verified_at",oNe=()=>J.from("public_job_previews");async function iNe(e,t){const r=[],n=new Set;let s;for(;;){t?.throwIfAborted();const o=await e(r.length,r.length+199);if(t?.throwIfAborted(),o.error)throw o.error;if(o.count===null||!Number.isSafeInteger(o.count)||o.count<0)throw new Error("Não foi possÃvel confirmar o total de vagas. Tente novamente.");if(s??=o.count,o.count!==s||s>1e5)throw new Error("A lista de vagas mudou durante a consulta. Atualize para tentar novamente.");const i=o.data??[];for(const l of i){if(n.has(l.id))throw new Error("A lista de vagas mudou durante a consulta. Atualize para tentar novamente.");n.add(l.id),r.push(l)}if(r.length===s)return r;if(i.length===0||r.length>s)throw new Error("A consulta de vagas retornou uma lista incompleta. Tente novamente.")}}const mA=J,WV="t360.job-intel.profile.v1",YV="t360.job-intel.saves.v1",BI=500,lNe=e=>{const t=e===void 0?void 0:Number.isFinite(e)?Math.max(1,Math.min(Math.trunc(e),BI)):BI;return jt({queryKey:["job-intel","active-jobs",t??"all"],queryFn:async({signal:r})=>{const n=()=>oNe().select(sNe,{count:"exact"}).eq("is_active",!0).eq("approval_status","approved").order("first_seen_at",{ascending:!1,nullsFirst:!1}).order("created_at",{ascending:!1}).order("id",{ascending:!0}).abortSignal(r);if(t===void 0)return iNe(async(i,l)=>{const c=await n().range(i,l);return{...c,data:c.data}},r);const{data:s,error:o}=await n().limit(t);if(o)throw o;return s??[]},staleTime:3e4,refetchInterval:6e4})},yQe=()=>jt({queryKey:["job-intel","categories"],queryFn:async()=>{const{data:e,error:t}=await J.from("categories").select("id, name").eq("approval_status","approved").order("name");if(t)throw t;return e??[]},staleTime:30*6e4});function cNe(){try{const e=localStorage.getItem(WV);if(!e)return{skills:[],seniority:null,prefersRemote:null};const t=JSON.parse(e);return{skills:Array.isArray(t.skills)?t.skills.filter(r=>typeof r=="string"):[],seniority:t.seniority??null,prefersRemote:typeof t.prefersRemote=="boolean"?t.prefersRemote:null}}catch{return{skills:[],seniority:null,prefersRemote:null}}}function bQe(){const[e,t]=A.useState(cNe),r=A.useCallback(n=>{t(n);try{localStorage.setItem(WV,JSON.stringify(n))}catch{}},[]);return{profile:e,saveProfile:r}}function uNe(){try{const e=localStorage.getItem(YV);return e?JSON.parse(e):[]}catch{return[]}}function dNe(){const e=vn(),[t,r]=A.useState(null);A.useEffect(()=>{J.auth.getUser().then(({data:o})=>r(o.user?.id??null))},[]);const n=jt({queryKey:["job-intel","saves",t],queryFn:async()=>
1592{if(!t)return uNe();const{data:o,error:i}=await mA.from("job_saves").select("job_id").eq("user_id",t);if(i)throw i;return(o??[]).map(l=>l.job_id)},staleTime:6e4}),s=Dr({mutationFn:async o=>{const i=n.data??[],l=i.includes(o);if(!t){const c=l?i.filter(u=>u!==o):[...i,o];try{localStorage.setItem(YV,JSON.stringify(c))}catch{}return c}if(l){const{error:c}=await mA.from("job_saves").delete().eq("user_id",t).eq("job_id",o);if(c)throw c}else{const{error:c}=await mA.from("job_saves").insert({user_id:t,job_id:o});if(c)throw c}return ANe(l?"unsave":"save",o),l?i.filter(c=>c!==o):[...i,o]},onSuccess:o=>{e.setQueryData(["job-intel","saves",t],o)}});return{savedIds:new Set(n.data??[]),toggleSave:o=>s.mutate(o)}}async function ANe(e,t,r){try{const{data:n}=await J.auth.getUser();if(!n.user)return;await mA.from("job_events").insert({user_id:n.user.id,job_id:t??null,event_type:e,metadata:r??{}})}catch{}}const wQe=()=>jt({queryKey:["job-intel","engine-monitor"],queryFn:async()=>{const{data:e,error:t}=await mA.rpc("get_job_engine_monitor");if(t)throw t;return e},staleTime:6e4,refetchInterval:5*6e4}),_Qe=()=>jt({queryKey:["job-intel","career-digest-monitor"],queryFn:async()=>{const{data:e,error:t}=await mA.rpc("get_career_job_digest_monitor");if(t)throw t;return e},staleTime:6e4,refetchInterval:5*6e4}),fNe=8,Kj=()=>{const{t:e}=mh(),{data:t=[],isLoading:r}=lNe(fNe),{savedIds:n,toggleSave:s}=dNe(),[o]=A.useState(()=>new Date);return r||t.length===0?null:a.jsx("section",{className:"py-8 md:py-12 bg-muted/30","aria-labelledby":"home-jobs-title",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-primary mb-2",children:"Oportunidades reais de mercado"}),a.jsx("h2",{id:"home-jobs-title",className:"text-3xl md:text-4xl font-bold mb-2",children:e("home.jobsTitle")}),a.jsx("p",{className:"text-lg text-muted-foreground",children:e("home.jobsSubtitle")}),a.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Atualizadas automaticamente a partir de fontes verificadas pelo Job Engine."})]}),a.jsx(uo,{items:t,itemWidth:"lg",getKey:i=>i.id,className:"mb-8",renderItem:i=>a.jsx(aNe,{job:i,saved:n.has(i.id),onToggleSave:s,now:o})}),a.jsx("div",{className:"text-center",children:a.jsx(fA,{location:"index_jobs_cta",fallback:a.jsx(Oe,{size:"lg",variant:"outline",asChild:!0,children:a.jsx(Te,{to:"/vagas",children:"Ver todas as vagas"})})})})]})})},NI="/assets/banner-bg-tech-DPvCHqDj.jpg";function mNe(){return a.jsx("div",{className:"relative w-full h-[280px] sm:h-[320px] md:h-[400px] lg:h-[450px] bg-gradient-to-r from-muted via-muted/50 to-muted animate-pulse overflow-hidden",children:a.jsx("div",{className:"container mx-auto px-4 h-full flex items-center",children:a.jsxs("div",{className:"space-y-3 sm:space-y-4 max-w-xs sm:max-w-md md:max-w-xl",children:[a.jsx("div",{className:"h-8 sm:h-10 md:h-14 lg:h-16 bg-muted-foreground/10 rounded-lg w-3/4 animate-pulse"}),a.jsx("div",{className:"h-4 sm:h-5 md:h-7 lg:h-8 bg-muted-foreground/10 rounded-lg w-1/2 animate-pulse"}),a.jsx("div",{className:"h-10 sm:h-11 md:h-12 bg-muted-foreground/10 rounded-lg w-32 animate-pulse"})]})})})}function Gj(){const[e,t]=A.useState(0),[r,n]=A.useState(!1),[s,o]=A.useState(()=>typeof window<"u"?window.innerWidth<768:!1);A.useEffect(()=>{const E=()=>{n(document.documentElement.classList.contains("dark"))};E();const O=new MutationObserver(E);return O.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>O.disconnect()},[]),A.useEffect(()=>{const E=()=>{o(window.innerWidth<768)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]);const{data:i,isLoading:l}=jt({queryKey:["active-banners"],queryFn:async()=>{const E=new Date().toISOString(),{data:O,error:k}=await J.from("banners").select("*").eq("is_active",!0).or("apply_to_all_pages.eq.true,page_type.eq.home").or(`scheduled_start.is.null,scheduled_start.lte.${E}`).or(`scheduled_end.is.null,scheduled_end.gte.${E}`).order("display_order").limit(5);if(k)throw k;return O},staleTime:1e3*30});A.useEffect(()=>{},[i]);const c=E=>{i&&t(E)},u=()=>{i&&t(E=>(E-1+i.length)%i.length)},d=()=>{i&&t(E=>(E+1)%i.length)};if(l||!i||i.length===0)return a.jsx(mNe,{});const f=i[Math.min(e,i.length-1)],h=E=>E.image_url_mobile&&E.image_url_mobile!==E.image_url&&E.image_url_mobile.length>0,m=E=>E.image_url_mobile_dark&&E.image_url_mobile_dark!==E.image_url_dark&&E.image_url_mobile_dark!==E.image_url&&E.image_url_mobile_dark.length>0,g=E=>s?r&&m(E)?E.image_url_mobile_dark:h(E)?E.image_url_mobile:r&&E.image_url_dark?E.image_url_dark:E.image_url||NI:r&&E.image_url_dark?E.image_url_dark:E.image_url||NI,p=()=>{const E=f?.height_px||500;return s?f?.mobile_height_px?f.mobile_height_px:h(f)?Math.max(400,Math.round(E*1)):Math.max(280,Math.round(E*.7)):E},x=()=>s&&h(f)?"object-contain":"object-cover",y=E=>{const O=(s?E.mobile_focal_point_x:E.focal_point_x)??50,k=(s?E.mobile_focal_point_y:E.focal_point_y)??50;return`${O}
1592% ${k}%`},b=E=>r&&E.title_color_dark?E.title_color_dark:E.title_color||"#ffffff",j=E=>r&&E.subtitle_color_dark?E.subtitle_color_dark:E.subtitle_color||"#e5e7eb",C=()=>{const E=f.cta_position||"left-center",[O,k]=E.split("-"),D={top:"items-start",center:"items-center",bottom:"items-end"}[k]||"items-center",H={left:"justify-start",center:"justify-center",right:"justify-end"}[O]||"justify-start";return`${D} ${H}`},T=()=>{const E=f.cta_position||"left-center",[O]=E.split("-");return{left:"text-left items-start",center:"text-center items-center",right:"text-right items-end"}[O]||"text-left items-start"},L=s&&h(f),P={willChange:"transform",imageRendering:"-webkit-optimize-contrast",backfaceVisibility:"hidden",transform:"translateZ(0)",objectPosition:y(f),backgroundColor:s&&h(f)?"hsl(var(--background))":void 0},I=L?"block w-full h-auto":`w-full h-full ${x()} transition-transform duration-300`;return a.jsxs("section",{className:`relative w-full overflow-hidden bg-muted/30 transition-all duration-300 mx-auto ${L?"":"min-h-[280px] md:min-h-[400px]"}`,style:{height:L?void 0:`${p()}px`,maxWidth:f.width_px?`${f.width_px}px`:"100%"},"aria-live":"polite","aria-atomic":"true",children:[f.cta_link?a.jsx(Te,{to:f.cta_link,className:L?"block w-full cursor-pointer":"absolute inset-0 z-[15] cursor-pointer","aria-label":f.title,children:a.jsx("img",{src:g(f),alt:f.title,loading:"eager",decoding:"sync",className:I,style:P})}):a.jsx("img",{src:g(f),alt:f.title,loading:"eager",decoding:"sync",className:L?"block w-full h-auto":`absolute inset-0 w-full h-full ${x()} transition-transform duration-300`,style:P}),!L&&a.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none",style:{background:`linear-gradient(to right, rgba(0,0,0,${(f.overlay_opacity||60)/100}) 0%, rgba(0,0,0,${(f.overlay_opacity||60)/200}) 50%, transparent 100%)`}}),f.show_text_overlay&&!L&&a.jsx("div",{className:`absolute inset-0 z-[16] pointer-events-none flex ${C()}`,children:a.jsx("div",{className:"container mx-auto px-4 py-6 md:py-10 flex",children:a.jsx("div",{className:`w-full flex ${C()}`,children:a.jsxs("div",{className:`max-w-xl flex flex-col gap-2 md:gap-3 ${T()}`,children:[f.badge_text&&a.jsx("span",{className:"inline-block w-fit bg-primary text-primary-foreground text-xs md:text-sm font-semibold px-3 py-1 rounded-full",children:f.badge_text}),a.jsx("h2",{className:`${f.title_size||"text-3xl md:text-5xl"} ${f.title_font||"font-bold"} drop-shadow-md`,style:{color:b(f)},children:f.title}),f.subtitle&&a.jsx("p",{className:`${f.subtitle_size||"text-lg md:text-xl"} ${f.subtitle_font||"font-normal"} drop-shadow`,style:{color:j(f)},children:f.subtitle}),f.cta_text&&f.cta_link&&a.jsx(Oe,{asChild:!0,size:"lg",className:"pointer-events-auto w-fit mt-1 md:mt-2",children:a.jsx(Te,{to:f.cta_link,children:f.cta_text})})]})})})}),i.length>1&&a.jsxs(a.Fragment,{children:[a.jsx("button",{onClick:u,className:"absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-20 bg-background/70 hover:bg-background p-1.5 sm:p-2 rounded-full transition-all backdrop-blur-sm shadow-md","aria-label":"Banner anterior",children:a.jsx(Jd,{className:"h-4 w-4 sm:h-6 sm:w-6"})}),a.jsx("button",{onClick:d,className:"absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-20 bg-background/70 hover:bg-background p-1.5 sm:p-2 rounded-full transition-all backdrop-blur-sm shadow-md","aria-label":"Próximo banner",children:a.jsx(Vs,{className:"h-4 w-4 sm:h-6 sm:w-6"})}),a.jsx("div",{className:"absolute bottom-3 sm:bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-1.5 sm:gap-2",children:i.map((E,O)=>a.jsx("button",{onClick:()=>c(O),className:"grid h-6 w-6 place-items-center rounded-full bg-transparent","aria-label":`Ir para banner ${O+1}`,children:a.jsx("span",{className:`block h-2 w-2 rounded-full shadow-sm transition-all sm:h-2.5 sm:w-2.5 ${O===e?"bg-primary scale-125":"bg-background/60"}`})},O))})]})]})}const hNe={curso:{label:"Curso",icon:Mn,color:"text-blue-500"},formacao:{label:"Formação",icon:xh,color:"text-purple-500"},categoria:{label:"Categoria",icon:vT,color:"text-amber-500"},certificacao:{label:"Certificação",icon:kn,color:"text-emerald-500"}},pNe=["SAP","Power BI","Cyber Security","ITIL","Cloud","IA"];function Wj(){const e=jl(),{searchTerm:t,setSearchTerm:r,results:n,isLoading:s,hasResults:o,logSearch:i}=NQ(),[l,c]=A.useState(!1),[u,d]=A.useState(-1),f=A.useRef(null),h=A.useRef(null);A.useEffect(()=>{const y=b=>{f.current&&!f.current.contains(b.target)&&c(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),A.useEffect(()=>{d(-1)},[n]);const m=A.useCallback(y=>{switch(i(t,n.length),c(!1),r(""),y.type){case"curso":e(`/curso/${y.slug}`);break;case"formacao":e(`/formacoes/${y.slug}`);break;case"categoria":e(`/cursos/${y.slug}`);break;default:e(`/busca?q=${encodeURIComponent(y.title)}`)}},[e,t,n.length,i,r]),g=A.useCallback(()=>{u>=0&&n[u]?m(n[u]):t.trim().length>=2&&(i(t,n.length),c(!1),e(`/busca?q=${encodeURIComponent(t.trim())}`),r(""))},[u,n,t,e,i,r,m]),p=y=>{y.key==="ArrowDown"?(y.preventDefault(),d(b=>Math.min(b+1,n.length-1))):y.key==="ArrowUp"?(y.preventDefault(),d(b=>Math.max(b-1,-1))):y.key==="Enter"?(y.preventDefault(),g()):y.key==="Escape"&&(c(!1),h.current?.blur())},x=l&&(t.length>=2||t.length===0);return a.jsx("section",{className:"py-6 md:py-10 bg-gradient-to-b from-background to-muted/30",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsxs("div",{className:"max-w-[800px] mx-auto text-center",children:[a.jsx("h2",{className:"text-lg md:text-xl font-semibold mb-3 text-foreground",children:"Encontre seu curso ou formação ideal"}),a.jsxs("div",{ref:f,className:"relative",children:[a.jsxs("div",{className:"relative flex items-center bg-card border-2 border-border hover:border-primary/50 focus-within:border-primary rounded-xl shadow-lg transition-all",children:[a.jsx(vc,{className:"absolute left-4 w-5 h-5 text-muted-foreground pointer-events-none"}),a.jsx("input",{ref:h,type:"text",value:t,onChange:y=>{r(y.target.value),c(!0)},onFocus:()=>c(!0),onKeyDown:p,placeholder:"Buscar cursos, formações ou tecnologias (SAP, Power BI, IA...)",className:"w-full h-[56px] md:h-[60px] pl-12 pr-24 bg-transparent text-base md:text-lg text-foreground placeholder:text-muted-foreground focus:outline-none rounded-xl",autoComplete:"off"}),t&&a.jsx("button",{type:"button","aria-label":"Limpar busca",onClick:()=>{r(""),h.current?.focus()},className:"absolute right-20 p-1 text-muted-foreground hover:text-foreground transition-colors",children:a.jsx(Ua,{className:"w-4 h-4","aria-hidden":"true"})}),a.jsxs("button",{onClick:g,className:"absolute right-2 h-10 px-5 bg-primary hover:bg-primary/90 text-primary-foreground rounded-lg font-medium text-sm transition-colors flex items-center gap-1.5",children:["Buscar",a.jsx(_r,{className:"w-4 h-4"})]})]}),x&&a.jsxs("div",{className:"absolute z-50 w-full mt-2 bg-card border border-border rounded-xl shadow-2xl overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200",children:[o&&t.length>=2&&a.jsxs("div",{className:"py-2 max-h-[400px] overflow-y-auto",children:[n.map((y,b)=>{const j=hNe[y.type],C=j.icon;return a.jsxs("button",{onClick:()=>m(y),onMouseEnter:()=>d(b),className:je("w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent/50 transition-colors",u===b&&"bg-accent/50"),children:[a.jsx("div",{className:je("flex-shrink-0 w-9 h-9 rounded-lg bg-muted flex items-center justify-center",j.color),children:a.jsx(C,{className:"w-4 h-4"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:y.title}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx("span",{className:"font-medium",children:j.label}),y.category&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"â¢"}),a.jsx("span",{children:y.category})]}),y.has_upcoming_cohort&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"â¢"}),a.jsx("span",{className:"text-emerald-500 font-medium",children:"Turma aberta"})]})]})]}),a.jsx(_r,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"})]},`${y.type}-${y.id}`)}),a.jsxs("button",{onClick:g,className:"w-full flex items-center justify-center gap-2 px-4 py-3 text-sm font-medium text-primary hover:bg-accent/30 transition-colors border-t border-border",children:['Ver todos os resultados para "',t,'"',a.jsx(_r,{className:"w-4 h-4"})]})]}),!o&&t.length>=2&&!s&&a.jsxs("div",{className:"py-8 text-center",children:[a.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:['Nenhum resultado para "',a.jsx("strong",{children:t}),'"']}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Tente termos como SAP, Power BI, Cloud ou IA"})]}),t.length<2&&a.jsxs("div",{className:"p-4",children:[a.jsxs("p",{className:"text-xs font-semibold text-muted-foreground mb-3 flex items-center gap-1.5",children:[a.jsx(ls,{className:"w-3.5 h-3.5"}),"Buscas populares"]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:pNe.map(y=>a.jsx("button",{onClick:()=>{r(y),c(!0)},className:"px-3 py-1.5 text-sm bg-muted hover:bg-accent/50 text-foreground rounded-full transition-colors",children:y},y))})]}),s&&a.jsx("div",{className:"py-6 text-center",children:a.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-primary border-t-transparent mx-auto"})})]})]})]})})})}const ns=({children:e,fallback:t,rootMargin:r="300px",minHeight:n="200px",className:s})=>{const o=A.useRef(null),[i,l]=A.useState(!1);return A.useEffect(()=>{const c=o.current;if(!c)return;
1592const u=new IntersectionObserver(([d])=>{d.isIntersecting&&(l(!0),u.disconnect())},{rootMargin:r});return u.observe(c),()=>u.disconnect()},[r]),i?a.jsx("div",{className:s,children:e}):a.jsx("div",{ref:o,className:s,style:{minHeight:n},children:t||null})},Yj=()=>{const{data:e,isLoading:t}=jt({queryKey:["free-courses-top"],queryFn:async()=>{const{data:r,error:n}=await J.from("free_courses").select("*").eq("is_active",!0).order("views_count",{ascending:!1}).limit(10);if(n)throw n;return r}});return t||!e||e.length===0?null:a.jsx("div",{className:"w-full py-8",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("h2",{className:"text-2xl font-bold mb-6 text-foreground",children:"Aulas Gratuitas Mais Assistidas"}),a.jsx(uo,{items:e,itemWidth:"sm",getKey:r=>r.id,renderItem:r=>a.jsxs(Te,{to:`/aulas-gratuitas/${r.id}`,className:"group block",children:[a.jsxs("div",{className:"relative aspect-video rounded-lg overflow-hidden bg-muted",children:[a.jsx("img",{src:r.thumbnail_url||`https://img.youtube.com/vi/${r.youtube_video_id}/maxresdefault.jpg`,alt:r.title,className:"w-full h-full object-cover transition-transform group-hover:scale-105",loading:"lazy"}),a.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:a.jsx(Pm,{className:"w-12 h-12 text-white",fill:"white"})})]}),a.jsx("h3",{className:"mt-2 text-sm font-medium line-clamp-2 text-foreground group-hover:text-primary transition-colors",children:r.title})]})})]})})},XV=()=>{const{data:e}=jt({queryKey:["digital-category"],queryFn:async()=>{const{data:n,error:s}=await J.from("categories").select("*").eq("slug","cursos-digitais").eq("approval_status","approved").single();if(s)throw s;return n}}),{data:t,isLoading:r}=jt({queryKey:["digital-courses-featured",e?.id],queryFn:async()=>{if(!e?.id)return[];const{data:n,error:s}=await J.from("courses").select(` 1593 *, 1594 course_labels ( 1595 label_id, 1596 labels (*) 1597 ) 1598 `).eq("category_id",e.id).eq("approval_status","approved").order("priority",{ascending:!1}).limit(12);if(s)throw s;return n},enabled:!!e?.id});return r?a.jsx("section",{className:"py-12 bg-muted/30",children:a.jsx("div",{className:"container",children:a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[...Array(4)].map((n,s)=>a.jsx(DV,{},s))})})}):!t||t.length===0?null:a.jsx("section",{className:"py-12 bg-muted/30",children:a.jsxs("div",{className:"container",children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"text-3xl font-bold mb-2",children:"Cursos Digitais"}),a.jsx("p",{className:"text-muted-foreground",children:"Cursos 100% online com certificação e suporte especializado"})]}),a.jsx(uo,{items:t,itemWidth:"md",getKey:n=>n.id,renderItem:n=>a.jsx(sp,{course:{...n,labels:n.course_labels?.map(s=>s.labels)||[],has_certification:!!n.has_certification},settings:Xo.card})})]})})},gNe=({onSubmit:e,loading:t,courseTitle:r})=>{const[n,s]=A.useState({name:"",email:"",whatsapp:""}),o=i=>{i.preventDefault();const l=n.email.trim(),c=n.whatsapp.replace(/\D/g,"");if(!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(l)){et.error("Informe um e-mail válido para receber o resultado.");return}if(c.length<10){et.error("Informe um WhatsApp válido com DDD.");return}e({...n,email:l})};return a.jsxs(a.Fragment,{children:[a.jsx("style",{children:eh}),a.jsxs(Ks,{children:[a.jsx("div",{className:"flex items-center justify-center mb-4",children:a.jsx("div",{className:"bg-cyan-400/10 p-4 rounded-full border border-cyan-400/20",children:a.jsx(Mn,{className:"h-12 w-12 text-cyan-400"})})}),a.jsx(Va,{className:"text-2xl text-center text-white",children:"Simulado de Conhecimento"}),a.jsxs(Po,{className:"text-center text-white/50",children:["Teste seus conhecimentos sobre ",a.jsx("strong",{className:"text-cyan-300",children:r}),a.jsx("br",{}),"São 20 perguntas de nÃvel básico. Vamos começar!"]})]}),a.jsxs("form",{onSubmit:o,className:"space-y-4 mt-4",children:[a.jsxs("div",{children:[a.jsx($t,{htmlFor:"name",className:Rt.label,children:"Nome Completo"}),a.jsx(Jt,{id:"name",required:!0,value:n.name,onChange:i=>s({...n,name:i.target.value}),placeholder:"Seu nome",className:Rt.input})]}),a.jsxs("div",{children:[a.jsx($t,{htmlFor:"email",className:Rt.label,children:"E-mail"}),a.jsx(Jt,{id:"email",type:"email",required:!0,value:n.email,onChange:i=>s({...n,email:i.target.value}),placeholder:"[email protected]",className:Rt.input})]}),a.jsxs("div",{children:[a.jsx($t,{htmlFor:"whatsapp",className:Rt.label,children:"WhatsApp"}),a.jsx(Jt,{id:"whatsapp",required:!0,value:n.whatsapp,onChange:i=>s({...n,whatsapp:i.target.value}),placeholder:"(00) 00000-0000",className:Rt.input})]}),a.jsxs(Oe,{type:"submit",className:Rt.button,size:"lg",disabled:t,children:[t?a.jsxs(a.Fragment,{children:[a.jsx($r,{className:"mr-2 h-4 w-4 animate-spin"}),"Gerando perguntas..."]}):"Iniciar Simulado",a.jsx("span",{className:"absolute top-0 w-[20%] h-full bg-gradient-to-r from-transparent via-white/20 to-transparent pointer-events-none",style:{animation:"cinematic-lens-flare 3s ease-in-out infinite"}})]})]})]})},xNe=({question:e,questionNumber:t,totalQuestions:r,onAnswer:n,show
1598Feedback:s=!1,explanation:o})=>{const[i,l]=A.useState(null),[c,u]=A.useState(!1),d=e.correctAnswer,f=c&&i===d,h=()=>{if(i!==null){if(s&&!c){u(!0);return}n(i),l(null),u(!1)}},m=(t-1)/r*100,g=p=>c?p===d?"border-green-600 bg-green-50 dark:bg-green-950/30":p===i?"border-red-600 bg-red-50 dark:bg-red-950/30":"border-border opacity-60":i===p?"border-primary bg-primary/10":"border-border hover:border-primary/50";return a.jsxs(a.Fragment,{children:[a.jsxs(Ks,{children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground",children:[a.jsxs("span",{children:["Questão ",t," de ",r]}),a.jsxs("span",{children:[Math.round(m),"% concluÃdo"]})]}),a.jsx(Sv,{value:m,className:"h-2"})]}),a.jsx(Va,{className:"text-xl mt-4",children:e.question})]}),a.jsx("div",{className:"space-y-3 mt-6",children:e.options.map((p,x)=>a.jsx("button",{onClick:()=>!c&&l(x),disabled:c,className:`w-full p-4 text-left rounded-lg border-2 transition-all ${g(x)}`,children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsxs("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center flex-shrink-0 ${i===x&&!c?"border-primary bg-primary text-primary-foreground":"border-border"}`,children:[i===x&&!c&&"â",c&&x===d&&a.jsx(ss,{className:"h-4 w-4 text-green-600"}),c&&x===i&&x!==d&&a.jsx(B2,{className:"h-4 w-4 text-red-600"})]}),a.jsx("span",{className:"flex-1",children:p})]})},x))}),s&&c&&a.jsxs("div",{className:`mt-4 p-4 rounded-lg border ${f?"border-green-600 bg-green-50 dark:bg-green-950/20":"border-red-600 bg-red-50 dark:bg-red-950/20"}`,children:[a.jsx("p",{className:`font-semibold ${f?"text-green-700 dark:text-green-400":"text-red-700 dark:text-red-400"}`,children:f?"Correto!":a.jsxs(a.Fragment,{children:["Incorreto. Resposta certa: ",a.jsx("strong",{children:e.options[d]})]})}),o&&a.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:o})]}),a.jsx(Oe,{onClick:h,disabled:i===null,className:"w-full mt-6",size:"lg",children:s&&!c?"Confirmar resposta":t===r?"Finalizar":"Próxima Questão"})]})},vNe=({score:e,totalQuestions:t,passed:r,courseTitle:n,onTryAgain:s,onClose:o,pointsEarned:i})=>{const l=Math.round(e/t*100),c=100,u=i??(r?c:Math.floor(c*.5));return a.jsxs(a.Fragment,{children:[a.jsxs(Ks,{children:[a.jsx("div",{className:"flex items-center justify-center mb-4",children:a.jsx("div",{className:`p-6 rounded-full ${r?"bg-green-100":"bg-red-100"}`,children:r?a.jsx(fl,{className:"h-16 w-16 text-green-600"}):a.jsx(B2,{className:"h-16 w-16 text-red-600"})})}),a.jsx(Va,{className:"text-3xl text-center",children:r?"Parabéns! ð":"Tente Novamente! ðª"}),a.jsx(Po,{className:"text-center text-lg",children:r?`Você demonstrou conhecimento básico em ${n}!`:"Continue estudando e tente novamente!"})]}),a.jsxs("div",{className:"mt-6 space-y-4",children:[a.jsxs("div",{className:"text-center",children:[a.jsxs("div",{className:"text-6xl font-bold text-primary mb-2",children:[e,"/",t]}),a.jsxs("div",{className:"text-xl text-muted-foreground",children:[l,"% de acerto"]})]}),a.jsxs("div",{className:`p-4 rounded-lg ${r?"bg-green-50 dark:bg-green-950":"bg-yellow-50 dark:bg-yellow-950"} border-2 ${r?"border-green-200 dark:border-green-800":"border-yellow-200 dark:border-yellow-800"}`,children:[a.jsx("p",{className:`text-center font-medium mb-2 ${r?"text-green-900 dark:text-green-100":"text-yellow-900 dark:text-yellow-100"}`,children:r?"â
Você tem o conhecimento básico necessário para este curso!":"ðª Continue estudando! Você está no caminho certo."}),a.jsxs("p",{className:`text-center text-sm font-semibold ${r?"text-green-700 dark:text-green-300":"text-yellow-700 dark:text-yellow-300"}`,children:["ð Você ganhou ",u," pontos!",!r&&" (incentivo para continuar)"]})]}),a.jsxs("div",{className:"space-y-2 pt-4",children:[!r&&a.jsxs(Oe,{onClick:s,variant:"outline",className:"w-full",size:"lg",children:[a.jsx(xc,{className:"mr-2 h-4 w-4"}),"Tentar Novamente"]}),a.jsx(Oe,{onClick:o,className:"w-full",size:"lg",children:r?"Ver Curso":"Fechar"})]})]})]})},yNe={1:"Iniciante",2:"Aprendiz",3:"Estudante",4:"Intermediário",5:"Avançado",6:"Especialista",7:"Expert",8:"Mestre",9:"Grão-Mestre",10:"Lenda"},bNe=e=>yNe[Math.min(e,10)]||`NÃvel ${e}`,CQe=e=>bNe(Math.min(e+1,10));function jQe(){const{user:e}=Zn();return jt({queryKey:["gamification-profile",e?.id],queryFn:async()=>
1598{if(!e?.id)return null;const{data:t,error:r}=await J.from("student_gamification_profile").select("*").eq("student_id",e.id).maybeSingle();return r?(console.error("[Gamification] Profile error:",r),null):t},enabled:!!e?.id,staleTime:3e4})}function EQe(e=50){const{user:t}=Zn();return jt({queryKey:["gamification-events",t?.id,e],queryFn:async()=>{if(!t?.id)return[];const{data:r,error:n}=await J.from("gamification_events").select("*").eq("student_id",t.id).order("event_date",{ascending:!1}).limit(e);return n?(console.error("[Gamification] Events error:",n),[]):r||[]},enabled:!!t?.id,staleTime:3e4})}function BQe(){const{user:e}=Zn();return jt({queryKey:["gamification-badges",e?.id],queryFn:async()=>{if(!e?.id)return{earned:[],definitions:[]};const[t,r]=await Promise.all([J.from("student_badges").select("*").eq("student_id",e.id).order("earned_at",{ascending:!1}),J.from("badge_definitions").select("*").eq("is_active",!0).order("condition_value",{ascending:!0})]);return{earned:t.data||[],definitions:r.data||[]}},enabled:!!e?.id,staleTime:6e4})}function NQe(){return jt({queryKey:["gamification-rules"],queryFn:async()=>{const{data:e,error:t}=await J.from("gamification_rules").select("*").eq("is_active",!0).order("points",{ascending:!1});return t?[]:e||[]},staleTime:5*6e4})}function wNe(){const{user:e}=Zn(),t=vn();return Dr({mutationFn:async r=>
1598{if(!e?.id)throw new Error("Not authenticated");const{data:n,error:s}=await J.rpc("process_gamification_event",{p_student_id:e.id,p_event_type:r.eventType,p_entity_type:r.entityType||null,p_entity_id:r.entityId||null,p_course_id:r.courseId||null,p_lesson_id:r.lessonId||null,p_session_id:r.sessionId||null,p_metadata:r.metadata||{}});if(s)throw s;return n},onSuccess:r=>{t.invalidateQueries({queryKey:["gamification-profile"]}),t.invalidateQueries({queryKey:["gamification-events"]}),t.invalidateQueries({queryKey:["gamification-badges"]}),r?.success&&r?.points_awarded>0&&et.success(`+${r.points_awarded} pontos!`,{duration:2e3}),r?.badges_earned?.length>0&&r.badges_earned.forEach(n=>{et.success(`ð Nova conquista: ${n}!`,{duration:4e3})})},onError:r=>{console.error("[Gamification] Dispatch error:",r)}})}function SQe(){const{user:e}=Zn();return jt({queryKey:["academic-progress",e?.id],queryFn:async()=>{if(!e?.id)return null;const[t,r]=await Promise.all([J.from("course_enrollments").select("course_id").eq("user_id",e.id).not("status","eq","cancelled"),J.from("cohort_enrollments").select("cohort_id, cohorts(course_id)").eq("user_id",e.id).eq("status","active")]),n=t.data?.map(k=>k.course_id)||[],s=r.data?.map(k=>k.cohorts?.course_id).filter(Boolean)||[],o=[...new Set([...n,...s])],i=r.data?.map(k=>k.cohort_id).filter(Boolean)||[];if(o.length===0)return{lessonsCompleted:0,lessonsTotal:0,exercisesCompleted:0,exercisesTotal:0,quizzesCompleted:0,quizzesTotal:0,attendances:0,attendancesTotal:0,certificates:0,certificatesTotal:Math.max(o.length,1),overallProgress:0};const[l,c,u]=await Promise.all([J.from("course_lessons").select("id").in("course_id",o),J.from("lesson_exercises").select("id",{count:"exact",head:!0}).in("lesson_id",(await J.from("course_lessons").select("id").in("course_id",o)).data?.map(k=>k.id)||[]),i.length>0?J.from("live_sessions").select("id",{count:"exact",head:!0}).in("cohort_id",i):Promise.resolve({count:0})]),[d,f,h,m,g]=await Promise.all([J.from("lesson_progress").select("id").eq("user_id",e.id).eq("completed",!0),J.from("lesson_exercise_attempts").select("lesson_exercise_id, score, lesson_exercises!inner(passing_score)").eq("user_id",e.id),J.from("course_quiz_attempts").select("id").eq("participant_email",e.email).eq("passed",!0),J.from("session_attendances").select("id").eq("user_id",e.id),J.from("certificates").select("id").eq("user_id",e.id)]),p=l.data?.length||0,x=d.data?.length||0,y=c.count||0,j=new Set((f.data||[]).filter(k=>(k.score||0)>=(k.lesson_exercises?.passing_score||70)).map(k=>k.lesson_exercise_id)).size,C=Math.max(1,Math.ceil(p/5)),T=h.data?.length||0,L=u.count||0,P=m.data?.length||0,I=Math.max(o.length,1),E=g.data?.length||0,O=Math.min(100,Math.round(Math.min(x/Math.max(p,1),1)*35+Math.min(j/Math.max(y,1),1)*20+Math.min(T/Math.max(C,1),1)*20+Math.min(P/Math.max(L,1),1)*15+Math.min(E/Math.max(I,1),1)*10));return{lessonsCompleted:x,lessonsTotal:Math.max(p,1),exercisesCompleted:j,exercisesTotal:Math.max(y,1),quizzesCompleted:T,quizzesTotal:Math.max(C,1),attendances:P,attendancesTotal:Math.max(L,1),certificates:E,certificatesTotal:I,overallProgress:O}},enabled:!!e?.id,staleTime:6e4})}const SI=e=>e.map(t=>({question:t.question,options:t.options,correctAnswer:t.correctAnswer??t.correct_answer??0})),kI=async e=>{const{data:t,error:r}=await J.from("course_quiz_cache").select("questions").eq("category_id",e).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(r)throw r;if(t?.questions&&t.questions.length>0)return SI(t.questions);const{error:n}=await J.functions.invoke("generate-quiz-questions",{body:{categoryId:e}});if(n)throw new Error(n.message||"Erro ao gerar simulado");const{data:s,error:o}=await J.from("course_quiz_cache").select("questions").eq("category_id",e).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(o)throw o;if(!s?.questions||s.questions.length===0)throw new Error("Falha ao gerar o simulado. Tente novamente.");return SI(s.questions)},_Ne=({open:e,onOpenChange:t,categoryId:r,categoryName:n})=>{const{user:s}=Zn(),o=!!s,i=wNe(),[l,c]=A.useState(o?"loading":"form"),[u,d]=A.useState(!1),[f,h]=A.useState({name:"",email:"",whatsapp:""}),[m,g]=A.useState([]),[p,x]=A.useState(0),[y,b]=A.useState([]),[j,C]=A.useState(0),[T,L]=A.useState(!1),[P,I]=A.useState(!1),[E,O]=A.useState(null),{toast:k}=hh(),{config:D,shouldShowPopup:H}=xj();A.useEffect(()=>{e&&o&&l==="loading"&&U()},[e,o,l]);const U=async()=>{L(!0);try{const{data:S}=await J.from("course_quiz_cache").select("id").eq("category_id",r).limit(1).maybeSingle();S||d(!0);const Q=await kI(r);g(Q),c("quiz")}catch(S){console.error("Erro ao carregar quiz:",S),k({title:"Erro",description:"Não foi possÃvel carregar o simulado. Tente novamente.",variant:"destructive"}),t(!1)}finally{L(!1),d(!1)}},ee=async S=>{h(S),L(!0);try{const Q=await cj(S.email,S.whatsapp),{data:z,error:W}=await J.functions.invoke("submit-public-lead",{body:{name:S.name,email:S.email,whatsapp:S.whatsapp,course_title:`Quiz - ${n}`,source:"simulado",lead_type:"pf",interest:"imediato",page_url:window.location.href,form_name:"Quiz Categoria "+n,...Q}});if(W){console.error("Erro ao salvar lead:",W),et.error("Não conseguimos registrar seus dados. Tente novamente.",{action:{label:"Tentar de novo",onClick:()=>ee(S)}});return}
1598z?.leadId&&O(z.leadId),Ju("generate_lead",{content_name:n,form_name:"quiz_simulado",source:"simulado",page_path:window.location.pathname,event_id:Q.event_id});const ne=await kI(r);g(ne),c("quiz")}catch(Q){console.error("Erro ao gerar perguntas:",Q),k({title:"Erro",description:"Não foi possÃvel gerar as perguntas. Tente novamente.",variant:"destructive"})}finally{L(!1)}},ae=S=>{const Q=[...y,S];b(Q),m[p].correctAnswer===S&&C(j+1),p<m.length-1?x(p+1):V(Q)},V=async S=>{const Q=S.reduce((te,fe,pe)=>te+(m[pe].correctAnswer===fe?1:0),0),z=Math.round(Q/m.length*100),W=z>=70,ne=100,X=W?ne:Math.floor(ne*.5);try{const te={participant_name:o?s.user_metadata?.full_name||s.email:f.name,participant_email:o?s.email:f.email,participant_whatsapp:o?"":f.whatsapp,score:z,total_questions:m.length,passed:W,questions_data:m,answers_data:S,points_earned:X,category_id:r};o&&(te.user_id=s.id),await J.from("course_quiz_attempts").insert(te),o&&W&&(i.mutate({eventType:"quiz_passed",entityType:"quiz",entityId:r,metadata:{score:Q,total:m.length}}),Q===m.length&&i.mutate({eventType:"quiz_perfect_score",entityType:"quiz",entityId:r}))}catch(te){console.error("Erro ao salvar resultado:",te)}if(!o&&E)try{await J.functions.invoke("record-quiz-lead-score",{body:{leadId:E,score:Q,totalQuestions:m.length,passed:W,courseTitle:n,entityType:"category",entityId:r}})}catch(te){console.warn("[CategoryQuizModal] record-quiz-lead-score falhou:",te)}C(Q),c("result")},q=()=>{c(o?"loading":"form"),x(0),b([]),C(0),g([]),h({name:"",email:"",whatsapp:""}),O(null)},G=()=>{if(l==="form"&&H("category_quiz","close")){I(!0);return}q(),t(!1)},Ae=S=>{I(S),S||(q(),t(!1))},se=()=>{!o&&H("category_quiz","submit")?I(!0):(q(),t(!1))};return a.jsxs(a.Fragment,{children:[a.jsx(Qa,{open:e,onOpenChange:G,children:a.jsxs(Ba,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[l==="loading"&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-4",children:[a.jsx("div",{className:"bg-primary/10 p-4 rounded-full",children:a.jsx(Mn,{className:"h-12 w-12 text-primary"})}),a.jsxs(Ks,{children:[a.jsx(Va,{className:"text-2xl text-center",children:"Simulado de Conhecimento"}),a.jsxs(Po,{className:"text-center",children:["Teste seus conhecimentos sobre ",a.jsx("strong",{children:n})]})]}),a.jsx($r,{className:"h-6 w-6 animate-spin text-primary"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:u?"Gerando simulado pela primeira vez... isso pode levar alguns segundos":"Carregando perguntas..."})]}),l==="form"&&a.jsx(gNe,{onSubmit:ee,loading:T,courseTitle:n}),l==="quiz"&&m.length>0&&a.jsx(xNe,{question:m[p],questionNumber:p+1,totalQuestions:m.length,onAnswer:ae}),l==="result"&&a.jsx(vNe,{score:j,totalQuestions:m.length,passed:j>=Math.ceil(m.length*.7),courseTitle:n,onTryAgain:q,onClose:se,pointsEarned:j>=Math.ceil(m.length*.7)?100:50})]})}),a.jsx(gj,{open:P,onOpenChange:Ae,config:D,formType:"category_quiz",leadId:E||void 0})]})},ZV=()=>{const[e,t]=A.useState(null),{data:r,isLoading:n}=jt({queryKey:["categories-with-quiz"],queryFn:async()=>{const{data:s,error:o}=await J.from("categories").select("id, name, slug, icon").eq("has_quiz",!0).eq("approval_status","approved").order("display_order");if(o)throw o;return s||[]}});return n||!r||r.length===0?null:a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx(vl,{className:"w-5 h-5 text-primary"}),a.jsx("h3",{className:"text-base font-semibold",children:"Simulados Rápidos"}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"Teste seus conhecimentos"})]}),a.jsxs(ep,{opts:{align:"start",loop:!1},className:"w-full",children:[a.jsx(tp,{className:"-ml-2",children:r.map(s=>a.jsx(rp,{className:"pl-2 basis-auto",children:a.jsxs("button",{onClick:()=>t({id:s.id,name:s.name}),className:"flex items-center gap-2 px-4 py-2.5 bg-card border border-border hover:border-primary rounded-lg transition-all hover:shadow-md text-left group whitespace-nowrap",children:[a.jsx("span",{className:"text-sm font-medium group-hover:text-primary transition-colors",children:s.name}),a.jsx(Vs,{className:"h-4 w-4 text-muted-foreground group-hover:text-primary transition-colors"})]})},s.id))}),a.jsx(np,{className:"-left-3"}),a.jsx(ap,{className:"-right-3"})]}),e&&a.jsx(_Ne,{open:!!e,onOpenChange:s=>
1598!s&&t(null),categoryId:e.id,categoryName:e.name})]})},CNe={beginner:{label:"Iniciante",color:"bg-green-500/10 text-green-600 border-green-500/20"},intermediate:{label:"Intermediário",color:"bg-yellow-500/10 text-yellow-600 border-yellow-500/20"},advanced:{label:"Avançado",color:"bg-orange-500/10 text-orange-600 border-orange-500/20"},expert:{label:"Expert",color:"bg-red-500/10 text-red-600 border-red-500/20"}};function JV(){const{data:e=[],isLoading:t}=jt({queryKey:["featured-certifications"],queryFn:async()=>{const{data:r,error:n}=await J.from("market_certifications").select("*").eq("is_active",!0).eq("is_featured",!0).order("display_order").limit(6);if(n)throw n;return r||[]}});return t?a.jsx("section",{className:"py-8 md:py-12 bg-gradient-to-b from-background to-muted/30",children:a.jsx("div",{className:"container mx-auto px-4 flex items-center justify-center min-h-[300px]",children:a.jsx($r,{className:"h-8 w-8 animate-spin text-primary"})})}):e.length===0?null:a.jsx("section",{className:"py-8 md:py-12 bg-gradient-to-b from-background to-amber-500/5",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-amber-500/10 px-4 py-2 rounded-full mb-4",children:[a.jsx(kn,{className:"h-5 w-5 text-amber-600"}),a.jsx("span",{className:"text-sm font-medium text-amber-600",children:"Certificações de Mercado"})]}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-2",children:"Prepare-se para as Certificações"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Conquiste as certificações mais valorizadas do mercado de tecnologia"})]}),a.jsxs(ep,{opts:{align:"start",loop:!1},className:"w-full mb-8",children:[a.jsx(tp,{className:"-ml-2 md:-ml-4",children:e.map(r=>{const n=r.difficulty_level?CNe[r.difficulty_level]:null;return a.jsx(rp,{className:"pl-2 md:pl-4 basis-full sm:basis-1/2 lg:basis-1/3",children:a.jsx(Te,{to:`/certificacao/${r.slug}`,children:a.jsx(us,{className:"group h-full hover:shadow-xl transition-all duration-300 hover:-translate-y-1 overflow-hidden border-amber-500/20 hover:border-amber-500/50",children:a.jsxs(ds,{className:"p-0",children:[a.jsxs("div",{className:"relative p-5 bg-gradient-to-br from-amber-500/5 via-amber-500/10 to-orange-500/10",children:[a.jsxs(Vt,{className:"absolute top-3 right-3 bg-amber-500 text-white",children:[a.jsx(os,{className:"h-3 w-3 mr-1 fill-current"}),"Destaque"]}),a.jsxs("div",{className:"flex items-start gap-4",children:[r.badge_url?a.jsx("img",{src:r.badge_url,alt:r.name,className:"h-14 w-14 object-contain"}):a.jsx("div",{className:"h-14 w-14 bg-amber-500/20 rounded-lg flex items-center justify-center",children:a.jsx(kn,{className:"h-7 w-7 text-amber-600"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"font-bold text-base leading-tight group-hover:text-amber-600 transition-colors line-clamp-2",children:r.name}),a.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:r.provider})]})]})]}),a.jsxs("div",{className:"p-5 pt-4 space-y-3",children:[r.overview&&a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:r.overview}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[n&&a.jsx(Vt,{variant:"outline",className:je("text-xs",n.color),children:n.label}),r.category&&a.jsx(Vt,{variant:"outline",className:"text-xs",children:r.category})]}),a.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[r.exam_duration_minutes&&a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(Vr,{className:"h-4 w-4 text-amber-500"}),a.jsxs("span",{children:[Math.floor(r.exam_duration_minutes/60),"h"]})]}),r.exam_questions_count&&a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(hA,{className:"h-4 w-4 text-amber-500"}),a.jsxs("span",{children:[r.exam_questions_count," questões"]})]})]}),a.jsx("div",{className:"pt-2",children:a.jsxs(Oe,{variant:"outline",className:"w-full border-amber-500/30 text-amber-600 hover:bg-amber-500 hover:text-white transition-colors",children:["Ver Preparatório",a.jsx(_r,{className:"h-4 w-4 ml-2 transition-transform group-hover:translate-x-1"})]})})]})]})})})},r.id)})}),a.jsx(np,{className:"hidden sm:flex -left-4 md:-left-12"}),a.jsx(ap,{className:"hidden sm:flex -right-4 md:-right-12"})]}),a.jsx("div",{className:"block sm:hidden text-center mb-6",children:a.jsx("p",{className:"text-xs text-muted-foreground",children:"â Deslize para ver mais â"})}),a.jsx("div",{className:"text-center",children:a.jsx(Oe,{size:"lg",variant:"outline",asChild:!0,className:"border-amber-500/30 hover:border-amber-500",children:a.jsxs(Te,{to:"/certificacoes",children:[a.jsx(kn,{className:"h-5 w-5 mr-2"}),"Ver Todas as Certificações"]})})})]})})}const jNe=e=>jt({queryKey:["presentation-embeds",e],queryFn:async()=>{let t=J.from("presentation_embeds").select("*").eq("is_active",!0).order("created_at",{ascending:!0});t=t.eq("page_path",e);const{data:r,error:n}=await t;if(n)throw n;return r||[]},staleTime:5*60*1e3}
1598),e9=[{order_position:0,title:"Dashboard Inteligente",subtitle:"Seu centro de comando personalizado",description:"Visão completa do seu progresso com métricas em tempo real, próximas aulas ao vivo, cursos em andamento e conquistas desbloqueadas.",features:["Progresso em tempo real","Calendário de aulas","Métricas de desempenho","Acesso rápido a cursos"],highlights:[{label:"Visão 360°",value:"do seu aprendizado"}],icon_name:"LayoutDashboard",gradient:"from-blue-600 via-blue-500 to-cyan-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:1,title:"Mestre Jed - IA Exclusiva",subtitle:"Seu tutor pessoal disponÃvel 24/7",description:"Assistente de IA treinado especificamente para SAP e tecnologia empresarial. Tire dúvidas, peça explicações e receba orientações personalizadas.",features:["Respostas contextualizadas","DisponÃvel 24 horas","Especializado em SAP","Aprende seu estilo"],highlights:[{label:"IA Generativa",value:"treinada para você"}],icon_name:"Bot",gradient:"from-purple-600 via-purple-500 to-pink-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:2,title:"Aulas ao Vivo",subtitle:"Interação em tempo real com instrutores",description:"Participe de aulas ao vivo com especialistas, faça perguntas em tempo real, participe de enquetes e tenha sua presença registrada automaticamente.",features:["Chat ao vivo","Enquetes interativas","Presença automática","Gravações disponÃveis"],highlights:[{label:"Interação",value:"em tempo real"}],icon_name:"Video",gradient:"from-red-600 via-red-500 to-orange-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:3,title:"Sala de Aula Virtual",subtitle:"Ambiente completo de aprendizado",description:"Acesse materiais de apoio, faça exercÃcios práticos, acompanhe avisos do instrutor e visualize seu progresso na turma.",features:["Materiais de apoio","ExercÃcios práticos","Avisos do instrutor","Progresso da turma"],highlights:[{label:"Tudo",value:"em um só lugar"}],icon_name:"GraduationCap",gradient:"from-emerald-600 via-emerald-500 to-teal-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:4,title:"Cursos Gravados",subtitle:"Aprenda no seu ritmo",description:"Biblioteca completa de cursos gravados com vÃdeos em alta qualidade, organizados por módulos e aulas com controle de progresso.",features:["VÃdeos HD","Organização por módulos","Progresso salvo","Acesso ilimitado"],highlights:[{label:"Flexibilidade",value:"total de horários"}],icon_name:"PlayCircle",gradient:"from-amber-600 via-amber-500 to-yellow-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:5,title:"Sistema de Gamificação",subtitle:"Aprenda jogando e conquiste recompensas",description:"Ganhe pontos por cada atividade, desbloqueie conquistas exclusivas, suba no ranking e compare seu progresso com outros alunos.",features:["Sistema de pontos","Conquistas desbloqueáveis","Ranking de alunos","Streaks diários"],highlights:[{label:"Motivação",value:"constante"}],icon_name:"Trophy",gradient:"from-yellow-500 via-yellow-400 to-orange-300",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:6,title:"Simulador de Entrevistas",subtitle:"Prepare-se para o mercado de trabalho",description:"Pratique entrevistas técnicas com IA, receba feedback detalhado sobre suas respostas e melhore suas habilidades de comunicação.",features:["Perguntas técnicas reais","Feedback instantâneo","Análise de respostas","Dicas de melhoria"],highlights:[{label:"Preparação",value:"para o mercado"}],icon_name:"UserCheck",gradient:"from-indigo-600 via-indigo-500 to-blue-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:7,title:"Flashcards Inteligentes",subtitle:"Memorização com repetição espaçada",description:"Sistema de flashcards com algoritmo SM-2 para otimizar sua memorização. Revise conceitos importantes de forma eficiente.",features:["Algoritmo SM-2","Decks personalizados","EstatÃsticas de revisão","Geração automática"],highlights:[{label:"Retenção",value:"maximizada"}],icon_name:"Layers",gradient:"from-pink-600 via-pink-500 to-rose-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:8,title:"ExercÃcios e Quizzes",subtitle:"Teste seus conhecimentos",description:"ExercÃcios práticos após cada aula, quizzes de avaliação e provas de certificação para validar seu aprendizado.",features:["ExercÃcios por aula","Quizzes avaliativos","Correção automática","Explicações detalhadas"],highlights:[{label:"Aprendizado",value:"validado"}],icon_name:"ClipboardCheck",gradient:"from-cyan-600 via-cyan-500 to-blue-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:9,title:"Certificados Digitais",subtitle:"Comprove suas conquistas",de
1598scription:"Certificados digitais verificáveis com QR Code para cada curso concluÃdo. Compartilhe no LinkedIn e valorize seu currÃculo.",features:["Verificação por QR Code","Compartilhamento LinkedIn","Download em PDF","Blockchain opcional"],highlights:[{label:"Credibilidade",value:"comprovada"}],icon_name:"Award",gradient:"from-emerald-600 via-emerald-500 to-green-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:10,title:"Portal de Vagas",subtitle:"Oportunidades exclusivas",description:"Acesso a vagas de emprego exclusivas para alunos, com empresas parceiras buscando profissionais certificados.",features:["Vagas exclusivas","Empresas parceiras","Candidatura simplificada","Alertas de vagas"],highlights:[{label:"Empregabilidade",value:"garantida"}],icon_name:"Briefcase",gradient:"from-slate-600 via-slate-500 to-gray-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:11,title:"Materiais de Apoio",subtitle:"Recursos complementares",description:"Biblioteca de materiais de apoio incluindo PDFs, apresentações, exercÃcios extras e links úteis organizados por curso.",features:["PDFs e apostilas","Apresentações","ExercÃcios extras","Links úteis"],highlights:[{label:"Conteúdo",value:"complementar"}],icon_name:"FileText",gradient:"from-violet-600 via-violet-500 to-purple-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:12,title:"Notificações Inteligentes",subtitle:"Nunca perca nada importante",description:"Sistema de notificações para aulas ao vivo, prazos de exercÃcios, novos conteúdos e avisos importantes dos instrutores.",features:["Lembretes de aulas","Alertas de prazos","Novos conteúdos","Avisos importantes"],highlights:[{label:"Sempre",value:"atualizado"}],icon_name:"Bell",gradient:"from-orange-600 via-orange-500 to-amber-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:13,title:"Perfil e Configurações",subtitle:"Personalize sua experiência",description:"Gerencie seu perfil, preferências de notificação, tema da interface e configurações de privacidade.",features:["Perfil personalizável","Tema claro/escuro","Preferências de notificação","Privacidade"],highlights:[{label:"Experiência",value:"personalizada"}],icon_name:"Settings",gradient:"from-gray-600 via-gray-500 to-slate-400",image_url:null,video_url:null,media_type:"none",is_active:!0},{order_position:14,title:"Suporte Dedicado",subtitle:"Estamos aqui para ajudar",description:"Suporte técnico e pedagógico disponÃvel para resolver dúvidas, problemas técnicos ou orientações sobre sua jornada de aprendizado.",features:["Suporte técnico","Orientação pedagógica","FAQ completo","Chat ao vivo"],highlights:[{label:"Atendimento",value:"humanizado"}],icon_name:"HeadphonesIcon",gradient:"from-teal-600 via-teal-500 to-cyan-400",image_url:null,video_url:null,media_type:"none",is_active:!0}];function ENe(){return jt({queryKey:["presentation-slides"],queryFn:async()=>{const{data:e,error:t}=await J.from("presentation_slides").select("*").eq("is_active",!0).order("order_position",{ascending:!0});if(t)throw t;return!e||e.length===0?e9.map((r,n)=>({...r,id:`default-${n}`,created_at:new Date().toISOString(),updated_at:new Date().toISOString()})):e.map(r=>({...r,features:r.features||[],highlights:r.highlights||[],media_type:r.media_type||"none"}))}})}function kQe(){return jt({queryKey:["presentation-slides-all"],queryFn:async()=>{const{data:e,error:t}=await J.from("presentation_slides").select("*").order("order_position",{ascending:!0});if(t)throw t;return(e||[]).map(r=>({...r,features:r.features||[],highlights:r.highlights||[],media_type:r.media_type||"none"}))}})}function IQe(){const e=vn();return Dr({mutationFn:async t=>{const{data:r,error:n}=await J.from("presentation_slides").insert([t]).select().single();if(n)throw n;return r},onSuccess:()=>{e.invalidateQueries({queryKey:["presentation-slides"]}),e.invalidateQueries({queryKey:["presentation-slides-all"]}),et.success("Slide criado com sucesso!")},onError:t=>{et.error("Erro ao criar slide: "+t.message)}})}function FQe(){const e=vn();return Dr({mutationFn:async({id:t,data:r})=>{const{data:n,error:s}=await J.from("presentation_slides").update(r).eq("id",t).select();if(s)throw s;if(!n||n.length===0)throw new Error("Nenhum registro atualizado. Verifique suas permissões de administrador.");return n[0]},onSuccess:()=>
1598{e.invalidateQueries({queryKey:["presentation-slides"]}),e.invalidateQueries({queryKey:["presentation-slides-all"]}),et.success("Slide atualizado com sucesso!")},onError:t=>{et.error("Erro ao atualizar slide: "+t.message)}})}function TQe(){const e=vn();return Dr({mutationFn:async t=>{const{error:r}=await J.from("presentation_slides").delete().eq("id",t);if(r)throw r},onSuccess:()=>{e.invalidateQueries({queryKey:["presentation-slides"]}),e.invalidateQueries({queryKey:["presentation-slides-all"]}),et.success("Slide excluÃdo com sucesso!")},onError:t=>{et.error("Erro ao excluir slide: "+t.message)}})}function PQe(){const e=vn();return Dr({mutationFn:async t=>{const r=t.map(({id:o,order_position:i})=>J.from("presentation_slides").update({order_position:i}).eq("id",o)),s=(await Promise.all(r)).filter(o=>o.error);if(s.length>0)throw s[0].error},onSuccess:()=>{e.invalidateQueries({queryKey:["presentation-slides"]}),e.invalidateQueries({queryKey:["presentation-slides-all"]}),et.success("Ordem atualizada!")},onError:t=>{et.error("Erro ao reordenar: "+t.message)}})}function LQe(){const e=vn();return Dr({mutationFn:async()=>{await J.from("presentation_slides").delete().neq("id","00000000-0000-0000-0000-000000000000");const{error:t}=await J.from("presentation_slides").insert(e9);if(t)throw t},onSuccess:()=>{e.invalidateQueries({queryKey:["presentation-slides"]}),e.invalidateQueries({queryKey:["presentation-slides-all"]}),et.success("Slides padrão importados com sucesso!")},onError:t=>{et.error("Erro ao importar slides: "+t.message)}})}function II({displayMode:e,maxSlides:t=5,autoPlay:r=!0,slideDuration:n=5,customTitle:s,customSubtitle:o,backgroundStyle:i="gradient"}){const{data:l=[]}=ENe(),c=l.slice(0,t),[u,d]=A.useState(0),[f,h]=A.useState(r),m=A.useCallback(()=>{d(b=>(b+1)%c.length)},[c.length]),g=A.useCallback(()=>{d(b=>(b-1+c.length)%c.length)},[c.length]);if(A.useEffect(()=>{if(f&&c.length>1){const b=setInterval(m,n*1e3);return()=>clearInterval(b)}},[f,m,n,c.length]),c.length===0)return null;const p=c[u],x=Gm(p?.icon_name),y=i==="gradient"?"bg-gradient-to-br from-primary/10 via-background to-secondary/10":"bg-muted/50";return e==="carousel"?a.jsx("section",{className:je("py-12 px-4",
1598y),children:a.jsxs("div",{className:"container mx-auto",children:[s&&a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:s}),o&&a.jsx("p",{className:"text-muted-foreground mt-2",children:o})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(Oe,{variant:"ghost",size:"icon",onClick:g,className:"shrink-0",children:a.jsx(Jd,{className:"w-5 h-5"})}),a.jsx("div",{className:"flex-1 overflow-hidden",children:a.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4 snap-x snap-mandatory scrollbar-hide",children:c.map((b,j)=>{const C=Gm(b.icon_name);return a.jsxs("div",{className:je("min-w-[280px] md:min-w-[320px] p-6 rounded-xl border bg-card snap-center transition-all",j===u&&"ring-2 ring-primary"),children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[C&&a.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:a.jsx(C,{className:"w-5 h-5 text-primary"})}),a.jsx("h3",{className:"font-semibold line-clamp-1",children:b.title})]}),a.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:b.description})]},b.id)})})}),a.jsx(Oe,{variant:"ghost",size:"icon",onClick:m,className:"shrink-0",children:a.jsx(Vs,{className:"w-5 h-5"})})]}),a.jsx("div",{className:"flex justify-center gap-2 mt-4",children:c.map((b,j)=>a.jsx("button",{onClick:()=>d(j),className:je("w-2 h-2 rounded-full transition-all",j===u?"bg-primary w-6":"bg-muted-foreground/30")},j))}),a.jsx("div",{className:"text-center mt-6",children:a.jsx(Te,{to:"/apresentacao-trainning360",children:a.jsxs(Oe,{variant:"outline",size:"sm",children:[a.jsx(by,{className:"w-4 h-4 mr-2"}),"Ver Apresentação Completa"]})})})]})}):e==="mini"?a.jsx("section",{className:je("py-8 px-4",y),children:a.jsxs("div",{className:"container mx-auto max-w-4xl",children:[s&&a.jsx("h2",{className:"text-xl font-bold text-center mb-4",children:s}),a.jsxs("div",{className:"bg-card border rounded-xl overflow-hidden",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted/50",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:g,children:a.jsx(Jd,{className:"w-4 h-4"})}),a.jsxs("span",{className:"text-sm",children:[u+1," / ",c.length]}),a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:m,children:a.jsx(Vs,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>h(!f),children:f?a.jsx(Gb,{className:"w-4 h-4"}):a.jsx(Pm,{className:"w-4 h-4"})}),a.jsx(Te,{to:"/apresentacao-trainning360",children:a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-8 w-8",children:a.jsx(by,{className:"w-4 h-4"})})})]})]}),a.jsx("div",{className:"p-6 min-h-[200px]",children:a.jsxs("div",{className:"flex items-start gap-4",children:[x&&a.jsx("div",{className:"p-3 rounded-xl bg-primary/10 shrink-0",children:a.jsx(x,{className:"w-8 h-8 text-primary"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-bold mb-2",children:p?.title}),a.jsx("p",{className:"text-muted-foreground",children:p?.description})]})]})}),a.jsx("div",{className:"flex justify-center gap-1 px-4 pb-4",children:c.map((b,j)=>a.jsx("button",{onClick:()=>d(j),className:je("w-2 h-2 rounded-full transition-all",j===u?"bg-primary":"bg-muted-foreground/30")},j))})]})]})}
1598):e==="full"?a.jsx("section",{className:je("py-12 px-4",y),children:a.jsxs("div",{className:"container mx-auto",children:[s&&a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:s}),o&&a.jsx("p",{className:"text-muted-foreground mt-2",children:o})]}),a.jsxs("div",{className:"bg-card border rounded-2xl overflow-hidden shadow-lg",children:[a.jsxs("div",{className:"flex items-center justify-between px-6 py-3 border-b bg-muted/50",children:[a.jsxs("span",{className:"text-sm font-medium",children:["Slide ",u+1," de ",c.length]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>h(!f),children:f?a.jsx(Gb,{className:"w-4 h-4"}):a.jsx(Pm,{className:"w-4 h-4"})}),a.jsx(Te,{to:"/apresentacao-trainning360",children:a.jsxs(Oe,{variant:"outline",size:"sm",children:[a.jsx(by,{className:"w-4 h-4 mr-2"}),"Tela Cheia"]})})]})]}),a.jsxs("div",{className:"relative aspect-video flex items-center justify-center p-8",style:{background:p?.gradient||"linear-gradient(135deg, hsl(var(--primary)/0.1), hsl(var(--secondary)/0.1))"},children:[a.jsxs("div",{className:"text-center max-w-3xl",children:[x&&a.jsx("div",{className:"inline-flex p-4 rounded-2xl bg-white/10 backdrop-blur mb-6",children:a.jsx(x,{className:"w-12 h-12 text-primary"})}),a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:p?.title}),p?.subtitle&&a.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:p.subtitle}),a.jsx("p",{className:"text-lg text-muted-foreground",children:p?.description})]}),a.jsx(Oe,{variant:"ghost",size:"icon",className:"absolute left-4 top-1/2 -translate-y-1/2 h-12 w-12 bg-background/50 backdrop-blur",onClick:g,children:a.jsx(Jd,{className:"w-6 h-6"})}),a.jsx(Oe,{variant:"ghost",size:"icon",className:"absolute right-4 top-1/2 -translate-y-1/2 h-12 w-12 bg-background/50 backdrop-blur",onClick:m,children:a.jsx(Vs,{className:"w-6 h-6"})})]}),a.jsx("div",{className:"flex justify-center gap-2 py-4 border-t",children:c.map((b,j)=>a.jsx("button",{onClick:()=>d(j),className:je("w-3 h-3 rounded-full transition-all",j===u?"bg-primary scale-110":"bg-muted-foreground/30 hover:bg-muted-foreground/50")},j))})]})]})}):null}function BNe(e){if(!e||e<=0)return"-";const t=Math.floor(e/1440),r=Math.floor(e%1440/60),n=e%60;return t>0?r>0?`${t}d ${r}h`:`${t} dia${t>1?"s":""}`:r>0?n>0?`${r}h ${n}min`:`${r}h`:`${n}min`}function DQe(e){const t=e.reduce((n,s)=>n+(s.duration_minutes||0),0);return`${Math.floor(t/60)}h`}function Xj(){const{data:e}=jt({queryKey:["carousel-knowledge-pills"],queryFn:async()=>{const{data:t,error:r}=await J.from("knowledge_pills").select("id, title, description, thumbnail_url, duration_seconds, category").eq("is_published",!0).eq("show_in_carousel",!0).order("created_at",{ascending:!1}).limit(10);if(r)throw r;return t}});return!e||e.length===0?null:a.jsx("section",{className:"py-10 md:py-16 bg-gradient-to-br from-amber-500/5 via-background to-orange-500/5",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 mb-3",children:[a.jsx(Tm,{className:"h-5 w-5 text-amber-500"}),a.jsx("span",{className:"text-sm font-semibold text-amber-600 uppercase tracking-wide",children:"Aprendizado Rápido"})]}),a.jsx("h2",{className:"text-2xl md:text-4xl font-bold mb-2",children:"PÃlulas de Conhecimento"}),a.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"VÃdeos curtos para acelerar seu aprendizado"})]}),a.jsx(uo,{items:e,itemWidth:"sm",getKey:t=>t.id,renderItem:t=>a.jsx(Te,{to:"/pilulas-de-conhecimento",className:"block h-full",children:a.jsxs(us,{className:"overflow-hidden h-full group hover:shadow-lg transition-all",children:[a.jsxs("div",{className:"relative aspect-video bg-muted",children:[t.thumbnail_url?a.jsx("img",{src:t.thumbnail_url,alt:t.title,className:"w-full h-full object-cover"}):a.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-amber-500/20 to-orange-500/20",children:a.jsx(Tm,{className:"h-8 w-8 text-amber-500/40"})}),a.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:a.jsx("div",{className:"bg-white/90 rounded-full p-2.5",children:a.jsx(Pm,{className:"h-5 w-5 text-foreground ml-0.5"})})}),t.category&&a.jsx(Vt,{className:"absolute top-2 left-2 bg-amber-500 text-white text-[10px]",children:t.category})]}),a.jsxs(ds,{className:"p-3",children:[a.jsx("h4",{className:"font-semibold text-sm line-clamp-2",children:t.title}),t.duration_seconds&&a.jsxs("div",{className:"flex items-center gap-1 mt-1.5 text-xs text-muted-foreground",children:[a.jsx(Vr,{className:"h-3 w-3"}),a.jsx("span",{children:BNe(Math.round(t.duration_seconds/60))})]})]})]})})}),a.jsx("div",{className:"text-center mt-6",children:a.jsx(Te,{to:"/pilulas-de-conhecimento",className:"inline-flex items-center gap-2 text-sm font-medium text-amber-600 hover:text-amber-700 transition-colors",children:"Ver todas as pÃlulas â"})})]})})}const t9=A.createContext(void 0),r9=({children:e})=>{const{data:t,isLoading:r,error:n}=jt({queryKey:["index-page-data"],queryFn:async()=>{const[{data:o},{data:i},{data:l},{data:c},{data:u}]=await Promise.all([J.from("categories").select("id, name, slug, icon, description, display_order, image_url, is_mastertech, overlay_opacity, overlay_color, banner_url, cta_config, code").eq("approval_status","approved").order("display_order",{ascending:!0}),J.from("courses").select(` 1599 id, title, slug, subtitle, thumbnail_url, created_at, 1600 duration_hours, format, price_cash, price_installments,
1601 installments_count, list_price, priority, category_id, 1602 is_featured, is_most_searched, has_certification, 1603 bonus_course_id, bonus_discount_percentage, has_digital_version, 1604 digital_discount_percentage, 1605 cohorts(id, start_date, available_spots), 1606 course_labels(labels(id, name, color, text_color)) 1607 `).eq("approval_status","approved").eq("is_active",!0).order("priority",{ascending:!1}).limit(150),J.from("formations").select(` 1608 id, name, slug, format, discount_percentage, 1609 short_description, thumbnail_url, price_cash, 1610 display_order, is_featured, name_en, name_es, 1611 short_description_en, short_description_es, 1612 formation_courses( 1613 course_id, 1614 courses(id, title, duration_hours, price_cash, format, 1615 cohorts(id, start_date)) 1616 ) 1617 `).eq("is_active",!0).eq("is_featured",!0).order("display_order",{ascending:!0}).limit(20),J.from("price_campaigns").select(` 1618 *, 1619 campaign_courses(*) 1620 `).eq("is_active",!0).gte("end_date",new Date().toISOString()).order("end_date",{ascending:!0}),J.from("formation_categories").select("formation_id, category_id")]),f=(i?.filter(C=>C.bonus_course_id)||[]).map(C=>C.bonus_course_id).filter(Boolean);let h=[];if(f.length>0){const{data:C}=await J.from("courses").select("id, title, duration_hours").in("id",f);h=C||[]}const m=l?.map(C=>{const L=(C.formation_courses||[]).reduce((E,O)=>E+(Number(O.courses?.price_cash)||0),0),P=Number(C.price_cash)||0,I=C.discount_percentage||0;return{...C,totalPrice:L,discountedPrice:P>0?P:L*(1-I/100)}})||[],g=o?.map(C=>{const T=i?.filter(L=>L.category_id===C.id).slice(0,12)||[];return{...C,courses:T,formations:[]}})||[];u?.forEach(C=>{const T=g.find(L=>L.id===C.category_id);if(T){const L=m?.find(P=>P.id===C.formation_id);L&&L.is_featured&&!T.formations.some(P=>P.id===L.id)&&T.formations.push(L)}}),g.forEach(C=>{C.formations=C.formations.slice(0,6)});const p=new Map;c?.forEach(C=>{C.campaign_courses?.forEach(T=>{if(T.course_id){const L=new Date(C.end_date),P=new Date,I=Math.ceil((L.getTime()-P.getTime())/(1e3*60*60*24));p.set(T.course_id,{currentPrice:T.campaign_price_cash,nextPrice:T.original_price_cash,increaseDate:L,daysUntilIncrease:I})}})});const x=new Map;i?.forEach(C=>{if(C.bonus_course_id){const T=h.find(L=>L.id===C.bonus_course_id);T&&x.set(C.id,{bonus_hours:T.duration_hours,bonus_discount:C.bonus_discount_percentage,bonus_course_title:T.title})}});const y=new Map;i?.forEach(C=>{const L=(C.cohorts?.filter(P=>new Date(P.start_date)>new Date)||[]).reduce((P,I)=>P+(I.available_spots||0),0);L>0&&y.set(C.id,L)});const b=i?.filter(C=>C.is_featured).slice(0,4)||[],j=m?.filter(C=>C.is_featured).slice(0,3)||[];return{categories:o||[],categoriesWithCourses:g.filter(C=>C.courses.length>0||C.formations?.length>0),allCourses:i||[],featuredCourses:b,featuredFormations:j,priceCampaigns:p,bonusCourses:x,availableSpots:y}},staleTime:3e5,gcTime:6e5,refetchOnMount:!1,refetchOnWindowFocus:!1}),s={categories:t?.categories||[],categoriesWithCourses:t?.categoriesWithCourses||[],allCourses:t?.allCourses||[],featuredCourses:t?.featuredCourses||[],featuredFormations:t?.featuredFormations||[],priceCampaigns:t?.priceCampaigns||new Map,bonusCourses:t?.bonusCourses||new Map,availableSpots:t?.availableSpots||new Map,isLoading:r,error:n};return a.jsx(t9.Provider,{value:s,children:e})},Uc=()=>{const e=A.useContext(t9);if(e===void 0)throw new Error("useIndexData must be used within IndexDataProvider");return e},FI="data-seo-managed";function NNe({title:e,description:t,canonical:r,jsonLd:n}){return A.useEffect(()=>{if(document.title=e,t){let i=document.querySelector('meta[name="description"]');i||(i=document.createElement("meta"),i.name="description",document.head.appendChild(i)),i.content=t}let s=null;r&&(document.querySelectorAll('link[rel="canonical"]').forEach(i=>i.remove()),s=document.createElement("link"),s.rel="canonical",s.href=r,s.setAttribute(FI,"1"),document.head.appendChild(s));const o=[];return n&&n.length>
16200&&n.forEach(i=>{const l=document.createElement("script");l.type="application/ld+json",l.setAttribute(FI,"1"),l.text=JSON.stringify(i),document.head.appendChild(l),o.push(l)}),()=>{document.title="Trainning Education | Cursos e Certificações SAP, Cloud e IA",s&&s.parentNode&&s.parentNode.removeChild(s),o.forEach(i=>{i.parentNode&&i.parentNode.removeChild(i)})}},[e,t,r,n]),null}const Rb="data-page-seo-managed";function h2({title:e,description:t,canonicalPath:r,ogImage:n=Kre,ogType:s="website",noindex:o,jsonLd:i}){const l=r?fR(r):void 0;return A.useEffect(()=>{const c=[],u=(d,f,h)=>{if(!h)return;let m=document.querySelector(`meta[${d}="${f}"][${Rb}]`);const g=document.querySelector(`meta[${d}="${f}"]:not([${Rb}])`);!m&&g&&(g.hasAttribute("data-page-seo-original")||g.setAttribute("data-page-seo-original",g.content),m=g),m||(m=document.createElement("meta"),m.setAttribute(d,f),m.setAttribute(Rb,"1"),document.head.appendChild(m),c.push(m)),m.content=h};return u("name","robots",o?"noindex, follow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"),u("property","og:type",s),u("property","og:site_name",qre),u("property","og:locale","pt_BR"),u("property","og:title",e),t&&u("property","og:description",t),l&&u("property","og:url",l),n&&(u("property","og:image",n),u("property","og:image:secure_url",n)),u("name","twitter:card","summary_large_image"),u("name","twitter:title",e),t&&u("name","twitter:description",t),n&&u("name","twitter:image",n),l&&u("name","twitter:url",l),()=>{c.forEach(d=>d.parentNode?.removeChild(d)),document.querySelectorAll("meta[data-page-seo-original]").forEach(d=>{const f=d.getAttribute("data-page-seo-original");f!==null&&(d.content=f),d.removeAttribute("data-page-seo-original")})}},[e,t,l,n,s,o]),a.jsx(NNe,{title:e,description:t,canonical:l,jsonLd:i})}const p2="mx-1.0.0",ou=(e,t=24)=>({type:"number",default:e,min:1,max:t,label:"Limite de itens"}),Od=e=>({type:"string",default:e,label:"TÃtulo da seção"}),Zj={legacy_home:{key:"legacy_home",label:"Home atual (Modelo Atual)",description:"Renderiza a home pública existente, intocada. à o Modelo Atual e o destino de todo fallback â nunca excluir.",dataSource:"src/pages/Index.tsx (layout legado completo)",singleton:!0,exclusive:!0,props:{}},hero_banner:{key:"hero_banner",label:"Hero de campanha",description:"Hero principal da home (HeroCarousel existente): a campanha ativa com arte mobile dedicada (image_url_mobile, mobile_height_px, focal point). à a prioridade #1 da home â sem banner ativo a seção some, nada é fabricado.",dataSource:"tabela banners (mesma fonte do hero da home; arte mobile própria)",singleton:!0,props:{}},universal_search:{key:"universal_search",label:"Busca universal",description:"Campo de busca de cursos, formações, tecnologias e certificações (SmartSearchBar existente).",dataSource:"useSmartSearch (courses/formations/categories)",singleton:!0,props:{headline:{type:"string",default:"O que você quer aprender hoje?",label:"Headline"}}},quick_categories:{key:"quick_categories",label:"Categorias rápidas",description:"Grid/scroll horizontal de categorias aprovadas, editáveis no admin de categorias.",dataSource:"tabela categories (via IndexDataContext)",singleton:!0,props:{limit:ou(10,24),style:{type:"enum",options:["scroll","grid"],default:"scroll",label:"Estilo"}}},campaign_banners:{key:"campaign_banners",label:"Banners de campanha",description:"Cards compactos de campanha a partir dos banners ativos (menores que o hero desktop). Sem FOMO fabricado: só datas/valores reais do banner.",dataSource:"tabela banners (is_active, janela de agendamento)",props:{limit:ou(3,5)}},featured_courses:{key:"featured_courses",label:"Vitrine de cursos",description:"Vitrine configurável: destaques, seleção manual ou rankings reais. Preço vem do catálogo e nunca é digitado aqui.",dataSource:"courses approved+active + RPC get_mobile_course_shelf_ranking (vendas/acessos)",props:{title:Od("Recomendados para você"),limit:ou(8,12),source:{type:"enum",options:["featured","manual","best_sellers","most_accessed","newest","most_searched"],optionLabels:{featured:"Recomendados / destaques",manual:"Cursos selecionados",best_sellers:"Mais vendidos",most_accessed:"Mais acessados",newest:"Lançamentos",most_searched:"Mais procurados"},default:"featured",label:"Fonte dos cursos",help:"Define quais cursos entram e a ordem da vitrine."},courseIds:{type:"course_ids",default:[],label:"Cursos selecionados",help:"Usado quando a fonte for Cursos selecionados; a ordem escolhida é preservada."},rankingWindowDays:{type:"number",default:30,min:7,max:365,label:"Janela do ranking (dias)",help:"Aplicada a Mais vendidos e Mais acessados."},fallback:{type:"enum",options:["featured","hide"],optionLabels:{featured:"Usar cursos em destaque",hide:"Ocultar a vitrine"},default:"featured",label:"Se não houver resultado"}}},category_courses:{key:"category_courses",label:"Cursos por categoria",description:"Carrossel de cursos de uma categoria especÃfica (slug) ou das primeiras categorias com curso.",dataSource:"IndexDataContext.categoriesWithCourses",props:{title:Od("Cursos"),categorySlug:{type:"string",default:"",label:"Slug da categoria (vazio = automático)"},limit:ou(8,12)}},upcoming_cohorts:{key:"upcoming_cohorts",label:"Turmas próximas",description:"Cursos com turma futura mais próxima. Datas reais de cohorts â data ausente nunca vira urgência.",dataSource:"cohorts via IndexDataContext (start_date futura)",props:{title:Od("Turmas próximas"),limit:ou(6,12)}},featured_formations:{key:"featured_formations",label:"Formações em destaque",description:"Formações ativas em destaque com card existente.",dataSource:"IndexDataContext.featuredFormations",props:{title:Od("Formações completas"),limit:ou(4,8)}
1620},certifications:{key:"certifications",label:"Certificações",description:"Certificações de mercado em destaque (componente existente).",dataSource:"tabela market_certifications",singleton:!0,props:{}},testimonials:{key:"testimonials",label:"Provas sociais",description:"Depoimentos reais cadastrados no admin (componente existente).",dataSource:"tabela testimonials",singleton:!0,props:{limit:ou(6,10)}},business_banner:{key:"business_banner",label:"Para empresas",description:"CTA corporativo compacto. Texto editável; destino é rota interna ou URL absoluta (abre em nova aba).",dataSource:"conteúdo editorial da seção (props)",singleton:!0,props:{title:Od("Treinamento para empresas"),subtitle:{type:"string",default:"Capacite seu time com trilhas corporativas sob medida.",label:"SubtÃtulo"},ctaLabel:{type:"string",default:"Fale com um especialista",label:"Rótulo do CTA"},ctaHref:{type:"string",default:"/empresas",label:"Destino do CTA (rota interna ou URL)"}}},free_courses:{key:"free_courses",label:"Cursos gratuitos",description:"Carrossel de cursos gratuitos (componente existente).",dataSource:"tabela free_courses",singleton:!0,props:{}},digital_courses:{key:"digital_courses",label:"Cursos digitais",description:"Carrossel de cursos digitais (componente existente da home). Sem curso digital ativo, a seção some.",dataSource:"courses da categoria digital (DigitalCoursesCarousel)",singleton:!0,props:{}},quiz_simulados:{key:"quiz_simulados",label:"Simulados / quizzes",description:"Carrossel de simulados por categoria (QuizCarousel existente). Só categorias com quiz publicado.",dataSource:"tabela categories (has_quiz = true, approval_status = approved)",singleton:!0,props:{title:{type:"string",default:"",label:"TÃtulo da seção (vazio = usa o tÃtulo do próprio carrossel)"}}},jobs:{key:"jobs",label:"Vagas em destaque",description:"Carrossel de vagas reais (HomeJobsCarousel existente). Vaga nunca é fabricada: sem vaga ativa, a seção some.",dataSource:"tabela jobs (status = active)",singleton:!0,props:{}},knowledge_pills:{key:"knowledge_pills",label:"PÃlulas de conhecimento",description:"Carrossel de pÃlulas publicadas e marcadas para carrossel (componente existente).",dataSource:"tabela knowledge_pills (is_published + show_in_carousel)",singleton:!0,props:{}},institutional_clients:{key:"institutional_clients",label:"Empresas atendidas",description:"Prova social institucional: carrossel de clientes/cases cadastrados no admin de carrosséis.",dataSource:"carousel_configs (institutional_clients) + client_carousel_items",singleton:!0,props:{}},dynamic_carousels:{key:"dynamic_carousels",label:"Carrosséis do CMS (/admin/carrosseis)",description:"Renderiza os carrosséis que o admin configurou para a home em /admin/carrosseis. Sem esta seção a experiência mobile IGNORA o CMS de carrosséis â o que o marketing publica não chega ao mobile.",dataSource:"tabela carousel_configs (page_slug = home) via DynamicCarousels",singleton:!0,props:{}},team_pass_sap:{key:"team_pass_sap",label:"Team Pass SAP (empresas)",description:"CTA canônico do Team Pass SAP, variante banner e contexto empresas (componente existente).",dataSource:"CTA canônico src/components/sap/TeamPassSapCta.tsx (rota /empresas/team-pass-sap)",singleton:!0,props:{}},final_cta:{key:"final_cta",label:"CTA final",description:"Bloco de fechamento com os DOIS CTAs da home (locations index_final_cta_1 e index_final_cta_2), configuráveis em cta_configs. Nenhum dos dois é escondido no mobile â sacrificar CTA é proibido.",dataSource:"tabela cta_configs (index_final_cta_1 / index_final_cta_2) + fallback editorial da home",singleton:!0,props:{title:Od("Pronto para transformar sua carreira?"),subtitle:{type:"string",default:"Junte-se a mais de 300.000 profissionais que já mudaram de vida com a Trainning Education",label:"SubtÃtulo"}}},social_proof_stats:{key:"social_proof_stats",label:"Faixa de números institucionais",description:"Faixa de estatÃsticas institucionais. Os valores são CONFIGURAÃÃO (props), não código: na home eles estão cravados no arquivo e divergiam entre si (+300.000 na faixa à +200.000 no CTA final). Item com valor ou rótulo em branco não é renderizado (a normalização repõe o default quando o campo fica vazio, então limpar de fato exige apagar a prop); nenhum item renderizável â a seção some.",dataSource:"conteúdo institucional editável (props) â números oficiais de marketing",singleton:!0,props:{alumniValue:{type:"string",default:"+300.000",label:"Alunos formados â valor"},alumniLabel:{type:"string",default:"Alunos Formados",label:"Alunos formados â rótulo"},companiesValue:{type:"string",default:"+20.000",label:"Empresas atendidas â valor"},companiesLabel:{type:"string",default:"Empresas Atendidas",label:"Empresas atendidas â rótulo"},certificationsValue:{type:"string",default:"+150",label:"Certificações â valor"},certificationsLabel:{type:"string",default:"Certificações Oficiais",label:"Certificações â rótulo"},employabilityValue:{type:"string",default:"92%",label:"Empregabilidade â valor"},employabilityLabel:{type:"string",default:"Taxa de Empregabilidade",label:"Empregabilidade â rótulo"}}},bottom_nav:{key:"bottom_nav",label:"Bottom navigation",description:"Navegação fixa inferior estilo app. Destinos são rotas internas existentes; válida para anônimo. Renderiza ACIMA da ActionBar comercial (nunca sobre ela): a barra de conversão prevalece.",dataSource:"rotas públicas existentes",singleton:!0,props:{}}},RQe=Object.keys(Zj);function TI(e){const t=[],r=(l,c,u,d)=>t.push({severity:l,code:c,message:u,sectionId:d});if(!e||typeof e!="object")return r("error","CONFIG_EMPTY","Config ausente ou inválida."),t;const n=e;if(n.mode!=="legacy"&&n.mode!=="sections")return r("error","MODE_INVALID",`mode deve ser "legacy" ou "sections" (recebido: ${String(n.mode)}).`),t;if(n.mode==="legacy")return Array.isArray(n.sections)&&n.sections.length>0&&r("error","LEGACY_WITH_SECTIONS","Modo legacy não aceita seções â o layout é a home existente."),t;const s=n.sections;if(!Array.isArray(s)||s.length===0)return r("error","SECTIONS_EMPTY","Experiência em modo sections precisa de ao menos uma seção."),t;const o=new Set,i=new Map;for(const l of s){if(!l||typeof l!="object"||typeof l.id!="string"||l.id.trim()===""){r("error","SECTION_ID_MISSING","Toda seção precisa de id estável não-vazio.");continue}o.has(l.id)&&r("error","SECTION_ID_DUPLICATE",`Id de seção duplicado: ${l.id}.`,l.id),o.add(l.id);const c=Zj[l.component];if(!c){r("error","COMPONENT_UNKNOWN",`Componente fora do registry: ${String(l.component)}
1620.`,l.id);continue}c.exclusive&&r("error","COMPONENT_EXCLUSIVE",`${c.key} só pode existir sozinho (use mode: "legacy").`,l.id),c.singleton&&i.set(c.key,(i.get(c.key)??0)+1);const u=l.props??{};for(const[d,f]of Object.entries(u)){const h=c.props[d];if(!h){r("warning","PROP_UNKNOWN",`Prop desconhecida "${d}" em ${c.key} â será ignorada.`,l.id);continue}h.type==="number"?typeof f!="number"||Number.isNaN(f)?r("error","PROP_TYPE",`Prop "${d}" de ${c.key} deve ser número.`,l.id):(h.min!==void 0&&f<h.min&&r("error","PROP_RANGE",`Prop "${d}" de ${c.key} abaixo do mÃnimo ${h.min}.`,l.id),h.max!==void 0&&f>h.max&&r("error","PROP_RANGE",`Prop "${d}" de ${c.key} acima do máximo ${h.max}.`,l.id)):h.type==="string"&&typeof f!="string"?r("error","PROP_TYPE",`Prop "${d}" de ${c.key} deve ser string.`,l.id):h.type==="boolean"&&typeof f!="boolean"?r("error","PROP_TYPE",`Prop "${d}" de ${c.key} deve ser boolean.`,l.id):h.type==="enum"&&(typeof f!="string"||!(h.options??[]).includes(f))?r("error","PROP_ENUM",`Prop "${d}" de ${c.key} deve ser uma de: ${(h.options??[]).join(", ")}.`,l.id):h.type==="course_ids"&&(!Array.isArray(f)||f.some(m=>typeof m!="string"||m.trim()===""))&&r("error","PROP_TYPE",`Prop "${d}" de ${c.key} deve ser uma lista de IDs de curso.`,l.id)}if(l.component==="featured_courses"&&u.source==="manual"){const d=u.courseIds;!Array.isArray(d)||d.length===0?r("error","MANUAL_COURSES_EMPTY","A fonte Cursos selecionados exige ao menos um curso.",l.id):new Set(d).size!==d.length&&r("error","MANUAL_COURSES_DUPLICATE","A seleção manual contém cursos duplicados.",l.id)}}for(const[l,c]of i)c>1&&r("error","SINGLETON_DUPLICATE",`Componente ${l} só admite uma instância (encontradas ${c}).`);return t}function PI(e){return e.some(t=>t.severity==="error")}function SNe(e){if(e.mode!=="sections"||!Array.isArray(e.sections))return[];const t=[];for(const r of e.sections){if(r.visible===!1)continue;const n=Zj[r.component];if(!n)continue;const s={};for(const[o,i]of Object.entries(n.props)){const l=r.props?.[o];s[o]=l==null||l===""?i.default:l}t.push({id:r.id,component:r.component,visible:!0,props:s})}return t}const iu={mode:"legacy_fallback",sections:[],snapshot:null,engineVersion:p2};function LI(e,t){return e.config.mode==="legacy"?{mode:t==="preview"?"preview":"legacy",reason:null,sections:[],snapshot:e,engineVersion:p2}:{mode:t,reason:null,sections:SNe(e.config),snapshot:e,engineVersion:p2}}function kNe(e){if(e.preview){const r=TI(e.preview.config);return PI(r)?{...iu,reason:"invalid_config"}:LI(e.preview,"preview")}if(e.sourceError)return{...iu,reason:"source_unavailable"};if(!e.flagEnabled)return{...iu,reason:"flag_disabled"};if(e.device!=="mobile")return{...iu,reason:"not_mobile"};if(!e.live)return{...iu,reason:"no_live_version"};if(e.live.status!=="live")return{...iu,reason:"no_live_version"};const t=TI(e.live.config);return PI(t)?{...iu,reason:"invalid_config"}:LI(e.live,"experience")}const INe={draft:["testing","archived"],testing:["draft","approved","failed","archived"],approved:["draft","scheduled","live","archived"],scheduled:["approved","live","archived"],live:["paused","rollback"],paused:["live","approved","archived"],failed:["draft","archived"],rollback:["draft","approved","archived"],archived:["draft"]};function MQe(e,t){return(INe[e]??[]).includes(t)}const FNe=["approved","scheduled","paused"];function OQe(e){return FNe.includes(e)}const ku={all:["mobile-experience"],live:()=>[...ku.all,"live"],admin:()=>[...ku.all,"admin"],preview:(e,t)=>[...ku.all,"preview",e,t]};function n9(e){return{experienceId:e.experience_id,experienceSlug:e.experience_slug,experienceName:e.experience_name,versionId:e.version_id,version:e.version,status:e.status,config:e.config}}const DI="(max-width: 767px)";function TNe(){const[e,t]=A.useState(()=>typeof window>"u"?!1:window.matchMedia(DI).matches);return A.useEffect(()=>{const r=window.matchMedia(DI),n=()=>t(r.matches);return n(),r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[]),e}function PNe(){const e=TNe(),{data:t,isError:r}=jt({queryKey:ku.live(),enabled:e,queryFn:async()=>{const{data:s,error:o}=await J.rpc("get_mobile_experience_live");if(o)throw o;return s??{flag_enabled:!1,version:null}},staleTime:5*60*1e3,gcTime:30*60*1e3,retry:0}),n=kNe({now:new Date().toISOString(),sourceError:e&&r,flagEnabled:t?.flag_enabled===!0,device:e?"mobile":"desktop",live:t?.version?n9(t.version):null});return{resolution:n,active:n.mode==="experience"}}function UQe(e,t){return jt({queryKey:ku.preview(e??"none",t??"none"),enabled:!!(e&&t),queryFn:async()=>{const{data:r,error:n}=await J.rpc("get_mobile_experience_preview",{p_version_id:e,p_token:t});if(n)throw n;return r??null},staleTime:0,retry:1})}function QQe(e){return n9(e)}function VQe(){return jt({queryKey:ku.admin(),queryFn:async()=>{const{data:e,error:t}=await J.rpc("get_mobile_experience_admin");if(t)throw t;return e??{flag:null,experiences:[],deployments:[],audit:[]}},staleTime:60*1e3})}function nf(e){const t=vn();return Dr({mutationFn:e,onSuccess:()=>{t.invalidateQueries({queryKey:ku.all})}})}function HQe(){return nf(async e=>{const{data:t,error:r}=await J.rpc("mobile_experience_create",{p_name:e.name,p_slug:e.slug,p_description:e.description??null});if(r)throw r;return t})}function zQe(){return nf(async e=>{const{error:t}=await J.rpc("mobile_experience_save_version",{p_version_id:e.versionId,p_config:e.config,p_notes:e.notes??null});if(t)throw t})}function $Qe(){return nf(async e=>{const{error:t}=await J.rpc("mobile_experience_set_status",{p_version_id:e.versionId,p_status:e.status});if(t)throw t})}function qQe(){return nf(async e=>{const{data:t,error:r}=await J.rpc("mobile_experience_duplicate",{p_version_id:e.versionId,p_notes:e.notes??null});if(r)throw r;return t})}function KQe(){return nf(async e=>{const{data:t,error:r}=await J.rpc("mobile_experience_publish",{p_version_id:e.versionId,p_reason:e.reason??null});if(r)throw r;return t})}function GQe(){return nf(async e=>{const{data:t,error:r}=await J.rpc("mobile_experience_rollback",{p_reason:e.reason??null});if(r)throw r;return t})}const LNe=["featured","manual","best_sellers","most_accessed","newest","most_searched"];function RI(e){return e==="best_sellers"||e==="most_accessed"}function DNe(e){return typeof e=="string"&&LNe.includes(e)?e:"featured"}function g2(e){if(!Array.isArray(e))return[];const t=new Set,r=[];
1620for(const n of e){if(typeof n!="string")continue;const s=n.trim();!s||t.has(s)||(t.add(s),r.push(s))}return r}function a9(e){const t=new Set;return e.filter(r=>!r.id||t.has(r.id)?!1:(t.add(r.id),!0))}function MI(e,t){const r=new Map(e.filter(n=>n.id).map(n=>[n.id,n]));return t.map(n=>r.get(n)).filter(n=>!!n)}function RNe(e,t){return a9([...t,...e.filter(r=>r.is_featured)])}function MNe(e){const t=Math.max(1,Math.min(12,Math.trunc(e.limit||8))),r=g2(e.selectedIds),n=g2(e.rankedIds),s=RNe(e.allCourses,e.featuredCourses);let o;switch(e.source){case"manual":o=MI(e.allCourses,r);break;case"best_sellers":case"most_accessed":o=MI(e.allCourses,n);break;case"newest":o=[...e.allCourses].sort((i,l)=>{const c=Date.parse(String(l.created_at??""))-Date.parse(String(i.created_at??""));return Number.isFinite(c)&&c!==0?c:Number(l.priority??0)-Number(i.priority??0)});break;case"most_searched":o=e.allCourses.filter(i=>i.is_most_searched).sort((i,l)=>Number(l.priority??0)-Number(i.priority??0));break;default:o=s}return o=a9(o).slice(0,t),o.length>0||e.fallback==="hide"||e.source==="featured"?{courses:o,usedFallback:!1}:{courses:s.slice(0,t),usedFallback:!0}}function s9({href:e,className:t,ariaLabel:r,children:n}){return e.startsWith("/")?a.jsx(Te,{to:e,className:t,"aria-label":r,children:n}):a.jsx("a",{href:e,className:t,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:n})}function Nc(e,t,r){const n=e.props?.[t];return typeof n=="number"&&Number.isFinite(n)?n:r}function Oa(e,t,r){const n=e.props?.[t];return typeof n=="string"?n:r}function o9(){const{priceCampaigns:e,bonusCourses:t,availableSpots:r}=Uc();return n=>({...n,labels:n.course_labels?.map(s=>s.labels)||[],has_certification:!!n.has_certification,priceIncreaseData:e.get(n.id),bonusCourseData:t.get(n.id),availableSpots:r.get(n.id)})}function Jj(){const[e,t]=A.useState(!1),[r,n]=A.useState(void 0);return{open:i=>{n(i),t(!0)},modal:a.jsx(sd,{formType:"pedir_informacoes",isOpen:e,onClose:()=>t(!1),courseTitle:r})}}function OI(e,t,r,n,s){if(typeof window>"u")return;const o=window.location.pathname;if(o.startsWith("/preview/")||o.includes("mobile-experience/preview"))return;const i=window.__mxExperience,l=window.sessionStorage.getItem("analytics_session_id");J.rpc("track_mobile_course_shelf_event",{p_event_type:e,p_section_id:t.id,p_source:r,p_course_id:n??null,p_position:s??null,p_experience_id:i?.experienceId??null,p_version_id:i?.versionId??null,p_session_id:l,p_page_path:o})}function ONe({section:e}){const t=Oa(e,"headline","O que você quer aprender hoje?");return a.jsxs("section",{className:"container mx-auto px-4 pt-6 pb-1",children:[t&&a.jsx("h2",{className:"text-xl font-bold tracking-tight text-center mb-1",children:t}),a.jsx(Wj,{})]})}function UNe({section:e}){const{categories:t}=Uc(),r=Nc(e,"limit",10),n=Oa(e,"style","scroll"),s=(t||[]).slice(0,r);if(s.length===0)return null;const o=i=>a.jsxs(Te,{to:`/cursos/${i.slug}`,className:"flex items-center gap-2 rounded-full border border-border bg-card px-4 min-h-[44px] text-sm font-medium hover:border-accent transition-colors shrink-0",children:[a.jsx(NA,{name:i.icon,fallbackName:"Database",className:"w-4 h-4 text-accent shrink-0",suspenseFallback:a.jsx("span",{className:"w-4 h-4 shrink-0"})}),a.jsx("span",{className:"whitespace-nowrap",children:i.name})]},i.slug);return a.jsx("section",{className:"py-4",children:a.jsx("div",{className:"container mx-auto px-4",children:n==="grid"?a.jsx("div",{className:"grid grid-cols-2 gap-2",children:s.map(o)}):a.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1 -mx-4 px-4 scrollbar-none",children:s.map(o)})})})}function QNe({section:e}){const t=Nc(e,"limit",3),{data:r}=jt({queryKey:["mx-campaign-banners",t],queryFn:async()=>{const n=new Date().toISOString(),{data:s,error:o}=await J.from("banners").select("id, title, subtitle, cta_text, cta_link, image_url, image_url_mobile").eq("is_active",!0).or("apply_to_all_pages.eq.true,page_type.eq.home").or(`scheduled_start.is.null,scheduled_start.lte.${n}`).or(`scheduled_end.is.null,scheduled_end.gte.${n}`).order("display_order").limit(t);if(o)throw o;return s??[]},staleTime:5*60*1e3});return!r||r.length===0?null:a.jsx("section",{className:"py-3",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx("div",{className:"flex gap-3 overflow-x-auto pb-1 -mx-4 px-4",children:r.map(n=>{const s=n.image_url_mobile||n.image_url,o=!!n.cta_link,i=a.jsxs("div",{className:"w-[280px] shrink-0 rounded-xl border border-border bg-card overflow-hidden",children:[s&&a.jsx("img",{src:s,alt:n.title,loading:"lazy",className:"w-full h-32 object-cover"}),a.jsxs("div",{className:"p-3",children:[a.jsx("h3",{className:"text-sm font-semibold leading-snug line-clamp-2",children:n.title}),n.subtitle&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:n.subtitle}),o&&n.cta_text&&a.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-primary mt-2 min-h-[24px]",children:[n.cta_text,a.jsx(Vs,{className:"w-3.5 h-3.5"})]})]})]});return o&&n.cta_link?a.jsx(s9,{href:n.cta_link,ariaLabel:n.title,className:"block shrink-0",children:i},n.id):a.jsx("div",{className:"shrink-0",children:i},n.id)})})})})}function VNe({section:e}){const{allCourses:t,featuredCourses:r}=Uc(),n=o9(),s=Jj(),o=Oa(e,"title","Recomendados para você"),i=Nc(e,"limit",8),l=DNe(e.props?.source),c=Nc(e,"rankingWindowDays",30),u=Oa(e,"fallback","featured")==="hide"?"hide":"featured",d=g2(e.props?.courseIds),f=A.useRef(""),{data:h,isLoading:m}=jt({queryKey:["mx-course-shelf-ranking",l,c,i],enabled:RI(l),queryFn:async()=>{const{data:b,error:j}=await J.rpc("get_mobile_course_shelf_ranking",{p_source:l,p_window_days:c,p_limit:i});if(j)throw j;return Array.isArray(b)?b:[]},staleTime:5*60*1e3,retry:1}),g=(h??[]).map(b=>b.course_id),x=MNe({source:l,allCourses:t||[],featuredCourses:r||[],selectedIds:d,rankedIds:g,limit:i,fallback:u}).courses,y=`${e.id}:${l}:${x.map(b=>b.id).join(",")}`;return A.useEffect(()=>{m||x.length===0||f.current===y||(f.current=y,OI("impression",e,l))},[x.length,y,m,e,l]),m&&RI(l)?a.jsx("section",{className:"py-5 bg-muted/30","aria-busy":"true",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("div",{className:"mb-3 h-6 w-48 animate-pulse rounded bg-muted"}),a.jsx("div",{className:"flex gap-3 overflow-hidden",children:[0,1].map(b=>a.jsx("div",{className:"h-72 w-[280px] shrink-0 animate-pulse rounded-xl bg-muted"},b))})]})}):x.length===0?null:a.jsxs("section",{className:"py-5 bg-muted/30",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[o&&a.jsx("h2",{className:"text-lg font-bold mb-3",children:o}),a.jsx(uo,{items:x,itemWidth:"md",getKey:b=>b.id,renderItem:(b,j)=>a.jsx("div",{"data-mx-shelf":e.id,"data-mx-shelf-source":l,onClickCapture:()=>
1620OI("course_click",e,l,b.id,j+1),children:a.jsx(sp,{course:n(b),settings:Xo.card,onRequestInfo:C=>s.open(C)})})})]}),s.modal]})}function HNe({section:e}){const{categoriesWithCourses:t}=Uc(),r=o9(),n=Jj(),s=Oa(e,"categorySlug",""),o=Oa(e,"title","Cursos"),i=Nc(e,"limit",8),l=(t||[]).filter(d=>Array.isArray(d.courses)&&d.courses.length>0),c=s?l.find(d=>d.slug===s):l[0];if(!c)return null;const u=c.courses.slice(0,i);return u.length===0?null:a.jsxs("section",{className:"py-5",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 mb-3",children:[a.jsx("h2",{className:"text-lg font-bold leading-tight",children:o||c.name}),a.jsx(Oe,{variant:"outline",size:"sm",asChild:!0,className:"text-xs shrink-0 min-h-[44px]",children:a.jsx(Te,{to:`/cursos/${c.slug}`,children:"Ver todos"})})]}),a.jsx(uo,{items:u,itemWidth:"md",getKey:d=>d.id,renderItem:d=>a.jsx(sp,{course:r(d),settings:Xo.card,onRequestInfo:f=>n.open(f)})})]}),n.modal]})}function zNe({section:e}){const{categoriesWithCourses:t}=Uc(),r=Oa(e,"title","Turmas próximas"),n=Nc(e,"limit",6),s=new Set,o=[];for(const l of t||[])for(const c of l.courses||[]){if(!c?.id||!c?.slug||s.has(c.id))continue;s.add(c.id);let u=null;for(const d of c.cohorts||[]){if(typeof d?.start_date!="string"||!xne(d.start_date))continue;const f=pne(d.start_date);f&&(!u||f.getTime()<u.getTime())&&(u=f)}u&&o.push({courseId:c.id,courseTitle:c.title,courseSlug:c.slug,startDate:u})}if(o.length===0)return null;const i=o.sort((l,c)=>l.startDate.getTime()-c.startDate.getTime()).slice(0,n);return a.jsx("section",{className:"py-5",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("h2",{className:"text-lg font-bold mb-3",children:r}),a.jsx("div",{className:"flex flex-col gap-2",children:i.map(l=>a.jsxs(Te,{to:`/curso/${l.courseSlug}`,className:"flex items-center gap-3 rounded-lg border border-border bg-card px-3 py-2.5 min-h-[56px] hover:border-accent transition-colors",children:[a.jsx("div",{className:"w-9 h-9 rounded-md bg-accent/10 flex items-center justify-center shrink-0",children:a.jsx(dn,{className:"w-4 h-4 text-accent"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-sm font-semibold leading-snug line-clamp-2",children:l.courseTitle}),a.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:["Turma em ",WA(l.startDate)]})]}),a.jsx(Vs,{className:"w-4 h-4 text-muted-foreground shrink-0"})]},l.courseId))})]})})}function $Ne({section:e}){const{featuredFormations:t}=Uc(),r=Jj(),n=Oa(e,"title","Formações completas"),s=Nc(e,"limit",4),o=(t||[]).slice(0,s);return o.length===0?null:a.jsxs("section",{className:"py-5 bg-muted/30",children:[a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("h2",{className:"text-lg font-bold mb-3",children:n}),a.jsx(uo,{items:o,itemWidth:"md",getKey:i=>i.id,renderItem:i=>a.jsx(vx,{formation:i,settings:Xo.card,onRequestInfo:l=>r.open(l)})})]}),r.modal]})}function qNe(e){return a.jsx(JV,{})}function KNe({section:e}){return a.jsx(zv,{limit:Nc(e,"limit",6)})}function GNe(e){return a.jsx(Yj,{})}function WNe({section:e}){const t=Oa(e,"title","Treinamento para empresas"),r=Oa(e,"subtitle","Capacite seu time com trilhas corporativas sob medida."),n=Oa(e,"ctaLabel","Fale com um especialista"),s=Oa(e,"ctaHref","/empresas");return a.jsx("section",{className:"py-5",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsxs("div",{className:"rounded-2xl bg-gradient-to-br from-primary to-primary/80 text-primary-foreground p-5",children:[a.jsx("h2",{className:"text-lg font-bold leading-snug",children:t}),r&&a.jsx("p",{className:"text-sm opacity-90 mt-1.5 leading-relaxed",children:r}),s&&n&&a.jsx(Oe,{asChild:!0,variant:"secondary",size:"lg",className:"mt-4 min-h-[44px] w-full sm:w-auto",children:a.jsx(s9,{href:s,children:n})})]})})})}function YNe(e){return a.jsx(Gj,{})}function XNe(e){return a.jsx(ns,{minHeight:"300px",children:a.jsx(XV,{})})}function ZNe({section:e}){const t=Oa(e,"title","");return a.jsx(ns,{minHeight:"220px",children:a.jsx("section",{className:"py-5",children:a.jsxs("div",{className:"container mx-auto px-4",children:[t&&a.jsx("h2",{className:"text-lg font-bold mb-3",children:t}),a.jsx(ZV,{})]})})})}function JNe(e){return a.jsx(ns,{minHeight:"300px",children:a.jsx(Kj,{})})}function e4e(e){return a.jsx(ns,{minHeight:"300px",children:a.jsx(Xj,{})})}function t4e(e){return a.jsx(ns,{minHeight:"300px",children:a.jsx(qj,{})})}function r4e(e){return a.jsx(ns,{minHeight:"300px",children:a.jsx(qV,{pageSlug:"home"})})}function n4e(e){return a.jsx("section",{className:"py-5",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx(fm,{variant:"banner",context:"empresas"})})})}const UI="w-full [&>a]:w-full [&>a]:h-auto [&>a]:min-h-[48px] [&>a]:px-3 [&>a]:py-3 [&>a]:text-sm [&>a]:leading-tight [&>a]:whitespace-normal [&>a]:text-center";function a4e({section:e}){const t=Oa(e,"title","Pronto para transformar sua carreira?"),r=Oa(e,"subtitle","Junte-se a mais de 300.000 profissionais que já mudaram de vida com a Trainning Education");return a.jsx("section",{className:"py-8 bg-primary text-primary-foreground",children:a.jsxs("div",{className:"container mx-auto px-4 text-center",children:[t&&a.jsx("h2",{className:"text-2xl font-bold leading-snug mb-3",children:t}),r&&a.jsx("p",{className:"text-sm opacity-90 mb-5 leading-relaxed",children:r}),a.jsxs("div",{className:"grid grid-cols-2 gap-2 items-stretch",children:[a.jsx(fA,{location:"index_final_cta_1",className:UI,fallback:a.jsx(Oe,{asChild:!0,className:"accent-gradient w-full h-auto min-h-[48px] px-3 py-3 text-sm leading-tight whitespace-normal",children:a.jsx(Te,{to:"/contato",children:"Quero aproveitar agora"})})}),a.jsx(fA,{location:"index_final_cta_2",className:UI,fallback:a.jsx(Oe,{asChild:!0,className:"bg-green-600 hover:bg-green-700 text-white w-full h-auto min-h-[48px] px-3 py-3 text-sm leading-tight whitespace-normal",children:a.jsx(Te,{to:"/contato",children:"Pedir mais Informações"})})})]})]})})}const s4e=[{icon:Mn,valueKey:"alumniValue",labelKey:"alumniLabel",value:"+300.000",label:"Alunos Formados"},{icon:Ra,valueKey:"companiesValue",labelKey:"companiesLabel",value:"+20.000",label:"Empresas Atendidas"},{icon:kn,valueKey:"certificationsValue",labelKey:"certificationsLabel",value:"+150",label:"Certificações Oficiais"},{icon:ls,valueKey:"employabilityValue",labelKey:"employabilityLabel",value:"92%",label:"Taxa de Empregabilidade"}];function o4e({section:e}){const t=s4e.map(r=>({Icon:r.icon,key:r.valueKey,value:Oa(e,r.valueKey,r.value).trim(),label:Oa(e,r.labelKey,r.label).trim()})).filter(r=>r.value!==""&&r.label!=="");return t.length===0?null:a.jsx(ns,{minHeight:"160px",children:a.jsx("section",{className:"py-6 bg-muted/50",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx("div",{className:"grid grid-cols-2 gap-5",children:t.map(({Icon:r,key:n,value:s,label:o})=>a.jsxs("div",{className:"text-center",children:[a.jsx(r,{className:"w-7 h-7 mx-auto mb-2 text-accent"}),a.jsx("div",{className:"text-2xl font-bold text-primary mb-0.5",children:s}),a.jsx("div",{className:"text-xs text-muted-foreground leading-snug",children:o})]},n))})})})})}const i4e=[{to:"/",label:"InÃcio",icon:Ex},{to:"/busca",label:"Explorar",icon:vc},{to:"/formacoes",label:"Trilhas",icon:P$},{to:"/cursos",label:"Cursos",icon:Zo},{to:"/auth",label:"Entrar",icon:cs}];function l4e(e){const t=fn(),r=A.useRef(null);A.useEffect(()=>{const s=r.current,o=document.documentElement;if(!s)return;const i=()=>{o.style.setProperty("--mx-bottom-nav-height",`${s.offsetHeight}px`)};i();let l;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(i),l.observe(s)),()=>{l?.disconnect(),o.style.removeProperty("--mx-bottom-nav-height")}},[]);const n=s=>s==="/"?t.pathname==="/":t.pathname.startsWith(s);return a.jsx("nav",{ref:r,"aria-label":"Navegação principal",className:"fixed inset-x-0 z-20 bg-background/95 backdrop-blur border-t border-border pb-[env(safe-area-inset-bottom)]",style:{bottom:"var(--action-bar-height, 0px)"},children:a.jsx("div",{className:"grid grid-cols-5",children:i4e.map(s=>{const o=s.icon,i=n(s.to);return a.jsxs(Te,{to:s.to,"aria-current":i?"page":void 0,className:`flex flex-col items-center justify-center gap-0.5 min-h-[56px] text-[11px] font-medium transition-colors ${i?"text-primary":"text-muted-foreground hover:text-foreground"}`,children:[a.jsx(o,{className:`w-5 h-5 ${i?"stroke-[2.25]":""}`}),a.jsx("span",{children:s.label})]},s.to)})})})}const c4e={hero_banner:YNe,universal_search:ONe,quick_categories:UNe,campaign_banners:QNe,featured_courses:VNe,category_courses:HNe,upcoming_cohorts:zNe,featured_formations:$Ne,certifications:qNe,testimonials:KNe,business_banner:WNe,free_courses:GNe,digital_courses:XNe,quiz_simulados:ZNe,jobs:JNe,knowledge_pills:e4e,institutional_clients:t4e,dynamic_carousels:r4e,team_pass_sap:n4e,final_cta:a4e,social_proof_stats:o4e,bottom_nav:l4e};function u4e({resolution:e}){const t=e.snapshot;A.useEffect(()=>
1620{if(t)return window.__mxExperience={experienceId:t.experienceId,versionId:t.versionId,version:t.version,slug:t.experienceSlug},()=>{delete window.__mxExperience}},[t]);const n=e.sections.some(s=>s.component==="bottom_nav")?"calc(var(--action-bar-height, 0px) + var(--mx-bottom-nav-height, 4rem))":void 0;return a.jsx("div",{"data-mx-experience":t?.experienceSlug,"data-mx-version":t?.version,style:n?{paddingBottom:n}:void 0,children:e.sections.map(s=>{const o=c4e[s.component];return o?a.jsx(o,{section:s},s.id):null})})}class d4e extends A.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("[mx] renderer error",t)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const A4e=[{icon:Mn,value:"+300.000",label:"Alunos Formados"},{icon:Ra,value:"+20.000",label:"Empresas Atendidas"},{icon:kn,value:"+150",label:"Certificações Oficiais"},{icon:ls,value:"92%",label:"Taxa de Empregabilidade"}],f4e=()=>{const{t:e,i18n:t}=mh(),[r,n]=A.useState(!1),[s,o]=A.useState(null),{data:i=[]}=jNe("/"),l=b=>i.filter(j=>j.position===b),{categories:c,categoriesWithCourses:u,featuredCourses:d,featuredFormations:f,priceCampaigns:h,bonusCourses:m,availableSpots:g,isLoading:p}=Uc(),x=PNe(),y=a.jsxs(A2,{showSearch:!1,children:[a.jsx(h2,{title:"Trainning Education | Cursos SAP e Certificações de TI",description:"Escola de tecnologia com mais de 300 mil alunos formados em SAP, Cloud, Segurança, Data e IA. Cursos ao vivo, digitais e formações com certificação oficial.",canonicalPath:"/",jsonLd:[y_(),b_()]}),a.jsxs("main",{id:"conteudo-principal",children:[a.jsx(Gj,{}),a.jsxs("section",{className:"container mx-auto px-4 pt-8 pb-2 text-center",children:[a.jsx("h1",{className:"text-2xl md:text-3xl font-bold tracking-tight",children:"Cursos de SAP e Tecnologia com Certificação Oficial"}),a.jsx("p",{className:"mt-2 text-sm md:text-base text-muted-foreground max-w-2xl mx-auto",children:"Formações ao vivo e digitais em SAP, Cloud, Dados, IA e Segurança â com mais de 300 mil alunos formados."})]}),a.jsx(Wj,{}),l("hero_after").map(b=>a.jsx(II,{position:b.position,displayMode:b.display_mode,maxSlides:b.max_slides,autoPlay:b.auto_play,slideDuration:b.slide_duration,customTitle:b.custom_title,customSubtitle:b.custom_subtitle,backgroundStyle:b.background_style},b.id)),a.jsx("section",{className:"py-6 md:py-12",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[a.jsx("h2",{className:"text-2xl md:text-4xl font-bold",children:e("home.categoriesTitle")}),a.jsx("p",{className:"text-sm md:text-lg text-muted-foreground max-w-2xl mx-auto mt-2",children:e("home.categoriesSubtitle")})]}),a.jsx(uo,{items:c,itemWidth:"xs",getKey:b=>b.slug,renderItem:b=>a.jsxs(Te,{to:`/cursos/${b.slug}`,className:"group p-2 sm:p-3 md:p-6 rounded-lg border border-border hover:border-accent bg-card card-hover text-center block h-full min-h-[100px] sm:min-h-[120px] md:min-h-[140px] flex flex-col items-center justify-center",children:[a.jsx(NA,{name:b.icon,fallbackName:"Database",className:"w-6 h-6 sm:w-8 sm:h-8 md:w-12 md:h-12 mx-auto mb-1 sm:mb-2 md:mb-3 text-accent",suspenseFallback:a.jsx("div",{className:"w-6 h-6 sm:w-8 sm:h-8 md:w-12 md:h-12 mx-auto mb-1 sm:mb-2 md:mb-3"})}),a.jsx("h3",{className:"font-semibold text-[10px] sm:text-xs md:text-sm leading-tight px-1",children:Im(b.name,b.name_en,b.name_es,t.language)})]})})]})}),u.filter(b=>b.slug!=="cursos-digitais").map(b=>a.jsx("section",{className:"py-6 bg-muted/30 md:py-[20px]",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mb-4 md:mb-6",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("h2",{className:"text-xl md:text-2xl lg:text-3xl font-bold mb-1",children:a.jsx(Te,{to:`/cursos/${b.slug}`,className:"hover:text-primary transition-colors",children:Im(b.name,b.name_en,b.name_es,t.language)})}),b.description&&a.jsx("p",{className:"text-xs md:text-sm text-muted-foreground",children:Im(b.description,b.description_en,b.description_es,t.language)})]}),a.jsx(Oe,{variant:"outline",size:"sm",asChild:!0,className:"text-xs md:text-sm",children:a.jsx(Te,{to:`/cursos/${b.slug}`,children:e("home.viewAll")})})]}),(()=>{const j=[...(b.formations||[]).map(C=>({kind:"formation",data:C})),...(b.courses||[]).map(C=>({kind:"course",data:C}
1620))];return a.jsx(uo,{items:j,itemWidth:"md",getKey:C=>C.kind==="formation"?`formation-${C.data.id}`:`course-${C.data.id}`,renderItem:C=>{if(C.kind==="formation")return a.jsx(vx,{formation:C.data,settings:Xo.card,onRequestInfo:E=>{o({id:C.data.id,title:E}),n(!0)}});const T=C.data,L=h.get(T.id),P=m.get(T.id),I=g.get(T.id);return a.jsx(sp,{course:{...T,labels:T.course_labels?.map(E=>E.labels)||[],has_certification:!!T.has_certification,priceIncreaseData:L,bonusCourseData:P,availableSpots:I},settings:Xo.card,onRequestInfo:E=>{o({id:T.id,title:E}),n(!0)}})}})})()]})},b.id)),f.length>0&&a.jsx("section",{className:"py-8 md:py-12 bg-muted/30",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-2",children:e("home.formationsTitle")}),a.jsx("p",{className:"text-lg text-muted-foreground",children:e("home.formationsSubtitle")})]}),a.jsx("div",{className:"mb-8",children:a.jsx(uo,{items:f,itemWidth:"md",getKey:b=>b.id,renderItem:b=>a.jsx(vx,{formation:b,settings:Xo.card,onRequestInfo:j=>{o({id:b.id,title:j}),n(!0)}})})}),a.jsx("div",{className:"text-center",children:a.jsx(Oe,{size:"lg",variant:"outline",asChild:!0,children:a.jsx(Te,{to:"/formacoes",children:e("home.viewAllFormations")})})})]})}),a.jsx(JV,{}),a.jsx(ns,{minHeight:"300px",children:a.jsx(zv,{limit:6})}),a.jsx(ns,{minHeight:"400px",children:a.jsx(qj,{})}),a.jsx(fm,{variant:"banner",context:"empresas",className:"pb-6"}),a.jsx(ns,{minHeight:"250px",children:a.jsx(Yj,{})}),a.jsx("section",{className:"py-16 bg-gradient-to-br from-card via-muted/30 to-background md:py-[10px]",children:a.jsx("div",{className:"w-full px-4 md:px-8 lg:px-12",children:a.jsx("div",{className:"bg-gradient-to-br from-primary/5 to-primary/10 border border-primary/20 rounded-2xl overflow-hidden shadow-xl",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[a.jsxs("div",{className:"p-8 md:p-12 lg:p-16 flex flex-col justify-center py-[20px]",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary px-4 py-2 rounded-full mb-6 w-fit",children:[a.jsx(Ra,{className:"h-4 w-4"}),a.jsx("span",{className:"text-sm font-semibold",children:"Para Empresas"})]}),a.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-6",children:"Training University"}),a.jsx("p",{className:"text-muted-foreground text-lg md:text-xl mb-8 leading-relaxed",children:"Parceria educacional exclusiva para sua empresa. Ofereça treinamentos premium aos seus colaboradores com descontos especiais."}),a.jsxs("ul",{className:"space-y-4 mb-10",children:[a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(ss,{className:"h-6 w-6 text-primary shrink-0"}),a.jsx("span",{className:"text-lg",children:"100% gratuito para empresa"})]}),a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(ss,{className:"h-6 w-6 text-primary shrink-0"}),a.jsx("span",{className:"text-lg",children:"Até 40% de desconto para funcionários"})]}),a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(ss,{className:"h-6 w-6 text-primary shrink-0"}),a.jsx("span",{className:"text-lg",children:"Relatórios de progresso e certificações"})]})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[a.jsx(Oe,{asChild:!0,size:"lg",className:"text-lg px-8 py-6",children:a.jsx(Te,{to:"/training-university",children:"Cadastrar Empresa"})}),a.jsx(Oe,{asChild:!0,size:"lg",variant:"outline",className:"text-lg px-8 py-6",children:a.jsx(Te,{to:"/training-university",children:"Saiba Mais"})})]})]}),a.jsxs("div",{className:"relative bg-gradient-to-br from-primary/20 to-primary/5 p-8 md:p-12 flex flex-col gap-8 py-[10px] px-[50px]",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-3 w-full",children:[a.jsxs("div",{className:"bg-card/90 backdrop-blur rounded-lg p-3 text-center shadow-lg border border-primary/10",children:[a.jsx(ls,{className:"h-6 w-6 text-primary mx-auto mb-1"}),a.jsx("div",{className:"text-xl font-bold",children:"40%"}),a.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Mais Produtivida
1620de"})]}),a.jsxs("div",{className:"bg-card/90 backdrop-blur rounded-lg p-3 text-center shadow-lg border border-primary/10",children:[a.jsx(wa,{className:"h-6 w-6 text-primary mx-auto mb-1"}),a.jsx("div",{className:"text-xl font-bold",children:"150+"}),a.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Empresas Parceiras"})]}),a.jsxs("div",{className:"bg-card/90 backdrop-blur rounded-lg p-3 text-center shadow-lg border border-primary/10",children:[a.jsx(kn,{className:"h-6 w-6 text-primary mx-auto mb-1"}),a.jsx("div",{className:"text-xl font-bold",children:"10k+"}),a.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Profissionais Treinados"})]}),a.jsxs("div",{className:"bg-card/90 backdrop-blur rounded-lg p-3 text-center shadow-lg border border-primary/10",children:[a.jsx(Mn,{className:"h-6 w-6 text-primary mx-auto mb-1"}),a.jsx("div",{className:"text-xl font-bold",children:"4.5x"}),a.jsx("div",{className:"text-[10px] text-muted-foreground",children:"ROI Médio"})]})]}),a.jsxs("div",{className:"bg-card/50 backdrop-blur p-4 border border-primary/10 rounded-2xl",children:[a.jsx("p",{className:"text-xs text-center text-muted-foreground uppercase tracking-wider mb-3",children:"Empresas Parceiras"}),a.jsx(uo,{items:[{name:"Petrobras",service:"Treinamento de 100 alunos em IA"},{name:"Ambev",service:"Capacitação em Cloud Computing"},{name:"Vale",service:"Formação em Data Analytics"},{name:"Bradesco",service:"Certificação em Cybersecurity"},{name:"Itaú",service:"Treinamento em SAP HANA"},{name:"Microsoft",service:"Programa de Upskilling Digital"},{name:"SAP",service:"Formação Técnica Avançada"},{name:"IBM",service:"Capacitação em DevOps"},{name:"Accenture",service:"Desenvolvimento de Liderança Tech"}],itemWidth:"xs",showSwipeHint:!1,getKey:b=>b.name,renderItem:b=>a.jsxs("div",{className:"flex flex-col items-center justify-center bg-card/80 rounded-lg p-3 min-h-[90px] hover:shadow-md transition-all",children:[a.jsx("span",{className:"text-foreground text-center leading-tight font-semibold text-sm",children:b.name}),a.jsx("span",{className:"text-muted-foreground text-center leading-tight text-xs mt-1",children:b.service})]})})]})]})]})})})}),a.jsx(ns,{minHeight:"300px",children:a.jsx(XV,{})}),a.jsx(ns,{minHeight:"400px",children:a.jsx("section",{className:"py-12 bg-gradient-to-br from-purple-50 to-blue-50 dark:from-purple-950/20 dark:to-blue-950/20 md:py-[20px]",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx(ZV,{}),a.jsx("div",{className:"text-center mt-10",children:a.jsx(fA,{location:"index_quiz_cta",fallback:a.jsx(Oe,{asChild:!0,size:"lg",className:"bg-purple-600 hover:bg-purple-700 text-white text-lg px-12 py-6 h-auto shadow-lg hover:shadow-xl transition-all hover:scale-105",children:a.jsxs(Te,{to:"/simulados",className:"flex items-center gap-2",children:[a.jsx(Zo,{className:"w-5 h-5"}),"Ver Todos os Simulados"]})})})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-12 max-w-4xl mx-auto",children:[a.jsxs("div",{className:"bg-card/80 backdrop-blur rounded-lg p-6 text-center border border-purple-200 dark:border-purple-800",children:[a.jsx(kn,{className:"w-10 h-10 text-purple-600 mx-auto mb-3"}),a.jsx("h3",{className:"font-bold mb-2",children:"Ganhe Recompensas"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Complete simulados e ganhe pontos para trocar por benefÃcios exclusivos"})]}),a.jsxs("div",{className:"bg-card/80 backdrop-blur rounded-lg p-6 text-center border border-blue-200 dark:border-blue-800",children:[a.jsx(ls,{className:"w-10 h-10 text-blue-600 mx-auto mb-3"}),a.jsx("h3",{className:"font-bold mb-2",children:"Avalie seu NÃvel"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Descubra seus pontos fortes e áreas de melhoria com feedback detalhado"})]}),a.jsxs("div",{className:"bg-card/80 backdrop-blur rounded-lg p-6 text-center border border-green-200 dark:border-green-800",children:[a.jsx(ss,{className:"w-10 h-10 text-green-600 mx-auto mb-3"}),a.jsx("h3",{className:"font-bold mb-2",children:"100% Gratuito"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Todos os simulados são gratuitos e sem limite de tentativas"})]})]})]})})}),a.jsx(ns,{minHeight:"300px",children:a.jsx(Kj,{})}),a.jsx(ns,{minHeight:"250px",children:a.jsx("section",{className:"py-8 md:py-12",children:a.jsxs("div",{className:"container mx-auto px-4",children:[a.jsx("div",{className:"text-center mb-8",children:a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-2",children:"Por que escolher a Trainning?"})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(wa,{className:"w-8 h-8 text-accent"})}),a.jsx("h3",{className:"font-bold mb-2",children:"Instrutores Especialistas"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Profissionais certificados e c
1620om vasta experiência de mercado"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(ss,{className:"w-8 h-8 text-accent"})}),a.jsx("h3",{className:"font-bold mb-2",children:"Certificação Oficial"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Certificados reconhecidos pelas principais empresas do mercado"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(ls,{className:"w-8 h-8 text-accent"})}),a.jsx("h3",{className:"font-bold mb-2",children:"Networking"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Conexão com profissionais e empresas lÃderes do setor"})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:a.jsx(zs,{className:"w-8 h-8 text-accent"})}),a.jsx("h3",{className:"font-bold mb-2",children:"Portal de Vagas"}),a.jsx("p",{className:"text-muted-foreground text-sm",children:"Acesso exclusivo a oportunidades nas melhores empresas"})]})]})]})})}),a.jsx("section",{className:"section-spacing bg-primary text-primary-foreground",children:a.jsxs("div",{className:"container mx-auto px-4 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Pronto para transformar sua carreira?"}),a.jsx("p",{className:"text-xl mb-8 opacity-90 max-w-2xl mx-auto",children:"Junte-se a mais de 200.000 profissionais que já mudaram de vida com a Trainning Education"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[a.jsx(fA,{location:"index_final_cta_1",fallback:a.jsx(Oe,{size:"lg",className:"accent-gradient text-lg px-8",asChild:!0,children:a.jsx(Te,{to:"/contato",children:"Quero aproveitar agora"})})}),a.jsx(fA,{location:"index_final_cta_2",className:"flex-1 sm:flex-none",fallback:a.jsx(Oe,{size:"lg",className:"bg-green-600 hover:bg-green-700 transition-all hover:scale-105 text-white text-lg px-8",asChild:!0,children:a.jsx(Te,{to:"/contato",children:"Pedir mais Informações"})})})]})]})}),a.jsx(ns,{minHeight:"120px",children:a.jsx("section",{className:"py-8 bg-muted/50",children:a.jsx("div",{className:"container mx-auto px-4",children:a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:A4e.map((b,j)=>{const C=b.icon;return a.jsxs("div",{className:"text-center",children:[a.jsx(C,{className:"w-8 h-8 mx-auto mb-2 text-accent"}),a.jsx("div",{className:"text-3xl font-bold text-primary mb-1",children:b.value}),a.jsx("div",{className:"text-sm text-muted-foreground",children:b.label})]},j)})})})})}),a.jsx(ns,{minHeight:"300px",children:a.jsx(Xj,{})}),l("footer_before").map(b=>a.jsx(II,{position:b.position,displayMode:b.display_mode,maxSlides:b.max_slides,autoPlay:b.auto_play,slideDuration:b.slide_duration,customTitle:b.custom_title,customSubtitle:b.custom_subtitle,backgroundStyle:b.background_style},b.id)),a.jsx(qV,{pageSlug:"home"})]}),a.jsx(jI,{}),a.jsx(sd,{formType:"pedir_informacoes",isOpen:r,onClose:()=>n(!1),courseTitle:s?.title})]});return x.active&&x.resolution?a.jsx(d4e,{fallback:y,children:a.jsxs(A2,{showSearch:!1,children:[a.jsx(h2,{title:"Trainning Education | Cursos SAP e Certificações de TI",description:"Escola de tecnologia com mais de 300 mil alunos formados em SAP, Cloud, Segurança, Data e IA. Cursos ao vivo, digitais e formações com certificação oficial.",canonicalPath:"/",jsonLd:[y_(),b_()]}),a.jsx("main",{id:"conteudo-principal",children:a.jsx(u4e,{resolution:x.resolution})}),a.jsx(jI,{})]})}):y},m4e=()=>a.jsx(r9,{children:a.jsx(f4e,{})}),x2="mobile_experience_manager_v1",h4e="home",i9="id, slug, name, page_slug, device, version, status, renderer, rules, priority, scheduled_publish_at, notes, published_at, created_at, updated_at",p4e="id, experience_id, component_code, title, subtitle, display_order, is_active, settings",g4e={draft:[{to:"testing",label:"Enviar para teste"}],testing:[{to:"approved",label:"Aprovar"},{to:"draft",label:"Voltar para rascunho"}],approved:[{to:"live",label:"Definir como principal"},{to:"testing",label:"Voltar para teste"}],live:[{to:"paused",label:"Pausar"}],paused:[{to:"live",label:"Restaurar (rollback)"},{to:"archived",label:"Arquivar"}
1620],archived:[{to:"draft",label:"Reabrir como rascunho"}]};async function x4e(){const{data:e,error:t}=await J.from("feature_flags").select("id, flag_key, is_enabled, description, updated_at").eq("flag_key",x2).maybeSingle();if(t)throw t;return e}async function v4e(e){let t=J.from("page_experiences").select(i9);e&&(t=t.eq("page_slug",e));const{data:r,error:n}=await t.order("priority",{ascending:!1}).order("created_at",{ascending:!0});if(n)throw n;return r??[]}async function v2(e){const{data:t,error:r}=await J.from("page_experience_sections").select(p4e).eq("experience_id",e).order("display_order",{ascending:!0});if(r)throw r;return t??[]}async function WQe(){const{data:e,error:t}=await J.from("experience_components").select("code, name, description, source, is_active").order("source",{ascending:!0}).order("name",{ascending:!0});if(t)throw t;return e??[]}async function YQe(e,t=50){let r=J.from("page_experience_events").select("id, experience_id, event_type, severity, actor, payload, created_at");const{data:n,error:s}=await r.order("created_at",{ascending:!1}).limit(t);if(s)throw s;return n??[]}async function fh(e){const{data:t}=await J.auth.getUser(),r=t?.user?.id??null;if(!r)return;const{error:n}=await J.from("page_experience_events").insert({experience_id:e.experienceId??void 0,event_type:e.eventType,severity:e.severity??"info",actor:r,payload:e.payload??{}});n&&console.warn("[page-experiences] falha ao registrar evento",n)}async function XQe(e,t){if(t==="live")throw new Error("Promoção para live usa publishExperience().");if(!g4e[e.status]?.some(s=>s.to===t))throw new Error(`Transição ${e.status} â ${t} não é permitida.`);const{error:n}=await J.from("page_experiences").update({status:t}).eq("id",e.id);if(n)throw n;await fh({experienceId:e.id,eventType:"status_changed",payload:{from:e.status,to:t}})}async function ZQe(e){if(e.status!=="approved"&&e.status!=="paused")throw new Error("Só experiências aprovadas ou pausadas podem ir ao ar.");const{data:t,error:r}=await J.from("page_experiences").select(i9).eq("page_slug",e.page_slug).eq("device",e.device).eq("status","live").maybeSingle();if(r)throw r;const n=t;if(n&&n.id!==e.id){const{error:i}=await J.from("page_experiences").update({status:"paused"}).eq("id",n.id);if(i)throw i;await fh({experienceId:n.id,eventType:"status_changed",payload:{from:"live",to:"paused",reason:"superseded_by",by:e.id}})}const s=!!e.published_at,{error:o}=await J.from("page_experiences").update({status:"live",published_at:new Date().toISOString()}).eq("id",e.id);if(o)throw o;return await fh({experienceId:e.id,eventType:s?"rollback":"published",payload:{from:e.status,page_slug:e.page_slug,device:e.device,previous_live:n?.id??null}}),{previousLiveId:n?.id??null,isRollback:s}}async function JQe(e){if(e.renderer==="legacy")throw new Error("O modelo legado é o fallback permanente e não pode ser duplicado.");const{data:t,error:r}=await J.from("page_experiences").select("version").eq("slug",e.slug).order("version",{ascending:!1}).limit(1);if(r)throw r;const n=(t?.[0]?.version??e.version)+1,{data:s}=await J.auth.getUser(),{data:o,error:i}=await J.from("page_experiences").insert({slug:e.slug,name:`${e.name} v${n}`,page_slug:e.page_slug,device:e.device,version:n,status:"draft",renderer:e.renderer,rules:e.rules,priority:e.priority,notes:e.notes,created_by:s?.user?.id??null}).select("id").single();if(i)throw i;const l=await v2(e.id);if(l.length>0){const{error:c}=await J.from("page_experience_sections").insert(l.map(u=>({experience_id:o.id,component_code:u.component_code,title:u.title,subtitle:u.subtitle,display_order:u.display_order,is_active:u.is_active,settings:u.settings})));if(c)throw c}return await fh({experienceId:o.id,eventType:"duplicated",payload:{source:e.id,version:n,sections:l.length}}),o.id}async function e7e(e){const{data:t}=await J.auth.getUser(),{error:r}=await J.from("feature_flags").update({is_enabled:e,updated_by:t?.user?.id??null}).eq("flag_key",x2);if(r)throw r;await fh({experienceId:null,eventType:"flag_changed",payload:{flag_key:x2,is_enabled:e}})}const ol=(e,t=null,r=!1)=>({mode:"legacy",reason:e,experience:t,isPreview:r});
1620function y4e(e){const[t]=FJ(),r=t.get("xp_preview"),n=pj(),{isAdmin:s}=Zn(),o=jt({queryKey:["page-experience-resolution",e,r,s],staleTime:6e4,retry:1,queryFn:async()=>{const i=await v4e(e);if(r&&s){const h=i.find(g=>g.id===r||g.slug===r);if(!h)return ol("preview_not_found",null,!0);if(h.renderer!=="sections")return ol("preview_is_legacy",h,!0);const m=(await v2(h.id)).filter(g=>g.is_active);return m.length===0?ol("preview_without_sections",h,!0):{mode:"sections",reason:"admin_preview",experience:h,sections:m,isPreview:!0}}if(!(await x4e())?.is_enabled)return ol("flag_disabled");const c=n?"mobile":"desktop",d=i.filter(h=>h.status==="live"&&(h.device===c||h.device==="any")).sort((h,m)=>m.priority!==h.priority?m.priority-h.priority:h.device!==m.device?h.device===c?-1:1:m.version-h.version)[0];if(!d)return ol("no_live_experience");if(d.renderer!=="sections")return ol("renderer_legacy",d);const f=(await v2(d.id)).filter(h=>h.is_active);return f.length===0?ol("empty_sections",d):{mode:"sections",reason:"live",experience:d,sections:f,isPreview:!1}}});return o.isError?ol("resolution_error"):o.data?o.data:ol("loading")}function b4e({headline:e="O que você quer aprender hoje?",subtitle:t}){return a.jsxs("section",{className:"bg-primary/5 px-4 py-6",children:[a.jsx("h1",{className:"text-xl font-bold leading-snug md:text-2xl",children:e}),t&&a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t}),a.jsx("div",{className:"mt-4",children:a.jsx(Wj,{})})]})}function w4e({title:e="Explore por área",limit:t=8,layout:r="grid"}){const{categories:n}=Uc(),s=(n??[]).slice(0,Math.max(1,t||8));if(!s.length)return null;const o=i=>a.jsxs(Te,{to:`/cursos/${i.slug}`,className:"flex min-h-[5rem] flex-col items-center justify-center gap-1.5 rounded-xl border border-border bg-card p-3 text-center transition hover:border-accent",children:[a.jsx(NA,{name:i.icon,fallbackName:"Database",className:"h-6 w-6 text-accent",suspenseFallback:a.jsx("div",{className:"h-6 w-6"})}),a.jsx("span",{className:"text-xs font-semibold leading-tight",children:i.name})]},i.slug);return a.jsxs("section",{className:"px-4 py-5",children:[e&&a.jsx("h2",{className:"mb-3 text-base font-bold",children:e}),r==="scroll"?a.jsx("div",{className:"-mx-4 flex snap-x gap-3 overflow-x-auto px-4 pb-1",children:s.map(i=>a.jsx("div",{className:"w-28 shrink-0 snap-start",children:o(i)},i.slug))}):a.jsx("div",{className:"grid grid-cols-2 gap-3",children:s.map(o)})]})}function _4e({bannerId:e,position:t=0}){const{data:r}=jt({queryKey:["mobile-experience","campaign-banner"],queryFn:async()=>{const l=new Date().toISOString(),{data:c,error:u}=await J.from("banners").select("id, title, subtitle, badge_text, cta_text, cta_link, image_url, image_url_mobile, display_order").eq("is_active",!0).or("apply_to_all_pages.eq.true,page_type.eq.home").or(`scheduled_start.is.null,scheduled_start.lte.${l}`).or(`scheduled_end.is.null,scheduled_end.gte.${l}`).order("display_order").limit(10);if(u)throw u;return c??[]},staleTime:6e4}),n=r??[],s=e?n.find(l=>l.id===e):n[Math.max(0,t)]??n[0];if(!s)return null;const o=s.image_url_mobile||s.image_url,i=a.jsxs("div",{className:"overflow-hidden rounded-2xl border border-border bg-card",children:[o&&a.jsx("img",{src:o,alt:s.title,loading:"lazy",className:"aspect-[16/9] w-full object-cover"}),a.jsxs("div",{className:"space-y-2 p-4",children:[s.badge_text&&a.jsx(Vt,{variant:"secondary",children:s.badge_text}),a.jsx("h2",{className:"text-base font-bold leading-snug",children:s.title}),s.subtitle&&a.jsx("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:s.subtitle}),s.cta_text&&s.cta_link&&a.jsx(Oe,{size:"sm",className:"mt-1 w-full",children:s.cta_text})]})]});return a.jsx("section",{className:"px-4 py-3",children:s.cta_link?s.cta_link.startsWith("http")?a.jsx("a",{href:s.cta_link,target:"_blank",rel:"noopener noreferrer",children:i}):a.jsx(Te,{to:s.cta_link,children:i}):i})}const C4e="id,name,logo_url,summary,participants_count,rating,case_url,display_order,is_active,segment,hq_location,employees_range,is_hiring,open_positions_count,project_headline,project_module,project_duration,project_started_at,outcome_metric,is_featured,linkedin_url,slug,sponsor_quote,sponsor_name,sponsor_role,active_cohort_label,certificates_issued_count,program_phases",j4e=(e=5)=>jt({queryKey:["home-trusted-companies",e],queryFn:async()=>{const{data:t,error:r}=await J.from("home_trusted_companies").select(C4e).eq("is_active",!0).order("is_featured",{ascending:!1}).order("display_order",{ascending:!0}).order("created_at",{ascending:!1}).limit(e);
1620if(r)throw r;return t??[]},staleTime:5*60*1e3});function E4e({title:e="Quem já estudou com a Trainning",testimonialsLimit:t=4,companiesLimit:r=5}){const{data:n}=j4e(r),s=(n??[]).filter(o=>!!o.logo_url);return a.jsxs("section",{className:"bg-muted/30 py-5",children:[a.jsx("div",{className:"px-4",children:e&&a.jsx("h2",{className:"mb-3 text-base font-bold",children:e})}),a.jsx(zv,{limit:t}),s.length>0&&a.jsxs("div",{className:"mt-4 px-4",children:[a.jsx("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Empresas que treinam seus times aqui"}),a.jsx("div",{className:"flex flex-wrap items-center gap-3",children:s.map(o=>a.jsx("img",{src:o.logo_url,alt:o.name,loading:"lazy",className:"h-8 w-auto max-w-[7rem] object-contain opacity-80"},o.id))})]})]})}const B4e=Eh,N4e=f5,S4e=Bh,l9=A.forwardRef(({className:e,...t},r)=>a.jsx(ed,{className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));l9.displayName=ed.displayName;const k4e=gh("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),c9=A.forwardRef(({side:e="right",className:t,children:r,...n},s)=>a.jsxs(S4e,{children:[a.jsx(l9,{}),a.jsxs(td,{ref:s,className:je(k4e({side:e}),t),...n,children:[r,a.jsxs(Nh,{className:"absolute right-4 top-4 roun
1620ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(Ua,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));c9.displayName=td.displayName;const u9=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col space-y-2 text-center sm:text-left",e),...t});u9.displayName="SheetHeader";const I4e=({className:e,...t})=>a.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});I4e.displayName="SheetFooter";const d9=A.forwardRef(({className:e,...t},r)=>a.jsx(VA,{ref:r,className:je("text-lg font-semibold text-foreground",e),...t}));d9.displayName=VA.displayName;const F4e=A.forwardRef(({className:e,...t},r)=>a.jsx(HA,{ref:r,className:je("text-sm text-muted-foreground",e),...t}));F4e.displayName=HA.displayName;const T4e=[{label:"Cursos",to:"/cursos"},{label:"Formações",to:"/formacoes"},{label:"Cursos gratuitos",to:"/cursos-gratis"},{label:"Certificações",to:"/certificacoes"},{label:"Calendário de turmas",to:"/calendario"},{label:"Para empresas",to:"/empresas"},{label:"Contato",to:"/contato"}];function t7e({showLogin:e=!0}){const[t,r]=A.useState(!1),{user:n}=Zn();return a.jsx("header",{className:"sticky top-0 z-40 border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:a.jsxs("div",{className:"flex h-14 items-center gap-2 px-4",children:[a.jsxs(B4e,{open:t,onOpenChange:r,children:[a.jsx(N4e,{asChild:!0,children:a.jsx(Oe,{variant:"ghost",size:"icon",className:"h-11 w-11","aria-label":"Abrir menu",children:a.jsx(jT,{className:"h-5 w-5"})})}),a.jsxs(c9,{side:"left",className:"w-[85vw] max-w-xs",children:[a.jsx(u9,{children:a.jsx(d9,{children:"Navegar"})}),a.jsx("nav",{className:"mt-4 flex flex-col",children:T4e.map(s=>a.jsx(Te,{to:s.to,onClick:()=>r(!1),className:"rounded-md px-2 py-3 text-sm font-medium hover:bg-muted",children:s.label},s.to))})]})]}),a.jsx(Te,{to:"/",className:"flex min-w-0 flex-1 items-center","aria-label":"Trainning Education",children:a.jsx("img",{src:FC,alt:"Trainning Education",className:"h-7 w-auto"})}),e&&a.jsx(Oe,{size:"sm",variant:n?"outline":"default",asChild:!0,children:a.jsxs(Te,{to:n?"/plataforma":"/auth",children:[n?a.jsx(cs,{className:"mr-1.5 h-4 w-4"}):a.jsx(Kb,{className:"mr-1.5 h-4 w-4"}),n?"Minha área":"Entrar"]})})]})})}const P4e=[{label:"InÃcio",to:"/",icon:Ex},{label:"Explorar",to:"/cursos",icon:pT},{label:"Trilhas",to:"/formacoes",icon:xh},{label:"Gratuitos",to:"/cursos-gratis",icon:Fu}];function L4e(){const{user:e}=Zn(),{pathname:t}=fn(),r=[...P4e,{label:"Perfil",to:e?"/plataforma":"/auth",icon:cs}];return a.jsxs(a.Fragment,{children:[a.jsx("div",{"aria-hidden":!0,className:"h-[calc(4rem+env(safe-area-inset-bottom))]"}),a.jsx("nav",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-border bg-background/95 backdrop-blur",style:{paddingBottom:"env(safe-area-inset-bottom)"},"aria-label":"Navegação principal",children:a.jsx("ul",{className:"flex items-stretch",children:r.map(n=>{const s=t===n.to;return a.jsx("li",{className:"flex-1",children:a.jsxs(Te,{to:n.to,className:je("flex min-h-[3.5rem] flex-col items-center justify-center gap-1 text-[11px] font-medium",s?"text-primary":"text-muted-foreground"),children:[a.jsx(n.icon,{className:"h-5 w-5"}),n.label]})},n.label)})})})]})}function Hg({carouselType:e,pageSlug:t="home",title:r,onlyFirst:n=!1}){const{data:s}=LV(t),o=(s??[]).filter(l=>l.is_active&&l.carousel_type===e).sort((l,c)=>l.display_order-c.display_order),i=n?o.slice(0,1):o;return i.length===0?null:a.jsx(a.Fragment,{children:i.map(l=>a.jsx($V,{config:r?{...l,title:r}:l},l.id))})}const r7e=["most_searched","success_cases","career_paths","b2b_banner","category_unified"],D4e={hero_banner:{component:Gj,dataSource:"banners / hero configurado no Media Center"},featured_courses:{component:Hg,baseProps:{carouselType:"featured_courses"},dataSource:"carousel_configs (featured_courses) â courses"},courses_by_category:{component:Hg,baseProps:{carouselType:"courses_by_category"},dataSource:"carousel_configs (courses_by_category) â courses"},formations:{component:Hg,baseProps:{carouselType:"formations"},dataSource:"carousel_configs (formations) â formations"},digital_courses:{component:Hg,baseProps:{carouselType:"digital_courses"},dataSource:"carousel_configs (digital_courses) â courses"},free_classes:{component:Yj,dataSource:"courses (gratuitos)"},testimonials:{component:zv,dataSource:"testimonials"},institutional_clients:{component:qj,dataSource:"empresas atendidas (clientes institucionais)"},jobs:{component:Kj,dataSource:"jobs (Job Engine)"},knowledge_pills:{component:Xj,dataSource:"pÃlulas de conhecimento (conteúdo público)"},search_bar:{component:b4e,dataSource:"SmartSearchBar (cursos, formações, categorias)"},category_grid:{component:w4e,dataSource:"categories (IndexDataProvider)"},campaign_banner:{component:_4e,dataSource:"banners ativos"},social_proof:{component:E4e,dataSource:"indicadores institucionais + testimonials"},bottom_nav:{component:L4e,dataSource:"rotas públicas + sessão do usuário",overlay:!0}};function zg(e){return D4e[e]??null}function R4e({sections:e}){const t=[...e].sort((o,i)=>o.display_order-i.display_order),r=t.map(o=>{const i=zg(o.component_code);
1620if(!i)return null;const l=i.component,c={...i.baseProps??{},...o.title?{title:o.title}:{},...o.subtitle?{subtitle:o.subtitle}:{},...o.settings??{}};return a.jsx(A.Suspense,{fallback:null,children:a.jsx(l,{...c})},o.id)}),n=t.filter(o=>zg(o.component_code)?.overlay),s=r.filter((o,i)=>{const l=t[i].component_code;return!zg(l)?.overlay});return a.jsxs(a.Fragment,{children:[s,n.length>0&&a.jsx("div",{className:"h-16 md:hidden","aria-hidden":"true"}),n.map(o=>{const l=zg(o.component_code).component;return a.jsx(l,{...o.settings??{}},`overlay-${o.id}`)})]})}function M4e({pageSlug:e,seo:t,children:r}){const n=y4e(e);if(n.mode!=="sections")return a.jsx(a.Fragment,{children:r});const{experience:s,sections:o,isPreview:i}=n;return a.jsx(r9,{children:a.jsxs(A2,{showSearch:!1,children:[a.jsx(h2,{title:t.title,description:t.description,canonicalPath:t.canonicalPath,jsonLd:[y_(),b_()]}),i&&a.jsxs("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-amber-950",children:["Pré-visualização de admin â ",s.name," (v",s.version," ·"," ",s.status,"). Visitantes continuam vendo o modelo no ar."]}),a.jsxs("main",{id:"conteudo-principal",children:[a.jsxs("section",{className:"container mx-auto px-4 pt-8 pb-2 text-center",children:[a.jsx("h1",{className:"text-2xl md:text-3xl font-bold tracking-tight",children:t.h1}),t.intro&&a.jsx("p",{className:"mt-2 max-w-2xl mx-auto text-sm md:text-base text-muted-foreground",children:t.intro})]}),a.jsx(R4e,{sections:o})]})]})})}const O4e={title:"Trainning Education | Cursos SAP e Certificações de TI",description:"Escola de tecnologia com mais de 300 mil alunos formados em SAP, Cloud, Segurança, Data e IA. Cursos ao vivo, digitais e formações com certificação oficial.",canonicalPath:"/",h1:"Cursos de SAP e Tecnologia com Certificação Oficial",intro:"Formações ao vivo e digitais em SAP, Cloud, Dados, IA e Segurança â com mais de 300 mil alunos formados."};function U4e(){return a.jsx(M4e,{pageSlug:h4e,seo:O4e,children:a.jsx(m4e,{})})}const Q4e=A.lazy(()=>B(()=>import("./AnniversaryDigitalPage-BAujFAqx.js"),__vite__mapDeps([7,1,2,8,9,10,11,12,13,14,15]))),V4e=A.lazy(()=>B(()=>import("./SkillGapPage-DQwgONWx.js").then(e=>e.a),__vite__mapDeps([16,1,2,17,18,19,14,20]))),H4e=A.lazy(()=>B(()=>import("./Auth-CFPq3Yku.js"),__vite__mapDeps([21,1,2,8]))),z4e=A.lazy(()=>B(()=>import("./AuthStudent-Dmnf3_Xd.js"),__vite__mapDeps([22,1,2,23,24,25,26,8,27]))),$4e=A.lazy(()=>B(()=>import("./AuthCompany-BO4_ENqK.js"),__vite__mapDeps([28,1,2,8]))),q4e=A.lazy(()=>B(()=>import("./ForgotPassword-Nf5vi9xM.js"),__vite__mapDeps([29,1,2,8,27]))),QI=A.lazy(()=>B(()=>import("./ResetPassword-DiEVrq40.js"),__vite__mapDeps([30,1,2,8]))),K4e=A.lazy(()=>B(()=>import("./SuperAdminLogin-B6gVk-3z.js"),__vite__mapDeps([31,1,2,32,8,27]))),VI=A.lazy(()=>B(()=>import("./Cursos-BxPmr1sR.js"),__vite__mapDeps([33,1,2,34,35,36,37,38,39,9,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))),G4e=A.lazy(()=>B(()=>import("./Unsubscribe-Cxj4H18U.js"),__vite__mapDeps([57,1,2,8,58]))),W4e=A.lazy(()=>B(()=>import("./SupportCsat-B5isZRLF.js"),__vite__mapDeps([59,1,2]))),Y4e=A.lazy(()=>B(()=>import("./Sobre-D7C8m5n2.js"),__vite__mapDeps([60,1,2,8]))),X4e=A.lazy(()=>B(()=>import("./Contato-_A6YxFQD.js"),__vite__mapDeps([61,1,2,62,8]))),Z4e=A.lazy(()=>B(()=>import("./Atendimento-CUge0wlI.js"),__vite__mapDeps([63,1,2,8]))),J4e=A.lazy(()=>B(()=>import("./Vagas-DNcfNzSs.js"),__vite__mapDeps([64,1,2,65,66,67,8,68,69,70,71]))),eSe=A.lazy(()=>B(()=>import("./JobDetail-DYLOUBom.js"),__vite__mapDeps([72,1,2,73,11,74,75,76,77,78,79,80,81,8,82,83,35,84]))),tSe=A.lazy(()=>B(()=>import("./Carreiras-B0qF26jQ.js"),__vite__mapDeps([85,1,2,68,69,70,8,65,66]))),rSe=A.lazy(()=>B(()=>import("./Empresas-DHyU7pc_.js"),__vite__mapDeps([86,1,2,8]))),nSe=A.lazy(()=>B(()=>import("./EmpresasAtendidas-B4TPzTGm.js"),__vite__mapDeps([87,1,2,88,89,90,8]))),aSe=A.lazy(()=>B(()=>import("./CasosCorporativos-D4LzcJ1s.js"),__vite__mapDeps([91,1,2,8,92,93,94,95]))),sSe=A.lazy(()=>B(()=>import("./CasoCorporativoDetalhe-DX7G0lJN.js"),__vite__mapDeps([96,1,2,8,92,94,95]))),oSe=A.lazy(()=>B(()=>import("./TeamPassSapHub-CYF1f3p_.js"),__vite__mapDeps([97,1,2,88,89,98,99,100,101,102,76,103,104,13,8,105]))),iSe=A.lazy(()=>B(()=>import("./Sales360TeamPassHub-CIL3pZn4.js"),__vite__mapDeps([106,1,2,8,98,99,100,101,102,76,103,104,13]))),lSe=A.lazy(()=>B(()=>import("./LocacaoSala-TB9g1bHJ.js"),__vite__mapDeps([107,1,2,67,108,62,109,110]))),cSe=A.lazy(()=>B(()=>import("./Calendario-BOkppvoT.js"),__vite__mapDeps([111,1,2,40,38,39,9,41,42,112,8,113,114,55,56]))),uSe=A.lazy(()=>B(()=>import("./Inscricao-ro5R66jN.js"),__vite__mapDeps([115,1,2,62,116,52,8]))),dSe=A.lazy(()=>B(()=>import("./CourseDetail-GcwMf4nN.js"),__vite__mapDeps([117,1,2,118,40,34,35,119,9,37,23,120,41,42,121,47,48,49,50,51,8]))),ASe=A.lazy(()=>B(()=>import("./Formacoes-tpbR-rYQ.js"),__vite__mapDeps([122,1,2,38,39,9,36,40,23,116,52,46,112,8]))),fSe=A.lazy(()=>B(()=>import("./FormationDetail-C8tEr7N0.js"),__vite__mapDeps([123,1,2,118,40,38,39,9,36,23,47,48,49,50,51,116,52,124,112,53,54,125]))),mSe=A.lazy(()=>B(()=>import("./FreeCourses-Dn5I--4Q.js"),__vite__mapDeps([126,1,2,127,8]))),hSe=A.lazy(()=>B(()=>import("./FreeCertifications-CVmSKGxc.js"),__vite__mapDeps([128,1,2,8,39,9,129,130]))),pSe=A.lazy(()=>B(()=>import("./TrialCorporativoPage-BQRvNHv5.js").then(e=>e.T),__vite__mapDeps([131,1,2,132,133,134,135,136,137,138,139,140,141,142,56,43,143,144,130,145,146,147,148,149,150,151,152,153,154,155,156,157,102,158,83,159,160,161,76,103,162,163,164,165,166,19,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,13,186,187,188,189,190,191,192,193,194,195,196,197,198,32,199,200,77,201,202,203,204,205,206,207,208,209,210,211,212,79,213,214,215,216,217,218,219,220,78,221,222,223,224,225,55,226,120,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,27,253,254,255,14,256,257,258,259,260,261,262,263,264,265,84,266,267,268,269,270,58,271,272,273,274,275,276,277,278,279,28
16200,281,282,283,12,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,110,105,316,317,318,319,320,321,322,69,323,104,324,325,326,327,54,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,100,360,71,361,362,363,364,365,101,109,366,367,368,369,370,371,372,8,23,98,99,373]))),gSe=A.lazy(()=>B(()=>import("./FreeCourseDetail-Cn0NDnFz.js"),__vite__mapDeps([374,1,2,8]))),xSe=A.lazy(()=>B(()=>import("./FreeCoursesHub-CoThmxfX.js"),__vite__mapDeps([375,1,2,8]))),vSe=A.lazy(()=>B(()=>import("./Checkout-Dm3CdNSV.js"),__vite__mapDeps([376,1,2,62,377,8]))),ySe=A.lazy(()=>B(()=>import("./CheckoutPagoLivreTeste-7mxEiGzC.js"),__vite__mapDeps([378,1,2,66,8]))),bSe=A.lazy(()=>B(()=>import("./PagamentoPix-D3ODBKAU.js"),__vite__mapDeps([379,1,2,8]))),wSe=A.lazy(()=>B(()=>import("./PagamentoBoleto-BJrX7G1G.js"),__vite__mapDeps([380,1,2,8]))),_Se=A.lazy(()=>B(()=>import("./ConfirmacaoPagamento-DdwUw1Iu.js"),__vite__mapDeps([381,1,2,8,304]))),CSe=A.lazy(()=>B(()=>import("./PagamentoSucesso-C98AxOWH.js"),__vite__mapDeps([382,1,2,377,8,304,110]))),jSe=A.lazy(()=>B(()=>import("./Blog-cOPaiEhv.js"),__vite__mapDeps([383,1,2,127]))),ESe=A.lazy(()=>B(()=>import("./BlogPost-BFcmRUBB.js"),__vite__mapDeps([384,1,2,89,385]))),BSe=A.lazy(()=>B(()=>import("./Plataforma360-XrDV3qgk.js"),__vite__mapDeps([386,1,2,387,388,389,23,390,283,245,233]))),NSe=A.lazy(()=>B(()=>import("./DigitalCourses-DOVZmgUc.js"),__vite__mapDeps([391,1,2,127,48,49,50,116,52,8]))),SSe=A.lazy(()=>B(()=>import("./TrainingUniversity-D5ybT4S4.js"),__vite__mapDeps([392,1,2,112,8]))),HI=A.lazy(()=>B(()=>import("./TrainingCorporateSubscriptions-9DzVA-Na.js"),__vite__mapDeps([393,1,2,388,387,389,23,394,390,233]))),kSe=A.lazy(()=>B(()=>import("./MasterTech-CU4J-9Qc.js"),__vite__mapDeps([395,1,2,38,39,9,8,23,10,11,396,258,335,206,256,103,102,259,189,83,84]))),zI=A.lazy(()=>B(()=>import("./MasterTechEnrollment-CcUaKLOr.js"),__vite__mapDeps([397,1,2,73,11,74,75,76,77,78,79,80,398,23,66,8])));A.lazy(()=>B(()=>import("./FormationEnrollment-Bp8jC_l8.js"),__vite__mapDeps([399,1,2,67,8,55])));const ISe=A.lazy(()=>B(()=>import("./Simulados-Bsxyth1y.js"),__vite__mapDeps([400,1,2,49,50,8]))),FSe=A.lazy(()=>B(()=>import("./QuizPreviewShare-Cp83P23n.js"),__vite__mapDeps([401,1,2,402,8,328]))),TSe=A.lazy(()=>B(()=>import("./Termos-DKW8pvfq.js"),__vite__mapDeps([403,1,2,8]))),PSe=A.lazy(()=>B(()=>import("./Privacidade-FSvQp_Af.js"),__vite__mapDeps([404,1,2,8]))),LSe=A.lazy(()=>B(()=>import("./Promocoes-nMgUZBvo.js"),__vite__mapDeps([405,1,2,127,8]))),DSe=A.lazy(()=>B(()=>import("./CourseSyllabus-Yvfd80rH.js"),__vite__mapDeps([406,1,2,8,110]))),RSe=A.lazy(()=>B(()=>import("./CreateDemoAccess-C4-3ZZRj.js"),__vite__mapDeps([407,1,2,8,71]))),MSe=A.lazy(()=>B(()=>import("./BlackFriday-WWA88SiU.js"),__vite__mapDeps([408,1,2,39,9,23,54,409,8]))),OSe=A.lazy(()=>B(()=>import("./TrialExpired-CSgw5SOg.js"),__vite__mapDeps([410,1,2,8]))),$I=A.lazy(()=>B(()=>import("./PropostaPublica-B_YRH9gs.js"),__vite__mapDeps([411,1,2,412,413,414,103,124,66,79,377,415,8,416,261,42]))),USe=A.lazy(()=>B(()=>import("./PropostaIAPublica-CxuNvkDy.js"),__vite__mapDeps([417,1,2,8]))),QSe=A.lazy(()=>B(()=>import("./Instalar-BW1oBQRF.js"),__vite__mapDeps([418,1,2,8,169]))),VSe=A.lazy(()=>B(()=>import("./BookAppointment-NFwwFiwm.js"),__vite__mapDeps([419,1,2,420,421,422,62,304,377,8]))),HSe=A.lazy(()=>B(()=>import("./SchedulingLanding-DWbrAT6k.js"),__vite__mapDeps([423,1,2,8]))),zSe=A.lazy(()=>B(()=>import("./InvestorPresentation-Cjpl7eH2.js"),__vite__mapDeps([424,1,2,8]))),$Se=A.lazy(()=>B(()=>import("./PitchDeckComparativo-DZNe3haK.js"),__vite__mapDeps([425,1,2,8,426,427,428,429,430,431,432,433,434,161,435,436,437]))),qSe=A.lazy(()=>B(()=>import("./PitchDeckComparativo4-mkEd_Vgg.js"),__vite__mapDeps([438,1,2,8,426,102,233,120,130,232,166,427,428,429,430,431,432,433,435,436,437]))),KSe=A.lazy(()=>B(()=>import("./Certificacoes-CNS3_ShF.js"),__vite__mapDeps([439,1,2,67,440,8]))),GSe=A.lazy(()=>B(()=>import("./GuiaCertificacoes-B2UmeEAX.js"),__vite__mapDeps([441,1,2,8]))),WSe=A.lazy(()=>B(()=>import("./CertificationDetail-CZepjMJC.js"),__vite__mapDeps([442,1,2,67,23,440]))),YSe=A.lazy(()=>B(()=>import("./CertificationCompare-DGkbdsd6.js"),__vite__mapDeps([443,1,2,8]))),XSe=A.lazy(()=>B(()=>import("./TourT360-B7kGFCHf.js"),__vite__mapDeps([444,1,2,445,446,99,272,209,367,8]))),ZSe=A.lazy(()=>B(()=>import("./TourSolucoes-CxQBqwiZ.js"),__vite__mapDeps([447,1,2,448,8]))),JSe=A.lazy(()=>B(()=>import("./ChangelogPdf-BhUqdAgH.js"),__vite__mapDeps([449,1,2,8]))),e3e=A.lazy(()=>B(()=>import("./ManualPlataformaPdf-Cmw07LvL.js"),__vite__mapDeps([450,1,2,8])));A.lazy(()=>B(()=>import("./CentralPdfs-BEjsr6T0.js"),__vite__mapDeps([451,1,2,8,452,453,79])));const t3e=A.lazy(()=>B(()=>import("./LandingPage-C3ykApeD.js"),__vite__mapDeps([454,1,2,8,455,456,102,276,88,89,457]))),r3e=A.lazy(()=>B(()=>import("./LaunchLandingPage-t69h9zUn.js"),__vite__mapDeps([458,1,2,8,455,456,102,276,88,89,459]))),n3e=A.lazy(()=>B(()=>import("./MobileExperiencePreview-Do68MaRi.js"),__vite__mapDeps([460,1,2]))),a3e=A.lazy(()=>B(()=>import("./ApresentacaoComercial-DVsHLxFu.js"),__vite__mapDeps([461,1,2,8,462,62,99,67,209]))),s3e=A.lazy(()=>B(()=>import("./AcceptOffer-Coxs_pKE.js"),__vite__mapDeps([463,1,2,377,8]))),o3e=A.lazy(()=>B(()=>import("./FormTypeformPreview-j0XagAcj.js"),__vite__mapDeps([464,1,2,304,242,67,8]))),i3e=A.lazy(()=>B(()=>import("./CertificateVerification-5pUnakA9.js"),__vite__mapDeps([465,1,2,66,8]))),l3e=A.lazy(()=>B(()=>import("./PaymentPage-BmXAC1Cr.js"),__vite__mapDeps([466,1,2,377,67,8]))),c3e=A.lazy(()=>B(()=>import("./AssinarContrato-CB1OjkCg.js"),__vite__mapDeps([467,1,2,89,468,469,8]))
1620),u3e=A.lazy(()=>B(()=>import("./ImplantacaoPortal-DCGi6uBh.js"),__vite__mapDeps([470,1,2,471,8,162]))),d3e=A.lazy(()=>B(()=>import("./ApplyToJob-CuLu2fjX.js"),__vite__mapDeps([472,1,2,473,474,82,62,8,159]))),A3e=A.lazy(()=>B(()=>import("./Turbine2026-DafxlO65.js"),__vite__mapDeps([475,1,2,55,233,206,23,8]))),f3e=A.lazy(()=>B(()=>import("./DiaDoConsumidor-BT4a4ZuJ.js"),__vite__mapDeps([476,1,2,189,23,8]))),qI=A.lazy(()=>B(()=>import("./TrilhaPerfeita-BRS0iejf.js"),__vite__mapDeps([477,1,2,8]))),m3e=A.lazy(()=>B(()=>import("./SkillMapModal-DvhJGQrv.js"),__vite__mapDeps([478,1,2,8]))),h3e=A.lazy(()=>B(()=>import("./DiagnosticoCarreira-kIBY1vkT.js"),__vite__mapDeps([479,1,2,8]))),p3e=A.lazy(()=>B(()=>import("./DiagnosticoEmpresarial-BD8aD0LJ.js"),__vite__mapDeps([480,1,2,8,420,421]))),g3e=A.lazy(()=>B(()=>import("./DocumentacaoTrafegoPdf-d0b32Ak5.js"),__vite__mapDeps([481,1,2,8,209]))),x3e=A.lazy(()=>B(()=>import("./AnalyseFunnel60Days-PD0-PE1X.js"),__vite__mapDeps([482,1,2,8,483,76,209,427,428,435,430,431,432,436,437,434,433,484,485,42]))),v3e=A.lazy(()=>B(()=>import("./PilulasConhecimento-D7OG9FF1.js"),__vite__mapDeps([486,1,2,8]))),y3e=A.lazy(()=>B(()=>import("./ResultadoSalvo-6j8Wr0zi.js"),__vite__mapDeps([487,1,2,8]))),b3e=A.lazy(()=>B(()=>import("./Busca-Ze90w4PP.js"),__vite__mapDeps([488,1,2,8,55]))),w3e=A.lazy(()=>B(()=>import("./Qualificacao-cvrehPjV.js"),__vite__mapDeps([489,1,2,8]))),_3e=A.lazy(()=>B(()=>import("./QualificarExterno-DeNkpntH.js"),__vite__mapDeps([490,1,2,491,492,493,494,495,496,263,184,305,179,8]))),C3e=A.lazy(()=>B(()=>import("./NotFound-Cn0RNfgH.js"),__vite__mapDeps([497,1,2,8]))),j3e=A.lazy(()=>B(()=>import("./GuiasIndex-DgvDyNWI.js"),__vite__mapDeps([498,1,2]))),E3e=A.lazy(()=>B(()=>import("./GuiaDetail-6Xl1HrwO.js"),__vite__mapDeps([499,1,2]))),B3e=A.lazy(()=>B(()=>import("./GuiaSap-DlzLDLJ2.js"),__vite__mapDeps([500,1,2,209,38,39,9,501,502,503,504,505,150,100,189,354,256,243,130,45]))),N3e=A.lazy(()=>B(()=>import("./DiagnosticoSap-Dla9ZWXa.js"),__vite__mapDeps([506,1,2,501,502,9,503]))),S3e=A.lazy(()=>B(()=>import("./CarreirasSapIndex-BJ-odN94.js"),__vite__mapDeps([507,1,2,505]))),k3e=A.lazy(()=>B(()=>import("./CarreiraSapDetail-wDQ1SH3g.js"),__vite__mapDeps([508,1,2,505,502,9,503]))),I3e=A.lazy(()=>B(()=>import("./GlossarioIndex-54Boj5cA.js"),__vite__mapDeps([509,1,2,153]))),F3e=A.lazy(()=>B(()=>import("./GlossarioDetail-BTPnNhem.js"),__vite__mapDeps([510,1,2]))),T3e=A.lazy(()=>B(()=>import("./SalariosIndex-Z2qZcy9a.js"),__vite__mapDeps([511,1,2]))),P3e=A.lazy(()=>B(()=>import("./SalarioDetail-zHc-LPK1.js"),__vite__mapDeps([512,1,2]))),L3e=A.lazy(()=>B(()=>import("./ComparativosIndex-DpGrbnwb.js"),__vite__mapDeps([513,1,2,238]))),D3e=A.lazy(()=>B(()=>import("./ComparativoDetail-BBLSBEYJ.js"),__vite__mapDeps([514,1,2]))),R3e=A.lazy(()=>B(()=>import("./CarreirasIndex-nXMdma6v.js"),__vite__mapDeps([515,1,2]))),M3e=A.lazy(()=>B(()=>import("./CarreiraDetail-6hDX9-Yw.js"),__vite__mapDeps([516,1,2]))),O3e=A.lazy(()=>B(()=>import("./TechnologyHub-CKGH04gy.js"),__vite__mapDeps([517,1,2,238,153]))),U3e=A.lazy(()=>B(()=>import("./TestCinematicForm-COXJc7fq.js"),__vite__mapDeps([518,1,2,8]))),Q3e=A.lazy(()=>B(()=>import("./TestMultiStepForm-5gCKNVVT.js"),__vite__mapDeps([519,1,2,520,103,162,8]))),KI=A.lazy(()=>B(()=>import("./CursosV2-DWpXcMVJ.js"),__vite__mapDeps([521,1,2,34,35,36,38,39,9,56,40,41,42,43,44,45,47,48,49,50,51]))),V3e=A.lazy(()=>B(()=>import("./PublicProjects-DEfupQjs.js"),__vite__mapDeps([522,1,2,523,524,240,8,55]))),H3e=A.lazy(()=>B(()=>import("./ProjectDetail-TXAFuzCM.js"),__vite__mapDeps([525,1,2,377,523,8,240]))),z3e=A.lazy(()=>B(()=>import("./CampaignLanding-tvVZAo_H.js"),__vite__mapDeps([526,1,2,520,103,162,8])));A.lazy(()=>B(()=>import("./SAPCoursesHub-CFnqgHOE.js"),__vite__mapDeps([527,1,2,8,503,9])));const $3e=A.lazy(()=>B(()=>import("./AIAccelerate-1Y4NlDUS.js"),__vite__mapDeps([528,1,2,8,529,76,258,9,23]))),q3e=A.lazy(()=>B(()=>import("./VibeCodingExpert-DICD7H17.js"),__vite__mapDeps([530,1,2,39,9,151,12,102,337,251,38,8,23,256,189,313]))),K3e=A.lazy(()=>B(()=>import("./ClaudeCodeProfessional-CVU80F9Y.js"),__vite__mapDeps([531,1,2,39,9,38,8,23,189,102,120,313]))),G3e=A.lazy(()=>B(()=>import("./CyberSecurityAIDefenseExpert-Dn4zKer_.js"),__vite__mapDeps([532,1,2,39,9,23,339,322,102,8,206,355,258]))),W3e=A.lazy(()=>B(()=>import("./SapCareerCases-L4FTXM4Y.js"),__vite__mapDeps([533,1,2,8,23,504,501,502,9,503,130,529]))),Y3e=A.lazy(()=>B(()=>import("./Diagnostico-DouPTCEx.js"),__vite__mapDeps([534,1,2,8]))),X3e=A.lazy(()=>B(()=>import("./OAuthConsent-xQvli22K.js"),__vite__mapDeps([535,1,2,8]))),Z3e=A.lazy(()=>B(()=>import("./ReferralLanding-ibttTAMc.js"),__vite__mapDeps([536,1,2,537,538,8]))),J3e=A.lazy(()=>B(()=>import("./TalentSignup-C50bSXYv.js"),__vite__mapDeps([539,1,2,65,66,71]))),eke=A.lazy(()=>B(()=>import("./TalentInvite-B9zGfi0-.js"),__vite__mapDeps([540,1,2,66,65])));function tke(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{path:"/",element:a.jsx(U4e,{})}),a.jsx(_,{path:"/aniversario-19-anos-digital",element:a.jsx(Q4e,{})}),a.jsx(_,{path:"/.lovable/oauth/consent",element:a.jsx(X3e,{})}),a.jsx(_,{path:"/diagnostico",element:a.jsx(Y3e,{})}),a.jsx(_,{path:"/unsubscribe",element:a.jsx(G4e,{})}),a.jsx(_,{path:"/suporte/avaliacao/:token",element:a.jsx(W4e,{})}),a.jsx(_,{path:"/indicacao/:codigo",element:a.jsx(Z3e,{})}),a.jsx(_,{path:"/talentos/cadastrar",element:a.jsx(J3e,{})}),a.jsx(_,{path:"/talentos/convite/:token",element:a.jsx(eke,{})}),a.jsx(_,{path:"/quiz-preview/:token",element:a.jsx(FSe,{})}),a.jsx(_,{path:"/cursos",element:a.jsx(VI,{})}),a.jsx(_,{path:"/cursos/:categoria",element:a.jsx(VI,{})}),a.jsx(_,{path:"/curso/:slug",element:a.jsx(I4,{children:a.jsx(dSe,{})})}),a.jsx(_,{path:"/checkout/:slug",element:a.jsx(vSe,{})}),a.jsx(_,{path:"/checkout-pagolivre-teste",element:a.jsx(ySe,{})}),a.jsx(_,{path:"/teste-form-cinematic",element:a.jsx(U3e,{})}),a.jsx(_,{path:"/teste-form-multistep",element:a.jsx(Q3e,{})}),a.jsx(_,{path:"/informacoes",element:a.jsx(z3e,{})}),a.jsx(_,{path:"/ai-accelerate",element:a.jsx($3e,{})}),a.jsx(_,{path:"/enterprise/ai-accelerate",element:a.jsx(Me,{to:"/ai-accelerate",replace:!0})}),a.jsx(_,{path:"/lp/vibe-coding-expert",element:a.jsx(q3e,{})}),a.jsx(_,{path:"/lp/vibecoding",element:a.jsx(Me,{to:{pathname:"/lp/vibe-coding-expert",search:window.location.search},replace:!0})}),a.jsx(_,{path:"/lp/vibe-coding",element:a.jsx(Me,{to:{pathname:"/lp/vibe-coding-expert",search:window.location.search},replace:!0})}),a.jsx(_,{path:"/curso/vibe-coding-expert",element:a.jsx(Me,{to:{pathname:"/lp/vibe-coding-expert",search:window.location.search},replace:!0})}),a.jsx(_,{path:"/lp/claude-code-professional",element:a.jsx(K3e,{})}),a.jsx(_,{path:"/lp/cyber-security-ai-defense-expert",element:a.jsx(G3e,{})}),a.jsx(_,{path:"/lp/carreira-sap",element:a.jsx(W3e,{})}),a.jsx(_,{path:"/curso/cyber-security-ai-defense-expert",element:a.jsx(Me,{to:{pathname:"/lp/cyber-security-ai-defense-expert",search:window.location.search},replace:!0})}),a.jsx(_,{path:"/cursos-v2",element:a.jsx(KI,{})}),a.jsx(_,{path:"/cursos-v2/:categoria",element:a.jsx(KI,{})}),a.jsx(_,{path:"/projetos",element:a.jsx(V3e,{})}),a.jsx(_,{path:"/projetos/:id",element:a.jsx(H3e,{})}),a.jsx(_,{path:"/pagamento-pix",element:a.jsx(bSe,{})}),a.jsx(_,{path:"/pagamento-boleto",element:a.jsx(wSe,{})}),a.jsx(_,{path:"/confirmacao-pagamento",element:a.jsx(_Se,{})}),a.jsx(_,{path:"/formacoes",element:a.jsx(ASe,{})}),a.jsx(_,{path:"/formacoes/:slug",element:a.jsx(I4,{children:a.jsx(fSe,{})})}),a.jsx(_,{path:"/certificacoes",element:a.jsx(KSe,{})}),a.jsx(_,{path:"/certificacoes/guia",element:a.jsx(GSe,{})}),a.jsx(_,{path:"/certificacao/:slug",element:a.jsx(WSe,{})}),a.jsx(_,{path:"/comparar-certificacoes",element:a.jsx(YSe,{})}),a.jsx(_,{path:"/vagas",element:a.jsx(J4e,{})}),a.jsx(_,{path:"/vaga/:id",element:a.jsx(eSe,{})}),a.jsx(_,{path:"/carreiras",element:a.jsx(tSe,{})}),a.jsx(_,{path:"/sobre",element:a.jsx(Y4e,{})}),a.jsx(_,{path:"/contato",element:a.jsx(X4e,{})}),a.jsx(_,{path:"/atendimento",element:a.jsx(Z4e,{})}),a.jsx(_,{path:"/inscricao",element:a.jsx(uSe,{})}),a.jsx(_,{path:"/calendario",element:a.jsx(cSe,{})}),a.jsx(_,{path:"/empresas",element:a.jsx(rSe,{})}),a.jsx(_,{path:"/diagnostico-empresarial",element:a.jsx(p3e,{})}),a.jsx(_,{path:"/empresas-atendidas",element:a.jsx(nSe,{})}),a.jsx(_,{path:"/casos-corporativos",element:a.jsx(aSe,{})}),a.jsx(_,{path:"/casos-corporativos/:slug",element:a.jsx(sSe,{})}),a.jsx(_,{path:"/empresas/team-pass-sap",element:a.jsx(oSe,{})}),a.jsx(_,{path:"/team-pass-sap",element:a.jsx(Me,{to:"/empresas/team-pass-sap",replace:!0})}),a.jsx(_,{path:"/empresas/team-pass-sales-360",element:a.jsx(iSe,{})}),a.jsx(_,{path:"/team-pass-sales-360",element:a.jsx(Me,{to:"/empresas/team-pass-sales-360",replace:!0})}),a.jsx(_,{path:"/empresa/locacao-de-sala",element:a.jsx(lSe,{})}),a.jsx(_,{path:"/locacao-de-sala",element:a.jsx(Me,{to:"/empresa/locacao-de-sala",replace:!0})}),a.jsx(_,{path:"/privacidade",element:a.jsx(PSe,{})}),a.jsx(_,{path:"/termos",element:a.jsx(TSe,{})}),a.jsx(_,{path:"/form-typeform/:formId",element:a.jsx(o3e,{})}),a.jsx(_,{path:"/promocoes",element:a.jsx(LSe,{})}),a.jsx(_,{path:"/black-friday",element:a.jsx(MSe,{})}),a.jsx(_,{path:"/instalar",element:a.jsx(QSe,{})}),a.jsx(_,{path:"/changelog-pdf",element:a.jsx(JSe,{})}),a.jsx(_,{path:"/manual-pdf",element:a.jsx(e3e,{})}),a.jsx(_,{path:"/agendar",element:a.jsx(HSe,{})}),a.jsx(_,{path:"/agendar/comercial",element:a.jsx(Me,{to:"/agendar/Agendamento%20com%20Consultor",replace:!0})}),a.jsx(_,{path:"/agendar/consultor",element:a.jsx(Me,{to:"/agendar/Agendamento%20com%20Consultor",replace:!0})}),a.jsx(_,{path:"/agendar/:slug",element:a.jsx(VSe,{})}),a.jsx(_,{path:"/apresentacao-trainning360",element:a.jsx(a3e,{})}),a.jsx(_,{path:"/apresentacao-investidores",element:a.jsx(zSe,{})}),a.jsx(_,{path:"/pitch-deck",element:a.jsx($Se,{})}),a.jsx(_,{path:"/pitch-deck-comparativo-4",element:a.jsx(qSe,{})}),a.jsx(_,{path:"/tour-t360",element:a.jsx(XSe,{})}),a.jsx(_,{path:"/tour-solucoes",element:a.jsx(ZSe,{})}),a.jsx(_,{path:"/aceitar-oferta/:token",element:a.jsx(s3e,{})}),a.jsx(_,{path:"/apply/:processId",element:a.jsx(d3e,{})}),a.jsx(_,{path:"/auth",element:a.jsx(H4e,{})}),a.jsx(_,{path:"/aluno",element:a.jsx(z4e,{})}),a.jsx(_,{path:"/auth/empresa",element:a.jsx($4e,{})}),a.jsx(_,{path:"/esqueci-senha",element:a.jsx(q4e,{})}),a.jsx(_,{path:"/redefinir-senha",element:a.jsx(QI,{})}),a.jsx(_,{path:"/reset-password",element:a.jsx(QI,{})}),a.jsx(_,{path:"/superadmin-login",element:a.jsx(K4e,{})}),a.jsx(_,{path:"/criar-demo",element:a.jsx(RSe,{})}),a.jsx(_,{path:"/trial-expirado",element:a.jsx(OSe,{})}),a.jsx(_,{path:"/verificar-certificado",element:a.jsx(i3e,{})}),a.jsx(_,{path:"/cursos-digitais",element:a.jsx(NSe,{})}),a.jsx(_,{path:"/training-university",element:a.jsx(SSe,{})}),a.jsx(_,{path:"/assinaturas-corporativas",element:a.jsx(HI,{})}),a.jsx(_,{path:"/training-corporate-subscriptions",element:a.jsx(HI,{})}),a.jsx(_,{path:"/blog",element:a.jsx(jSe,{})}),a.jsx(_,{path:"/blog/:slug",element:a.jsx(ESe,{})}),a.jsx(_,{path:"/plataforma-trainning360",element:a.jsx(BSe,{})}),a.jsx(_,{path:"/plataforma360",element:a.jsx(Me,{to:"/tour-t360",replace:!0})}),a.jsx(_,{path:"/cursos-gratis",element:a.jsx(xSe,{})}),a.jsx(_,{path:"/cursos-gratuitos",element:a.jsx(Me,{to:"/cursos-gratis",replace:!0})}),a.jsx(_,{path:"/aulas-gratuitas",element:a.jsx(mSe,{})}),a.jsx(_,{path:"/certificacoes-gratuitas",element:a.jsx(hSe,{})}),a.jsx(_,{path:"/free-certifications",element:a.jsx(Me,{to:"/certificacoes-gratuitas",replace:!0})}),a.jsx(_,{path:"/trial-corporativo",element:a.jsx(pSe,{})}),a.jsx(_,{path:"/team-pass-trial",element:a.jsx(Me,{to:"/trial-corporativo",replace:!0})}),a.jsx(_,{path:"/aulas-gratuitas/:id",element:a.jsx(gSe,{})}),a.jsx(_,{path:"/ementa/:id",element:a.jsx(DSe,{})}),a.jsx(_,{path:"/simulados",element:a.jsx(ISe,{})}),a.jsx(_,{path:"/assinar-contrato/:token",element:a.jsx(c3e,{})}),a.jsx(_,{path:"/implantacao/:token",element:a.jsx(u3e,{})}),a.jsx(_,{path:"/proposta/:codigo",element:a.jsx($I,{})}),a.jsx(_,{path:"/p/:token",element:a.jsx($I,{})}),a.jsx(_,{path:"/proposta-ia/:code",element:a.jsx(USe,{})}),a.jsx(_,{path:"/pagamento/:token",element:a.jsx(l3e,{})}),a.jsx(_,{path:"/pagamento/:token/sucesso",element:a.jsx(CSe,{})}),a.jsx(_,{path:"/mastertech",element:a.jsx(kSe,{})}),a.jsx(_,{path:"/mastertech-enrollment",element:a.jsx(zI,{})}),a.jsx(_,{path:"/mastertech/matriculas",element:a.jsx(zI,{})}),a.jsx(_,{path:"/lancamentos/:slug",element:a.jsx(r3e,{})}),a.jsx(_,{path:"/lp/:slug",element:a.jsx(t3e,{})}),a.jsx(_,{path:"/preview/mobile/:versionId",element:a.jsx(n3e,{})}),a.jsx(_,{path:"/convite/:token",element:a.jsx(Me,{to:"/auth/empresa",replace:!0})}),a.jsx(_,{path:"/turbine-2026",element:a.jsx(A3e,{})}),a.jsx(_,{path:"/dia-do-consumidor",element:a.jsx(f3e,{})}),a.jsx(_,{path:"/trilhaperfeita",element:a.jsx(qI,{})}),a.jsx(_,{path:"/trilha-perfeita",element:a.jsx(Me,{to:"/trilhaperfeita",replace:!0})}),a.jsx(_,{path:"/skill-gap",element:a.jsx(V4e,{})}),a.jsx(_,{path:"/skillmap",element:a.jsx(qI,{})}),a.jsx(_,{path:"/f/skillmap",element:a.jsx(m3e,{})}),a.jsx(_,{path:"/diagnostico-carreira",element:a.jsx(h3e,{})}),a.jsx(_,{path:"/documentacao-trafego-conversao",element:a.jsx(g3e,{})}),a.jsx(_,{path:"/analise-funil-60-dias",element:a.jsx(x3e,{})}),a.jsx(_,{path:"/pilulas-de-conhecimento",element:a.jsx(v3e,{})}),a.jsx(_,{path:"/resultado/:id",element:a.jsx(y3e,{})}),a.jsx(_,{path:"/busca",element:a.jsx(b3e,{})}),a.jsx(_,{path:"/qualificacao",element:a.jsx(w3e,{})}),a.jsx(_,{path:"/qualificar/:token",element:a.jsx(_3e,{})}),a.jsx(_,{path:"/sap-hub",element:a.jsx(Me,{to:"/cursos/sap",replace:!0})}),a.jsx(_,{path:"/sales-360-academy",element:a.jsx(Me,{to:"/cursos/sales-360-academy",replace:!0})}),a.jsx(_,{path:"/guias",element:a.jsx(j3e,{})}),a.jsx(_,{path:"/guias/:slug",element:a.jsx(E3e,{})}),a.jsx(_,{path:"/guia-sap",element:a.jsx(B3e,{})}),a.jsx(_,{path:"/diagnostico-sap",element:a.jsx(N3e,{})}),a.jsx(_,{path:"/carreiras-sap",element:a.jsx(S3e,{})}),a.jsx(_,{path:"/carreiras-sap/:slug",element:a.jsx(k3e,{})}),a.jsx(_,{path:"/glossario",element:a.jsx(I3e,{})}),a.jsx(_,{path:"/glossario/:slug",element:a.jsx(F3e,{})}),a.jsx(_,{path:"/salarios",element:a.jsx(T3e,{})}),a.jsx(_,{path:"/salarios/:slug",element:a.jsx(P3e,{})}),a.jsx(_,{path:"/comparativos",element:a.jsx(L3e,{})}),a.jsx(_,{path:"/comparativos/:slug",element:a.jsx(D3e,{})}),a.jsx(_,{path:"/carreiras-tech",element:a.jsx(R3e,{})}),a.jsx(_,{path:"/carreiras-tech/:slug",element:a.jsx(M3e,{})}),a.jsx(_,{path:"/tech/:slug",element:a.jsx(O3e,{})}),a.jsx(_,{path:"*",element:a.jsx(C3e,{})})]})}const Mb=A.lazy(()=>B(()=>import("./StudentLayout-vV4Oeia0.js").then(e=>e.j),__vite__mapDeps([73,1,2,11,74,75,76,77,78,79,80])).then(e=>({default:e.StudentLayout}))),rke=A.lazy(()=>B(()=>import("./AdminRouteLayout-CGXPVbQS.js"),__vite__mapDeps([541,1,2,542,543,23,544,273,12,337,105,279,254,334,368,302,161,78,75,79,104,71,256,545,546,547,548,549,54,162,550,102,551,552,553,554,62,133,555,37
16207,67,338,556,557,558,559,560,66,303,307,561,252,562,365,171,247,350,351,563,564,565,304,566,567,416,568,138,569,570,327]))),nke=A.lazy(()=>B(()=>import("./PlatformManual-CtGloZrD.js"),__vite__mapDeps([571,1,2,572,66,573,286,347,346,259,261,110,183,75]))),ake=A.lazy(()=>B(()=>import("./JobDetail-DYLOUBom.js"),__vite__mapDeps([72,1,2,73,11,74,75,76,77,78,79,80,81,8,82,83,35,84]))),ske=A.lazy(()=>B(()=>import("./StudentSkillGap-CXD7LnCV.js"),__vite__mapDeps([574,1,2,73,11,74,75,76,77,78,79,80,16,17,18,19,14,20]))),oke=A.lazy(()=>B(()=>import("./StudentPlatform-Dp8UWSB5.js").then(e=>e.S),__vite__mapDeps([575,1,2,67,73,11,74,75,76,77,78,79,80,256,576,23,577,578,563,567,103,579,110,537,580,71,304,581,62,66,582,583,247,584,585,305,24,25,26,55,586,587,348,588,589,590,591,592,230,216,593,99,594,367,595,596,370,597,598,599,600,156,312,347,50,402,601,602,603,301,398,248,162,604,43,140,136,89,605,606,27,365,607,608,609,226,538,246,354,254]))),ike=A.lazy(()=>B(()=>import("./StudentPremiumDashboard-B6pvdzeM.js"),__vite__mapDeps([610,
16201,2,73,11,74,75,76,77,78,79,80,611]))),lke=A.lazy(()=>B(()=>import("./StudentCareerHomeV2-DHSG0qqu.js"),__vite__mapDeps([612,1,2,73,11,74,75,76,77,78,79,80,613,614,120,326,145,103]))),cke=A.lazy(()=>B(()=>import("./PlatformManual-BhaWnAsw.js"),__vite__mapDeps([615,1,2,73,11,74,75,76,77,78,79,80,572,66,573,286,347,346,259,261,110,183]))),uke=A.lazy(()=>B(()=>import("./LiveSessionsArea-n2rIEoU_.js"),__vite__mapDeps([616,1,2,67,577,576,591,11,256,73,74,75,76,77,78,79,80]))),dke=A.lazy(()=>B(()=>import("./CohortDetail-BOsiPZs2.js"),__vite__mapDeps([617,1,2,73,11,74,75,76,77,78,79,80,67,577,576,273,312,618,619,66,598,599,583,600,601,597,602,156,348,603,301,620]))),Ake=A.lazy(()=>B(()=>import("./DigitalCoursePage-BZLzlzFV.js"),__vite__mapDeps([621,1,2,601,597,602,74,67,156,348,603,301,584,622,623,84,14]))),fke=A.lazy(()=>B(()=>import("./NR01StudentCourse-DuWGe3DW.js"),__vite__mapDeps([623,1,2,622,84,14]))),mke=A.lazy(()=>B(()=>import("./LiveSessionDetail-sODFiC7O.js"),__vite__mapDeps([624,1,2,73,11,74,75,76,77,78,79,80,67,595,586,596,370,597,62,581,66,582,583,247,598,599,600,156,312,347,50,402,619,618,625]))),hke=A.lazy(()=>B(()=>import("./AcademicCalendar-Dmueetwc.js"),__vite__mapDeps([626,1,2,150,416,563,567,578,67,73,11,74,75,76,77,78,79,80,55]))),pke=A.lazy(()=>B(()=>import("./FlashcardsPage-BBbfev-O.js"),__vite__mapDeps([627,1,2,67,607,427,428,484,430,431,432,485,436,99,73,11,74,75,76,77,78,79,80,589]))),gke=A.lazy(()=>B(()=>import("./ExercisesPage-3lm1OT29.js").then(e=>e.b),__vite__mapDeps([628,1,2,73,11,74,75,76,77,78,79,80,582,66,583,599,600,259,247,262,629]))),xke=A.lazy(()=>B(()=>import("./CourseExercisesPage-D-xY9kOd.js"),__vite__mapDeps([630,1,2,73,11,74,75,76,77,78,79,80,599,583,600,628,582,66,259,247,262,629]))),vke=A.lazy(()=>B(()=>import("./ExerciseRunnerPage-yUP8trYm.js"),__vite__mapDeps([631,1,2,73,11,74,75,76,77,78,79,80,66,599,583,581,62,582,247]))),yke=A.lazy(()=>B(()=>import("./AttendanceDashboard-LdsWzKwT.js"),__vite__mapDeps([632,1,2,576,592,230,73,11,74,75,76,77,78,79,80,67]))),bke=A.lazy(()=>B(()=>import("./LearningPathAI-DYgL5pdE.js"),__vite__mapDeps([633,1,2,634,608,609,635,573,73,11,74,75,76,77,78,79,80,636,637]))),wke=A.lazy(()=>B(()=>import("./StudentCareerEngine-DxhamC69.js"),__vite__mapDeps([638,1,2,73,11,74,75,76,77,78,79,80]))),_ke=A.lazy(()=>B(()=>import("./CareerOS-DyX3yQ30.js"),__vite__mapDeps([639,1,2,73,11,74,75,76,77,78,79,80,613,67]))),Cke=A.lazy(()=>B(()=>import("./CareerProfilePage-DTlfaKjl.js"),__vite__mapDeps([640,1,2,73,11,74,75,76,77,78,79,80,82]))),jke=A.lazy(()=>B(()=>import("./JobMatchingPage-F8bXoYtM.js"),__vite__mapDeps([641,1,2,73,11,74,75,76,77,78,79,80,81,55,642,636]))),Eke=A.lazy(()=>B(()=>import("./SkillGraphPage-Dwpn17rT.js"),__vite__mapDeps([643,1,2,73,11,74,75,76,77,78,79,80,67]))),Bke=A.lazy(()=>B(()=>import("./ChangePassword-B7g7i1yc.js"),__vite__mapDeps([644,1,2,645,66]))),GI=A.lazy(()=>B(()=>import("./UserSettings-D9ggI2t_.js"),__vite__mapDeps([646,1,2,83,267,149,67,73,11,74,75,76,77,78,79,80]))),Nke=A.lazy(()=>B(()=>import("./AffiliateDashboard-DCjvz-l_.js"),__vite__mapDeps([647,1,2,124]))),Ske=A.lazy(()=>B(()=>import("./PartnerCompanyAccess-DgW2yTnY.js"),__vite__mapDeps([648,1,2,146]))),kke=A.lazy(()=>B(()=>import("./Indicar-CKXUIN9k.js"),__vite__mapDeps([649,1,2,73,11,74,75,76,77,78,79,80,71,580,537,650,66,645]))),Ike=A.lazy(()=>B(()=>import("./AppDashboard-CFZHbUl6.js"),__vite__mapDeps([651,1,2,652,54,66]))),Fke=A.lazy(()=>B(()=>import("./CompanyOnboarding-CX_gey7m.js"),__vite__mapDeps([653,1,2]))),Tke=A.lazy(()=>B(()=>import("./EmployeeDashboard-DJ_sKmZj.js"),__vite__mapDeps([654,1,2,655,271,247]))),Pke=A.lazy(()=>B(()=>import("./TimeClockHistory-BuCqo0Ce.js"),__vite__mapDeps([656,1,2,655,124]))),Lke=A.lazy(()=>B(()=>import("./GamificationPage-DhMaDsZs.js"),__vite__mapDeps([657,1,2,73,11,74,75,76,77,78,79,80,67,230,71,159,355]))),Dke=A.lazy(()=>B(()=>import("./Portfolio-DBxo5w0X.js"),__vite__mapDeps([658,1,2,73,11,74,75,76,77,78,79,80,67,523,524,240]))),Rke=A.lazy(()=>B(()=>import("./EbookViewer-CeZcmJJk.js"),__vite__mapDeps([659,1,2,586,73,11,74,75,76,77,78,79,80]))),Mke=A.lazy(()=>B(()=>import("./EvolutionFlowPage-BKlrLlej.js"),__vite__mapDeps([660,1,2,608,609,23,103,248,585,305,302,226,74,661,662,255,261,236])).then(e=>({default:e.EvolutionFlowPage}))),Oke=A.lazy(()=>B(()=>import("./MeusCertificadosPage-BETkUc49.js"),__vite__mapDeps([663,1,2,11]))),Uke=A.lazy(()=>B(()=>import("./JourneyFlowWelcomePage-C-GDt-Ns.js"),__vite__mapDeps([664,1,2,665]))),Qke=A.lazy(()=>B(()=>import("./JourneyFlowEntryGate-MHJyiSzo.js"),__vite__mapDeps([666,1,2,665])).then(e=>({default:e.JourneyFlowEntryGate}))),Vke=A.lazy(()=>B(()=>import("./SupportPage-BOSUWNR7.js"),__vite__mapDeps([667,1,2,73,11,74,75,76,77,78,79,80])).then(e=>({default:e.SupportPage}))),Hke=A.lazy(()=>B(()=>import("./CompanyPortalGuard-DZiv2jdu.js"),__vite__mapDeps([668,1,2]))),zke=A.lazy(()=>B(()=>import("./CompanyPortalLayout-U02IX1de.js"),__vite__mapDeps([669,1,2,670,256,671,176,672]))
1620),WI=A.lazy(()=>B(()=>import("./CompanyDashboardV2-BvZyi8Ei.js"),__vite__mapDeps([673,1,2,670,674,365,27,348]))),YI=A.lazy(()=>B(()=>import("./CompanyCollaboratorsPage-CQxA1NSt.js"),__vite__mapDeps([675,1,2,670,676,677]))),$ke=A.lazy(()=>B(()=>import("./CollaboratorDetailPage-B2nE3hOT.js"),__vite__mapDeps([678,1,2,670,103,76]))),qke=A.lazy(()=>B(()=>import("./CompanyCoursesPage-IOLtVVmF.js"),__vite__mapDeps([679,1,2,670,11,302]))),Kke=A.lazy(()=>B(()=>import("./CompanyAttendancePage-DzxG5qGH.js"),__vite__mapDeps([680,1,2,681,670,682,23,76,324]))),Gke=A.lazy(()=>B(()=>import("./CompanyCertificatesPage-COj4dgL8.js"),__vite__mapDeps([683,1,2,670,67,222]))),Wke=A.lazy(()=>B(()=>import("./EmpresaRelatoriosPage-Bgcdmuht.js"),__vite__mapDeps([684,1,2,670,671,67,13,166,427,428,435,430,431,432,436,437,685,686,124,677,103,484,485,218,110]))),Yke=A.lazy(()=>B(()=>import("./EmpresaPerfilPage-OAhwFAzC.js"),__vite__mapDeps([687,1,2,124,103]))),Xke=A.lazy(()=>B(()=>import("./CompanyOrdersPage-Dhw9JSng.js"),__vite__mapDeps([688,1,2,670,124,674,605,606,11,27,365]))),Zke=A.lazy(()=>B(()=>import("./CompanyJourneysPage-BKsecVkq.js"),__vite__mapDeps([689,1,2,670,690,55,307,358]))),Jke=A.lazy(()=>B(()=>import("./JourneyWizardPage-kJUYE1dY.js"),__vite__mapDeps([691,1,2,670,692,693,694,242,226,261,661,11]))),eIe=A.lazy(()=>B(()=>import("./JourneyDetailPage-C16o3j64.js"),__vite__mapDeps([695,1,2,636,635,670,690,676,67,692,693,694,242,226,261,661,307,358,71,609]))),tIe=A.lazy(()=>B(()=>import("./CompanyGroupsPage-D3hRDbVS.js"),__vite__mapDeps([696,1,2,670,307]))),rIe=A.lazy(()=>B(()=>import("./GroupDetailPage-Cd4BkbAX.js"),__vite__mapDeps([697,1,2,670,67]))),nIe=A.lazy(()=>B(()=>import("./CompanyEvaluationsPage-C-Wc1riO.js"),__vite__mapDeps([698,1,2,681,670,682,67]))),XI=A.lazy(()=>B(()=>import("./CompanyModuleEvaluationsPage-Cju0DF5H.js"),__vite__mapDeps([699,1,2,681,670,682,67,347,346]))),aIe=A.lazy(()=>B(()=>import("./CompanyProgressPage-Cy1Lj0-y.js"),__vite__mapDeps([700,1,2,124,670,682,676,677,427,428,685,430,431,432,686,436,437,435,168]))),sIe=A.lazy(()=>B(()=>import("./CompanyFlowPage-DybkehND.js"),__vite__mapDeps([701,1,2,681,670,682]))),oIe=A.lazy(()=>B(()=>import("./CompanyOnboardingPage-DbE-AUdw.js"),__vite__mapDeps([702,1,2,681,670,682]))),iIe=A.lazy(()=>B(()=>import("./CompanyRankingPage-klhtX64B.js"),__vite__mapDeps([703,1,2,676,670,67,704]))),lIe=A.lazy(()=>B(()=>import("./CompanyNotificationsPage-DejuW77P.js"),__vite__mapDeps([705,1,2,681,670,682]))),cIe=A.lazy(()=>B(()=>import("./CompanyAllocationsPage-BCVPqGPn.js"),__vite__mapDeps([706,1,2,676,173,248]))),uIe=A.lazy(()=>B(()=>import("./CompanyQuizLibraryPage-CBAHhudr.js"),__vite__mapDeps([707,1,2,67,55,661,62,242,66,708,211,218,662,255,209,258,328,307]))),dIe=A.lazy(()=>B(()=>import("./CompanyConfiguracoesPage-AjqysDcs.js"),__vite__mapDeps([709,1,2]))),AIe=A.lazy(()=>B(()=>import("./CompanyQuizPage-D0mBMIOH.js"),__vite__mapDeps([710,1,2,670]))),fIe=A.lazy(()=>B(()=>import("./Module2LearningPilot-CfcSNti0.js"),__vite__mapDeps([711,1,2,712]))),mIe=A.lazy(()=>B(()=>import("./ParticipationPage-b7qZp6VH.js"),__vite__mapDeps([713,1,2,73,11,74,75,76,77,78,79,80,66,714,715]))),ZI=A.lazy(()=>B(()=>import("./LearningWorkspace-Ljk2FHlc.js"),__vite__mapDeps([634,1,2,608,609,635,573,73,11,74,75,76,77,78,79,80,636,637]))),hIe=A.lazy(()=>B(()=>import("./LearningWorkspace-Ljk2FHlc.js"),__vite__mapDeps([634,1,2,608,609,635,573,73,11,74,75,76,77,78,79,80,636,637])).then(e=>({default:e.CompanyLearningPage})));function pIe(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{element:a.jsx(rke,{}),children:a.jsx(_,{path:"/admin/manual-plataforma",element:a.jsx(nke,{})})}),a.jsx(_,{path:"/trocar-senha",element:a.jsx(Bke,{})}),a.jsx(_,{path:"/app",element:a.jsx(Ike,{})}),a.jsx(_,{path:"/plataforma",element:a.jsx(Qke,{children:a.jsx(oke,{})})}),a.jsx(_,{path:"/plataforma/bem-vindo",element:a.jsx(Uke,{})}),a.jsx(_,{path:"/plataforma/teste-premium",element:a.jsx(ike,{})}),a.jsx(_,{path:"/plataforma/home-v2-preview",element:a.jsx(lke,{})}),a.jsx(_,{path:"/plataforma/nr01",element:a.jsx(fke,{})}),a.jsx(_,{path:"/plataforma/nr01/modulo-2",element:a.jsx(fIe,{})}),a.jsx(_,{path:"/plataforma/confirmar-participacao/:cohortId",element:a.jsx(mIe,{})}),a.jsx(_,{path:"/plataforma/manual",element:a.jsx(cke,{})}),a.jsx(_,{path:"/plataforma/aulas-ao-vivo",element:a.jsx(uke,{})}),a.jsx(_,{path:"/plataforma/turma/digital",element:a.jsx(Ake,{})}),a.jsx(_,{path:"/plataforma/turma/:cohortId",element:a.jsx(dke,{})}),a.jsx(_,{path:"/plataforma/sessao/:sessionId",element:a.jsx(mke,{})}),a.jsx(_,{path:"/plataforma/calendario",element:a.jsx(hke,{})}),a.jsx(_,{path:"/plataforma/flashcards",element:a.jsx(pke,{})}),a.jsx(_,{path:"/plataforma/exercicios",element:a.jsx(gke,{})}),a.jsx(_,{path:"/plataforma/cursos/:courseId/exercicios",element:a.jsx(xke,{})}),a.jsx(_,{path:"/plataforma/cursos/:courseId/exercicios/:exerciseId",element:a.jsx(vke,{})}),a.jsx(_,{path:"/aluno/exercicios",element:a.jsx(Me,{to:"/plataforma/exercicios",replace:!0})}),a.jsx(_,{path:"/plataforma/oportunidades/:id",element:a.jsx(ake,{})}),a.jsx(_,{path:"/plataforma/trilha-ia",element:a.jsx(Mb,{children:a.jsx(bke,{})})}),a.jsx(_,{path:"/plataforma/indicar",element:a.jsx(kke,{})}),a.jsx(_,{path:"/plataforma/carreiras",element:a.jsx(wke,{})}),a.jsx(_,{path:"/plataforma/career-os",element:a.jsx(_ke,{})}),a.jsx(_,{path:"/plataforma/carreira/perfil",element:a.jsx(Cke,{})}),a.jsx(_,{path:"/plataforma/oportunidades",element:a.jsx(jke,{})}),a.jsx(_,{path:"/plataforma/skill-gap",element:a.jsx(ske,{})}),a.jsx(_,{path:"/plataforma/desenvolvimento",element:a.jsx(ZI,{})}),a.jsx(_,{path:"/plataforma/desenvolvimento/jornadas/:journeyId",element:a.jsx(ZI,{})}),a.jsx(_,{path:"/plataforma/skill-graph",element:a.jsx(Eke,{})}),a.jsx(_,{path:"/plataforma/frequencia",element:a.jsx(yke,{})}),a.jsx(_,{path:"/plataforma/gamificacao",element:a.jsx(Lke,{})}),a.jsx(_,{path:"/plataforma/portfolio",element:a.jsx(Dke,{})}),a.jsx(_,{path:"/plataforma/jornadas",element:a.jsx(Me,{to:"/plataforma/jornadadeconhecimento",replace:!0})}),a.jsx(_,{path:"/plataforma/meus-certificados",element:a.jsx(Mb,{children:a.jsx(Oke,{})})}),a.jsx(_,{path:"/plataforma/jornadadeconhecimento",element:a.jsx(Mb,{children:a.jsx(Mke,{})})}),a.jsx(_,{path:"/plataforma/evolution",element:a.jsx(Me,{to:"/plataforma/jornadadeconhecimento",replace:!0})}),a.jsx(_,{path:"/plataforma/jornadas-empresa",element:a.jsx(Me,{to:"/plataforma/jornadadeconhecimento",replace:!0})}),a.jsx(_,{path:"/plataforma/jornadas-empresa/:journeyId",element:a.jsx(Me,{to:"/plataforma/jornadadeconhecimento",replace:!0})}),a.jsx(_,{path:"/plataforma/ebooks/:id",element:a.jsx(Rke,{})}),a.jsx(_,{path:"/plataforma/suporte",element:a.jsx(Vke,{})}),a.jsx(_,{path:"/plataforma-aluno",element:a.jsx(Me,{to:"/plataforma",replace:!0})}),a.jsx(_,{path:"/student/academic-calendar",element:a.jsx(Me,{to:"/plataforma/calendario",replace:!0})}),a.jsx(_,{path:"/student/calendar",element:a.jsx(Me,{to:"/plataforma/calendario",replace:!0})}),a.jsx(_,{path:"/aluno/flashcards",element:a.jsx(Me,{to:"/plataforma/flashcards",replace:!0})}),a.jsx(_,{path:"/student/indicar",element:a.jsx(Me,{to:"/plataforma/indicar",replace:!0})}),a.jsx(_,{path:"/afiliados",element:a.jsx(Nke,{})}),a.jsx(_,{path:"/parceiro/:accessCode",element:a.jsx(Ske,{})}),a.jsx(_,{path:"/employee/dashboard",element:a.jsx(Tke,{})}),a.jsx(_,{path:"/employee/time-clock-history",element:a.jsx(Pke,{})}),a.jsx(_,{path:"/settings",element:a.jsx(GI,{})}),a.jsx(_,{path:"/user-settings",element:a.jsx(GI,{})}),a.jsx(_,{path:"/empresa/onboarding",element:a.jsx(Fke,{})}),a.jsxs(_,{path:"/empresa",element:a.jsx(Hke,{children:a.jsx(zke,{})}),children:[a.jsx(_,{index:!0,element:a.jsx(Me,{to:"/empresa/dashboard",replace:!0})}),a.jsx(_,{path:"dashboard",element:a.jsx(WI,{})}),a.jsx(_,{path:"inicio",element:a.jsx(WI,{})}),a.jsx(_,{path:"perfil",element:a.jsx(Yke,{})}),a.jsx(_,{path:"portal-restore-preview",element:a.jsx(Me,{to:"/empresa/dashboard",replace:!0})}),a.jsx(_,{path:"portal-original-preview",element:a.jsx(Me,{to:"/empresa/jornadas",replace:!0})}),a.jsx(_,{path:"skillmap",element:a.jsx(hIe,{})}),a.jsx(_,{path:"jornadas",element:a.jsx(Zke,{})}),a.jsx(_,{path:"jornadas/nova",element:a.jsx(Jke,{})}),a.jsx(_,{path:"jornadas/:id",element:a.jsx(eIe,{})}),a.jsx(_,{path:"grupos",element:a.jsx(tIe,{})}),a.jsx(_,{path:"grupos/:id",element:a.jsx(rIe,{})}),a.jsx(_,{path:"colaboradores",element:a.jsx(YI,{})}),a.jsx(_,{path:"equipe",element:a.jsx(YI,{})}),a.jsx(_,{path:"colaborador/:id",element:a.jsx($ke,{})}),a.jsx(_,{path:"cursos",element:a.jsx(qke,{})}),a.jsx(_,{path:"pedidos",element:a.jsx(Xke,{})}),a.jsx(_,{path:"frequencia",element:a.jsx(Kke,{})}),a.jsx(_,{path:"progresso",element:a.jsx(aIe,{})}),a.jsx(_,{path:"certificados",element:a.jsx(Gke,{})}),a.jsx(_,{path:"engajamento",element:a.jsx(Me,{to:"/empresa/relatorios?tab=engagement",replace:!0})}),a.jsx(_,{path:"relatorios",element:a.jsx(Wke,{})}),a.jsx(_,{path:"simulados",element:a.jsx(uIe,{})}),a.jsx(_,{path:"simulados/relatorio",element:a.jsx(AIe,{})}),a.jsx(_,{path:"avaliacoes",element:a.jsx(nIe,{})}),a.jsx(_,{path:"avaliacao-modulos",element:a.jsx(XI,{})}),a.jsx(_,{path:"avaliacoes-modulos",element:a.jsx(XI,{})}),a.jsx(_,{path:"flow",element:a.jsx(sIe,{})}),a.jsx(_,{path:"onboarding-colaboradores",element:a.jsx(oIe,{})}),a.jsx(_,{path:"alocacoes",element:a.jsx(cIe,{})}),a.jsx(_,{path:"ranking",element:a.jsx(iIe,{})}),a.jsx(_,{path:"notificacoes",element:a.jsx(lIe,{})}),a.jsx(_,{path:"metricas",element:a.jsx(Me,{to:"/empresa/relatorios?tab=metrics",replace:!0})}),a.jsx(_,{path:"configuracoes",element:a.jsx(dIe,{})})]})]})}const JI=A.lazy(()=>B(()=>import("./InstructorDashboard-CSxefdos.js"),__vite__mapDeps([716,1,2,717,718,377,298,256,181,569,198]))),eF=A.lazy(()=>B(()=>import("./InstructorCalendar-CMpWac7z.js"),__vite__mapDeps([719,1,2,717,718,377,298,256,181,569]))),tF=A.lazy(()=>B(()=>import("./InstructorCohorts-20vq382x.js"),__vite__mapDeps([720,1,2,717,718,377,298,256,181,569]))),rF=A.lazy(()=>B(()=>import("./InstructorCohortDetail-Dz4Lqi58.js"),__vite__mapDeps([721,1,2,717,718,377,298,256,181,569,67,722,567,416]))),nF=A.lazy(()=>B(()=>import("./InstructorAttendance-D1eELRJ-.js"),__vite__mapDeps([723,1,2,717,718,377,298,256,181,569,591,307]))),aF=A.lazy(()=>B(()=>import("./InstructorEarnings-CXxXV2Ds.js"),__vite__mapDeps([724,1,2,717,718,377,298,256,181,569]))),sF=A.lazy(()=>B(()=>import("./InstructorMaterials-Ic5B-OPq.js"),__vite__mapDeps([725,1,2,717,718,377,298,256,181,569]))),oF=A.lazy(()=>B(()=>import("./InstructorProfile-DV7nZIcJ.js"),__vite__mapDeps([726,1,2,717,718,377,298,256,181,569]))),gIe
1620=A.lazy(()=>B(()=>import("./InstructorAnnouncements-FOH-45lk.js"),__vite__mapDeps([727,1,2,717,718,377,298,256,181,569,312]))),xIe=A.lazy(()=>B(()=>import("./InstructorHelp-fdc34KuD.js"),__vite__mapDeps([728,1,2,717,718,377,298,256,181,569,23]))),vIe=A.lazy(()=>B(()=>import("./InstructorDocuments-ySrx5gQk.js"),__vite__mapDeps([729,1,2,717,718,377,298,256,181,569,67,23,335,104]))),iF=A.lazy(()=>B(()=>import("./InstructorSessionRoom-gT3TZV3G.js"),__vite__mapDeps([730,1,2,717,718,377,298,256,181,569,596,370,312,303,311,347,586,124,731,732,591,618,625,66,67,77]))),lF=A.lazy(()=>B(()=>import("./InstructorProfileEdit-BvO-mMmn.js"),__vite__mapDeps([733,1,2,717,718,377,298,256,181,569,66]))),yIe=A.lazy(()=>B(()=>import("./InstructorCohortAttendance-Bd26X0oK.js"),__vite__mapDeps([734,1,2,717,718,377,298,256,181,569,124,591]))),bIe=A.lazy(()=>B(()=>import("./InstructorSupport-36dUSlc5.js"),__vite__mapDeps([735,1,2,717,718,377,298,256,181,569,736,24,25,26,737,320,303,348,102])));function wIe(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{path:"/instrutor",element:a.jsx(Me,{to:"/instrutor/dashboard",replace:!0})}),a.jsx(_,{path:"/instructor",element:a.jsx(Me,{to:"/instrutor/dashboard",replace:!0})}),a.jsx(_,{path:"/instrutor/dashboard",element:a.jsx(JI,{})}),a.jsx(_,{path:"/instrutor/calendar",element:a.jsx(eF,{})}),a.jsx(_,{path:"/instrutor/cohorts",element:a.jsx(tF,{})}),a.jsx(_,{path:"/instrutor/cohorts/:cohortId",element:a.jsx(rF,{})}),a.jsx(_,{path:"/instrutor/attendance",element:a.jsx(nF,{})}),a.jsx(_,{path:"/instrutor/earnings",element:a.jsx(aF,{})}),a.jsx(_,{path:"/instrutor/materials",element:a.jsx(sF,{})}),a.jsx(_,{path:"/instrutor/profile",element:a.jsx(oF,{})}),a.jsx(_,{path:"/instrutor/announcements",element:a.jsx(gIe,{})}),a.jsx(_,{path:"/instrutor/help",element:a.jsx(xIe,{})}),a.jsx(_,{path:"/instrutor/documentos",element:a.jsx(vIe,{})}),a.jsx(_,{path:"/instrutor/session/:sessionId",element:a.jsx(iF,{})}),a.jsx(_,{path:"/instrutor/profile/edit",element:a.jsx(lF,{})}),a.jsx(_,{path:"/instrutor/frequencia",element:a.jsx(yIe,{})}),a.jsx(_,{path:"/instrutor/suporte",element:a.jsx(bIe,{})}),a.jsx(_,{path:"/instructor/cohorts",element:a.jsx(tF,{})}),a.jsx(_,{path:"/instructor/cohorts/:cohortId",element:a.jsx(rF,{})}),a.jsx(_,{path:"/instructor/dashboard",element:a.jsx(JI,{})}),a.jsx(_,{path:"/instructor/calendar",element:a.jsx(eF,{})}),a.jsx(_,{path:"/instructor/attendance",element:a.jsx(nF,{})}),a.jsx(_,{path:"/instructor/earnings",element:a.jsx(aF,{})}),a.jsx(_,{path:"/instructor/materials",element:a.jsx(sF,{})}),a.jsx(_,{path:"/instructor/profile",element:a.jsx(oF,{})}),a.jsx(_,{path:"/instructor/profile/edit",element:a.jsx(lF,{})}),a.jsx(_,{path:"/instructor/session/:sessionId",element:a.jsx(iF,{})})]})}function _Ie(){const{itemId:e}=Vx();return a.jsx(Me,{to:`/comercial/follow-up/${e??""}`,replace:!0})}const CIe=A.lazy(()=>B(()=>import("./AdminRouteLayout-CGXPVbQS.js"),__vite__mapDeps([541,1,2,542,543,23,544,273,12,337,105,279,254,334,368,302,161,78,75,79,104,71,256,545,546,547,548,549,54,162,550,102,551,552,553,554,62,133,555,377,67,338,556,557,558,559,560,66,303,307,561,252,562,365,171,247,350,351,563,564,565,304,566,567,416,568,138,569,570,327]))),jIe=A.lazy(()=>B(()=>import("./LeadCentralPage-BXMlWHGC.js"),__vite__mapDeps([738,1,2,452,739,67,740,335,741,742,347,261,66,743,142,338,264,744,247,745,138,278,303,377,283,184,150,746,307]))),EIe=A.lazy(()=>B(()=>import("./CredentialsHubPage-dW58_S2I.js"),__vite__mapDeps([747,1,2,124,748])));function $g(){const{id:e}=Vx();return a.jsx(Me,{to:e?`/admin/leads/${e}/central`:"/admin/leads",replace:!0})}function BIe(){const{leadId:e}=Vx(),{search:t}=fn();return a.jsx(Me,{to:e?`/admin/leads/${e}/qualificacao-prime${t}`:"/admin/leads",replace:!0})}const NIe=A.lazy(()=>B(()=>import("./ConselhoGeralPage-GidYycGH.js"),__vite__mapDeps([749,1,2,66,67,326,377,175]))),SIe=A.lazy(()=>B(()=>import("./MobileExperiencePage-DAsbMwPC.js"),__vite__mapDeps([750,1,2,453,66,67,377,247,307,120,358]))),kIe=A.lazy(()=>B(()=>import("./Bug360Page-CYCMKiB6.js"),__vite__mapDeps([751,1,2,124,377,365]))),IIe=A.lazy(()=>B(()=>import("./SkillGapAdmin-BhM7LVdj.js"),__vite__mapDeps([752,1,2,17,18,753]))),FIe=A.lazy(()=>B(()=>import("./Admin-YifhM9jO.js"),__vite__mapDeps([754,1,2,452,755,163,138,363,13,559,564,756,757,758,759]))),TIe=A.lazy(()=>B(()=>import("./FreeCertificationsAdmin-nPaCL-hL.js"),__vite__mapDeps([760,1,2,453,452,67,124,129,693,242,307]))),PIe=A.lazy(()=>B(()=>import("./LocacaoSalaAdmin-Bci0YMJK.js"),__vite__mapDeps([761,1,2,124]))),LIe=A.lazy(()=>B(()=>import("./SDRPerformanceReport-DF2Hq2iq.js"),__vite__mapDeps([762,1,2,67,652,76,124,247,209,427,428,429,430,431,432,433,435,436,437]))),DIe=A.lazy(()=>B(()=>import("./LeadershipDashboardPage-DhtINsg6.js"),__vite__mapDeps([763,1,2,452,453,67,602,764,563,483,62,231,23,347,365,279,335]))),RIe=A.lazy(()=>B(()=>import("./Categories-Bnw4F7fS.js"),__vite__mapDeps([765,1,2,766,124,67,693,694,767,135,242,213,56,274,62,768,769,51,263]))),MIe=A.lazy(()=>B(()=>import("./Courses-Di66a-Cq.js"),__vite__mapDeps([770,1,2,452,453,11,67,693,694,767,135,242,62,355,771,124,768,55,221]))),OIe=A.lazy(()=>B(()=>import("./Cohorts-DZTY7qgR.js"),__vite__mapDeps([772,1,2,773,559,124,67,774,11,768,775,776,714,620,777,778,558,27,62,731,732,71,591,103,779,66,780,307,306,781,782,715,247,161,335,76,368,274,163,704,783,784,42,785,55,167,786,174]))),UIe=A.lazy(()=>B(()=>import("./AcademicDeliveryCockpit-CgZE6LcK.js"),__vite__mapDeps([787,1,2,67,788,789]))),QIe=A.lazy(()=>B(()=>import("./CohortKickoffCockpitPage-BbJQmg-n.js"),__vite__mapDeps([790,1,2,781,782,67,66,620,715,789,102,103,273,226]))),VIe=A.lazy(()=>B(()=>import("./CohortManualCertificates-BU36mtrU.js"),__vite__mapDeps([791,1,2,124,779,66,731,780]))),HIe=A.lazy(()=>B(()=>import("./ManualCertificateIssuances-BoUKGbjS.js"),__vite__mapDeps([792,1,2,124,780,103,163,329]))),zIe=A.lazy(()=>B(()=>import("./ManualCertificateIssueHub-iZPZLNZR.js"),__vite__mapDeps([793,1,2,67,62,779,66,731,780]))),$Ie=A.lazy(()=>B(()=>import("./ManualAttendancePage-Cvnj9Flj.js"),__vite__mapDeps([794,1,2,67,124,358]))),qIe=A.lazy(()=>B(()=>import("./CohortEnrollments-bos5onfB.js"),__vite__mapDeps([795,1,2,124,796,452]))),KIe=A.lazy(()=>B(()=>import("./CohortAllocationRequests-h8k3xwvz.js"),__vite__mapDeps([797,1,2,452,67])));A.lazy(()=>B(()=>import("./Instructors-D7pFXxQs.js"),__vite__mapDeps([798,1,2,124,377,67,799,704,800,801,764,218,802,71,27])));const GIe=A.lazy(()=>B(()=>import("./InstructorManagement-XRm80NbK.js"),__vite__mapDeps([803,1,2,452,67,124,55,704,218,79,256]))),WIe=A.lazy(()=>B(()=>import("./LiveChat-CQ55vuf7.js"),__vite__mapDeps([804,1,2,452,805,242,558,559,547,557,55,137,103,283,102,806,67,377,807,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,561,252,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,349,100,42,483,864,744,563,567,305,346,364,865,265])));A.lazy(()=>B(()=>import("./SLAManagement-CGv2BxPV.js"),__vite__mapDeps([866,1,2,452,67,867])));const YIe=A.lazy(()=>B(()=>import("./CompetitorCenter-Ca5wQILO.js"),__vite__mapDeps([868,1,2,452,453,67,124,56,764,247,256]))),XIe=A.lazy(()=>B(()=>import("./Leads-CeGmgh6x.js"),__vite__mapDeps([869,1,2,870,756,757,452,559,871])));A.lazy(()=>B(()=>import("./LeadsTestLab-BiT_aMTO.js"),__vite__mapDeps([872,1,2,452,120,162])));const ZIe=A.lazy(()=>B(()=>import("./LeadsGovernancePage-BvoUnMjg.js"),__vite__mapDeps([873,1,2,452,67,124,874,120,326,322,261]))),JIe=A.lazy(()=>B(()=>import("./LeadDataQualityPage-2tZvRoNi.js"),__vite__mapDeps([875,1,2,124]))),eFe=A.lazy(()=>B(()=>import("./LeadDuplicatesPage-RxBD_rft.js"),__vite__mapDeps([876,1,2,452,453,62,239]))),tFe=A.lazy(()=>B(()=>
1620import("./LeadObservability-BS2CMLRP.js"),__vite__mapDeps([877,1,2,452,124]))),rFe=A.lazy(()=>B(()=>import("./LeadScoreAuditPage-B5jY2Kne.js"),__vite__mapDeps([878,1,2,160,365,345]))),nFe=A.lazy(()=>B(()=>import("./LeadsScoreAuditPage-B8cl7apo.js"),__vite__mapDeps([879,1,2]))),aFe=A.lazy(()=>B(()=>import("./TemperaturaReconciliacao-Dc0IiSRG.js"),__vite__mapDeps([880,1,2,124,881,345,427,428,685,430,431,432,686,436,437]))),sFe=A.lazy(()=>B(()=>import("./LeadsCampaignPanel-Dr4YUmp5.js"),__vite__mapDeps([882,1,2,124]))),oFe=A.lazy(()=>B(()=>import("./FormsTestCenter-B_B5Qqgt.js"),__vite__mapDeps([883,1,2,67,124,247]))),iFe=A.lazy(()=>B(()=>import("./KommoRoutingAudit-50oIgFLl.js"),__vite__mapDeps([884,1,2,124,885,66]))),lFe=A.lazy(()=>B(()=>import("./KommoHub-Y9RHR_FD.js"),__vite__mapDeps([886,1,2,452,66,887]))),cFe=A.lazy(()=>B(()=>import("./InboxCenter-IHOCl-9k.js"),__vite__mapDeps([888,1,2,452,547,563,416,303,286,89,102,377,202,243,71,231,270,319,805,242,370,225]))),uFe=A.lazy(()=>B(()=>import("./Tags-0GtElqaZ.js"),__vite__mapDeps([889,1,2,452,453,377,890,124,242,307]))),dFe=A.lazy(()=>B(()=>import("./LeadFormQualificationConfig-HMlqX1Up.js"),__vite__mapDeps([891,1,2]))),AFe=A.lazy(()=>B(()=>import("./LeadScoreConfig-Dpp7iLv7.js"),__vite__mapDeps([892,1,2,67,66,124,893,307,894,807,895,62,896]))),fFe=A.lazy(()=>B(()=>import("./LeadsDashboard-A4NCsfHl.js"),__vite__mapDeps([897,1,2,773,42,898,67,563,899,76,365,55,124,757,806,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,483,864,744,567,305,346,364,56,900,553,901,285,764,130,871,902,138,340]))),mFe=A.lazy(()=>B(()=>import("./PerformanceCentralPage-CWYhEhtY.js"),__vite__mapDeps([903,1,2,67,124,101,328,54]))),hFe=A.lazy(()=>B(()=>import("./Prospeccao-C0hNbQI7.js"),__vite__mapDeps([904,1,2,788,812,55]))),pFe=A.lazy(()=>B(()=>import("./MarketIntelligencePage-DwpQzBA2.js"),__vite__mapDeps([905,1,2,67,453,906,267,193,124,105,307,247]))),gFe=A.lazy(()=>B(()=>import("./MarketIntelligenceCampaignPage-DGV8GHEG.js"),__vite__mapDeps([907,1,2,67,453,906,267,193,124,377,105,427,428,435,430,431,432,436,437]))),cF=A.lazy(()=>B(()=>import("./CourseForm-DcAOtGU0.js"),__vite__mapDeps([908,1,2,909,768,910,249,67,911,912,258,124,913,221,771,769,51,622,66,12,185]))),uF=A.lazy(()=>B(()=>import("./CohortForm-BUqrlOqj.js"),__vite__mapDeps([914,1,2,67,776,714,620,124,777,778,558,559,27,62,731,732,71,591,103,779,66,780,307,168,365]))),xFe=A.lazy(()=>B(()=>import("./Import-igMfU0vy.js"),__vite__mapDeps([915,1,2,11,708,218]))),vFe=A.lazy(()=>B(()=>import("./ImportCourses-FfRpCyHD.js"),__vite__mapDeps([916,1,2,218,211]))),yFe=A.lazy(()=>B(()=>import("./FormsCtas-D5I0E6pM.js"),__vite__mapDeps([917,1,2,67,459,257,452,453,918,693,694,377,132,133,134,135,136,137,138,139,140,141,142,56,43,143,144,130,145,146,147,148,149,150,151,152,153,154,155,156,157,102,158,83,159,160,161,76,103,162,163,164,165,166,19,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,13,186,187,188,189,190,191,192,193,194,195,196,197,198,32,199,200,77,201,202,203,204,205,206,207,208,209,210,211,212,79,213,214,215,216,217,218,219,220,78,221,222,223,224,225,55,226,120,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,27,253,254,255,14,256,258,259,260,261,262,263,264,265,84,266,267,268,269,270,58,271,272,273,274,275,276,277,278,279,280,281,282,283,12,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,110,105,316,317,318,319,320,321,322,69,323,104,324,325,326,327,54,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,100,360,71,361,362,363,364,365,101,109,366,367,368,369,370,371,372,919,920,900]))),bFe=A.lazy(()=>B(()=>import("./EmpresasAtendidasAdmin-BLn4_4eD.js"),__vite__mapDeps([921,1,2,377,90,242]))),wFe=A.lazy(()=>B(()=>import("./CorporateCasesAdmin-BPYtISBF.js"),__vite__mapDeps([922,1,2,93,92,67,307,202,247]))),_Fe=A.lazy(()=>B(()=>import("./CarouselManager-nt-cGGHh.js"),__vite__mapDeps([923,1,2,693,694,307,67,377,242]))),CFe=A.lazy(()=>B(()=>
1620import("./ManagerActionTemplatesPage-B1z-MR3J.js"),__vite__mapDeps([924,1,2,452,746,307])));A.lazy(()=>B(()=>import("./FormTypeformPreview-j0XagAcj.js"),__vite__mapDeps([464,1,2,304,242,67,8])));const jFe=A.lazy(()=>B(()=>import("./ProposalStudioLayout-fX11DOtB.js"),__vite__mapDeps([925,1,2,151,102,208,318]))),EFe=A.lazy(()=>B(()=>import("./ProposalStudioOverview-DI9Dewqx.js"),__vite__mapDeps([926,1,2,151,208,318]))),BFe=A.lazy(()=>B(()=>import("./ProposalBlocksPage-Delwt1Dh.js"),__vite__mapDeps([927,1,2,928,266,307]))),NFe=A.lazy(()=>B(()=>import("./ProposalAISettingsPage-BAgI-OLQ.js"),__vite__mapDeps([929,1,2,66,930,314]))),SFe=A.lazy(()=>B(()=>import("./ProposalPromptsPage-Cm5nO-nu.js"),__vite__mapDeps([931,1,2,208]))),kFe=A.lazy(()=>B(()=>import("./ProposalRulesPage-DZZ9-7UQ.js"),__vite__mapDeps([932,1,2]))),IFe=A.lazy(()=>B(()=>import("./ProposalTemplatesPage-zyvKO4HF.js"),__vite__mapDeps([933,1,2,928]))),FFe=A.lazy(()=>B(()=>import("./ProductDossiersPage-jP5OT27z.js"),__vite__mapDeps([934,1,2,847,307]))),TFe=A.lazy(()=>B(()=>import("./ProposalMigrationPage-D3GvdfnX.js"),__vite__mapDeps([935,1,2,318]))),PFe=A.lazy(()=>B(()=>import("./ProposalWizardPage-B72bgXNF.js"),__vite__mapDeps([936,1,2,377,66,62,844,358]))),LFe=A.lazy(()=>B(()=>import("./NovaPropostaPJWizardPage-BbbRuwJd.js"),__vite__mapDeps([937,1,2,857,938,67,939,413,940,816,941,846,847,845,844,183,217,307,130]))),DFe=A.lazy(()=>B(()=>import("./ProposalBuilderV4Page-Ch5XLMb5.js"),__vite__mapDeps([942,1,2,943,168,944,945,557,938,67,857,841,940,816,939,413,817,396,946])));A.lazy(()=>B(()=>import("./GamificationStats-CrooeJtv.js"),__vite__mapDeps([947,1,2,452,453,764])));const RFe=A.lazy(()=>B(()=>import("./AcademicGovernance-DF3SYRXX.js"),__vite__mapDeps([948,1,2,67,124]))),MFe=A.lazy(()=>B(()=>import("./Formations-Cqr0jS8z.js"),__vite__mapDeps([949,1,2,452,453,124,67,693,694,136,242]))),dF=A.lazy(()=>B(()=>import("./FormationForm-r7MshvJ7.js"),__vite__mapDeps([950,1,2,452,453,768,769,51]))),OFe=A.lazy(()=>B(()=>import("./FormatsConfig-Cr-whTNq.js"),__vite__mapDeps([951,1,2,871]))),UFe=A.lazy(()=>B(()=>import("./CohortFieldsConfig-Cn3kzvFK.js"),__vite__mapDeps([952,1,2,124]))),QFe=A.lazy(()=>B(()=>import("./Jobs-B97fVjjA.js"),__vite__mapDeps([953,1,2,124,201,218]))),AF=A.lazy(()=>B(()=>import("./JobForm-BepUaRWc.js"),__vite__mapDeps([954,1,2,168]))),VFe=A.lazy(()=>B(()=>import("./JobEngineMonitor-CStGzOgg.js"),__vite__mapDeps([955,1,2,66,124,642,81,267,105,318]))),HFe=A.lazy(()=>B(()=>import("./Testimonials-CB3TFOd2.js"),__vite__mapDeps([956,1,2,124,307]))),fF=A.lazy(()=>B(()=>import("./TestimonialForm-DwPHGE3g.js"),__vite__mapDeps([957,1,2]))),zFe=A.lazy(()=>B(()=>import("./Labels-miwKR4Ma.js"),__vite__mapDeps([958,1,2,307]))),$Fe=A.lazy(()=>B(()=>import("./CategoryKeywords-CjUs9l-m.js"),__vite__mapDeps([959,1,2,307]))),qFe=A.lazy(()=>B(()=>import("./Marketing-OUNRkCzz.js"),__vite__mapDeps([960,1,2,452,453,273,247,343]))),KFe=A.lazy(()=>B(()=>import("./MobileExperienceManager-CNTu-lgw.js"),__vite__mapDeps([961,1,2,377,66,962,963,103,693,694,242,62]))),GFe=A.lazy(()=>B(()=>import("./MobileExperiencePreview-pNR7qznD.js"),__vite__mapDeps([964,1,2,66,962,963,103]))),WFe=A.lazy(()=>B(()=>import("./ExperienciaMobileManager-KszhSEWW.js"),__vite__mapDeps([965,1,2,67,66]))),YFe=A.lazy(()=>B(()=>import("./LeadGameEnginePage-Dnx5fOxe.js"),__vite__mapDeps([966,1,2,452,66,67,967,347,332,273,248,243,230,226,197,76,152,130,133,120,247,358]))),XFe=A.lazy(()=>B(()=>import("./SalesCopilotPage-R3vj31Sc.js"),__vite__mapDeps([968,1,2,452,66,67,315]))),ZFe=A.lazy(()=>B(()=>import("./WhatsAppSMS-g0MUFD7J.js"),__vite__mapDeps([969,1,2,452,453,67,124,247]))),JFe=A.lazy(()=>B(()=>import("./WhatsAppOfficialLabPage-DOtHEz6n.js"),__vite__mapDeps([970,1,2,67,179,71,137]))),eTe=A.lazy(()=>B(()=>import("./WhatsAppBlitzCampaign-awUzC7oD.js"),__vite__mapDeps([971,1,2,124,972,558,559,55]))),tTe=A.lazy(()=>B(()=>import("./SmsCentral-DV2aePTx.js"),__vite__mapDeps([973,1,2,67,974,273,262,307]))),rTe=A.lazy(()=>B(()=>import("./EmailMarketing-KEE3t_yj.js"),__vite__mapDeps([975,1,2,67,328,55,452,453,976,358,244,134,356,135,263,299,301,11,305]))),nTe=A.lazy(()=>B(()=>import("./Campaigns-DIPUXlSE.js"),__vite__mapDeps([977,1,2,452,453,124,377]))),aTe=A.lazy(()=>B(()=>import("./CampaignWizard-C3-xVkCt.js"),__vite__mapDeps([978,1,2,452,453,377,67]))),sTe=A.lazy(()=>B(()=>import("./MetaCreativosAds-DC-cKrOE.js"),__vite__mapDeps([979,1,2,452,453,67,980,368]))),oTe=A.lazy(()=>B(()=>import("./MetaAdsAnalyticsPage-D0uV4z57.js"),__vite__mapDeps([981,1,2,452,453,67,286,273,427,428,435,430,431,432,436,437,124,56,434,433,66,256]))),iTe=A.lazy(()=>B(()=>import("./CreativeStudioPage-BQQor1zz.js"),__vite__mapDeps([982,1,2,67,377,250,368,182,356]))),lTe=A.lazy(()=>B(()=>import("./CampaignOperationsHub-B9y_Kn16.js"),__vite__mapDeps([983,1,2,66,13,256,210,103,273]))),cTe=A.lazy(()=>B(()=>import("./MarketingContentStudio-DY2nJugx.js"),__vite__mapDeps([984,1,2,452,67,909,258]))),uTe=A.lazy(()=>B(()=>import("./ContentEngine-0yBT3V7X.js"),__vite__mapDeps([985,1,2,452,67,23,247]))),dTe=A.lazy(()=>B(()=>import("./TrafficManager-Bil1s0hD.js"),__vite__mapDeps([986,1,2,452,67,124,764,56,202,218,42]))),ATe=A.lazy(()=>B(()=>import("./TrafficAuditCenter-C8ghhuII.js"),__vite__mapDeps([987,1,2,452,764,313,124,247]))),fTe=A.lazy(()=>B(()=>import("./FullFunnelDashboard-BzYrAhUl.js"),__vite__mapDeps([988,1,2,427,428,435,430,431,432,436,437]))),mTe=A.lazy(()=>B(()=>import("./FreeCourses-SGf_HnGJ.js"),__vite__mapDeps([989,1,2,453,307]))),hTe=A.lazy(()=>B(()=>import("./PageManager-BWOTJBnc.js"),__vite__mapDeps([990,1,2,452,453,62,289]))),pTe=A.lazy(()=>B(()=>import("./MasterTechConfig-siygOrPo.js"),__vite__mapDeps([991,1,2,67,209]))),gTe=A.lazy(()=>B(()=>import("./LeadMagnetsAdmin-BQHaA669.js"),__vite__mapDeps([992,1,2]))),xTe=A.lazy(()=>B(()=>import("./MasterTechEnrollments-CTqwjKzq.js"),__vite__mapDeps([993,1,2,452,67,796,11]))),vTe=A.lazy(()=>B(()=>import("./MasterTechUsers-CXoVUURN.js"),__vite__mapDeps([994,1,2,452,124]))),mF=A.lazy(()=>B(()=>import("./SubscriptionManagement-C9mMTCP_.js"),__vite__mapDeps([995,1,2,452,453,67,853,854,11,606,855,557,559,856,857,71,469,558,560,66,377,858,124,360,218,142,307,859,775,24,25,26,335,242]))),yTe=A.lazy(()=>B(()=>import("./PriceCampaigns-BpFN8upI.js"),__vite__mapDeps([996,1,2,124]))),bTe=A.lazy(()=>B(()=>import("./FlashSales-sCfMuVoh.js"),__vite__mapDeps([997,1,2,452,453,124,307]))),wTe=A.lazy(()=>B(()=>import("./BundleTiers-CCHTQV-2.js"),__vite__mapDeps([998,1,2,452,453,124,66]))),_Te=A.lazy(()=>B(()=>import("./WheelPrizes-D4Uocq-q.js"),__vite__mapDeps([999,1,2,452,453,124,66]))),CTe=A.lazy(()=>B(()=>import("./BlackFridayAnalytics-DC0T2zs-.js"),__vite__mapDeps([1000,1,2,452,453]))),jTe=A.lazy(()=>B(()=>import("./BlackFridayConfig-CE-tylGD.js"),__vite__mapDeps([1001,1,2,452,453,66,356,315,314]))),ETe=A.lazy(()=>B(()=>import("./Analytics-0ldVbPmV.js"),__vite__mapDeps([1002,1,2,67,286,764,124,452,453]))),BTe=A.lazy(()=>B(()=>import("./ConversionAttribution-DjhOccDj.js"),__vite__mapDeps([1003,1,2,452,704,764,124]))),NTe=A.lazy(()=>B(()=>import("./Dashboard-Bp4syir0.js"),__vite__mapDeps([1004,1,2,67,452,453,544,273,12,337,105,279,254,334,368,302,161,78,564,755,76,71,764,704]))),STe=A.lazy(()=>B(()=>import("./DashboardCustomizer-xktak1g8.js"),__vite__mapDeps([1005,1,2,67,132,133,134,135,136,137,138,139,140,141,142,56,43,143,144,130,145,146,147,148,149,150,151,152,153,154,155,156,157,102,158,83,159,160,161,76,103,162,163,164,165,166,19,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,13,186,187,188,189,190,191,192,193,194,195,196,197,198,32,199,200,77,201,202,203,204,205,206,207,208,209,210,211,212,79,213,214,215,216,217,218,219,220,78,221,222,223,224,225,55,226,120,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,27,253,254,255,14,256,257,258,259,260,261,262,263,264,265,84,266,267,268,269,270,58,271,272,273,274,275,276,277,278,279,28
16200,281,282,283,12,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,110,105,316,317,318,319,320,321,322,69,323,104,324,325,326,327,54,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,100,360,71,361,362,363,364,365,101,109,366,367,368,369,370,371,372,693,694]))),kTe=A.lazy(()=>B(()=>import("./Resumes-mvVQrTBQ.js"),__vite__mapDeps([1006,1,2,67,124,66]))),ITe=A.lazy(()=>B(()=>import("./BlogPosts-gABI6kD_.js"),__vite__mapDeps([1007,1,2,452,453,124,67,99,377,385,102,1008,1009,307,250]))),hF=A.lazy(()=>B(()=>import("./BlogPostForm-DVSkQDSY.js"),__vite__mapDeps([1010,1,2,452,453,1008,67,1009,307,768]))),FTe=A.lazy(()=>B(()=>import("./PopupManager-pMUWZYdq.js"),__vite__mapDeps([1011,1,2,919,315,178]))),TTe=A.lazy(()=>B(()=>import("./PopupCenter-piL8tL8W.js"),__vite__mapDeps([1012,1,2,67,99,377,565,304,367]))),PTe=A.lazy(()=>B(()=>import("./Upsells-8ywjl3PY.js"),__vite__mapDeps([1013,1,2]))),LTe=A.lazy(()=>B(()=>import("./UpsellConfig-DHNa2csU.js"),__vite__mapDeps([1014,1,2,452,67])));A.lazy(()=>B(()=>import("./GenerateDigitalCourseThumbnails-8qmEShbF.js"),__vite__mapDeps([1015,1,2])));const DTe=A.lazy(()=>B(()=>import("./CourseSettings-CgLvrij9.js"),__vite__mapDeps([1016,1,2,452,453,67,377,121,335]))),RTe=A.lazy(()=>B(()=>import("./SyllabusManager-BI83i_dp.js"),__vite__mapDeps([1017,1,2,833,89,452,67,1009,305,547,558,559,972,819,817,396,818,368,377,55,335]))),MTe=A.lazy(()=>B(()=>import("./LiveSessions-GELHgljL.js"),__vite__mapDeps([1018,1,2,353]))),OTe=A.lazy(()=>B(()=>import("./LiveSessionAttendanceList-gCICNXMp.js"),__vite__mapDeps([1019,1,2,124,591]))),UTe=A.lazy(()=>B(()=>import("./AttendanceReport-8HbxNSbL.js"),__vite__mapDeps([1020,1,2,452,124,76]))),QTe=A.lazy(()=>B(()=>import("./RecordedSessions-Bv0tBVQe.js"),__vite__mapDeps([1021,1,2,67,307,209,220]))),VTe=A.lazy(()=>B(()=>import("./MarketCertifications-BHZibNw2.js"),__vite__mapDeps([1022,1,2,452,99,336,62,1023,66,161,124,440]))),pF=A.lazy(()=>B(()=>import("./CertificationForm-BAHWlWqX.js"),__vite__mapDeps([1024,1,2,452,67,377,1023,161,1025,168,249,440,768]))),HTe=A.lazy(()=>B(()=>import("./CertificationToCourse-DWKlDHRl.js"),__vite__mapDeps([1026,1,2,452,377,440]))),zTe=A.lazy(()=>B(()=>import("./CurrencyExchangeConfig-oH0I2k_l.js"),__vite__mapDeps([1027,1,2,452,67,1023,764,161,186]))),$Te=A.lazy(()=>B(()=>import("./CertificationSales-_XTLKKZy.js"),__vite__mapDeps([1028,1,2,452,124]))),gF=A.lazy(()=>B(()=>import("./SystemSettings-BGvDmlgY.js"),__vite__mapDeps([1029,1,2,1030]))),qTe=A.lazy(()=>B(()=>import("./TimezoneSettings-2TOHwwjf.js"),__vite__mapDeps([1031,1,2,452,1030]))),KTe=A.lazy(()=>B(()=>import("./ClearCache-B9ICGr0a.js"),__vite__mapDeps([1032,1,2,452,453]))),GTe=A.lazy(()=>B(()=>import("./Student360-By0kHByK.js"),__vite__mapDeps([1033,1,2,365,774,11,55,124,202,27,56,1034]))),WTe=A.lazy(()=>B(()=>import("./Student360Profile-DTnqTw0Z.js"),__vite__mapDeps([1035,1,2,67,802,800,124,801,56,76,286,1034,591,576,27,110,312,311]))),YTe=A.lazy(()=>B(()=>import("./LearningControl-Fu3717J-.js"),__vite__mapDeps([1036,1,2,67,247]))),XTe=A.lazy(()=>B(()=>import("./PortfolioCuration-DMPQhmfJ.js"),__vite__mapDeps([1037,1,2,67,227,240]))),ZTe=A.lazy(()=>B(()=>import("./AttributionDashboard-9iXMxIz-.js"),__vite__mapDeps([1038,1,2,55,427,428,435,430,431,432,436,437,434,433])));A.lazy(()=>B(()=>import("./InternalUserAudit-D9zTJUkO.js"),__vite__mapDeps([1039,1,2,1040,62,27,260,326,368])));const JTe=A.lazy(()=>B(()=>import("./CompanySettings-COe1yD3V.js"),__vite__mapDeps([1041,1,2,452,453,67,920,66]))),ePe=A.lazy(()=>B(()=>import("./TutorConfig-CjmYVpji.js"),__vite__mapDeps([1042,1,2,67,99]))),tPe=A.lazy(()=>B(()=>import("./BulkAIGeneration-CyqVazzS.js"),__vite__mapDeps([1043,1,2]))),rPe=A.lazy(()=>B(()=>import("./BatchGenerateContent-BOtdFTWw.js"),__vite__mapDeps([1044,1,2,452,377,180]))),nPe=A.lazy(()=>B(()=>import("./BatchGenerator-Dn8WSLQZ.js"),__vite__mapDeps([1045,1,2,453,261]))),aPe=A.lazy(()=>B(()=>import("./ExercisesCenter-rnU_0ynm.js"),__vite__mapDeps([1046,1,2,453,67,305,273,247]))),xF=A.lazy(()=>B(()=>import("./LiveSessionForm-C3qaG8cZ.js"),__vite__mapDeps([1047,1,2])));A.lazy(()=>B(()=>import("./Achievements-LPWvM6rc.js"),__vite__mapDeps([1048,1,2])));A.lazy(()=>B(()=>import("./Rewards-NtaITaT7.js"),__vite__mapDeps([1049,1,2])));A.lazy(()=>B(()=>import("./GamificationConfig-kenCQtrH.js"),__vite__mapDeps([1050,1,2,452,453,67,602])));const sPe=A.lazy(()=>B(()=>import("./ExchangeRateConfig-BHcLPPvg.js"),__vite__mapDeps([1051,1,2])));A.lazy(()=>B(()=>import("./NotificationManager-B2Vb_17s.js"),__vite__mapDeps([1052,1,2,67,307])));const oPe=A.lazy(()=>B(()=>import("./Clientes-Cc6P-jE_.js"),__vite__mapDeps([1053,1,2,547,452,453,67,66,42,856,71,360,307]))),iPe=A.lazy(()=>B(()=>import("./Pedidos-7SsKnUY4.js"),__vite__mapDeps([1054,1,2,606,11,559,452,453,23,469,853,854,855,557,856,857,71,558,560,66,377,858,124,67,360,218,142,307,859,775,24,25,26,89,1055,1056,468,305,110,1057,1058,103,1059,911,777,778,27,260,216,1060,42,836,1061,62,549,287,1062,248,334,605,365,338,278,76,1063,1064,1065,1066,564,838,413,839,161,840,841,842,843,844,209,845,846,847,348,178,1067,1068,1069,1070,1071,851,310,331,303,1072,79,202,159,55]))),lPe=A.lazy(()=>B(()=>import("./PedidosV2-CafTdq6v.js"),__vite__mapDeps([1073,1,2,452,453,55,365,27,71,377,748]))),cPe=A.lazy(()=>B(()=>import("./PedidosExecutiveDashboard-B9eRKBgJ.js"),__vite__mapDeps([1074,1,2,452,453,783,784,124,677,1075,318,427,428,434,430,431,432,433,435,436,437,1076,485,686,685]))),uPe=A.lazy(()=>B(()=>import("./PedidosDashboardV3-BRmE-FNB.js"),__vite__mapDeps([1077,1,2,452,453,1063,225,138,254,124,764,1078,168,1079,677,341,318]))),dPe=A.lazy(()=>B(()=>import("./Comercial360Page-DPv8o5Or.js"),__vite__mapDeps([1080,1,2,67,124,708,1081,218,103]))),APe=A.lazy(()=>B(()=>
1620import("./RevenueCommandCenterPage-D7T82MYE.js"),__vite__mapDeps([1082,1,2,452,67,124,1083,564,103]))),fPe=A.lazy(()=>B(()=>import("./Cupons-DzX4CNd1.js"),__vite__mapDeps([1084,1,2,452,453]))),mPe=A.lazy(()=>B(()=>import("./Automations-DTGTibER.js"),__vite__mapDeps([1085,1,2,452,453,67,256,161,104])));A.lazy(()=>B(()=>import("./AutomationLogs-O_zv8e_c.js"),__vite__mapDeps([1086,1,2,67,286,268])));const hPe=A.lazy(()=>B(()=>import("./AutomationSendReport-D4-mXoPq.js"),__vite__mapDeps([1087,1,2,452,453,652,377,1088,89,102])));A.lazy(()=>B(()=>import("./AutomationDashboard-Nm_Y6d5O.js"),__vite__mapDeps([1089,1,2,452])));A.lazy(()=>B(()=>import("./AutomationsHub-bFgPBNZ4.js"),__vite__mapDeps([1090,1,2,67,1091,76,286])));const vF=A.lazy(()=>B(()=>import("./CadenceEditor-DrAiDjMa.js"),__vite__mapDeps([1092,1,2,693,290,67,242,377,305,303,372])));A.lazy(()=>B(()=>import("./EmailHistory-BhFqcBwR.js"),__vite__mapDeps([1093,1,2,452,67,89,66,23,124,144,342,268,286])));A.lazy(()=>B(()=>import("./EmailTest-ChxZdgRz.js"),__vite__mapDeps([1094,1,2,452])));const pPe=A.lazy(()=>B(()=>import("./CampaignManager-B-AamVqP.js"),__vite__mapDeps([1095,1,2,452,124,1096,377,99,273,229]))),gPe=A.lazy(()=>B(()=>import("./Integrations-DdAezIUe.js"),__vite__mapDeps([1097,1,2,67,452,66,343,218,708,801,377,1098,1099,369,307,1100,124,314,315,102,864,27]))),xPe=A.lazy(()=>B(()=>import("./StationSyncDashboardPage-Dt76Piuv.js"),__vite__mapDeps([1101,1,2]))),vPe=A.lazy(()=>B(()=>import("./WebhooksSettings-CxeP9FOK.js"),__vite__mapDeps([1102,1,2,452,67,369]))),yPe=A.lazy(()=>B(()=>import("./MetaLeadHealth-Dnez2B8V.js"),__vite__mapDeps([1103,1,2,66]))),bPe=A.lazy(()=>B(()=>import("./HotjarSettings-IHBfawcz.js"),__vite__mapDeps([1104,1,2,452,377,287]))),wPe=A.lazy(()=>B(()=>import("./ConnectorControlCenter-B0l3ZVVe.js"),__vite__mapDeps([1105,1,2,452,377,120,371,104]))),_Pe=A.lazy(()=>B(()=>import("./KommoSalesAnalytics-KF-4dcJl.js"),__vite__mapDeps([1106,1,2,453,764,708]))),CPe=A.lazy(()=>B(()=>import("./LeadQualificacaoPage-oe_7AWNz.js"),__vite__mapDeps([1107,1,2,23,836,811,228,345,377,247,862,849,741,89,189,850,554,851,413,67,863,292,103,349,100,416,42,483,307,370,813,814,815,816,817,396,818,783,784,819,820,821,102,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,11,76,261,279,243,54,837,1108,559,1109,1110,1111,62,162,363,1112,1113,562,838,839,161,840,71,841,842,843,844,209,845,846,847,348,178,1114,881,202,1115]))),jPe=A.lazy(()=>B(()=>import("./LeadQualificacaoConfigPage-BfZ4fg8y.js"),__vite__mapDeps([1116,1,2,261,316,313]))),EPe=A.lazy(()=>B(()=>import("./QualificacaoCentralPage-D7xz0wHD.js"),__vite__mapDeps([1117,1,2,66,345,368,67]))),BPe=A.lazy(()=>B(()=>import("./LeadCloserPage-D_34Gn4o.js"),__vite__mapDeps([1118,1,2,554,1108,849,741,89,189,247,850,851,413,1109,1112,100,1113,363,862,67,377,863,292,103,349,416,42,483]))),NPe=A.lazy(()=>B(()=>import("./LeadFontesPage-CORgKMJG.js"),__vite__mapDeps([1119,1,2]))),SPe=A.lazy(()=>B(()=>import("./ProspectsPage-BDAjlH2b.js"),__vite__mapDeps([1120,1,2,67,1121,1122,377,269]))),kPe=A.lazy(()=>B(()=>import("./BusinessDiagnosticsPage-C_P1k0vc.js"),__vite__mapDeps([1123,1,2,67,124,377,66,421,217,76]))),IPe=A.lazy(()=>B(()=>import("./KommoSellersConfig-BqrZ_rvK.js"),__vite__mapDeps([1124,1,2,452,377,67,99,885,66,359]))),FPe=A.lazy(()=>B(()=>import("./Atendimentos-BN0kojLB.js"),__vite__mapDeps([1125,1,2,452,788,124,806,67,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364]))),TPe=A.lazy(()=>B(()=>import("./Affiliates-CzO6iik-.js"),__vite__mapDeps([1126,1,2,124,71]))),PPe=A.lazy(()=>B(()=>import("./SchedulingAppointments-Dz1vDc9f.js"),__vite__mapDeps([1127,1,2,452,453,898,67,563,42,899,76,365,55,124,757,806,377,807,558,559,808,3
162007,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,483,864,744,567,305,346,364,56,900,553,901,285,764]))),LPe=A.lazy(()=>B(()=>import("./CRM-CsfnTQtQ.js"),__vite__mapDeps([1128,1,2,452,252,191]))),DPe=A.lazy(()=>B(()=>import("./CRMComercial-3Q1O06VM.js"),__vite__mapDeps([1129,1,2,452,1130,867,243,248,67,345,124]))),RPe=A.lazy(()=>B(()=>import("./CRMOperacional-Dbld89I8.js"),__vite__mapDeps([1131,1,2,452,1130,867,67,124,55,282,1098]))),MPe=A.lazy(()=>B(()=>import("./KommoPipelines-wnv-uKcE.js"),__vite__mapDeps([1132,1,2,452,67,806,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364,1133,1083,148,885]))),OPe=A.lazy(()=>B(()=>import("./KommoMigration-E8Z9ctsC.js"),__vite__mapDeps([1134,1,2,452,453,377,124,218,885,66]))),UPe=A.lazy(()=>B(()=>import("./KommoFieldMapping-CPkYcaTm.js"),__vite__mapDeps([1135,1,2,452,453,66,124,885,743,120,368,307]))),QPe=A.lazy(()=>B(()=>import("./KommoSyncControlCenter-Cp5xXXe7.js"),__vite__mapDeps([1136,1,2,452,885,66,784,246,742,124,67,326]))),VPe=A.lazy(()=>B(()=>import("./KommoConversations-DhtzqdFu.js"),__vite__mapDeps([1137,1,2,452,453,67,809,114,542,211,124]))),HPe=A.lazy(()=>B(()=>import("./FunnelConfigPage-CYyMdajx.js"),__vite__mapDeps([1138,1,2,67,740,261,307])));A.lazy(()=>B(()=>import("./Pipeline-D_OBCh0M.js"),__vite__mapDeps([1139,1,2,837,452,67,377,1140,124,56,168,1141,893,273,335,261,102,865,265,162,247,1142,338,307,345,483,1143,806,807,558,559,808,213,303,809,114,542,810,202,105,560,66,556,557,561,252,215,416,187,811,23,228,363,62,812,269,310,316,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,287,832,833,834,614,835,216,152,76,279,243,54,836,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,864,744,563,567,305,346,364,55,159,764,1144,1145])));const zPe=A.lazy(()=>B(()=>import("./PipelineLegadoPage-B2biLATq.js"),__vite__mapDeps([1146,1,2,1139,837,452,67,377,1140,124,56,168,1141,893,273,335,261,102,865,265,162,247,1142,338,307,345,483,1143,806,807,558,559,808,213,303,809,114,542,810,202,105,560,66,556,557,561,252,215,416,187,811,23,228,363,62,812,269,310,316,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,287,832,833,834,614,835,216,152,76,279,243,54,836,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,864,744,563,567,305,346,364,55,159,764,1144,1145]))),$Pe=A.lazy(()=>B(()=>import("./CloserDashboard-fnRHVBmE.js"),__vite__mapDeps([1147,1,2,452,788,894,807,806,67,377,558,559,808,3
162007,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364]))),qPe=A.lazy(()=>B(()=>import("./DealDetailPage-CjgWFY_w.js"),__vite__mapDeps([1148,1,2,452,67,805,242,377,1149,865,162,1142,1145,307,247,556,557,558,559,560,66,303,561,252,102,852,298,297]))),KPe=A.lazy(()=>B(()=>import("./PipelineSettings-DGoexReH.js"),__vite__mapDeps([1150,1,2,452,453,67,1140,124,56,168,1141,893,273,335,247,257]))),GPe=A.lazy(()=>B(()=>import("./PartnerCompanies-CQeD36yY.js"),__vite__mapDeps([1151,1,2,124]))),WPe=A.lazy(()=>B(()=>import("./DigitalCourses-BiDV-GR5.js"),__vite__mapDeps([1152,1,2,67,453,124,1153,771,221,913,911,11,71]))),YPe=A.lazy(()=>B(()=>import("./PageLayoutConfig-Ce-jHZkI.js"),__vite__mapDeps([1154,1,2,124,335]))),XPe=A.lazy(()=>B(()=>import("./TopMenuManager-C70w6q8A.js"),__vite__mapDeps([1155,1,2,124]))),ZPe=A.lazy(()=>B(()=>import("./ActionBarConfigPage-BHHnxLqi.js"),__vite__mapDeps([1156,1,2,452,1157,67,377,693,694,286,302,242]))),JPe=A.lazy(()=>B(()=>import("./ContractClauses-ZCJWciIQ.js"),__vite__mapDeps([1158,1,2,1159,1056,693,694,242,307])));A.lazy(()=>B(()=>import("./ContractTemplateConfig-DavtEC2x.js"),__vite__mapDeps([1160,1,2,452,453,1161,1056,67,89,468,469,366])));const eLe=A.lazy(()=>B(()=>import("./ContractTemplates-C0woe6wD.js"),__vite__mapDeps([1162,1,2,452,453,1056,67,377,79,322,200,124,1055,89,468,469,305,202,1159,693,694,242,307,1161,366,368]))),tLe=A.lazy(()=>B(()=>import("./FormConfigs-CyvH9Czj.js"),__vite__mapDeps([1163,1,2,452,453,124]))),rLe=A.lazy(()=>B(()=>import("./FormConfigForm-Da25bCME.js"),__vite__mapDeps([1164,1,2,766,62,377]))),nLe=A.lazy(()=>B(()=>import("./FormManager-DLke4bfI.js"),__vite__mapDeps([1165,1,2,452,67,918,693,694,377,132,133,134,135,136,137,138,139,140,141,142,56,43,143,144,130,145,146,147,148,149,150,151,152,153,154,155,156,157,102,158,83,159,160,161,76,103,162,163,164,165,166,19,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,13,186,187,188,189,190,191,192,193,194,195,196,197,198,32,199,200,77,201,202,203,204,205,206,207,208,209,210,211,212,79,213,214,215,216,217,218,219,220,78,221,222,223,224,225,55,226,120,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,27,253,254,255,14,256,257,258,259,260,261,262,263,264,265,84,266,267,268,269,270,58,271,272,273,274,275,276,277,278,279,280,281,282,283,12,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,110,105,316,317,318,319,320,321,322,69,323,104,324,325,326,327,54,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,100,360,71,361,362,363,364,365,101,109,366,367,368,369,370,371,372,919,9,108,124,708]))),aLe=A.lazy(()=>B(()=>import("./Subscriptions-BGpGOlZr.js"),__vite__mapDeps([1166,1,2]))),sLe=A.lazy(()=>B(()=>import("./QuizManager-CzXuo410.js"),__vite__mapDeps([1167,1,2,124,67,452,453,314,315,55])));A.lazy(()=>B(()=>import("./SalesTeam-H_8om-9l.js"),__vite__mapDeps([1168,1,2,453,67,1169,66,177,1170,764,138,1171,163,1040,62,27,1172,377,1173,1174,1099,1175,161,55,365])));const oLe=A.lazy(()=>B(()=>import("./SalesPlaybook-11U4_UvQ.js"),__vite__mapDeps([1176,1,2,452,453,67,1177,1178,219,564,328,102,1169,66,1040,62,27,55,202,365,124,1059,1179,243,197,76,103,1180,834,377,764,247,1181,307,832,23,833,242,614,835,820,821,233,302,110,181,445,446,99,203,693,694,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,161,218,448,1182,336,138,238,561,194,229,228,708,211,256,156,339,258])));A.lazy(()=>B(()=>import("./ScriptsHub-Bi6O4aCd.js"),__vite__mapDeps([1183,1,2,452,453,1182,377,67,336,368,102,138,238,835,561,194,229,55,228])));const iLe=A.lazy(()=>B(()=>import("./LayoutCenter-1AtcvICi.js"),__vite__mapDeps([1184,1,2,67]))),lLe=A.lazy(()=>B(()=>import("./TemplatesCondicoesComerciais-Czdq1kN0.js"),__vite__mapDeps([1185,1,2,452,124,842,1056,307]))),cLe=A.lazy(()=>B(()=>
1620import("./RACIMatrix-CFs_KFep.js"),__vite__mapDeps([1186,1,2,67,124,736,307])));A.lazy(()=>B(()=>import("./Employees-CIN6co_Y.js"),__vite__mapDeps([1187,1,2,124])));const uLe=A.lazy(()=>B(()=>import("./TimeClockSettings-djjzfzHy.js"),__vite__mapDeps([1188,1,2,124]))),dLe=A.lazy(()=>B(()=>import("./TimeClockReports-BFDgx1ww.js"),__vite__mapDeps([1189,1,2,124]))),ALe=A.lazy(()=>B(()=>import("./WorkSchedules-BOSUNWSw.js"),__vite__mapDeps([1190,1,2,67,124,266,786,307,100]))),yF=A.lazy(()=>B(()=>import("./ProcessEnrollments-GY31CwS7.js"),__vite__mapDeps([1191,1,2]))),fLe=A.lazy(()=>B(()=>import("./DREConfig-BLJQTMtS.js"),__vite__mapDeps([1192,1,2]))),mLe=A.lazy(()=>B(()=>import("./EmployeePayroll-CpceYZlJ.js"),__vite__mapDeps([1193,1,2,452,67,1194,1173,161,124,1172,377,1174,1099,1175,202,365,764,1195,704,42,103,307,360,55,1196,357,1197,1198,218,1199,242,335,261,71,372,337,247,248,142]))),hLe=A.lazy(()=>B(()=>import("./EmployeeActivities-CwEpkEOF.js").then(e=>e.E),__vite__mapDeps([1200,1,2,452,67,693,694,1195,1194,1173,242,202,377,124,1201,764,265]))),pLe=A.lazy(()=>B(()=>import("./OperationsCenter-Bwhtdb-C.js"),__vite__mapDeps([1202,1,2,452,66,124,1195,566,422,850,554,103,265,13,362]))),gLe=A.lazy(()=>B(()=>import("./HRSettings-D1zxZnxH.js"),__vite__mapDeps([1203,1,2,452,67,124,1099,307,1199,1174,1194,1173,1175,242,335,261]))),bF=A.lazy(()=>B(()=>import("./ClienteDetail-z61WMdmA.js"),__vite__mapDeps([1204,1,2,67,777,778,558,559,27,124,377,103]))),xLe=A.lazy(()=>B(()=>import("./StudentOnboardingConfig-BXomP32B.js"),__vite__mapDeps([1205,1,2,559,377,79,27])));A.lazy(()=>B(()=>import("./StudentSettings-0CrYCW5T.js"),__vite__mapDeps([1206,1,2,452,67,99,602])));const vLe=A.lazy(()=>B(()=>import("./UserManagement-BDAnr3CK.js"),__vite__mapDeps([1207,1,2])));A.lazy(()=>B(()=>import("./AdminUserCreate-D4hlxtXS.js"),__vite__mapDeps([1208,1,2,452,124,71])));A.lazy(()=>B(()=>import("./StudentManagement-BdPRK8t7.js"),__vite__mapDeps([1209,1,2,452,453,124,777,778,558,559,27,802,71])));const yLe=A.lazy(()=>B(()=>import("./UserRoles-CZchALaX.js"),__vite__mapDeps([1210,1,2])));A.lazy(()=>B(()=>import("./UnallocatedStudents-CpU8ldDk.js"),__vite__mapDeps([1211,1,2,453,27,71])));const bLe=A.lazy(()=>B(()=>import("./CallPageLeads-D_-6Kde9.js"),__vite__mapDeps([1212,1,2,452,453,124,894,807,837,218]))),wLe=A.lazy(()=>B(()=>import("./AutoCallSettings-D5ALSgV0.js"),__vite__mapDeps([1213,1,2,452,453,1214,864,558,559,124,67,343,263]))),_Le=A.lazy(()=>B(()=>import("./CorporateSubscriptions-D1h8FF1D.js"),__vite__mapDeps([1215,1,2,124]))),CLe=A.lazy(()=>B(()=>import("./CorporateSubscriptionsConfig-DsHgbQKl.js"),__vite__mapDeps([1216,1,2,67]))),jLe=A.lazy(()=>B(()=>import("./ImplantacoesPage-_jhYGkqG.js"),__vite__mapDeps([1217,1,2,124,1218,471]))),ELe=A.lazy(()=>B(()=>import("./ImplantacaoDetailPage-Cn5DR6EO.js"),__vite__mapDeps([1219,1,2,1218,1220,218,471,247,76]))),BLe=A.lazy(()=>B(()=>import("./ImplantacaoKickoffPage-B0qA6tFj.js"),__vite__mapDeps([1221,1,2,1218,1220,471,110]))),NLe=A.lazy(()=>B(()=>import("./ImplantacaoJornadasPage-COwRmMqg.js"),__vite__mapDeps([1222,1,2,1218,471]))),SLe=A.lazy(()=>B(()=>import("./TeamPassTrialConfig-CINx26rt.js"),__vite__mapDeps([1223,1,2,1224]))),kLe=A.lazy(()=>B(()=>import("./TeamPassTrialApprovals-Ch6_elyh.js"),__vite__mapDeps([1225,1,2,124,67,1226,1224,278,100]))),ILe=A.lazy(()=>B(()=>import("./TeamPassTrialDashboard-COYRB3a7.js"),__vite__mapDeps([1227,1,2,1226]))),FLe=A.lazy(()=>B(()=>import("./OrgDesign-BQ7Fvto5.js"),__vite__mapDeps([1228,1,2,67,427,428,429,430,431,432,433]))),TLe=A.lazy(()=>B(()=>import("./TrackingScripts-BAK6Hclq.js"),__vite__mapDeps([1229,1,2,67,1230,307])).catch(()=>(window.location.reload(),B(()=>import("./TrackingScripts-BAK6Hclq.js"),__vite__mapDeps([1229,1,2,67,1230,307]))))),PLe=A.lazy(()=>B(()=>import("./BasicClientAccess-sKvFPCCa.js"),__vite__mapDeps([1231,1,2,453,67,124]))),LLe=A.lazy(()=>B(()=>import("./SalesDashboard-CBZ5XWUZ.js"),__vite__mapDeps([1232,1,2,788,1063,1179,243,197,76,71,159,693,694,242,143,1059,469]))),DLe=A.lazy(()=>B(()=>import("./InteractiveSalesDashboard-DVLNHZjG.js"),__vite__mapDeps([1233,1,2,452,564,1234,1170,1235,1236,103,367,355,365,76,245]))),RLe=A.lazy(()=>B(()=>import("./InteractiveSalesConfig-BubAc79u.js"),__vite__mapDeps([1237,1,2,452,67,254,233,99,367,242,71]))),MLe=A.lazy(()=>B(()=>import("./SalesEcosystem-DqF8OcwJ.js"),__vite__mapDeps([1238,1,2,67,1239,55,99,23,247,764,71,273,347,452,370]))),OLe=A.lazy(()=>B(()=>import("./ProductivityReport-CxEBiwlb.js"),__vite__mapDeps([1240,1,2,452]))),ULe=A.lazy(()=>B(()=>import("./PaymentLinks-2W1PcaR2.js"),__vite__mapDeps([1241,1,2,11,559,853,854,606,855,557,856,857,71,469,558,560,66,377,858,124,67,360,218,142,307,859,775,24,25,26,452,453,1242,1243,134,135,263,778,247,62,1058,103,1059,159,165,1063,1181,318,55,320,202,215,56]))),QLe=A.lazy(()=>B(()=>import("./PaymentLinkRequests-lMFRHXFy.js"),__vite__mapDeps([1244,1,2,453,124]))),VLe=A.lazy(()=>B(()=>import("./PaymentReminderConfig-Zh9-NPx7.js"),__vite__mapDeps([1245,
16201,2,452,67]))),HLe=A.lazy(()=>B(()=>import("./PaymentConfig-B6WMQO9v.js"),__vite__mapDeps([1246,1,2,67]))),zLe=A.lazy(()=>B(()=>import("./VendedorDashboard-C_X8vyjT.js"),__vite__mapDeps([1247,1,2,788,124,1242,1248,1179,243,197,76,1249,566,567,416,578,1059]))),$Le=A.lazy(()=>B(()=>import("./MyDailyQueue-BKTx4YDu.js"),__vite__mapDeps([1250,1,2,559,810,67,262,1143,483,1249,566,567,416,578]))),qLe=A.lazy(()=>B(()=>import("./SalesCalendar-D7yAAIcA.js"),__vite__mapDeps([1251,1,2,452,1252,567,1253,3,1254,431,428,1255,1256,1197,1257,1198,578,67,103,163,704,1201]))),KLe=A.lazy(()=>B(()=>import("./PowerDialer-C74U2pEa.js"),__vite__mapDeps([1258,1,2,452,310,196,365,559,67,247,253,299,300]))),GLe=A.lazy(()=>B(()=>import("./PedidoAlunosAudit-WIbljmGF.js"),__vite__mapDeps([1259,1,2,67,120,247]))),WLe=A.lazy(()=>B(()=>import("./AtribuicaoReconciliacao-C-8mVkY0.js"),__vite__mapDeps([1260,1,2,124,427,428,685,430,431,432,686,436,437]))),YLe=A.lazy(()=>B(()=>import("./ContactIntegrityAudit-ChimOMK2.js"),__vite__mapDeps([1261,1,2,67,124,549,1061,62,365,120]))),XLe=A.lazy(()=>B(()=>import("./CompanyUserEnrollmentAudit-DKwYVfGF.js"),__vite__mapDeps([1262,1,2,452,453]))),ZLe=A.lazy(()=>B(()=>import("./PasswordResetAuditPage-4zUe98xG.js"),__vite__mapDeps([1263,1,2,124,27]))),JLe=A.lazy(()=>B(()=>import("./SalesCalculator-C-9Cp-1Z.js"),__vite__mapDeps([1264,1,2,452,99,67,138,704,161]))),eDe=A.lazy(()=>B(()=>import("./BillingSimulator-DvIk_fZR.js"),__vite__mapDeps([1265,1,2,452,99,1066,704,1059,161,247]))),tDe=A.lazy(()=>B(()=>import("./PropostasGestao-2ssHPQb3.js"),__vite__mapDeps([1266,1,2,413,1078,168,452,67,1267,66,377,1268,432,1254,1269,1071,851,310,1270,247,62,546,547,1271,192,42,1272,483,335,1273,238,305,209,930,314,255,213,307,133,162,84,1067,89,1068,1069,1070,331,303,838,559,839,11,161,840,71,841,842,843,844,845,846,847,348,178,427,428,435,430,431,436,1197,708,218,1274,1275,941,939,1276,938,211,944,945,557,194,946,849,741,189,850,554,1277,286,292,253,604,1109,291,142,320,773,1278,99,1064,1279,100,23,190,120,105,368,55,261,321]))),rDe=A.lazy(()=>B(()=>import("./WarRoomPropostas-BYUPQN5p.js"),__vite__mapDeps([1280,1,2,452,413,312,292,163,339,355]))),nDe=A.lazy(()=>B(()=>import("./PropostaSnapshotPage-ooIgrc-8.js"),__vite__mapDeps([1281,1,2,452,1267,66,377,413,1268,432,1254,1269,67,1071,851,310,1270,247,62,546,547,1271,192,42,1272,483,335,1273,238,305,209,930,314,255,213,307,133,162,84,13,1067,89,1068,1069,1070,331,303,222]))),aDe=A.lazy(()=>B(()=>import("./DealDesk-D2yAlRy3.js"),__vite__mapDeps([1282,1,2,452,788,483]))),sDe=A.lazy(()=>B(()=>import("./ProposalEditor-D5C2TKEG.js"),__vite__mapDeps([1283,1,2,452,1273,238,305,209,377,67,1056,415,303,857,168,943,944,945,557,1278,62,413,1284,327,548,549,54,71,1276,938,1067,89,1068,1069,1070,1071,851,310,331,1270,247,843,846,847,84,222,323,205,307,242]))),oDe=A.lazy(()=>B(()=>import("./PropostasAuditPage-D2nuMDWL.js"),__vite__mapDeps([1285,1,2,124,67,66,222]))),iDe=A.lazy(()=>B(()=>import("./ProposalFieldMappings-EMEd47ce.js"),__vite__mapDeps([1286,1,2,452]))),lDe=A.lazy(()=>B(()=>import("./CertificateConfig-CrLnlAMn.js"),__vite__mapDeps([1287,1,2,452,453,67]))),cDe=A.lazy(()=>B(()=>import("./CertificatesManager-s_TFFLSS.js"),__vite__mapDeps([1288,1,2,452,67,257,368,377,579,290,307,736,24,25,26,215,273,242,764,71,124,247,210]))),uDe=A.lazy(()=>B(()=>import("./CertificadosAdminPage-GHoNs5pc.js"),__vite__mapDeps([1289,1,2,67,124,910,99,110,209,147,247]))),dDe=A.lazy(()=>B(()=>import("./Suppliers-DbcaFo6u.js"),__vite__mapDeps([1290,1,2,452,124,1291,547,67]))),ADe=A.lazy(()=>B(()=>import("./AccountsPayable-BSK_j7-i.js"),__vite__mapDeps([1292,1,2,452,1293,1291,547,1174,1294,42,168,124,66,67,1243,134,135,263,1088,89,704,103,1295,1296,1064,1297,1236,427,428,1076,430,431,432,485,686,436,202,56]))),fDe=A.lazy(()=>B(()=>import("./AccountsReceivable-BisVj0Eh.js"),__vite__mapDeps([1298,1,2,452,124,1296,854,161,67,1063,66,1060,222,159,202,307,56]))),mDe=A.lazy(()=>B(()=>import("./CostCenters-DXbDAySa.js"),__vite__mapDeps([1299,1,2,452,1174,1294,335]))),hDe=A.lazy(()=>B(()=>import("./ChartOfAccounts-uE4K7C5y.js"),__vite__mapDeps([1300,1,2,452,124,1294,1174]))),pDe=A.lazy(()=>B(()=>import("./CashFlowDashboard-Co-w-H1Y.js"),__vite__mapDeps([1301,1,2,452,67,1302,1293,1296,1303,704,172,170,1304,1297,1236,1305,427,428,1076,430,431,432,485,686,436,437,1196,435,434,433,42,124,764,56,1306]))),gDe=A.lazy(()=>B(()=>import("./CashFlowCenter-CdL8EyzZ.js"),__vite__mapDeps([1307,1,2,452,1302,1293,1296,1303,704,172,170,1308,764,66,202,124,138,99,67,1295,1064,1297,1236,42,1305,427,428]))),xDe=A.lazy(()=>B(()=>import("./TemplatesHub-C22r2-Bi.js"),__vite__mapDeps([1309,1,2,452,453,67,257,206])));A.lazy(()=>B(()=>import("./ProposalTemplates-vOYhVTU4.js"),__vite__mapDeps([1310,1,2,452,453,67,307])));const vDe=A.lazy(()=>B(()=>import("./FinanceiroDashboard-AK-gEUoX.js"),__vite__mapDeps([1311,1,2,452,67,1293,1312,704,564,172,170,1304,1296,1297,1236,1305,427,428,1076,430,431,432,485,686,436,437,1196,435,434,433,42,1308,764,66,202,124,138,99,1295,1064,292,1313,256,102]))),yDe=A.lazy(()=>B(()=>import("./FinancialReconciliation-DY0nKbPi.js"),__vite__mapDeps([1314,1,2,452,453,1315,124,23,1072,326,139,161,222,294]))),bDe=A.lazy(()=>B(()=>import("./FinancialAuditCenter-CRwNan6Y.js"),__vite__mapDeps([1316,1,2,1315,564]))),wDe=A.lazy(()=>B(()=>import("./ReconciliationCenter-k0UJeLJT.js"),__vite__mapDeps([1317,1,2,67,124,359]))),_De=A.lazy(()=>B(()=>import("./FinanceCommandCenter-B_7m4ecO.js"),__vite__mapDeps([1318,1,2,452,564,172,427,428,435,430,431,432,436,437,434,433,484,485]))),CDe=A.lazy(()=>B(()=>import("./RevenueIntelligence-BmXYncsX.js"),__vite__mapDeps([1319,1,2,452,564,704,67,273,427,428,435,430,431,432,436,437,434,433,484,485]))),jDe=A.lazy(()=>B(()=>import("./FinanceForecast-DvK6t3mh.js"),__vite__mapDeps([1320,1,2,452,1321,1066,704,1306,67,124,1303,427,428,685,430,431,432,686,436,437,66,773,435]))),EDe=A.lazy(()=>B(()=>import("./RevenueCohortAnalysis-DHct9zQK.js"),__vite__mapDeps([1322,1,2,452,764]))),BDe=A.lazy(()=>B(()=>import("./ProfitabilityEngine-DbZcVXSJ.js"),__vite__mapDeps([1323,1,2,452,67,764,161,273]))),NDe=A.lazy(()=>B(()=>import("./MRRDashboard-_RiK8BfS.js"),__vite__mapDeps([1324,1,2,452,764,71,360,138]))),SDe=A.lazy(()=>B(()=>
1620import("./BlackFridayItemsManager-ts7l7VrU.js"),__vite__mapDeps([1325,1,2,452,453,67,409,305]))),kDe=A.lazy(()=>B(()=>import("./BlackFridayEmailMarketing-DK0aTiW8.js"),__vite__mapDeps([1326,1,2,452,453,409,67]))),IDe=A.lazy(()=>B(()=>import("./LandingPages-JpHiXvY1.js"),__vite__mapDeps([1327,1,2,452,453,457]))),FDe=A.lazy(()=>B(()=>import("./Launches-CrDywsgf.js"),__vite__mapDeps([1328,1,2,452,453,124,1329,103]))),wF=A.lazy(()=>B(()=>import("./LaunchForm-BpuR6mJR.js"),__vite__mapDeps([1330,1,2,452,453,1329]))),TDe=A.lazy(()=>B(()=>import("./AlumniCases-BK9nWpXL.js"),__vite__mapDeps([1331,1,2]))),PDe=A.lazy(()=>B(()=>import("./LandingPageEditor-DftL7x6I.js"),__vite__mapDeps([1332,1,2,452,67,457,66,368,456,102,276,175,89,356,347,130,318,251,295,242,99,287]))),LDe=A.lazy(()=>B(()=>import("./IntelligenceDashboard-CUXmp_sn.js"),__vite__mapDeps([1333,1,2,764,1239,42,67,1334,704,452]))),DDe=A.lazy(()=>B(()=>import("./RadarComercial-BwMGd2jL.js"),__vite__mapDeps([1335,1,2,452,788,1336,67,124,812,1337,1113,71,293,377,105,280]))),RDe=A.lazy(()=>B(()=>import("./GovRadar-BF_lpLLj.js"),__vite__mapDeps([1338,1,2,67,133,365,708,243,218,149,338,124,413,254,66,105,4,5]))),MDe=A.lazy(()=>B(()=>import("./MoneyOnTheTable-BtgJafWQ.js"),__vite__mapDeps([1339,1,2,452,806,67,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364,874,1340])));A.lazy(()=>B(()=>import("./AIKnowledgeBase-CnftWd3k.js"),__vite__mapDeps([1341,1,2,67,1180,834,377,220,693,694,242,71])));A.lazy(()=>B(()=>import("./AIAgentManager-D4OSply8.js"),__vite__mapDeps([1342,1,2,452,453,67,1180,834,102,99,368,305,76,242,1182,377,336,138,238,835,561,194,229,55,228,1341,220,693,694,71,62,120])));const ODe=A.lazy(()=>B(()=>import("./AdminChatbotDebug-l13kwz-k.js"),__vite__mapDeps([1343,1,2,452,453,67,124,102]))),UDe=A.lazy(()=>B(()=>import("./DataVerification-D7ruAzZY.js"),__vite__mapDeps([1344,1,2,452,124,67,206]))),QDe=A.lazy(()=>B(()=>import("./FunnelBuilder-FFu1x4eP.js"),__vite__mapDeps([1345,1,2,453,67,307,192,183,124,693,694,318,99,120,333,261,242,102,345]))),VDe=A.lazy(()=>B(()=>import("./ClosingToolkit-BpEflVts.js"),__vite__mapDeps([1346,1,2,453,67,261,281]))),HDe=A.lazy(()=>B(()=>import("./CampaignPlanner-BXlaSsW1.js"),__vite__mapDeps([1347,1,2,452,453,67,273,103,247]))),zDe=A.lazy(()=>B(()=>import("./MotorPlanejamentoComercial-ChZSUyGa.js"),__vite__mapDeps([1348,1,2,453,67,266,103,247]))),$De=A.lazy(()=>B(()=>import("./MarketingIntelligencePage-Dwo14HdB.js"),__vite__mapDeps([1349,1,2,452,453,67,677,708,1081,414,1350,211,218,219,261]))),qDe=A.lazy(()=>B(()=>import("./MarketingCalendar-B0ejGofG.js"),__vite__mapDeps([1351,1,2,452,453,1253,3,1254,431,428,1255,1256,1197,162,42]))),KDe=A.lazy(()=>B(()=>import("./StrategicMarketingPlan-2OKxd6n3.js"),__vite__mapDeps([1352,1,2,452,453,67,62,1353,23,124,377,273,194,161,103,365,209,557,247,239,427,428,484,430,431,432,485,436,437,307]))),GDe=A.lazy(()=>B(()=>import("./MarketingInvestments-YLXQuIcf.js"),__vite__mapDeps([1354,1,2,452,453,67,218,237,427,428,435,430,431,432,436,437,138,704]))),WDe=A.lazy(()=>B(()=>import("./MarketingActionPlan-DEZO2rOL.js"),__vite__mapDeps([1355,1,2,452,453,67,42]))),YDe=A.lazy(()=>B(()=>import("./ProductFeedGenerator-B4iSLC88.js"),__vite__mapDeps([1356,1,2,62,335]))),XDe=A.lazy(()=>B(()=>import("./LeadReconciliation-CtTrR2Uj.js"),__vite__mapDeps([1357,1,2,452,453,67,124,427,428,435,430,431,432,436,437,434,433]))),ZDe=A.lazy(()=>B(()=>import("./PerformanceReport-BQRpQKmc.js"),__vite__mapDeps([1358,1,2,1312,704,453,67,427,428,435,430,431,432,436,437,434,433]))),JDe=A.lazy(()=>B(()=>import("./ConversionAuditPage-B4QaxBxI.js"),__vite__mapDeps([1359,1,2,452,453,67,124,427,428,435,430,431,432,436,437,434,433,704]))),eRe=A.lazy(()=>B(()=>import("./BackfillAttribution-DP5apntL.js"),__vite__mapDeps([1360,1,2,452,453,124,764,120]))),tRe=A.lazy(()=>B(()=>import("./TrackingDebugTest-wmaJs46Y.js"),__vite__mapDeps([1361,1,2,452,453]))),rRe=A.lazy(()=>B(()=>import("./AnalyseFunnel60Days-PD0-PE1X.js"),__vite__mapDeps([482,1,2,8,483,76,209,427,428,435,430,431,432,436,437,434,433,484,485,42])));A.lazy(()=>B(()=>import("./SalesFarming-CfeUx63e.js"),__vite__mapDeps([1362,1,2,124,1363,1364,155])));const _F=A.lazy(()=>B(()=>import("./SalesFarmingEditor-Bvq0bXLg.js"),__vite__mapDeps([1365,1,2,242,377,1366,67,821,273,1363,317,372]))),nRe=A.lazy(()=>B(()=>import("./SalesFarmingMetrics-8TdoeZDT.js"),__vite__mapDeps([1367,1,2,1363,1364]))),aRe=A.lazy(()=>B(()=>import("./CadenceMonitoringDashboard-BbbphSFo.js"),__vite__mapDeps([1368,1,2,452,453,177,124,810,764,310]))),sRe=A.lazy(()=>B(()=>import("./OutboundROIDashboard-C9bYWCGv.js"),__vite__mapDeps([1369,1,2,452,453])));A.lazy(()=>B(()=>import("./DailyNewsletter-xep0srLE.js"),__vite__mapDeps([1370,1,2,452,453,67,1371])));A.lazy(()=>B(()=>
1620import("./AmbassadorProgram-UcG-WaS3.js"),__vite__mapDeps([1372,1,2,452,67,71,124])));const oRe=A.lazy(()=>B(()=>import("./TrustedCompaniesAdmin-ClQpUxPZ.js"),__vite__mapDeps([1373,1,2,124,307]))),iRe=A.lazy(()=>B(()=>import("./StudentReferralsAdmin-Z4Y3gRvZ.js"),__vite__mapDeps([1374,1,2,124]))),lRe=A.lazy(()=>B(()=>import("./SalesRankingLive-CIs8ERnc.js"),__vite__mapDeps([1375,1,2,67,452,1234,564,99,103,367])));A.lazy(()=>B(()=>import("./ScoringRulesConfig-CFaXoBSb.js"),__vite__mapDeps([1376,1,2,452,453,124,67,893,261,345])));const cRe=A.lazy(()=>B(()=>import("./LeadsBoard-EbHLi09o.js"),__vite__mapDeps([1377,1,2,881,345,693,377,190]))),uRe=A.lazy(()=>B(()=>import("./PriorityLeadsReport-B3WAJjDr.js"),__vite__mapDeps([1378,1,2,452,124]))),dRe=A.lazy(()=>B(()=>import("./PriorityConfig-DjXOXd-Z.js"),__vite__mapDeps([1379,1,2,452,377,124,808,102,307]))),ARe=A.lazy(()=>B(()=>import("./LeadsSettings-CMVexQwy.js"),__vite__mapDeps([1380,1,2,452,67,124,860,242,307,377,745,265,213,142,1381,66,1382,893,273,199,261,1383,149,895,808,99,310,309,364,887,150,901,365,349,161,71,243]))),fRe=A.lazy(()=>B(()=>import("./SalesSpeedRankingConfig-C5HQL3Wh.js"),__vite__mapDeps([1384,1,2,452,453,1062,248,334]))),mRe=A.lazy(()=>B(()=>import("./LeadFieldsConfig-CKFeXqSe.js"),__vite__mapDeps([1385,1,2,452,124,67,350,307])));A.lazy(()=>B(()=>import("./AIPromptsPage-BmZN8mhx.js"),__vite__mapDeps([1386,1,2,452,67,273,307,366])));A.lazy(()=>B(()=>import("./AIUsageDashboard-t-QsDruW.js"),__vite__mapDeps([1387,1,2,452,67,764,124,704,1201,217])));A.lazy(()=>B(()=>import("./AIPerformanceDashboard-C7-tAo0m.js"),__vite__mapDeps([1388,1,2,453,67,124,764,347])));A.lazy(()=>B(()=>import("./AIFunctionsManager-_G86aD08.js"),__vite__mapDeps([1389,1,2,452,67,351,350])));const hRe=A.lazy(()=>B(()=>import("./IACentralPage-CxomM7XC.js"),__vite__mapDeps([1390,1,2,67,427,428,685,430,431,432,686,436,437,124,154,320,249,815,816,817,396,818,603]))),pRe=A.lazy(()=>B(()=>import("./CreateTrialAccess-DatlXZjR.js"),__vite__mapDeps([1391,1,2,452]))),gRe=A.lazy(()=>B(()=>import("./TrialManagement-CTjmkqdW.js"),__vite__mapDeps([1392,1,2,124,452,365,202,318]))),xRe=A.lazy(()=>B(()=>import("./EmpresasPage-aOrMG4QT.js"),__vite__mapDeps([1393,1,2,452,855,557,559,856,857,453,124,1394,1279,1336,67,812,1337,1113,71,293,377,1071,851,413,310,416,1395,62,66,235,307]))),vRe=A.lazy(()=>B(()=>import("./EmpresaDetailPage-BXGl2_gk.js"),__vite__mapDeps([1396,1,2,452,67,1394,1279,1336,124,812,1337,1113,71,293,377,307,858,360,11,66,218,142,266,1057,325,1313,413,412,168,416,42,105,330,243,156,265,471,79,209]))),yRe=A.lazy(()=>B(()=>import("./CorporateJourneysConfig-DEvd64W3.js"),__vite__mapDeps([1397,1,2,452,453,911,235,198]))),bRe=A.lazy(()=>B(()=>import("./ExerciciosCursoPage-BwN31xGG.js"),__vite__mapDeps([1398,1,2,452,453,67,1399,1400,62,242,263,328,124,247,402,368,306,662,255,99,307])));function wRe(){const{id:e}=Vx();return a.jsx(Me,{to:e?`/admin/exercises-center/curso/${e}`:"/admin/exercises-center",replace:!0})}const _Re=A.lazy(()=>B(()=>import("./EmpresasB2BDashboard-DhNmWZIO.js"),__vite__mapDeps([1401,1,2,452,1312,704,1313,559,764]))),CRe=A.lazy(()=>B(()=>import("./B2BDashboard-45o_Kl3U.js"),__vite__mapDeps([1402,1,2,452,1312,704,764,559,67,1149,1145]))),jRe=A.lazy(()=>B(()=>import("./CrmCompaniesPage-BpToBlAr.js"),__vite__mapDeps([1403,1,2,452,453,124,307]))),ERe=A.lazy(()=>B(()=>import("./CrmContatosPage-CFepOo0A.js"),__vite__mapDeps([1404,1,2,452,453,124]))),BRe=A.lazy(()=>B(()=>import("./SitemapGenerator-B1wiW29T.js"),__vite__mapDeps([1405,1,2]))),NRe=A.lazy(()=>B(()=>import("./DashboardsHub-BFauhSj0.js"),__vite__mapDeps([1406,1,2,452,453,67]))),SRe=A.lazy(()=>B(()=>import("./AdminSitemap-EJg3UXHZ.js"),__vite__mapDeps([1407,1,2,452,453,544,273,12,337,105,279,254,334,368,302,161,78]))),kRe=A.lazy(()=>B(()=>import("./UnifiedMediaCenter-o7sapUxI.js"),__vite__mapDeps([1408,1,2,67,279,286,296,189,249,55,307,99,453,368]))),IRe=A.lazy(()=>B(()=>import("./MaterialsCenter-C5z5l3PZ.js"),__vite__mapDeps([1409,1,2,67,307,142,218,210,203,1153,55,453]))),FRe=A.lazy(()=>B(()=>import("./ProductCenter-D4ul8z49.js"),__vite__mapDeps([1410,1,2,453,12]))),TRe=A.lazy(()=>B(()=>import("./LearningPathTemplates-Bd8tZHNH.js"),__vite__mapDeps([1411,1,2,453,67,125,775,11,1025,168]))),PRe=A.lazy(()=>B(()=>import("./AITrackCalendarConfig-src6S1RK.js"),__vite__mapDeps([1412,1,2,453,67,37
16207,368]))),LRe=A.lazy(()=>B(()=>import("./ActivityLogs-DvEMmKvg.js"),__vite__mapDeps([1413,1,2,452,67,287,307]))),DRe=A.lazy(()=>B(()=>import("./InternalActivityToday-rlN3KtKC.js"),__vite__mapDeps([1414,1,2,452]))),RRe=A.lazy(()=>B(()=>import("./AuditLogs-BVoIRvLv.js"),__vite__mapDeps([1415,1,2,452,124]))),MRe=A.lazy(()=>B(()=>import("./SecurityDashboard-fL-TOQ0p.js"),__vite__mapDeps([1416,1,2,452,124,764,55]))),ORe=A.lazy(()=>B(()=>import("./PlatformLogs-KIzjwGPv.js"),__vite__mapDeps([1417,1,2,452,67,55,307,102,89,287,142,309,310,325,308]))),URe=A.lazy(()=>B(()=>import("./PlatformDocumentation-CXxtag2C.js"),__vite__mapDeps([1418,1,2,67,247,236,13,340,158,189,205,211]))),QRe=A.lazy(()=>B(()=>import("./SystemPerformance-C4ZyEBUa.js"),__vite__mapDeps([1419,1,2,452,67,124]))),VRe=A.lazy(()=>B(()=>import("./PlatformAudit-JvAYqTDR.js"),__vite__mapDeps([1420,1,2,452,67,124,175,292,277,13,416,42]))),HRe=A.lazy(()=>B(()=>import("./DataIntegrity-DkackDl5.js"),__vite__mapDeps([1421,1,2,452,222]))),zRe=A.lazy(()=>B(()=>import("./ResourceMonitor-CwMCZYXi.js"),__vite__mapDeps([1422,1,2,764,124,67]))),$Re=A.lazy(()=>B(()=>import("./StudentOffers-l-_iXgAB.js"),__vite__mapDeps([1423,1,2,452,67,287,314,315,124,178]))),qRe=A.lazy(()=>B(()=>import("./Lixeira-BJhbMy2m.js"),__vite__mapDeps([1424,1,2,452,453,67,124,543]))),KRe=A.lazy(()=>B(()=>import("./SystemMindMap-BXUuuY5T.js"),__vite__mapDeps([1425,1,2,452,544,273,12,337,105,279,254,334,368,302,161,78,377,372]))),GRe=A.lazy(()=>B(()=>import("./PlatformVersions-FknKhqxk.js"),__vite__mapDeps([1426,1,2,452]))),WRe=A.lazy(()=>B(()=>import("./PublicationValidator-D31f9XGg.js"),__vite__mapDeps([1427,1,2,327,266]))),YRe=A.lazy(()=>B(()=>import("./ApiDocumentation-D6LtH4DB.js"),__vite__mapDeps([1428,1,2,453,67,1100,124,314,315,327,211,208,369,102,100,139])));A.lazy(()=>B(()=>import("./AdminManual-SePobqut.js"),__vite__mapDeps([1429,1,2,452,273,377,347,346])));const CF=A.lazy(()=>B(()=>import("./KnowledgeCenter-D5jRM_Jk.js"),__vite__mapDeps([1430,1,2,452,67,377,209,247]))),XRe=A.lazy(()=>B(()=>import("./InternalAgentChat-CEm8WQaX.js"),__vite__mapDeps([1431,1,2,452,1432,603,102,307,247]))),ZRe=A.lazy(()=>B(()=>import("./InternalAgentHistory-Dxzilmdc.js"),__vite__mapDeps([1433,1,2,452,1432,247])));A.lazy(()=>B(()=>import("./MediaAIConfig-CvBn7zzV.js"),__vite__mapDeps([1434,1,2,452,453,210,302,67,377,66])));const JRe=A.lazy(()=>B(()=>import("./SystemMessages-69zrYFDN.js"),__vite__mapDeps([1435,1,2,452,453,67,124,287,273]))),e6e=A.lazy(()=>B(()=>import("./KnowledgePills-cdWpgwwA.js"),__vite__mapDeps([1436,1,2,452]))),t6e=A.lazy(()=>B(()=>import("./Backups-C-B9pbpj.js"),__vite__mapDeps([1437,1,2,452,67,124,247]))),r6e=A.lazy(()=>B(()=>import("./ITDashboard-DU4Wdc_B.js"),__vite__mapDeps([1438,1,2,452,1439,25,1440,1441,1442,245,42]))),n6e=A.lazy(()=>B(()=>import("./SupportTickets-BsKjwOQM.js"),__vite__mapDeps([1443,1,2,452,124,1439,25,26,708,365,177,1444,1445,66,24,737,320,303,348,55,275,56]))),a6e=A.lazy(()=>B(()=>import("./TicketDetail-DpzLtKC3.js"),__vite__mapDeps([1446,1,2,452,377,67,1439,25,26,1447,1445,1444,303,102,372,320,260,247,365]))),s6e=A.lazy(()=>B(()=>import("./SupportMonitoring-DBx9Xy6Y.js"),__vite__mapDeps([1448,1,2,452,67,124,1447,26,25,1444,102]))),o6e=A.lazy(()=>B(()=>import("./SupportTicketConfig-B_-b9QaF.js"),__vite__mapDeps([1449,1,2,452,67]))),i6e=A.lazy(()=>B(()=>import("./ITSoftware-C3xtk0A6.js"),__vite__mapDeps([1450,1,2,452,124,1440,42]))),l6e=A.lazy(()=>B(()=>import("./ITAssets-BP69GLvN.js"),__vite__mapDeps([1451,1,2,452,124,1441,110,42]))),c6e=A.lazy(()=>B(()=>import("./ITServices-BNZzhjYN.js"),__vite__mapDeps([1452,1,2,452,124,1442,42]))),u6e=A.lazy(()=>B(()=>import("./PermissionsManagement-q94WRDhZ.js"),__vite__mapDeps([1453,1,2,452,67,71,212,1454,66,1099,27,266,377,124,1040,62,261,307,194,247])));A.lazy(()=>B(()=>import("./PermissionsOverview-j_dcfPZq.js"),__vite__mapDeps([1455,1,2,1454,365])));A.lazy(()=>B(()=>import("./AccessControl-LG3wUbrv.js"),__vite__mapDeps([1456,1,2])));const d6e=A.lazy(()=>B(()=>import("./InstructorOffers-FU0bXKGp.js"),__vite__mapDeps([1457,1,2,67,124,453]))),A6e=A.lazy(()=>B(()=>import("./InstructorOfferConfig-BnMBHchc.js"),__vite__mapDeps([1458,1,2,67,453,366])));A.lazy(()=>B(()=>import("./PresentationEmbedsConfig-bdfhhlTF.js"),__vite__mapDeps([1459,1,2,452,453])));const f6e=A.lazy(()=>B(()=>import("./VIPPricingConfig-DdGEjW32.js"),__vite__mapDeps([1460,1,2,377,839,452,161]))),m6e=A.lazy(()=>B(()=>import("./RecruitmentDashboard-OanZGmUz.js"),__vite__mapDeps([1461,1,2,1462,124,216,202]))
1620),jF=A.lazy(()=>B(()=>import("./RecruitmentProcessForm-Bg54YkR9.js"),__vite__mapDeps([1463,1,2,1462,474,67,66,216,242]))),h6e=A.lazy(()=>B(()=>import("./RecruitmentCandidates-CPyiTpcx.js"),__vite__mapDeps([1464,1,2,1462,473,124,82,202]))),p6e=A.lazy(()=>B(()=>import("./CandidateEvaluation-1dQS5SDS.js"),__vite__mapDeps([1465,1,2,473,474,377,347,346]))),g6e=A.lazy(()=>B(()=>import("./EvaluationsDashboard-BwdqeK8O.js"),__vite__mapDeps([1466,1,2,452,453,67,652,347,764,124,56,773,704]))),x6e=A.lazy(()=>B(()=>import("./CentralPdfs-BEjsr6T0.js"),__vite__mapDeps([451,1,2,8,452,453,79]))),v6e=A.lazy(()=>B(()=>import("./ExecutiveDashboard-Mi5qzPao.js"),__vite__mapDeps([1467,1,2,452,254,170,172,67,365,223]))),y6e=A.lazy(()=>B(()=>import("./ExecutiveDashboardMtd-CFauQbTV.js"),__vite__mapDeps([1468,1,2,452,1075]))),b6e=A.lazy(()=>B(()=>import("./DataBookExecutive-DVw-2zHE.js"),__vite__mapDeps([1469,1,2,1470,67,99,782,218]))),w6e=A.lazy(()=>B(()=>import("./DataBookInputs-Cb4AL9vi.js"),__vite__mapDeps([1471,1,2,67,1470]))),_6e=A.lazy(()=>B(()=>import("./ReconciliationOrphans-pO9zNhnm.js"),__vite__mapDeps([1472,1,2,452,67,124]))),C6e=A.lazy(()=>B(()=>import("./WarRoom-r2E3OdJF.js"),__vite__mapDeps([1473,1,2,452,564,1334,1066,273,261,71,124,339]))),j6e=A.lazy(()=>B(()=>import("./DataBrainDashboard-DHD90ysR.js"),__vite__mapDeps([1474,1,2,704,138,427,428,435,430,431,432,436,437,434,433]))),E6e=A.lazy(()=>B(()=>import("./SellerGamificationPage-DgR70NmF.js"),__vite__mapDeps([1475,1,2,788]))),B6e=A.lazy(()=>B(()=>import("./AdminAttendanceManager-BHrZFJlr.js"),__vite__mapDeps([1476,1,2,67,124,76]))),N6e=A.lazy(()=>B(()=>import("./StudentCenter-CHC6xX6_.js"),__vite__mapDeps([1477,1,2,452,67,74,76,256]))),S6e=A.lazy(()=>B(()=>import("./StudentAreaCenter-BUCqyZJe.js"),__vite__mapDeps([1478,1,2,452,67,351,247,693,694,242,62,124,150,365,284,256]))),k6e=A.lazy(()=>B(()=>import("./NotebookLM-jsXUQZcL.js"),__vite__mapDeps([1479,1,2,67,66]))),I6e=A.lazy(()=>B(()=>import("./NotebookLMContentStudio-BrVk6By2.js"),__vite__mapDeps([1480,1,2,67,453,980,62,182,335]))),F6e=A.lazy(()=>B(()=>import("./YouTubeCRUD-BdXMV60r.js"),__vite__mapDeps([1481,1,2,453,67,377,124]))),T6e=A.lazy(()=>B(()=>import("./SalesLearning-Cmr67aaa.js"),__vite__mapDeps([1482,1,2,67,693,694,1483,1099,156,242,307,1484]))),P6e=A.lazy(()=>B(()=>import("./MandatoryActivitiesConfig-CS3vraud.js"),__vite__mapDeps([1485,1,2,452,76,307]))),L6e=A.lazy(()=>B(()=>import("./VisualTemplatesGallery-5ofamdf2.js"),__vite__mapDeps([1486,1,2]))),D6e=A.lazy(()=>B(()=>import("./MoodDashboard-RnkUII8i.js"),__vite__mapDeps([1487,1,2,452,453,427,428,685,430,431,432,686,436,437,434,433]))),R6e=A.lazy(()=>B(()=>import("./PlatformUsageDashboard-CNf5ZWYW.js"),__vite__mapDeps([1488,1,2,452,453,652,124,427,428,685,430,431,432,686,436,437,434,433,435,56]))),M6e=A.lazy(()=>B(()=>import("./IdeaHub-DvcgiMmc.js"),__vite__mapDeps([1489,1,2,453,67,778,558,559,247,273]))),O6e=A.lazy(()=>B(()=>import("./SuperAdminPanel-Fj9hPhpZ.js"),__vite__mapDeps([1490,1,2,377]))),U6e=A.lazy(()=>B(()=>import("./SEOContentManager-CVPyUss0.js"),__vite__mapDeps([1491,1,2,67,124,238,153,307]))),Q6e=A.lazy(()=>B(()=>import("./SEOContentEngine-BrkyGs6v.js"),__vite__mapDeps([1492,1,2,67,124,195,153,238]))),V6e=A.lazy(()=>B(()=>import("./AttendanceDashboardPage-CAnEuy9q.js"),__vite__mapDeps([1493,1,2,67,124,171,427,428,435,430,431,432,436,434,433]))),H6e=A.lazy(()=>B(()=>import("./TrilhaPerfeitaConfig-BbCdsvuS.js"),__vite__mapDeps([1494,1,2,452,453,67,23,242,99,377,66]))),z6e=A.lazy(()=>B(()=>import("./FaqComercialConfig-BqujnZ_U.js"),__vite__mapDeps([1495,1,2,1496,124,307]))),$6e=A.lazy(()=>B(()=>import("./TestePagamentoAfinz-BeboVXaR.js"),__vite__mapDeps([1497,1,2]))),q6e=A.lazy(()=>B(()=>import("./StrategicCashFlowDashboard-Dtm6Dp7p.js"),__vite__mapDeps([1498,1,2,1306,452,67,138,1321,1066,704,1297,1236,799,124,1499,427,428,484,430,431,432,485,436,764,1174,66,55,341,238]))),K6e=A.lazy(()=>B(()=>import("./DiretoriaSettings-Dlx6hUe9.js"),__vite__mapDeps([1500,1,2,452,67,1030,124,416,42,78,1501,1502,1201,704,138]))),G6e=A.lazy(()=>B(()=>import("./ReportsDashboard-DGkr7Dvc.js"),__vite__mapDeps([1503,1,2,452,67,1501,1502,1201,704,138,764,652,256]))),W6e=A.lazy(()=>B(()=>import("./PerformanceOrganizacional-OZOchjHo.js"),__vite__mapDeps([1504,1,2,452,365,23,124,67,66,234]))),Y6e=A.lazy(()=>B(()=>import("./AudienceAI-Cfd-H-02.js"),__vite__mapDeps([1505,1,2,67,365,348,55,256]))),X6e=A.lazy(()=>B(()=>import("./AuditCore-BBupSLIS.js"),__vite__mapDeps([1506,1,2,67,124,352,708,13,247]))),Z6e=A.lazy(()=>B(()=>import("./PedidoItensFormatAudit-Bp2sNm8y.js"),__vite__mapDeps([1507,1,2,67]))),J6e=A.lazy(()=>B(()=>import("./LeadsPedidosAuditPage-DjImEUcu.js"),__vite__mapDeps([1508,1,2,67]))),eMe=A.lazy(()=>B(()=>import("./CommercialReconciliationPage-C9DnyxSe.js"),__vite__mapDeps([1509,1,2,452,453,67,174]))),tMe=A.lazy(()=>B(()=>import("./FormationRateioAudit-DNUWChIa.js"),__vite__mapDeps([1510,1,2,120]))),rMe=A.lazy(()=>B(()=>import("./LiveAttendanceAudit-CJ-vBrtE.js"),__vite__mapDeps([1511,1,2,124,67,222]))),lu=A.lazy(()=>B(()=>import("./AuditoriaAcessos-G_AiXS1P.js"),__vite__mapDeps([1512,1,2,452,67,764,801,800,124,202,284,218]))),nMe=A.lazy(()=>B(()=>import("./CSEngineDashboard-BoEGl7Ud.js"),__vite__mapDeps([1513,1,2]))),aMe=A.lazy(()=>B(()=>import("./CSCompanyDetail-BcpRGuyO.js"),__vite__mapDeps([1514,1,2]))),sMe=A.lazy(()=>B(()=>import("./LeadEditPage-BYjdc6S4.js"),__vite__mapDeps([1515,1,2,452,67,1516,491,305,1517,1518,813,814,815,816,817,396,818,783,784,819,820,821,102,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,23,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,247,832,833,834,614,835,216,152,11,76,261,279,243,54,1519,1520,345]))),oMe=A.lazy(()=>B(()=>import("./QuickQualificationEnginePage-BNq4FLl4.js"),__vite__mapDeps([1521,1,2,67,1522,1520,496,307,326,491,494,261]))),iMe=A.lazy(()=>B(()=>import("./QuickQualificationPrimePage-DWlvmd0B.js"),__vite__mapDeps([1523,1,2,492,493,494,495,496,263,184,305,179,491,325,1524,1519,273,243,338,202,183,326,146,1525,307,247,1108,861,1522,1520,1518,813,814,67,815,816,817,396,818,783,784,819,820,821,102,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,23,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,287,832,833,834,614,835,216,152,11,76,261,279,54,1517,177]))),lMe=A.lazy(()=>B(()=>import("./LeadCloserCockpitPage-BdbetAOV.js"),__vite__mapDeps([1526,1,2,1522,1520,496,491,493,494,1527,1525,1528,273,261,247,202,358,1524,495,1519,243,338,183,326,146]))),cMe=A.lazy(()=>B(()=>import("./CentralAcaoComercial-CNsTAuX1.js"),__vite__mapDeps([1529,1,2,452,67,365]))),uMe=A.lazy(()=>B(()=>import("./CentralMotores-8FEAUALq.js"),__vite__mapDeps([1530,1,2,452,124,874]))),dMe=A.lazy(()=>B(()=>import("./T360GrowthEngine-DeyTJQEf.js"),__vite__mapDeps([1531,1,2,452,453,67,124,205,307,302,273,368]))),AMe=A.lazy(()=>B(()=>import("./T360SalesAI-eZjK_5jm.js"),__vite__mapDeps([1532,1,2,452,453,279]))),fMe=A.lazy(()=>B(()=>import("./T360EducationAI-BeLc8PhA.js"),__vite__mapDeps([1533,1,2,452,453,12]))),mMe=A.lazy(()=>B(()=>import("./T360Intelligence-Snan33pm.js"),__vite__mapDeps([1534,1,2,452,453]))),hMe=A.lazy(()=>B(()=>import("./TvSalaRegistrar-B-YoO689.js"),__vite__mapDeps([1535,1,2]))),pMe=A.lazy(()=>B(()=>import("./TvSalaTelao-C_znJ2IB.js"),__vite__mapDeps([1536,1,2])));function gMe(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{path:"/admin/tv-sala",element:a.jsx(pMe,{})}),a.jsxs(_,{path:"/admin",element:a.jsx(CIe,{}),children:[a.jsx(_,{index:!0,element:a.jsx(FIe,{})}),a.jsx(_,{path:"tv-sala/registrar",element:a.jsx(hMe,{})}),a.jsx(_,{path:"academic-governance",element:a.jsx(RFe,{})}),a.jsx(_,{path:"learning-control",element:a.jsx(YTe,{})}),a.jsx(_,{path:"portfolio-curation",element:a.jsx(XTe,{})}),a.jsx(_,{path:"governanca-academica",element:a.jsx(Me,{to:"/admin/academic-governance",replace:!0})}),a.jsx(_,{path:"central-pdfs",element:a.jsx(x6e,{})}),a.jsx(_,{path:"categories",element:a.jsx(RIe,{})}),a.jsx(_,{path:"courses",element:a.jsx(MIe,{})}),a.jsx(_,{path:"courses/new",element:a.jsx(cF,{})}),a.jsx(_,{path:"courses/:id",element:a.jsx(cF,{})}),a.jsx(_,{path:"course-settings",element:a.jsx(DTe,{})}),a.jsx(_,{path:"syllabuses",element:a.jsx(RTe,{})}),a.jsx(_,{path:"import-courses",element:a.jsx(vFe,{})}),a.jsx(_,{path:"cohorts",element:a.jsx(OIe,{})}),a.jsx(_,{path:"turmas",element:a.jsx(Me,{to:"/admin/cohorts",replace:!0})}),a.jsx(_,{path:"academic-delivery",element:a.jsx(UIe,{})}),a.jsx(_,{path:"academic-delivery/turma/:cohortId",element:a.jsx(QIe,{})}),a.jsx(_,{path:"cohorts/new",element:a.jsx(uF,{})}),a.jsx(_,{path:"cohorts/:cohortId/manual-certificates",element:a.jsx(VIe,{})}),a.jsx(_,{path:"manual-certificate-issuances",element:a.jsx(HIe,{})}),a.jsx(_,{path:"manual-certificates",element:a.jsx(zIe,{})}),a.jsx(_,{path:"manual-attendance",element:a.jsx($Ie,{})}),a.jsx(_,{path:"cohorts/:id",element:a.jsx(uF,{})}),a.jsx(_,{path:"cohort-enrollments",element:a.jsx(qIe,{})}),a.jsx(_,{path:"cohort-allocation-requests",element:a.jsx(KIe,{})}),a.jsx(_,{path:"instructors",element:a.jsx(Me,{to:"/admin/permissions?tab=instrutores",replace:!0})}),a.jsx(_,{path:"instructor-management",element:a.jsx(GIe,{})}),a.jsx(_,{path:"instructor-offers",element:a.jsx(d6e,{})}),a.jsx(_,{path:"instructor-offer-config",element:a.jsx(A6e,{})}),a.jsx(_,{path:"certificacoes",element:a.jsx(VTe,{})}),a.jsx(_,{path:"certificacoes/nova",element:a.jsx(pF,{})}),a.jsx(_,{path:"certificacoes/gerar-curso",element:a.jsx(HTe,{})}),a.jsx(_,{path:"certificacoes/cotacoes",element:a.jsx(zTe,{})}),a.jsx(_,{path:"certificacoes/:id",element:a.jsx(pF,{})}),a.jsx(_,{path:"leads",element:a.jsx(XIe,{})}),a.jsx(_,{path:"b2b-audit",element:a.jsx(Me,{to:"/admin/audit-core?tab=b2b",replace:!0})}),a.jsx(_,{path:"leads-test",element:a.jsx(Me,{to:"/admin/leads",replace:!0})}),a.jsx(_,{path:"leads-board",element:a.jsx(cRe,{})}),a.jsx(_,{path:"configuracoes/leads",element:a.jsx(ZIe,{})}),a.jsx(_,{path:"lead-data-quality",element:a.jsx(JIe,{})}),a.jsx(_,{path:"leads/qualificacao",element:a.jsx(CPe,{})}),a.jsx(_,{path:"leads/qualificacao/config",element:a.jsx(jPe,{})}),a.jsx(_,{path:"qualificacao-central",element:a.jsx(EPe,{})}),a.jsx(_,{path:"leads/closer",element:a.jsx(BPe,{})}),a.jsx(_,{path:"central-acao",element:a.jsx(A.Suspense,{fallback:a.jsx("div",{className:"flex items-center justify-center h-screen",children:"Carregando..."}),children:a.jsx(cMe,{})})}),a.jsx(_,{path:"agenda",element:a.jsx(Me,{to:"/admin/scheduling-appointments",replace:!0})}),a.jsx(_,{path:"leads/fontes",element:a.jsx(NPe,{})}),a.jsx(_,{path:"leads/prospects",element:a.jsx(SPe,{})}),a.jsx(_,{path:"diagnosticos-empresariais",element:a.jsx(kPe,{})}),a.jsx(_,{path:"prospects",element:a.jsx(Me,{to:"/admin/leads/prospects",replace:!0})}),a.jsx(_,{path:"motor-qualificacao",element:a.jsx(oMe,{})}
1620),a.jsx(_,{path:"leads/:leadId/qualificacao-rapida",element:a.jsx(BIe,{})}),a.jsx(_,{path:"leads/:leadId/qualificacao-prime",element:a.jsx(iMe,{})}),a.jsx(_,{path:"leads/:leadId/closer",element:a.jsx(lMe,{})}),a.jsx(_,{path:"leads/:id/edit",element:a.jsx(A.Suspense,{fallback:a.jsx("div",{className:"flex items-center justify-center h-screen",children:"Carregando..."}),children:a.jsx(sMe,{})})}),a.jsx(_,{path:"leads/:id/central",element:a.jsx(A.Suspense,{fallback:a.jsx("div",{className:"flex items-center justify-center h-screen",children:"Carregando..."}),children:a.jsx(jIe,{})})}),a.jsx(_,{path:"leads/:id",element:a.jsx($g,{})}),a.jsx(_,{path:"leads/:id/qualificacao",element:a.jsx($g,{})}),a.jsx(_,{path:"leads/:id/atendimento",element:a.jsx($g,{})}),a.jsx(_,{path:"leads/:id/ia-comercial",element:a.jsx($g,{})}),a.jsx(_,{path:"leads/duplicatas",element:a.jsx(eFe,{})}),a.jsx(_,{path:"leads/logs",element:a.jsx(tFe,{})}),a.jsx(_,{path:"lead-score-audit",element:a.jsx(rFe,{})}),a.jsx(_,{path:"leads-score-audit",element:a.jsx(nFe,{})}),a.jsx(_,{path:"temperatura-reconciliacao",element:a.jsx(aFe,{})}),a.jsx(_,{path:"leads-campaign-panel",element:a.jsx(sFe,{})}),a.jsx(_,{path:"forms-test",element:a.jsx(oFe,{})}),a.jsx(_,{path:"kommo-routing-audit",element:a.jsx(iFe,{})}),a.jsx(_,{path:"manager-action-templates",element:a.jsx(CFe,{})}),a.jsx(_,{path:"lead-tags",element:a.jsx(uFe,{})}),a.jsx(_,{path:"live-chat",element:a.jsx(WIe,{})}),a.jsx(_,{path:"inbox",element:a.jsx(cFe,{})}),a.jsx(_,{path:"sla-management",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"scoring"},replace:!0})}),a.jsx(_,{path:"lead-form-config",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"scoring"},replace:!0})}),a.jsx(_,{path:"lead-form-qualification-config",element:a.jsx(dFe,{})}),a.jsx(_,{path:"leads-dashboard",element:a.jsx(fFe,{})}),a.jsx(_,{path:"cockpit",element:a.jsx(Me,{to:"/comercial/cockpit",replace:!0})}),a.jsx(_,{path:"performance-central",element:a.jsx(mFe,{})}),a.jsx(_,{path:"auto-call-settings",element:a.jsx(wLe,{})}),a.jsx(_,{path:"reunioes",element:a.jsx(Me,{to:"/admin/scheduling-appointments",replace:!0})}),a.jsx(_,{path:"attendance-dashboard",element:a.jsx(V6e,{})}),a.jsx(_,{path:"prospeccao",element:a.jsx(hFe,{})}),a.jsx(_,{path:"inteligencia-mercado",element:a.jsx(pFe,{})}),a.jsx(_,{path:"inteligencia-mercado/:campaignId",element:a.jsx(gFe,{})}),a.jsx(_,{path:"scoring-rules",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"scoring"},replace:!0})}),a.jsx(_,{path:"lead-score-config",element:a.jsx(AFe,{})}),a.jsx(_,{path:"priority-leads",element:a.jsx(uRe,{})}),a.jsx(_,{path:"priority-config",element:a.jsx(dRe,{})}),a.jsx(_,{path:"leads-settings",element:a.jsx(ARe,{})}),a.jsx(_,{path:"sales-speed-ranking",element:a.jsx(fRe,{})}),a.jsx(_,{path:"leads-field-config",element:a.jsx(mRe,{})}),a.jsx(_,{path:"import",element:a.jsx(xFe,{})}),a.jsx(_,{path:"quiz-manager",element:a.jsx(sLe,{})}),a.jsx(_,{path:"exercicios",element:a.jsx(Me,{to:"/admin/exercises-center",replace:!0})}),a.jsx(_,{path:"exercicios/:id",element:a.jsx(wRe,{})}),a.jsx(_,{path:"formats-config",element:a.jsx(OFe,{})}),a.jsx(_,{path:"cohort-fields-config",element:a.jsx(UFe,{})}),a.jsx(_,{path:"dre-config",element:a.jsx(fLe,{})}),a.jsx(_,{path:"employee-payroll",element:a.jsx(mLe,{})}),a.jsx(_,{path:"central-operacional",element:a.jsx(pLe,{})}),a.jsx(_,{path:"employee-activities",element:a.jsx(hLe,{})}),a.jsx(_,{path:"hr-settings",element:a.jsx(gLe,{})}),a.jsx(_,{path:"mood-dashboard",element:a.jsx(D6e,{})}),a.jsx(_,{path:"platform-usage",element:a.jsx(R6e,{})}),a.jsx(_,{path:"forms-ctas",element:a.jsx(yFe,{})}),a.jsx(_,{path:"empresas-atendidas",element:a.jsx(bFe,{})}),a.jsx(_,{path:"casos-corporativos",element:a.jsx(wFe,{})}),a.jsx(_,{path:"carrosseis",element:a.jsx(_Fe,{})}),a.jsx(_,{path:"formations",element:a.jsx(MFe,{})}),a.jsx(_,{path:"formations/new",element:a.jsx(dF,{})}),a.jsx(_,{path:"formations/:id",element:a.jsx(dF,{})}),a.jsx(_,{path:"learning-paths",element:a.jsx(TRe,{})}),a.jsx(_,{path:"ai-track-calendar",element:a.jsx(PRe,{})}),a.jsx(_,{path:"jobs",element:a.jsx(QFe,{})}),a.jsx(_,{path:"jobs/new",element:a.jsx(AF,{})}),a.jsx(_,{path:"job-engine",element:a.jsx(VFe,{})}),a.jsx(_,{path:"talent-acquisition",element:a.jsx(Me,{to:"/admin/resumes?tab=acquisition",replace:!0})}),a.jsx(_,{path:"jobs/:id",element:a.jsx(AF,{})}),a.jsx(_,{path:"testimonials",element:a.jsx(HFe,{})}),a.jsx(_,{path:"testimonials/new",element:a.jsx(fF,{})}),a.jsx(_,{path:"testimonials/:id",element:a.jsx(fF,{})}),a.jsx(_,{path:"banners",element:a.jsx(Me,{to:"/admin/media-center?tab=banners",replace:!0})}),a.jsx(_,{path:"labels",element:a.jsx(zFe,{})}),a.jsx(_,{path:"category-keywords",element:a.jsx($Fe,{})}),a.jsx(_,{path:"marketing",element:a.jsx(qFe,{})}),a.jsx(_,{path:"mobile-experience",element:a.jsx(KFe,{})}),a.jsx(_,{path:"mobile-experience/preview/:slug",element:a.jsx(GFe,{})}),a.jsx(_,{path:"experiencia-mobile",element:a.jsx(WFe,{})}),a.jsx(_,{path:"lead-game-engine",element:a.jsx(YFe,{})}),a.jsx(_,{path:"sales-copilot",element:a.jsx(XFe,{})}),a.jsx(_,{path:"whatsapp-sms",element:a.jsx(ZFe,{})}),a.jsx(_,{path:"whatsapp-official-lab",element:a.jsx(JFe,{})}),a.jsx(_,{path:"campanhas/whatsapp-blitz",element:a.jsx(eTe,{})}),a.jsx(_,{path:"comunicacao/sms",element:a.jsx(tTe,{})}),a.jsx(_,{path:"page-manager",element:a.jsx(hTe,{})}),a.jsx(_,{path:"page-layout-config",element:a.jsx(YPe,{})}),a.jsx(_,{path:"marketing/email",element:a.jsx(rTe,{})}),a.jsx(_,{path:"email-marketing",element:a.jsx(Me,{to:"/admin/marketing/email",replace:!0})}),a.jsx(_,{path:"daily-newsletter",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"newsletter"},replace:!0})}),a.jsx(_,{path:"marketing/campaigns",element:a.jsx(nTe,{})}),a.jsx(_,{path:"marketing/campaigns/new",element:a.jsx(aTe,{})}),a.jsx(_,{path:"marketing/criativos-ads",element:a.jsx(sTe,{})}),a.jsx(_,{path:"marketing/meta-ads-analytics",element:a.jsx(oTe,{})}),a.jsx(_,{path:"marketing/campaign-operations",element:a.jsx(lTe,{})}),a.jsx(_,{path:"marketing/creative-studio",element:a.jsx(iTe,{})}),a.jsx(_,{path:"marketing/creative-hub",element:a.jsx(Me,{to:"/admin/marketing/creative-studio",replace:!0})}),a.jsx(_,{path:"marketing/content-studio",element:a.jsx(cTe,{})}),a.jsx(_,{path:"marketing/content-engine",element:a.jsx(uTe,{})}),a.jsx(_,{path:"marketing/campaign-planner",element:a.jsx(HDe,{})}),a.jsx(_,{path:"marketing/planejamento-comercial",element:a.jsx(zDe,{})}),a.jsx(_,{path:"marketing-intelligence",element:a.jsx($De,{})}),a.jsx(_,{path:"marketing/marketing-calendar",element:a.jsx(qDe,{})}),a.jsx(_,{path:"marketing/product-feed",element:a.jsx(YDe,{})}),a.jsx(_,{path:"marketing/strategic-plan",element:a.jsx(KDe,{})}),a.jsx(_,{path:"marketing/action-plan",element:a.jsx(WDe,{})}),a.jsx(_,{path:"marketing/investimentos",element:a.jsx(GDe,{})}),a.jsx(_,{path:"marketing/analise-funil",element:a.jsx(rRe,{})}),a.jsx(_,{path:"marketing/lead-reconciliation",element:a.jsx(XDe,{})}),a.jsx(_,{path:"marketing/performance-report",element:a.jsx(ZDe,{})}),a.jsx(_,{path:"marketing/auditoria-conversoes",element:a.jsx(JDe,{})}),a.jsx(_,{path:"marketing/backfill-attribution",element:a.jsx(eRe,{})}),a.jsx(_,{path:"marketing/attribution-dashboard",element:a.jsx(ZTe,{})}),a.jsx(_,{path:"debug/tracking-test",element:a.jsx(tRe,{})}),a.jsx(_,{path:"traffic-manager",element:a.jsx(dTe,{})}),a.jsx(_,{path:"traffic-audit",element:a.jsx(ATe,{})}),a.jsx(_,{path:"full-funnel",element:a.jsx(fTe,{})}),a.jsx(_,{path:"landing-pages",element:a.jsx(IDe,{})}),a.jsx(_,{path:"lancamentos",element:a.jsx(FDe,{})}),a.jsx(_,{path:"lancamentos/novo",element:a.jsx(wF,{})}),a.jsx(_,{path:"lancamentos/:id/editar",element:a.jsx(wF,{})}),a.jsx(_,{path:"alumni-cases",element:a.jsx(TDe,{})}),a.jsx(_,{path:"landing-pages/:id",element:a.jsx(PDe,{})}),a.jsx(_,{path:"free-courses",element:a.jsx(mTe,{})}),a.jsx(_,{path:"recorded-sessions",element:a.jsx(QTe,{})}),a.jsx(_,{path:"institutional-video",element:a.jsx(Me,{to:"/admin/media-center?tab=video",replace:!0})}),a.jsx(_,{path:"materials",element:a.jsx(IRe,{})}),a.jsx(_,{path:"resumes",element:a.jsx(kTe,{})}),a.jsx(_,{path:"locacao-sala",element:a.jsx(PIe,{})}),a.jsx(_,{path:"recruitment",element:a.jsx(m6e,{})}),a.jsx(_,{path:"recruitment/new",element:a.jsx(jF,{})}),a.jsx(_,{path:"recruitment/:id",element:a.jsx(jF,{})}),a.jsx(_,{path:"recruitment/:id/candidates",element:a.jsx(h6e,{})}),a.jsx(_,{path:"recruitment/:id/candidate/:candidateId",element:a.jsx(p6e,{})}),a.jsx(_,{path:"blog",element:a.jsx(ITe,{})}),a.jsx(_,{path:"blog/new",element:a.jsx(hF,{})}),a.jsx(_,{path:"blog/:id",element:a.jsx(hF,{})}),a.jsx(_,{path:"popup-manager",element:a.jsx(FTe,{})}),a.jsx(_,{path:"popup-center",element:a.jsx(TTe,{})}),a.jsx(_,{path:"settings",element:a.jsx(gF,{})}),a.jsx(_,{path:"system-settings",element:a.jsx(gF,{})}
1620),a.jsx(_,{path:"timezone-settings",element:a.jsx(qTe,{})}),a.jsx(_,{path:"company-settings",element:a.jsx(JTe,{})}),a.jsx(_,{path:"tutor-config",element:a.jsx(ePe,{})}),a.jsx(_,{path:"bulk-ai",element:a.jsx(tPe,{})}),a.jsx(_,{path:"batch-generate",element:a.jsx(rPe,{})}),a.jsx(_,{path:"batch-generator",element:a.jsx(nPe,{})}),a.jsx(_,{path:"exercises-center",element:a.jsx(aPe,{})}),a.jsx(_,{path:"exercises-center/curso/:id",element:a.jsx(bRe,{})}),a.jsx(_,{path:"upsells",element:a.jsx(PTe,{})}),a.jsx(_,{path:"upsell-config",element:a.jsx(LTe,{})}),a.jsx(_,{path:"black-friday",element:a.jsx(SDe,{})}),a.jsx(_,{path:"black-friday/email-marketing",element:a.jsx(kDe,{})}),a.jsx(_,{path:"intelligence",element:a.jsx(LDe,{})}),a.jsx(_,{path:"radar-comercial",element:a.jsx(DDe,{})}),a.jsx(_,{path:"gov-radar",element:a.jsx(RDe,{})}),a.jsx(_,{path:"money-on-the-table",element:a.jsx(MDe,{})}),a.jsx(_,{path:"war-room-comercial",element:a.jsx(Me,{to:"/admin/motores",replace:!0})}),a.jsx(_,{path:"motores",element:a.jsx(A.Suspense,{fallback:a.jsx("div",{className:"flex items-center justify-center h-screen",children:"Carregando..."}),children:a.jsx(uMe,{})})}),a.jsx(_,{path:"faq-comercial",element:a.jsx(z6e,{})}),a.jsx(_,{path:"ia-central",element:a.jsx(hRe,{})}),a.jsx(_,{path:"ai-knowledge",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"ai-agent",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"chatbot-debug",element:a.jsx(ODe,{})}),a.jsx(_,{path:"ai-prompts",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"ai-usage",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"ai-performance",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"ai-functions",element:a.jsx(Me,{to:"/admin/ia-central",replace:!0})}),a.jsx(_,{path:"qualification-dashboard",element:a.jsx(Me,{to:"/admin/leads/qualificacao",replace:!0})}),a.jsx(_,{path:"audio-center",element:a.jsx(Me,{to:"/admin/media-center?tab=audio",replace:!0})}),a.jsx(_,{path:"knowledge-pills",element:a.jsx(e6e,{})}),a.jsx(_,{path:"attendance",element:a.jsx(B6e,{})}),a.jsx(_,{path:"competitor-center",element:a.jsx(YIe,{})}),a.jsx(_,{path:"data-verification",element:a.jsx(UDe,{})}),a.jsx(_,{path:"cadences",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"cadences"},replace:!0})}),a.jsx(_,{path:"cadences/new",element:a.jsx(vF,{})}),a.jsx(_,{path:"cadences/:id/edit",element:a.jsx(vF,{})}),a.jsx(_,{path:"cadence-templates",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"cadences"},replace:!0})}),a.jsx(_,{path:"funnel-builder",element:a.jsx(QDe,{})}),a.jsx(_,{path:"closing-toolkit",element:a.jsx(VDe,{})}),a.jsx(_,{path:"sales-farming",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"farming"},replace:!0})}),a.jsx(_,{path:"sales-farming/new",element:a.jsx(_F,{})}),a.jsx(_,{path:"sales-farming/:id/edit",element:a.jsx(_F,{})}),a.jsx(_,{path:"sales-farming/:id/metrics",element:a.jsx(nRe,{})}),a.jsx(_,{path:"cadence-monitoring",element:a.jsx(aRe,{})}),a.jsx(_,{path:"outbound-roi",element:a.jsx(sRe,{})}),a.jsx(_,{path:"create-trial",element:a.jsx(pRe,{})}),a.jsx(_,{path:"trial-management",element:a.jsx(gRe,{})}),a.jsx(_,{path:"presentation-slides",element:a.jsx(Me,{to:"/admin/media-center?tab=presentations",replace:!0})}),a.jsx(_,{path:"logo-library",element:a.jsx(Me,{to:"/admin/media-center?tab=brand",replace:!0})}),a.jsx(_,{path:"system-mindmap",element:a.jsx(KRe,{})}),a.jsx(_,{path:"admin-manual",element:a.jsx(CF,{})}),a.jsx(_,{path:"knowledge-center",element:a.jsx(CF,{})}),a.jsx(_,{path:"internal-agent",element:a.jsx(XRe,{})}),a.jsx(_,{path:"internal-agent/history",element:a.jsx(ZRe,{})}),a.jsx(_,{path:"generate-digital-thumbnails",element:a.jsx(Me,{to:"/admin/media-center?tab=ai",replace:!0})}),a.jsx(_,{path:"live-sessions",element:a.jsx(MTe,{})}),a.jsx(_,{path:"live-sessions/new",element:a.jsx(xF,{})}),a.jsx(_,{path:"live-sessions/:id",element:a.jsx(xF,{})}),a.jsx(_,{path:"live-sessions/:sessionId/presenca",element:a.jsx(OTe,{})}),a.jsx(_,{path:"attendance-report",element:a.jsx(UTe,{})}),a.jsx(_,{path:"achievements",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"gamification"},replace:!0})}),a.jsx(_,{path:"certificates-manager",element:a.jsx(cDe,{})}),a.jsx(_,{path:"certificados",element:a.jsx(uDe,{})}),a.jsx(_,{path:"avaliacoes-dashboard",element:a.jsx(g6e,{})}),a.jsx(_,{path:"rewards",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"gamification"},replace:!0})}),a.jsx(_,{path:"gamification-config",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"gamification"},replace:!0})}),a.jsx(_,{path:"gamification-stats",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"gamification"},replace:!0})}),a.jsx(_,{path:"ambassador-program",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"gamification"},replace:!0})}),a.jsx(_,{path:"sales-ranking-live",element:a.jsx(lRe,{})}),a.jsx(_,{path:"exchange-rates",element:a.jsx(sPe,{})}),a.jsx(_,{path:"notifications",element:a.jsx(Me,{to:"/admin/automations",state:{tab:"notifications"},replace:!0})}),a.jsx(_,{path:"clientes",element:a.jsx(oPe,{})}),a.jsx(_,{path:"clientes/:id",element:a.jsx(bF,{})}),a.jsx(_,{path:"pessoas/:id",element:a.jsx(bF,{})}),a.jsx(_,{path:"pedidos",element:a.jsx(iPe,{})}),a.jsx(_,{path:"credentials",element:a.jsx(EIe,{})}),a.jsx(_,{path:"pedidos-v2",element:a.jsx(lPe,{})}),a.jsx(_,{path:"pedidos-executive",element:a.jsx(cPe,{})}),a.jsx(_,{path:"pedidos-dashboard",element:a.jsx(uPe,{})}),a.jsx(_,{path:"reports/comercial-360",element:a.jsx(dPe,{})}),a.jsx(_,{path:"reports/revenue-command-center",element:a.jsx(APe,{})}),a.jsx(_,{path:"teste-pagamento-afinz",element:a.jsx($6e,{})}),a.jsx(_,{path:"certification-sales",element:a.jsx($Te,{})}),a.jsx(_,{path:"propostas",element:a.jsx(tDe,{})}),a.jsx(_,{path:"propostas/nova-v4",element:a.jsx(DFe,{})}),a.jsx(_,{path:"propostas/war-room",element:a.jsx(rDe,{})}),a.jsx(_,{path:"propostas-audit",element:a.jsx(oDe,{})}),a.jsx(_,{path:"propostas-ia",element:a.jsx(Me,{to:"/admin/proposal-studio",replace:!0})}),a.jsxs(_,{path:"proposal-studio",element:a.jsx(jFe,{}),children:[a.jsx(_,{index:!0,element:a.jsx(EFe,{})}),a.jsx(_,{path:"blocos",element:a.jsx(BFe,{})}),a.jsx(_,{path:"ia",element:a.jsx(NFe,{})}),a.jsx(_,{path:"prompts",element:a.jsx(SFe,{})}),a.jsx(_,{path:"regras",element:a.jsx(kFe,{})}),a.jsx(_,{path:"templates",element:a.jsx(IFe,{})}),a.jsx(_,{path:"dossies",element:a.jsx(FFe,{})}),a.jsx(_,{path:"migracao",element:a.jsx(TFe,{})})]}),a.jsx(_,{path:"deal-desk",element:a.jsx(aDe,{})}),a.jsx(_,{path:"proposal-editor/:id",element:a.jsx(sDe,{})}),a.jsx(_,{path:"propostas/wizard",element:a.jsx(PFe,{})}),a.jsx(_,{path:"propostas/pj/nova",element:a.jsx(LFe,{})}),a.jsx(_,{path:"propostas/:id",element:a.jsx(nDe,{portal:"admin"})}),a.jsx(_,{path:"proposal-field-mappings",element:a.jsx(iDe,{})}),a.jsx(_,{path:"cupons",element:a.jsx(fPe,{})}),a.jsx(_,{path:"price-campaigns",element:a.jsx(yTe,{})}),a.jsx(_,{path:"flash-sales",element:a.jsx(bTe,{})}),a.jsx(_,{path:"bundle-tiers",element:a.jsx(wTe,{})}),a.jsx(_,{path:"wheel-prizes",element:a.jsx(_Te,{})}),a.jsx(_,{path:"black-friday-analytics",element:a.jsx(CTe,{})}),a.jsx(_,{path:"black-friday-config",element:a.jsx(jTe,{})}),a.jsx(_,{path:"analytics",element:a.jsx(ETe,{})}),a.jsx(_,{path:"dashboard",element:a.jsx(NTe,{})}),a.jsx(_,{path:"dashboard/customize",element:a.jsx(STe,{})}),a.jsx(_,{path:"automations",element:a.jsx(mPe,{})}),a.jsx(_,{path:"automation-logs",element:a.jsx(Me,{to:"/admin/automations",replace:!0,state:{tab:"logs"}})}),a.jsx(_,{path:"automation-dashboard",element:a.jsx(Me,{to:"/admin/automations",replace:!0,state:{tab:"overview"}})}),a.jsx(_,{path:"automations-hub",element:a.jsx(Me,{to:"/admin/automations",replace:!0,state:{tab:"notifications"}})}),a.jsx(_,{path:"automation-send-report",element:a.jsx(hPe,{})}),a.jsx(_,{path:"email-history",element:a.jsx(Me,{to:"/admin/automation-send-report",replace:!0})}),a.jsx(_,{path:"email-test",element:a.jsx(Me,{to:"/admin/automation-send-report",replace:!0})}),a.jsx(_,{path:"campaigns",element:a.jsx(pPe,{})}),a.jsx(_,{path:"integrations",element:a.jsx(gPe,{})}),a.jsx(_,{path:"integrations/station-sync",element:a.jsx(xPe,{})}),a.jsx(_,{path:"webhooks",element:a.jsx(vPe,{})}),a.jsx(_,{path:"meta-lead-health",element:a.jsx(yPe,{})}),a.jsx(_,{path:"integrations/hotjar",element:a.jsx(bPe,{})}),a.jsx(_,{path:"integrations/connectors",element:a.jsx(wPe,{})}),a.jsx(_,{path:"callpage-leads",element:a.jsx(bLe,{})}),a.jsx(_,{path:"kommo",element:a.jsx(lFe,{})}),a.jsx(_,{path:"kommo-sync-control",element:a.jsx(QPe,{})}),a.jsx(_,{path:"kommo-analytics",element:a.jsx(_Pe,{})}),a.jsx(_,{path:"kommo-sellers",element:a.jsx(IPe,{})}),a.jsx(_,{path:"kommo-pipelines",element:a.jsx(MPe,{})}),a.jsx(_,{path:"kommo-migration",element:a.jsx(OPe,{})}),a.jsx(_,{path:"kommo-field-mapping",element:a.jsx(UPe,{})}),a.jsx(_,{path:"kommo-conversations",element:a.jsx(VPe,{})}),a.jsx(_,{path:"atendimentos",element:a.jsx(FPe,{})}),a.jsx(_,{path:"affiliates",element:a.jsx(TPe,{})}),a.jsx(_,{path:"scheduling-calendars",element:a.jsx(Me,{to:"/admin/scheduling-appointments?tab=config",replace:!0})}),a.jsx(_,{path:"scheduling-services",element:a.jsx(Me,{to:"/admin/scheduling-appointments?tab=config",replace:!0})}),a.jsx(_,{path:"scheduling-appointments",element:a.jsx(PPe,{})}),a.jsx(_,{path:"scheduling-blocked-times",element:a.jsx(Me,{to:"/admin/scheduling-appointments?tab=config",replace:!0})}),a.jsx(_,{path:"scheduling-settings",element:a.jsx(Me,{to:"/admin/scheduling-appointments?tab=config",replace:!0})}),a.jsx(_,{path:"crm",element:a.jsx(LPe,{})}),a.jsx(_,{path:"crm/comercial",element:a.jsx(DPe,{})}),a.jsx(_,{path:"crm/operacional",element:a.jsx(RPe,{})}),a.jsx(_,{path:"crm-v2",element:a.jsx(Me,{to:"/comercial/pipeline",replace:!0})}),a.jsx(_,{path:"funil-config",element:a.jsx(HPe,{})}),a.jsx(_,{path:"pipeline",element:a.jsx(Me,{to:"/comercial/pipeline",replace:!0})}),a.jsx(_,{path:"pipeline-legado",element:a.jsx(zPe,{})}),a.jsx(_,{path:"pipeline/deal/:dealId",element:a.jsx(qPe,{})}),a.jsx(_,{path:"pipeline-settings",element:a.jsx(KPe,{})}),a.jsx(_,{path:"closer-dashboard",element:a.jsx($Pe,{})}),a.jsx(_,{path:"sales-ecosystem",element:a.jsx(MLe,{})}),a.jsx(_,{path:"partner-companies",element:a.jsx(GPe,{})}),a.jsx(_,{path:"digital-courses",element:a.jsx(WPe,{})}),a.jsx(_,{path:"youtube-crud",element:a.jsx(F6e,{})}),a.jsx(_,{path:"form-manager",element:a.jsx(nLe,{})}),a.jsx(_,{path:"mastertech-config",element:a.jsx(pTe,{})}
1620),a.jsx(_,{path:"lead-magnets",element:a.jsx(gTe,{})}),a.jsx(_,{path:"mastertech-enrollments",element:a.jsx(xTe,{})}),a.jsx(_,{path:"mastertech-users",element:a.jsx(vTe,{})}),a.jsx(_,{path:"subscription-management",element:a.jsx(mF,{})}),a.jsx(_,{path:"featured-carousel",element:a.jsx(Me,{to:"/admin/media-center?tab=banners",replace:!0})}),a.jsx(_,{path:"top-menu",element:a.jsx(XPe,{})}),a.jsx(_,{path:"action-bar-config",element:a.jsx(ZPe,{})}),a.jsx(_,{path:"contract-clauses",element:a.jsx(JPe,{})}),a.jsx(_,{path:"contract-templates",element:a.jsx(eLe,{})}),a.jsx(_,{path:"student-onboarding-config",element:a.jsx(xLe,{})}),a.jsx(_,{path:"student-settings",element:a.jsx(Me,{to:"/admin/student-center?tab=gamificacao",replace:!0})}),a.jsx(_,{path:"student-center",element:a.jsx(N6e,{})}),a.jsx(_,{path:"central-aluno",element:a.jsx(S6e,{})}),a.jsx(_,{path:"system-messages",element:a.jsx(JRe,{})}),a.jsx(_,{path:"empresas",element:a.jsx(xRe,{})}),a.jsx(_,{path:"empresas/:id",element:a.jsx(vRe,{})}),a.jsx(_,{path:"empresas/jornadas-config",element:a.jsx(yRe,{})}),a.jsx(_,{path:"empresas-dashboard",element:a.jsx(_Re,{})}),a.jsx(_,{path:"empresas-b2b",element:a.jsx(CRe,{})}),a.jsx(_,{path:"crm-companies",element:a.jsx(jRe,{})}),a.jsx(_,{path:"crm-contatos",element:a.jsx(ERe,{})}),a.jsx(_,{path:"form-configs",element:a.jsx(tLe,{})}),a.jsx(_,{path:"form-configs/:id",element:a.jsx(rLe,{})}),a.jsx(_,{path:"subscriptions",element:a.jsx(mF,{})}),a.jsx(_,{path:"subscriptions-legacy",element:a.jsx(aLe,{})}),a.jsx(_,{path:"promo-banner",element:a.jsx(Me,{to:"/admin/media-center?tab=banners",replace:!0})}),a.jsx(_,{path:"media-center",element:a.jsx(kRe,{})}),a.jsx(_,{path:"home-publica",element:a.jsx(Me,{to:"/admin/media-center?tab=home",replace:!0})}),a.jsx(_,{path:"product-center",element:a.jsx(FRe,{})}),a.jsx(_,{path:"brand-identity",element:a.jsx(Me,{to:"/admin/media-center?tab=brand",replace:!0})}),a.jsx(_,{path:"activity-logs",element:a.jsx(LRe,{})}),a.jsx(_,{path:"atividades-hoje",element:a.jsx(DRe,{})}),a.jsx(_,{path:"auditoria-acessos",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/usuarios",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/sessoes",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/eventos",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/seguranca",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/relatorios",element:a.jsx(lu,{})}),a.jsx(_,{path:"auditoria-acessos/configuracoes",element:a.jsx(lu,{})}),a.jsx(_,{path:"platform-logs",element:a.jsx(ORe,{})}),a.jsx(_,{path:"audit-logs",element:a.jsx(RRe,{})}),a.jsx(_,{path:"security-dashboard",element:a.jsx(MRe,{})}),a.jsx(_,{path:"platform-documentation",element:a.jsx(URe,{})}),a.jsx(_,{path:"system-performance",element:a.jsx(QRe,{})}),a.jsx(_,{path:"platform-audit",element:a.jsx(VRe,{})}),a.jsx(_,{path:"data-integrity",element:a.jsx(HRe,{})}),a.jsx(_,{path:"resource-monitor",element:a.jsx(zRe,{})}),a.jsx(_,{path:"student-offers",element:a.jsx($Re,{})}),a.jsx(_,{path:"media-ai-config",element:a.jsx(Me,{to:"/admin/media-center?tab=ai",replace:!0})}),a.jsx(_,{path:"sales-team",element:a.jsx(Me,{to:"/admin/permissions?tab=equipe-comercial",replace:!0})}),a.jsx(_,{path:"gestao-interna",element:a.jsx(Me,{to:"/admin/permissions?tab=gestao-interna",replace:!0})}),a.jsx(_,{path:"internal-user-audit",element:a.jsx(Me,{to:"/admin/permissions?tab=consistencia",replace:!0})}),a.jsx(_,{path:"sales-playbook",element:a.jsx(oLe,{})}),a.jsx(_,{path:"scripts-hub",element:a.jsx(Me,{to:"/admin/sales-playbook",state:{tab:"scripts-center"},replace:!0})}),a.jsx(_,{path:"layout-center",element:a.jsx(iLe,{})}),a.jsx(_,{path:"platform360-images",element:a.jsx(Me,{to:"/admin/media-center?tab=platform360",replace:!0})}),a.jsx(_,{path:"platform360-editor",element:a.jsx(Me,{to:"/admin/media-center?tab=platform360",replace:!0})}),a.jsx(_,{path:"templates-condicoes-comerciais",element:a.jsx(lLe,{})}),a.jsx(_,{path:"sales-calculator",element:a.jsx(JLe,{})}),a.jsx(_,{path:"employees",element:a.jsx(Me,{to:"/admin/permissions?tab=alocacao",replace:!0})}),a.jsx(_,{path:"time-clock-settings",element:a.jsx(uLe,{})}),a.jsx(_,{path:"time-clock-reports",element:a.jsx(dLe,{})}),a.jsx(_,{path:"work-schedules",element:a.jsx(ALe,{})}),a.jsx(_,{path:"process-enrollments",element:a.jsx(yF,{})}),a.jsx(_,{path:"process-enrollment",element:a.jsx(yF,{})}),a.jsx(_,{path:"users",element:a.jsx(vLe,{})}),a.jsx(_,{path:"criar-usuario",element:a.jsx(Me,{to:"/admin/permissions?tab=equipe-comercial",replace:!0})}),a.jsx(_,{path:"students",element:a.jsx(Me,{to:"/admin/student-360",replace:!0})}),a.jsx(_,{path:"unallocated-students",element:a.jsx(Me,{to:"/admin/student-360",replace:!0})}),a.jsx(_,{path:"user-roles",element:a.jsx(yLe,{})}),a.jsx(_,{path:"permissions",element:a.jsx(u6e,{})}),a.jsx(_,{path:"permissions-overview",element:a.jsx(Me,{to:"/admin/permissions",replace:!0})}),a.jsx(_,{path:"access-control",element:a.jsx(Me,{to:"/admin/permissions",replace:!0})}),a.jsx(_,{path:"tracking-scripts",element:a.jsx(TLe,{})}),a.jsx(_,{path:"sitemap",element:a.jsx(SRe,{})}),a.jsx(_,{path:"sitemap-generator",element:a.jsx(BRe,{})}),a.jsx(_,{path:"seo-content",element:a.jsx(U6e,{})}),a.jsx(_,{path:"seo-engine",element:a.jsx(Q6e,{})}),a.jsx(_,{path:"dashboards",element:a.jsx(NRe,{})}),a.jsx(_,{path:"lixeira",element:a.jsx(qRe,{})}),a.jsx(_,{path:"presentation-embeds",element:a.jsx(Me,{to:"/admin/media-center?tab=presentations",replace:!0})}),a.jsx(_,{path:"ti-dashboard",element:a.jsx(r6e,{})}),a.jsx(_,{path:"support-tickets",element:a.jsx(n6e,{})}),a.jsx(_,{path:"support-tickets/:id",element:a.jsx(a6e,{})}
1620),a.jsx(_,{path:"support-tickets/:id/chat",element:a.jsx(Me,{to:"..",replace:!0})}),a.jsx(_,{path:"support-monitoring",element:a.jsx(s6e,{})}),a.jsx(_,{path:"support-ticket-config",element:a.jsx(o6e,{})}),a.jsx(_,{path:"it-software",element:a.jsx(i6e,{})}),a.jsx(_,{path:"it-assets",element:a.jsx(l6e,{})}),a.jsx(_,{path:"it-services",element:a.jsx(c6e,{})}),a.jsx(_,{path:"backups",element:a.jsx(t6e,{})}),a.jsx(_,{path:"limpar-cache",element:a.jsx(KTe,{})}),a.jsx(_,{path:"basic-client-access",element:a.jsx(PLe,{})}),a.jsx(_,{path:"sales-dashboard",element:a.jsx(LLe,{})}),a.jsx(_,{path:"interactive-sales",element:a.jsx(DLe,{})}),a.jsx(_,{path:"interactive-sales/config",element:a.jsx(RLe,{})}),a.jsx(_,{path:"atribuicao",element:a.jsx(BTe,{})}),a.jsx(_,{path:"productivity-report",element:a.jsx(OLe,{})}),a.jsx(_,{path:"payment-links",element:a.jsx(ULe,{})}),a.jsx(_,{path:"payment-link-requests",element:a.jsx(QLe,{})}),a.jsx(_,{path:"payment-reminder-config",element:a.jsx(VLe,{})}),a.jsx(_,{path:"payment-config",element:a.jsx(HLe,{})}),a.jsx(_,{path:"suppliers",element:a.jsx(dDe,{})}),a.jsx(_,{path:"accounts-payable",element:a.jsx(ADe,{})}),a.jsx(_,{path:"accounts-receivable",element:a.jsx(fDe,{})}),a.jsx(_,{path:"cost-centers",element:a.jsx(mDe,{})}),a.jsx(_,{path:"chart-of-accounts",element:a.jsx(hDe,{})}),a.jsx(_,{path:"cashflow-dashboard",element:a.jsx(pDe,{})}),a.jsx(_,{path:"cashflow-center",element:a.jsx(gDe,{})}),a.jsx(_,{path:"finance/reconcile",element:a.jsx(yDe,{})}),a.jsx(_,{path:"finance/audit-center",element:a.jsx(bDe,{})}),a.jsx(_,{path:"reconciliation-center",element:a.jsx(wDe,{})}),a.jsx(_,{path:"finance-command-center",element:a.jsx(_De,{})}),a.jsx(_,{path:"revenue-intelligence",element:a.jsx(CDe,{})}),a.jsx(_,{path:"finance-forecast",element:a.jsx(jDe,{})}),a.jsx(_,{path:"revenue-cohort",element:a.jsx(EDe,{})}),a.jsx(_,{path:"profitability",element:a.jsx(BDe,{})}),a.jsx(_,{path:"mrr-dashboard",element:a.jsx(NDe,{})}),a.jsx(_,{path:"templates-hub",element:a.jsx(xDe,{})}),a.jsx(_,{path:"proposal-templates",element:a.jsx(Me,{to:"/admin/proposal-studio/templates",replace:!0})}),a.jsx(_,{path:"financeiro",element:a.jsx(vDe,{})}),a.jsx(_,{path:"financeiro/fluxo-caixa-estrategico",element:a.jsx(q6e,{})}),a.jsx(_,{path:"vendedor",element:a.jsx(zLe,{})}),a.jsx(_,{path:"minha-fila",element:a.jsx($Le,{})}),a.jsx(_,{path:"agenda-central",element:a.jsx(Me,{to:"/admin/scheduling-appointments",replace:!0})}),a.jsx(_,{path:"calendar",element:a.jsx(qLe,{})}),a.jsx(_,{path:"power-dialer",element:a.jsx(KLe,{})}),a.jsx(_,{path:"sales-goals",element:a.jsx(Me,{to:"/admin/sales-playbook",state:{tab:"metas"},replace:!0})}),a.jsx(_,{path:"billing-simulator",element:a.jsx(eDe,{})}),a.jsx(_,{path:"vip-pricing",element:a.jsx(f6e,{})}),a.jsx(_,{path:"certificates",element:a.jsx(lDe,{})}),a.jsx(_,{path:"corporate-subscriptions",element:a.jsx(_Le,{})}),a.jsx(_,{path:"corporate-subscriptions-config",element:a.jsx(CLe,{})}),a.jsx(_,{path:"implantacoes",element:a.jsx(jLe,{})}),a.jsx(_,{path:"implantacoes/:id",element:a.jsx(ELe,{})}),a.jsx(_,{path:"implantacoes/:id/kickoff",element:a.jsx(BLe,{})}),a.jsx(_,{path:"implantacoes/:id/jornadas",element:a.jsx(NLe,{})}),a.jsx(_,{path:"team-pass/config",element:a.jsx(SLe,{})}),a.jsx(_,{path:"team-pass/approvals",element:a.jsx(kLe,{})}),a.jsx(_,{path:"team-pass/dashboard",element:a.jsx(ILe,{})}),a.jsx(_,{path:"org-design",element:a.jsx(FLe,{})}),a.jsx(_,{path:"lideranca",element:a.jsx(DIe,{})}),a.jsx(_,{path:"executivo",element:a.jsx(v6e,{})}),a.jsx(_,{path:"executivo-mtd",element:a.jsx(y6e,{})}),a.jsx(_,{path:"data-book",element:a.jsx(b6e,{})}),a.jsx(_,{path:"data-book/inputs",element:a.jsx(w6e,{})}),a.jsx(_,{path:"reconciliation-orphans",element:a.jsx(_6e,{})}),a.jsx(_,{path:"war-room",element:a.jsx(C6e,{})}),a.jsx(_,{path:"data-brain",element:a.jsx(j6e,{})}),a.jsx(_,{path:"gamificacao-vendas",element:a.jsx(E6e,{})}),a.jsx(_,{path:"versoes",element:a.jsx(GRe,{})}),a.jsx(_,{path:"validacao-publicacao",element:a.jsx(WRe,{})}),a.jsx(_,{path:"api-documentation",element:a.jsx(YRe,{})}),a.jsx(_,{path:"notebooklm",element:a.jsx(k6e,{})}),a.jsx(_,{path:"notebooklm-studio",element:a.jsx(I6e,{})}),a.jsx(_,{path:"sales-learning",element:a.jsx(T6e,{})}),a.jsx(_,{path:"mandatory-activities",element:a.jsx(P6e,{})}),a.jsx(_,{path:"visual-templates",element:a.jsx(L6e,{})}),a.jsx(_,{path:"idea-hub",element:a.jsx(M6e,{})}),a.jsx(_,{path:"free-certifications",element:a.jsx(TIe,{})}),a.jsx(_,{path:"superadmin-panel",element:a.jsx(O6e,{})}),a.jsx(_,{path:"skill-gap",element:a.jsx(IIe,{})}),a.jsx(_,{path:"trilha-perfeita-config",element:a.jsx(H6e,{})}),a.jsx(_,{path:"scripts-sap-2026",element:a.jsx(Me,{to:"/comercial/scripts-sap-2026",replace:!0})}),a.jsx(_,{path:"sdr-performance-report",element:a.jsx(LIe,{})}),a.jsx(_,{path:"diretoria-settings",element:a.jsx(K6e,{})}),a.jsx(_,{path:"reports-dashboard",element:a.jsx(G6e,{})}),a.jsx(_,{path:"follow-up-center",element:a.jsx(Me,{to:"/admin/follow-up",replace:!0})}),a.jsx(_,{path:"follow-up-hub",element:a.jsx(Me,{to:"/admin/follow-up",replace:!0})}),a.jsx(_,{path:"follow-up",element:a.jsx(Me,{to:"/comercial/follow-up",replace:!0})}),a.jsx(_,{path:"follow-up/:itemId",element:a.jsx(_Ie,{})}),a.jsx(_,{path:"raci-matrix",element:a.jsx(cLe,{})}),a.jsx(_,{path:"performance-organizacional",element:a.jsx(W6e,{})}),a.jsx(_,{path:"audience-ai",element:a.jsx(Y6e,{})}),a.jsx(_,{path:"conselho-geral",element:a.jsx(NIe,{})}),a.jsx(_,{path:"mobile-experience-manager",element:a.jsx(SIe,{})}),a.jsx(_,{path:"bug360",element:a.jsx(kIe,{})}),a.jsx(_,{path:"audit-core",element:a.jsx(X6e,{})}),a.jsx(_,{path:"pedido-itens-format-audit",element:a.jsx(Z6e,{})}),a.jsx(_,{path:"leads-pedidos-audit",element:a.jsx(J6e,{})}),a.jsx(_,{path:"comercial/reconciliacao",element:a.jsx(eMe,{})}),a.jsx(_,{path:"pedido-alunos-audit",element:a.jsx(GLe,{})}),a.jsx(_,{path:"atribuicao-reconciliacao",element:a.jsx(WLe,{})}),a.jsx(_,{path:"contact-integrity-audit",element:a.jsx(YLe,{})}),a.jsx(_,{path:"company-user-enrollment-audit",element:a.jsx(XLe,{})}),a.jsx(_,{path:"password-reset-audit",element:a.jsx(ZLe,{})}),a.jsx(_,{path:"formation-rateio-audit",element:a.jsx(tMe,{})}),a.jsx(_,{path:"live-attendance-audit",element:a.jsx(rMe,{})}),a.jsx(_,{path:"cs-engine",element:a.jsx(nMe,{})}),a.jsx(_,{path:"cs-engine/:id",element:a.jsx(aMe,{})}
1620),a.jsx(_,{path:"t360-growth",element:a.jsx(dMe,{})}),a.jsx(_,{path:"t360-sales",element:a.jsx(AMe,{})}),a.jsx(_,{path:"t360-education",element:a.jsx(fMe,{})}),a.jsx(_,{path:"t360-intelligence",element:a.jsx(mMe,{})}),a.jsx(_,{path:"student-360",element:a.jsx(GTe,{})}),a.jsx(_,{path:"student-360/:studentId",element:a.jsx(WTe,{})}),a.jsx(_,{path:"portal-aluno/empresas-destaque",element:a.jsx(oRe,{})}),a.jsx(_,{path:"alunos-indicados",element:a.jsx(iRe,{})})]})]})}function A9(){return tJ()}function Gl({children:e}){const{salesTeamMember:t,isAdmin:r}=A9(),n=t?.role;return!r&&n!=="gestor"?a.jsx(Me,{to:"/comercial",replace:!0}):a.jsx(a.Fragment,{children:e})}const xMe=A.lazy(()=>B(()=>import("./ComercialLayout-BHQUL3HJ.js"),__vite__mapDeps([1537,1,2,559,551,552,553,554,62,133,555,377,67,338,556,557,558,560,66,303,307,561,252,102,562,365,162,161,171,247,350,351,563,564,565,304,746,1538,718,298,1483,265,245,283,157,224,363,1539,1540,550,54])).then(e=>({default:e.ComercialLayout}))),vMe=A.lazy(()=>B(()=>import("./ComercialDashboardPage-BivX8RYX.js"),__vite__mapDeps([1541,1,2,1542,564,704,1201,1059,163,555,377,62,67,338,556,557,558,559,560,66,303,307,561,252,102,562,365,162,161,171,247,350,351,416,568,138,273,1543,1114,881,345,71,483,124,215,545,546,547,548,549,54,364,150,207,105,1483,1197,103,76,1527,1544,304,1545,141,358,1538,746,1546,967,347,332,248,243,230,226,197,152,130,133,836,757]))),yMe=A.lazy(()=>B(()=>import("./CockpitComercial-CmrtfqRf.js"),__vite__mapDeps([1547,1,2,788,138,413,1083,202,1078,168]))),bMe=A.lazy(()=>B(()=>import("./ComercialLinksPage-DCM3s1XI.js"),__vite__mapDeps([1548,1,2,1241,11,559,853,854,606,855,557,856,857,71,469,558,560,66,377,858,124,67,360,218,142,307,859,775,24,25,26,452,453,1242,1243,134,135,263,778,247,62,1058,103,1059,159,165,1063,1181,318,55,320,202,215,56]))),wMe=A.lazy(()=>B(()=>import("./ComercialPedidosPage-D3uyFvsw.js"),__vite__mapDeps([1549,1,2,1054,606,11,559,452,453,23,469,853,854,855,557,856,857,71,558,560,66,377,858,124,67,360,218,142,307,859,775,24,25,26,89,1055,1056,468,305,110,1057,1058,103,1059,911,777,778,27,260,216,1060,42,836,1061,62,549,287,1062,248,334,605,365,338,278,76,1063,1064,1065,1066,564,838,413,839,161,840,841,842,843,844,209,845,846,847,348,178,1067,1068,1069,1070,1071,851,310,331,303,1072,79,202,159,55,773,1170,1248,1171]))),_Me=A.lazy(()=>B(()=>import("./ComercialAgendamentosPage-D2mR1SSg.js"),__vite__mapDeps([1550,1,2,67,545,546,547,548,549,54,71,162,848,62,309,555,377,338,556,557,558,559,560,66,303,307,561,252,102,562,365,161,171,247,350,351,899,427,428,434,430,431,432,433,435,436,567,1252,1253,3,1254,1255,1256,1197,1257,1198,578,103,163,704,1201,349,416]))),CMe=A.lazy(()=>B(()=>import("./ComercialAdminPage-DToYGoV4.js"),__vite__mapDeps([1551,1,2,233,54,273,256]))),jMe=A.lazy(()=>B(()=>import("./ComercialCatalogoPage-DxwXXwzk.js"),__vite__mapDeps([1552,1,2,832,23,833,834,242,614,835]))),EMe=A.lazy(()=>B(()=>import("./ComercialPropostasPage-iNwwYmGb.js"),__vite__mapDeps([1553,1,2,1274,67,1275,941,939,413,1276,938,211,838,559,62,377,839,11,161,840,71,841,842,843,844,209,845,846,847,348,178,66,708,218,944,945,557,194,946,1071,851,310,1270,247,162,849,741,89,189,850,554,1277,286,292,253,604,1109,291,142,320,773,124,1269,546,547,1271,1067,1068,1069,1070,331,303,213,1395,764,704,222,365,307]))),BMe=A.lazy(()=>B(()=>import("./PropostaSnapshotPage-ooIgrc-8.js"),__vite__mapDeps([1281,1,2,452,1267,66,377,413,1268,432,1254,1269,67,1071,851,310,1270,247,62,546,547,1271,192,42,1272,483,335,1273,238,305,209,930,314,255,213,307,133,162,84,13,1067,89,1068,1069,1070,331,303,222]))),NMe=A.lazy(()=>B(()=>import("./ProposalWizardPage-B72bgXNF.js"),__vite__mapDeps([936,1,2,377,66,62,844,358]))),SMe=A.lazy(()=>B(()=>import("./NovaPropostaPJWizardPage-BbbRuwJd.js"),__vite__mapDeps([937,1,2,857,938,67,939,413,940,816,941,846,847,845,844,183,217,307,130]))),kMe=A.lazy(()=>B(()=>import("./ProposalBuilderV4Page-Ch5XLMb5.js"),__vite__mapDeps([942,1,2,943,168,944,945,557,938,67,857,841,940,816,939,413,817,396,946]))),IMe=A.lazy(()=>B(()=>import("./ComercialSDRDashboard-DpG724zr.js"),__vite__mapDeps([1554,1,2,67,894,807,881,345,1555,124,764,55,103,150,567]))),FMe=A.lazy(()=>B(()=>import("./ComercialLeadsPage-DGKKIleS.js"),__vite__mapDeps([1556,1,2,869,870,756,757,452,559,871]))),TMe=A.lazy(()=>B(()=>import("./MarketingPerformancePage-CiEJRd8Z.js"),__vite__mapDeps([1557,1,2,788,1063,66,67,124]))),PMe=A.lazy(()=>B(()=>import("./ComercialEmpresasPage-DXb9My9M.js"),__vite__mapDeps([1558,1,2,838,67,413,559,62,377,839,11,161,840,71,841,842,843,844,209,845,846,847,348,178,1067,89,1068,1069,1070,1071,851,310,331,303,1393,452,855,557,856,857,453,124,1394,1279,1336,812,1337,1113,293,416,1395,66,235,307,54]))),LMe=A.lazy(()=>B(()=>import("./ComercialTurmasPage-DGVIu1mj.js").then(e=>e.C),__vite__mapDeps([1559,1,2,559,103]))),DMe=A.lazy(()=>B(()=>import("./ComercialPlaybookPage-1PM2KNaN.js"),__vite__mapDeps([1560,1,2]))),RMe=A.lazy(()=>B(()=>import("./ComercialScriptsHubPage-CWSjwxgS.js"),__vite__mapDeps([1561,1,2]))),MMe=A.lazy(()=>B(()=>import("./ComercialEmentasPage-CHQR7O59.js"),__vite__mapDeps([1562,1,2,1017,833,89,452,67,1009,305,547,558,559,972,819,817,396,818,368,377,55,335,66]))),OMe=A.lazy(()=>B(()=>import("./ComercialConversoesPage-Dg0Jh0ft.js"),__vite__mapDeps([1563,1,2,1564,652,354,563,547,1083,168,67,871]))),UMe=A.lazy(()=>B(()=>import("./ComercialPropostasB2BDashboard-DTuYqn5y.js"),__vite__mapDeps([1565,1,2,124,413,1271,483,42]))),QMe=A.lazy(()=>B(()=>import("./ComercialAprendizadoPage-CZFxup2_.js"),__vite__mapDeps([1566,1,2]))),VMe=A.lazy(()=>B(()=>import("./ComercialFaqPage-KKVN7QDW.js"),__vite__mapDeps([1567,1,2,1496,23]))),HMe=A.lazy(()=>B(()=>import("./ComercialCloserPage-BAl4QQaR.js"),__vite__mapDeps([1568,1,2,1118,554,1108,849,741,89,189,247,850,851,413,1109,1112,100,1113,363,862,67,377,863,292,103,349,416,42,483]))),zMe=A.lazy(()=>B(()=>import("./Auditor360Page-rsaGwTl0.js"),__vite__mapDeps([1569,1,2,788,66,67,1570,377,124,783,784]))),$Me=A.lazy(()=>B(()=>import("./MeuPerformanceReviewPage-CX3mjXmX.js"),__vite__mapDeps([1571,1,2,788,66,1570]))),qMe=A.lazy(()=>B(()=>import("./CentralPropostasPage-BwVX5OcN.js"),__vite__mapDeps([1572,1,2,413,42,355]))),KMe=A.lazy(()=>B(()=>import("./ComercialAprovacoesPage-BHAFA2P3.js"),__vite__mapDeps([1573,1,2,1284,327]))),GMe=A.lazy(()=>B(()=>import("./ComercialAcoesPage-DOwHYstB.js"),__vite__mapDeps([1574,1,2,67,377,1538,746]))),WMe=A.lazy(()=>B(()=>
1620import("./AcceptanceCenterPage-DQBgE4u_.js"),__vite__mapDeps([1575,1,2,67,1544,1527,102,304,1545,66,141,358]))),YMe=A.lazy(()=>B(()=>import("./LeadQualificacaoPage-oe_7AWNz.js"),__vite__mapDeps([1107,1,2,23,836,811,228,345,377,247,862,849,741,89,189,850,554,851,413,67,863,292,103,349,100,416,42,483,307,370,813,814,815,816,817,396,818,783,784,819,820,821,102,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,11,76,261,279,243,54,837,1108,559,1109,1110,1111,62,162,363,1112,1113,562,838,839,161,840,71,841,842,843,844,209,845,846,847,348,178,1114,881,202,1115]))),XMe=A.lazy(()=>B(()=>import("./ScriptsSapPlaybook2026-CyD1-dLG.js"),__vite__mapDeps([1576,1,2,452,453]))),ZMe=A.lazy(()=>B(()=>import("./LiveChat-CQ55vuf7.js"),__vite__mapDeps([804,1,2,452,805,242,558,559,547,557,55,137,103,283,102,806,67,377,807,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,561,252,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,349,100,42,483,864,744,563,567,305,346,364,865,265]))),JMe=A.lazy(()=>B(()=>import("./CrmV2Pipeline-BuLR8qJ6.js"),__vite__mapDeps([1577,1,2,1268,432,1254,23,67,261,604,1578,114,179,338,79,162,247]))),eOe=A.lazy(()=>B(()=>import("./CrmV2FunnelMetricsPage-Bb39gy9g.js"),__vite__mapDeps([1579,1,2,1578,114,197,427,428,435,430,431,432,436,437]))),EF=A.lazy(()=>B(()=>import("./FollowUpPage-f4qpJa2j.js"),__vite__mapDeps([1580,1,2,452,849,741,89,189,247,850,554,851,413,1277,286,292,253,604,1109,291,142,320,67,377,261,300,299,1078,168,1079,863,202,349,55,1272,345]))),tOe=A.lazy(()=>B(()=>import("./ComercialPlanejamentoPage-BNgivYhF.js"),__vite__mapDeps([1581,1,2]))),rOe=A.lazy(()=>B(()=>import("./DailySalesManagerPage-BtbqjBNF.js"),__vite__mapDeps([1582,1,2,67,124,268,267]))),nOe=A.lazy(()=>B(()=>import("./GuardiaoAtendimentoPage-EbUhliws.js"),__vite__mapDeps([1583,1,2,124,788,1543,806,67,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364,874,1340,133]))),aOe=A.lazy(()=>B(()=>import("./SalesCommandCenter-tLIqVvMv.js"),__vite__mapDeps([1584,1,2,67,806,377,807,558,559,808,307,213,168,303,809,114,542,810,162,202,338,105,560,66,556,557,561,252,102,215,416,187,811,23,228,345,247,363,62,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,163,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,161,840,71,841,842,843,844,209,845,846,847,348,178,555,562,365,171,350,351,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364,362,164,742,1122,1585]))),sOe=A.lazy(()=>B(()=>import("./MeuDiaPage-4DWkocxw.js"),__vite__mapDeps([1586,1,2,66,788,874,1543,1542,564,704,1201,1059,163,555,377,62,67,338,556,557,558,559,560,303,307,561,252,102,562,365,162,161,171,247,350,351,416,806,807,808,213,168,809,114,542,810,202,105,215,187,811,23,228,345,363,812,269,310,316,261,11,813,814,815,816,817,396,818,783,784,819,820,821,233,302,110,181,445,446,99,203,693,694,242,249,388,387,389,822,313,823,373,824,825,826,827,828,829,830,831,394,570,368,273,287,832,833,834,614,835,216,152,76,279,243,54,836,837,838,413,839,840,71,841,842,843,844,209,845,846,847,348,178,848,309,849,741,89,189,850,554,851,852,318,853,854,606,855,856,857,469,858,124,360,218,142,859,775,24,25,26,860,312,311,861,862,863,292,103,349,100,42,483,864,744,563,567,305,346,364,545,546,547,548,549,133,265,214])));function oOe(){const{salesTeamMember:e,isAdmin:t}=A9();return t||e?.role==="gestor"?a.jsx(Me,{to:"/comercial/command-center",replace:!0}):e?a.jsx(Me,{to:"/comercial/meu-dia",replace:!0}):a.jsx(Me,{to:"/comercial/dashboard",replace:!0})}function iOe(){return a.jsxs(_,{path:"/comercial",element:a.jsx(xMe,{}),children:[a.jsx(_,{index:!0,element:a.jsx(oOe,{})}),a.jsx(_,{path:"dashboard",element:a.jsx(vMe,{})}),a.jsx(_,{path:"cockpit",element:a.jsx(yMe,{})}),a.jsx(_,{path:"leads",element:a.jsx(FMe,{})}),a.jsx(_,{path:"leads/closer",element:a.jsx(HMe,{})}),a.jsx(_,{path:"fila",element:a.jsx(Me,{to:"/comercial/aceites",replace:!0})}),a.jsx(_,{path:"aceites",element:a.jsx(WMe,{})}),a.jsx(_,{path:"acoes",element:a.jsx(GMe,{})}),a.jsx(_,{path:"leads/qualificacao",element:a.jsx(YMe,{})}),a.jsx(_,{path:"links",element:a.jsx(bMe,{})}),a.jsx(_,{path:"pedidos",element:a.jsx(wMe,{})}),a.jsx(_,{path:"pipeline",element:a.jsx(JMe,{})}),a.jsx(_,{path:"pipeline/indicadores",element:a.jsx(eOe,{})}),a.jsx(_,{path:"empresas",element:a.jsx(PMe,{})}),a.jsx(_,{path:"turmas",element:a.jsx(LMe,{})}),a.jsx(_,{path:"playbook",element:a.jsx(DMe,{})}),a.jsx(_,{path:"playbook-comercial",element:a.jsx(Me,{to:"/comercial/playbook",replace:!0})}),a.jsx(_,{path:"playbook-t360",element:a.jsx(Me,{to:"/comercial/playbook",replace:!0})}),a.jsx(_,{path:"scripts",element:a.jsx(RMe,{})}),a.jsx(_,{path:"agendamentos",element:a.jsx(_Me,{})}),a.jsx(_,{path:"propostas",element:a.jsx(EMe,{})}),a.jsx(_,{path:"central-propostas",element:a.jsx(Gl,{children:a.jsx(qMe,{})})}),a.jsx(_,{path:"aprovacoes",element:a.jsx(KMe,{})}),a.jsx(_,{path:"propostas/wizard",element:a.jsx(NMe,{})}),a.jsx(_,{path:"propostas/pj/nova",element:a.jsx(SMe,{})}),a.jsx(_,{path:"propostas/nova-v4",element:a.jsx(kMe,{})}),a.jsx(_,{path:"propostas/:id",element:a.jsx(BMe,{portal:"comercial"})}),a.jsx(_,{path:"catalogo",element:a.jsx(jMe,{})}),a.jsx(_,{path:"sdr-dashboard",element:a.jsx(Gl,{children:a.jsx(IMe,{})})}),a.jsx(_,{path:"marketing-performance",element:a.jsx(Gl,{children:a.jsx(TMe,{})})}),a.jsx(_,{path:"ementas",element:a.jsx(MMe,{})}),a.jsx(_,{path:"conversoes",element:a.jsx(OMe,{})}),a.jsx(_,{path:"propostas-b2b",element:a.jsx(Gl,{children:a.jsx(UMe,{})})}),a.jsx(_,{path:"aprendizado",element:a.jsx(QMe,{})}),a.jsx(_,{path:"calendar",element:a.jsx(Me,{to:"/comercial/agendamentos?tab=calendario",replace:!0})}),a.jsx(_,{path:"faq",element:a.jsx(VMe,{})}),a.jsx(_,{path:"scripts-sap-2026",element:a.jsx(XMe,{})}),a.jsx(_,{path:"live-chat",element:a.jsx(Gl,{children:a.jsx(ZMe,{})})}),a.jsx(_,{path:"follow-up",element:a.jsx(EF,{})}),a.jsx(_,{path:"follow-up/:itemId",element:a.jsx(EF,{})}),a.jsx(_,{path:"planejamento",element:a.jsx(Gl,{children:a.jsx(tOe,{})})}),a.jsx(_,{path:"daily-manager",element:a.jsx(rOe,{})}),a.jsx(_,{path:"guardiao",element:a.jsx(nOe,{})}),a.jsx(_,{path:"command-center",element:a.jsx(aOe,{})}),a.jsx(_,{path:"meu-dia",element:a.jsx(sOe,{})}),a.jsx(_,{path:"auditor-360",element:a.jsx(Gl,{children:a.jsx(zMe,{})})}),a.jsx(_,{path:"meu-performance-review",element:a.jsx($Me,{})}),a.jsx(_,{path:"admin",element:a.jsx(Gl,{children:a.jsx(CMe,{})})})]})}const lOe=[{key:"leads",label:"Leads & CRM",icon:"Users",permissions:[{key:"can_view_own_leads",label:"Ver próprios leads",description:"Visualizar leads atribuÃdos a si mesmo",group:"leads"},{key:"can_view_all_leads",label:"Ver todos os leads",description:"Visualizar todos os leads do sistema",group:"leads"},{key:"can_edit_leads",label:"Editar leads",description:"Editar informações de leads",group:"leads"},{key:"can_delete_leads",label:"Excluir leads",description:"Remover leads do sistema",group:"leads"},{key:"can_manage_auto_call",label:"Ligação automática",description:"Configurar regras de ligação automática para leads",group:"leads"}]},{key:"orders",label:"Pedidos & Financeiro",icon:"ShoppingCart",permissions:[{key:"can_view_own_orders",label:"Ver próprios pedidos",description:"Visualizar pedidos próprios",group:"orders"},{key:"can_view_all_orders",label:"Ver todos os pedidos",description:"Visualizar todos os pedidos",group:"orders"},{key:"can_create_orders",label:"Criar pedidos",description:"Criar novos pedidos",group:"orders"},{key:"can_edit_orders",label:"Editar pedidos",description:"Editar pedidos existentes",group:"orders"},{key:"can_view_financial",label:"Ver financeiro",description:"Acessar dados financeiros",group:"orders"},{key:"can_manage_payments",label:"Gerenciar pagamentos",description:"Processar e gerenciar pagamentos",group:"orders"},{key:"can_create_payment_links",label:"Criar links de pagamento",description:"Gerar links de pagamento",group:"orders"},{key:"can_view_all_payment_links",label:"Ver todos os links",de
1620scription:"Visualizar todos os links de pagamento",group:"orders"},{key:"can_create_retroactive_orders",label:"Pedidos retroativos",description:"Alterar data de criação de pedidos",group:"orders"}]},{key:"dashboards",label:"Dashboards & Relatórios",icon:"BarChart3",permissions:[{key:"can_view_sales_dashboard",label:"Ver dashboard de vendas",description:"Acessar dashboard comercial",group:"dashboards"},{key:"can_view_full_analytics",label:"Ver analytics completo",description:"Acessar relatórios detalhados",group:"dashboards"},{key:"can_view_commissions",label:"Ver comissões",description:"Visualizar comissões e bonificações",group:"dashboards"},{key:"can_export_data",label:"Exportar dados",description:"Exportar relatórios e dados",group:"dashboards"}]},{key:"team",label:"Gestão de Equipe",icon:"UserCog",permissions:[{key:"can_manage_team",label:"Gerenciar equipe",description:"Administrar membros da equipe",group:"team"},{key:"can_configure_goals",label:"Configurar metas",description:"Definir metas e objetivos",group:"team"},{key:"can_manage_schedules",label:"Gerenciar agendas",description:"Administrar horários e agendamentos",group:"team"},{key:"can_view_team_metrics",label:"Ver métricas da equipe",description:"Acessar métricas de desempenho",group:"team"}]},{key:"hr",label:"RH & Pessoas",icon:"Briefcase",permissions:[{key:"can_manage_employees",label:"Gerenciar funcionários",description:"Administrar cadastro de funcionários",group:"hr"},{key:"can_view_payroll",label:"Ver folha de pagamento",description:"Acessar dados de folha",group:"hr"},{key:"can_manage_benefits",label:"Gerenciar benefÃcios",description:"Administrar benefÃcios",group:"hr"},{key:"can_access_hr_reports",label:"Relatórios de RH",description:"Acessar relatórios de RH",group:"hr"}]},{key:"it",label:"Suporte & TI",icon:"Monitor",permissions:[{key:"can_access_support_tickets",label:"Acessar tickets",description:"Ver e gerenciar tickets de suporte",group:"it"},{key:"can_manage_it_assets",label:"Gerenciar ativos de TI",description:"Administrar equipamentos",group:"it"},{key:"can_manage_software",label:"Gerenciar software",description:"Administrar licenças e software",group:"it"},{key:"can_view_it_reports",label:"Relatórios de TI",description:"Acessar relatórios técnicos",group:"it"}]},{key:"academic",label:"Acadêmico",icon:"GraduationCap",permissions:[{key:"can_manage_courses",label:"Gerenciar cursos",description:"Administrar cursos e c
1620onteúdos",group:"academic"},{key:"can_manage_cohorts",label:"Gerenciar turmas",description:"Administrar turmas e alocações",group:"academic"},{key:"can_allocate_students",label:"Alocar alunos",description:"Atribuir alunos a turmas",group:"academic"},{key:"can_issue_certificates",label:"Emitir certificados",description:"Gerar e emitir certificados",group:"academic"},{key:"can_issue_certificates_manually",label:"Emissão manual de certificados",description:"Autorizar emissão manual auditada de certificados (CERTIFICATE_MANUAL_ISSUE)",group:"academic"}]},{key:"admin_pages",label:"Páginas Admin",icon:"Layout",permissions:[{key:"can_access_admin_pedidos",label:"Acessar Pedidos",description:"Página de administração de pedidos",group:"admin_pages"},{key:"can_access_admin_payment_links",label:"Acessar Links de Pagamento",description:"Página de links de pagamento",group:"admin_pages"},{key:"can_access_admin_cohorts",label:"Acessar Turmas",description:"Página de gestão de turmas",group:"admin_pages"},{key:"can_access_admin_b2b",label:"Acessar B2B",description:"Página de vendas corporativas",group:"admin_pages"},{key:"team_pass_trial_view",label:"Trial Corporativo: visualizar",description:"Ver fila e dashboard do Trial Corporativo",group:"admin_pages"},{key:"team_pass_trial_approve",label:"Trial Corporativo: aprovar",description:"Aprovar solicitações e provisionar trial",group:"admin_pages"},{key:"team_pass_trial_reject",label:"Trial Corporativo: reprovar",description:"Reprovar solicitações de trial",group:"admin_pages"},{key:"team_pass_trial_configure",label:"Trial Corporativo: configurar",description:"Editar configuração do Trial Corporativo",group:"admin_pages"},{key:"team_pass_trial_edit_templates",label:"Trial Corporativo: e-mails",description:"Selecionar templates de e-mail do trial",group:"admin_pages"},{key:"team_pass_trial_grant",label:"Trial Corporativo: conceder acesso",description:"Provisionar usuários do trial corporativo",group:"admin_pages"}]}],n7e=[{path:"/admin",label:"Dashboard Principal",category:"Dashboards"},{path:"/admin/dashboard",label:"Dashboard",category:"Dashboards"},{path:"/admin/central-operacional",label:"Central Operacional",category:"Operações"},{path:"/admin/dashboard/customize",label:"Customizar Dashboard",category:"Dashboards"},{path:"/admin/executivo",label:"Dashboard Executivo",category:"Dashboards"},{path:"/admin/war-room",label:"War Room",category:"Dashboards"},{path:"/admin/data-brain",label:"Data Brain",category:"Dashboards"},{path:"/admin/gamificacao-vendas",label:"Gamificação Vendas",category:"Comercial"},{path:"/admin/lideranca",label:"Dashboard Liderança",category:"Dashboards"},{path:"/admin/sales-dashboard",label:"Dashboard Vendas",category:"Dashboards"},{path:"/admin/comercial/reconciliacao",label:"Reconciliação Comercial 360",category:"CRM & Vendas",requiredPermission:"can_view_sales_dashboard"},{path:"/admin/financeiro",label:"Dashboard Financeiro",category:"Dashboards"},{path:"/admin/interactive-sales",label:"Dashboard Interativo",category:"Dashboards"},{path:"/admin/ti-dashboard",label:"Dashboard TI",category:"Dashboards"},{path:"/admin/analytics",label:"Analytics",category:"Dashboards"},{path:"/admin/dashboards",label:"Central de Dashboards",category:"Dashboards"},{path:"/admin/platform-usage",label:"Uso da Plataforma",category:"Dashboards"},{path:"/admin/mood-dashboard",label:"Humor da Equipe",category:"Dashboards"},{path:"/admin/intelligence-dashboard",label:"Dashboard Inteligência",category:"Dashboards"},{path:"/admin/intelligence",label:"Inteligência",category:"Dashboards"},{path:"/admin/categories",label:"Categorias",category:"Acadêmico"},{path:"/admin/courses",label:"Cursos",category:"Acadêmico"},{path:"/admin/courses/new",label:"Novo Curso",category:"Acadêmico"},{path:"/admin/course-settings",label:"Config. Cursos",category:"Acadêmico"},{path:"/admin/syllabuses",label:"Ementas",category:"Acadêmico"},{path:"/admin/import-courses",label:"Importar Cursos",category:"Acadêmico"},{path:"/admin/cohorts",label:"Turmas",category:"Acadêmico",requiredPermission:"can_access_admin_cohorts"},{path:"/admin/academic-delivery",label:"Academic Delivery Engine (Operação de Turmas)",category:"Acadêmico",requiredPermission:"can_manage_cohorts"},{path:"/admin/cohorts/new",label:"Nova Turma",category:"Acadêmico"},{path:"/admin/cohort-enrollments",label:"MatrÃculas Turmas",category:"Acadêmico"},{path:"/admin/instructors",label:"Instrutores",category:"Acadêmico"},{path:"/admin/instructor-management",label:"Gestão Instrutores",category:"Acadêmico"},{path:"/admin/instructor-offers",label:"Ofertas Instrutores",category:"Acadêmico"},{path:"/admin/instructor-offer-config",label:"Config. Ofertas Instrutores",category:"Acadêmico"},{path:"/admin/formations",label:"Formações",category:"Acadêmico"},{path:"/admin/formations/new",label:"Nova Formação",category:"Acadêmico"},{path:"/admin/learning-paths",label:"Trilhas de Aprendizagem",category:"Acadêmico"},{path:"/admin/certificacoes",label:"Certificações Mercado",category:"Acadêmico"},{path:"/admin/certification-sales",label:"Vendas Certificações",category:"Acadêmico"},{path:"/admin/manual-certificate-issuances",label:"Emissões Manuais de Certificados",category:"Acadêmico",requiredPermission:"can_issue_certificates_manually"},{path:"/admin/manual-certificates",label:"Emissão Manual de Certificados (Unitária/Turma/Lote)",category:"Acadêmico",requiredPermission:"can_issue_certificates_manually"},{path:"/admin/manual-attendance",label:"Presença Manual",category:"Acadêmico"},{path:"/admin/certificates",label:"Certificados",category:"Acadêmico"},{path:"/admin/certificates-manager",label:"Gestor Certificados",category:"Acadêmico"},{path:"/admin/live-sessions",label:"Aulas ao Vivo",category:"Acadêmico"},{path:"/admin/live-sessions/new",label:"Nova Aula ao Vivo",category:"Acadêmico"},{path:"/admin/recorded-sessions",label:"Aulas Gravadas",category:"Acadêmico"},{path:"/admin/digital-courses",label:"Cursos Digitais",category:"Acadêmico"},{path:"/admin/exercises-center",label:"Central de ExercÃcios",category:"Acadêmico"},{path:"/admin/quiz-manager",label:"Quiz Manager",category:"Acadêmico"},{path:"/admin/student-center",label:"Central do Aluno",category:"Acadêmico"},{path:"/admin/materials",label:"Materiais",category:"Acadêmico"},{path:"/admin/central-pdfs",label:"Central PDFs",category:"Acadêmico"},{path:"/admin/attendance",label:"Presença",category:"Acadêmico"},{path:"/admin/attendance-report",label:"Relatório Presença",category:"Acadêmico"},{path:"/admin/free-courses",label:"Cursos Gratuitos",category:"Acadêmico"},{path:"/admin/resumes",label:"CurrÃculos",category:"Acadêmico"},{path:"/admin/formats-config",label:"Config. Formatos",category:"Acadêmico"},{path:"/admin/cohort-fields-config",label:"Config. Campos Turma",category:"Acadêmico"},{path:"/admin/process-enrollments",label:"Processar MatrÃculas",category:"Acadêmico"},{path:"/admin/student-360",label:"Gestão de Alunos 360",category:"Acadêmico"},{path:"/admin/ai-track-calendar",label:"Calendário IA Trilhas",category:"Acadêmico"},{path:"/admin/student-onboarding-config",label:"Config. Onboarding Aluno",category:"Acadêmico"},{path:"/admin/student-offers",label:"Ofertas Alunos",category:"Acadêmico"},{path:"/admin/leads",label:"Leads",category:"CRM & Vendas"},{path:"/admin/leads/duplicatas",label:"Leads Duplicados",category:"CRM & Vendas"},{path:"/admin/lead-tags",label:"Tags de Leads",category:"CRM & Vendas"},{path:"/admin/leads-dashboard",label:"Dashboard Leads",category:"CRM & Vendas"},{path:"/admin/leads-settings",label:"Config. Leads",category:"CRM & Vendas"},{path:"/admin/priority-leads",label:"Leads Prioritários",category:"CRM & Vendas"},{path:"/admin/priority-config",label:"Config. Prioridade",category:"CRM & Vendas"},{path:"/admin/pipeline",label:"Pipeline",category:"CRM & Vendas"},{path:"/admin/pipeline-settings",label:"Config. Pipeline",category:"CRM & Vendas"},{path:"/admin/crm",label:"CRM",category:"CRM & Vendas"},{path:"/admin/crm/comercial",label:"CRM Comercial",category:"CRM & Vendas"},{path:"/admin/crm/operacional",label:"CRM Operacional",category:"CRM & Vendas"},{path:"/admin/crm-contatos",label:"Contatos CRM",category:"CRM & Vendas"},{path:"/admin/crm-companies",label:"Empresas CRM",category:"CRM & Vendas"},{path:"/admin/clientes",label:"Clientes",category:"CRM & Vendas"},{path:"/admin/sales-team",label:"Equipe Comercial",category:"CRM & Vendas"},{path:"/admin/sales-playbook",label:"Playbook de Vendas",category:"CRM & Vendas"},{path:"/admin/sales-learning",label:"Aprendizagem Vendas",category:"CRM & Vendas"},{path:"/admin/sales-calculator",label:"Calculadora FSS",category:"CRM & Vendas"},{path:"/admin/sales-ranking-live",label:"Ranking ao Vivo",category:"CRM & Vendas"},{path:"/admin/sales-ecosystem",label:"Ecossistema Vendas",category:"CRM & Vendas"},{path:"/admin/billing-simulator",label:"Simulador Faturamento",category:"CRM & Vendas"},{path:"/admin/callpage-leads",label:"Leads CallPage",category:"CRM & Vendas"},{path:"/admin/atendimentos",label:"Atendimentos",category:"CRM & Vendas"},{path:"/admin/productivity-report",label:"Relatório Produtivida
1620de",category:"CRM & Vendas"},{path:"/admin/propostas",label:"Propostas",category:"CRM & Vendas"},{path:"/admin/minha-fila",label:"Minha Fila",category:"CRM & Vendas"},{path:"/admin/power-dialer",label:"Power Dialer",category:"CRM & Vendas"},{path:"/admin/funnel-builder",label:"Funil Builder",category:"CRM & Vendas"},{path:"/admin/closing-toolkit",label:"Toolkit Fechamento",category:"CRM & Vendas"},{path:"/admin/prospeccao",label:"Prospecção",category:"CRM & Vendas"},{path:"/admin/leads/prospects",label:"Prospecção Outbound",category:"CRM & Vendas"},{path:"/admin/data-verification",label:"Verificação de Dados",category:"CRM & Vendas"},{path:"/admin/vendedor",label:"Dashboard Vendedor",category:"CRM & Vendas"},{path:"/admin/comercial",label:"Dashboard Comercial",category:"CRM & Vendas"},{path:"/admin/metas",label:"Metas",category:"CRM & Vendas"},{path:"/admin/kommo",label:"Central Kommo",category:"CRM & Vendas"},{path:"/admin/kommo-sync-control",label:"Kommo Sync Control Center",category:"CRM & Vendas"},{path:"/admin/kommo-analytics",label:"Analytics Kommo",category:"CRM & Vendas"},{path:"/admin/kommo-sellers",label:"Vendedores Kommo",category:"CRM & Vendas"},{path:"/admin/kommo-pipelines",label:"Pipelines Kommo",category:"CRM & Vendas"},{path:"/admin/kommo-migration",label:"Migração Kommo",category:"CRM & Vendas"},{path:"/admin/live-chat",label:"Chat ao Vivo",category:"Comunicação"},{path:"/admin/inbox",label:"Inbox",category:"Comunicação"},{path:"/admin/whatsapp-sms",label:"WhatsApp/SMS",category:"Comunicação"},{path:"/admin/empresas",label:"Empresas",category:"B2B & Corporativo"},{path:"/admin/empresas-dashboard",label:"Dashboard Empresas",category:"B2B & Corporativo"},{path:"/admin/empresas-b2b",label:"Vendas B2B",category:"B2B & Corporativo",requiredPermission:"can_access_admin_b2b"},{path:"/admin/competitor-center",label:"Central de Concorrentes",category:"B2B & Corporativo"},{path:"/admin/partner-companies",label:"Empresas Parceiras",category:"B2B & Corporativo"},{path:"/admin/corporate-subscriptions",label:"Assinaturas Corporativas",category:"B2B & Corporativo"},{path:"/admin/corporate-subscriptions-config",label:"Config. Assinaturas Corp.",category:"B2B & Corporativo"},{path:"/admin/team-pass",label:"Team Pass",category:"B2B & Corporativo"},{path:"/admin/implantacoes",label:"Implantações TeamPass",category:"B2B & Corporativo"},{path:"/admin/team-pass/approvals",label:"Trial Corporativo · Aprovações",category:"B2B & Corporativo"},{path:"/admin/team-pass/config",label:"Trial Corporativo · Configuração",category:"B2B & Corporativo"},{path:"/admin/team-pass/dashboard",label:"Trial Corporativo · Dashboard",category:"B2B & Corporativo"},{path:"/admin/pedidos",label:"Pedidos",category:"Financeiro",requiredPermission:"can_access_admin_pedidos"},{path:"/admin/payment-links",label:"Links de Pagamento",category:"Financeiro",requiredPermission:"can_access_admin_payment_links"},{path:"/admin/payment-link-requests",label:"Solicitações Links",category:"Financeiro"},{path:"/admin/payment-config",label:"Config. Pagamento",category:"Financeiro"},{path:"/admin/payment-reminder-config",label:"Config. Lembretes Pagamento",category:"Financeiro"},{path:"/admin/cupons",label:"Cupons",category:"Financeiro"},{path:"/admin/contracts",label:"Contratos",category:"Financeiro"},{path:"/admin/contract-clauses",label:"Cláusulas Contratos",category:"Financeiro"},{path:"/admin/contract-templates",label:"Templates Contratos",category:"Financeiro"},{path:"/admin/commissions",label:"Comissões",category:"Financeiro"},{path:"/admin/affiliates",label:"Afiliados",category:"Financeiro"},{path:"/admin/suppliers",label:"Fornecedores",category:"Financeiro"},{path:"/admin/accounts-payable",label:"Contas a Pagar",category:"Financeiro"},{path:"/admin/accounts-receivable",label:"Contas a Receber",category:"Financeiro"},{path:"/admin/cost-centers",label:"Centros de Custo",category:"Financeiro"},{path:"/admin/chart-of-accounts",label:"Plano de Contas",category:"Financeiro"},{path:"/admin/cashflow-dashboard",label:"Fluxo de Caixa",category:"Financeiro"},{path:"/admin/cashflow-center",label:"Central de Caixa",category:"Financeiro"},{path:"/admin/dre-config",label:"Config. DRE",category:"Financeiro"},{path:"/admin/exchange-rates",label:"Taxas de Câmbio",category:"Financeiro"},{path:"/admin/price-campaigns",label:"Campanhas de Preço",category:"Financeiro"},{path:"/admin/flash-sales",label:"Flash Sales",category:"Financeiro"},{path:"/admin/bundle-tiers",label:"Pacotes/Tiers",category:"Financeiro"},{path:"/admin/vip-pricing",label:"Preços VIP",category:"Financeiro"},{path:"/admin/subscriptions",label:"Assinaturas",category:"MasterTech"},{path:"/admin/subscription-management",label:"Gestão Assinaturas",category:"MasterTech"},{path:"/admin/mastertech-config",label:"Config. MasterTech",category:"MasterTech"},{path:"/admin/mastertech-enrollments",label:"Agendamento Alunos Online",category:"Acadêmico"},{path:"/admin/mastertech-users",label:"Usuários MasterTech",category:"MasterTech"},{path:"/admin/mastertech-dashboard",label:"Dashboard MasterTech",category:"MasterTech"},{path:"/admin/marketing",label:"Marketing Hub",category:"Marketing"},{path:"/admin/marketing/campaigns",label:"Campanhas Marketing",category:"Marketing"},{path:"/admin/marketing/criativos-ads",label:"Criativos Ads",category:"Marketing"},{path:"/admin/marketing/meta-ads-analytics",label:"Meta Ads Analytics",category:"Marketing"},{path:"/admin/marketing/creative-studio",label:"Creative Studio IA",category:"Marketing"},{path:"/admin/marketing/content-studio",label:"Content Studio",category:"Marketing"},{path:"/admin/marketing/campaign-planner",label:"Planejador Campanhas",category:"Marketing"},{path:"/admin/marketing/marketing-calendar",label:"Calendário Marketing",category:"Marketing"},{path:"/admin/marketing/product-feed",label:"Feed Produtos XML",category:"Marketing"},{path:"/admin/marketing/strategic-plan",label:"Plano Estratégico",category:"Marketing"},{path:"/admin/marketing/investimentos",label:"Investimentos",category:"Marketing"},{path:"/admin/marketing/analise-funil",label:"Análise Funil 60d",category:"Marketing"},{path:"/admin/marketing/lead-reconciliation",label:"Reconciliação Leads",category:"Marketing"},{path:"/admin/marketing/performance-report",label:"Relatório Performance",category:"Marketing"},{path:"/admin/marketing/auditoria-conversoes",label:"Auditoria Conversões",category:"Marketing"},{path:"/admin/email-marketing",label:"Email Marketing",category:"Marketing"},{path:"/admin/campaigns",label:"Campanhas Ads",category:"Marketing"},{path:"/admin/landing-pages",label:"Landing Pages",category:"Marketing"},{path:"/admin/mobile-experience",label:"Experiência Mobile (modelos)",category:"Marketing"},{path:"/admin/mobile-experience-manager",label:"Experiência Mobile (cockpit)",category:"Marketing"},{path:"/admin/traffic-manager",label:"Gestor de Tráfego",category:"Marketing"},{path:"/admin/traffic-audit",label:"Auditoria Traffic Manager",category:"Marketing"},{path:"/admin/blog",label:"Blog",category:"Marketing"},{path:"/admin/popup-manager",label:"Popup Manager",category:"Marketing"},{path:"/admin/popup-center",label:"Central de Popups",category:"Marketing"},{path:"/admin/testimonials",label:"Depoimentos",category:"Marketing"},{path:"/admin/labels",label:"Labels",category:"Marketing"},{path:"/admin/category-keywords",label:"Palavras-chave Categorias",category:"Marketing"},{path:"/admin/upsells",label:"Upsells",category:"Marketing"},{path:"/admin/upsell-config",label:"Config. Upsells",category:"Marketing"},{path:"/admin/atribuicao",label:"Atribuição Conversão",category:"Marketing"},{path:"/admin/tracking-scripts",label:"Scripts Tracking",category:"Marketing"},{path:"/admin/forms-ctas",label:"Forms & CTAs",category:"Marketing"},{path:"/admin/empresas-atendidas",label:"Empresas Atendidas (página)",category:"Marketing"},{path:"/admin/casos-corporativos",label:"Casos Corporativos",category:"Marketing"},{path:"/admin/carrosseis",label:"Carrosseis",category:"Marketing"},{path:"/admin/form-manager",label:"Gestor Formulários",category:"Marketing"},{path:"/admin/form-configs",label:"Config. Formulários",category:"Marketing"},{path:"/admin/black-friday",label:"Black Friday",category:"Black Friday"},{path:"/admin/black-friday-analytics",label:"Analytics Black Friday",category:"Black Friday"},{path:"/admin/black-friday-config",label:"Config. Black Friday",category:"Black Friday"},{path:"/admin/wheel-prizes",label:"Roleta de Prêmios",category:"Black Friday"},{path:"/admin/employees",label:"Funcionários",category:"RH & Funcionários"},{path:"/admin/employee-activities",label:"Atividades Funcionários",category:"RH & Funcionários"},{path:"/admin/employee-payroll",label:"Folha de Pagamento",category:"RH & Funcionários"},{path:"/admin/time-clock-settings",label:"Config. Ponto",category:"RH & Funcionários"},{path:"/admin/time-clock-reports",label:"Relatórios Ponto",category:"RH & Funcionários"},{path:"/admin/hr-settings",label:"Config. RH",category:"RH & Funcionários"},{path:"/admin/avaliacoes-dashboard",label:"Dashboard Avaliações",category:"RH & Funcionários"},{path:"/admin/gestao-interna",label:"Gestão Interna",category:"RH & Funcionários"},{path:"/admin/recruitment",label:"Recrutamento",category:"RH & Funcionários"},{path:"/admin/jobs",label:"Vagas",category:"Vagas & Carreiras"},{path:"/admin/job-engine",label:"Motor de Vagas",category:"Vagas & Carreiras"},{path:"/admin/talent-acquisition",label:"Aquisição de Talentos",category:"Vagas & Carreiras"},{path:"/admin/ai-agent",label:"Agente de IA",category:"IA & Inteligência"},{path:"/admin/ai-knowledge",label:"Base de Conhecimento IA",category:"IA & Inteligência"},{path:"/admin/ai-prompts",label:"Prompts IA",category:"IA & Inteligência"},{path:"/admin/ai-usage",label:"Uso de IA",category:"IA & Inteligência"},{path:"/admin/ai-functions",label:"Funções IA",category:"IA & Inteligência"},{path:"/admin/internal-agent",label:"Agente Interno",category:"IA & Inteligência"},{path:"/admin/notebooklm",label:"NotebookLM",category:"IA & Inteligência"},{path:"/admin/idea-hub",label:"Central de Ideias",category:"IA & Inteligência"},{path:"/admin/knowledge-pills",label:"PÃlulas de Conhecimento",category:"IA & Inteligência"},{path:"/admin/bulk-ai",label:"Geração IA em Massa",category:"IA & Inteligência"},{path:"/admin/batch-generate",label:"Gerar Conteúdo Lote",category:"IA & Inteligência"},{path:"/admin/batch-generator",label:"Gerador em Lote",category:"IA & Inteligência"},{path:"/admin/tutor-config",label:"Config. Tutor IA",category:"IA & Inteligência"},{path:"/admin/users",label:"Usuários",category:"Usuários"},{path:"/admin/user-roles",label:"Roles de Usuários",category:"Usuários"},{path:"/admin/permissions",label:"Central de Permissões",category:"Usuários"},{path:"/admin/access-control",label:"Controle de Acesso",category:"Usuários"},{path:"/admin/scheduling-appointments",label:"Central de Agendamentos",category:"Agendamento"},{path:"/admin/automations",label:"Central de Automações",category:"Automações"},{path:"/admin/automation-send-report",label:"Relatório Envios",category:"Automações"},{path:"/admin/templates-hub",label:"Hub de Templates",category:"Templates"},{path:"/admin/proposal-templates",label:"Templates Propostas",category:"Templates"},{path:"/admin/templates-condicoes-comerciais",label:"Condições Comerciais",category:"Templates"},{path:"/admin/system-messages",label:"Mensagens do Sistema",category:"Templates"},{path:"/admin/visual-templates",label:"Templates Visuais",category:"Templates"},{path:"/admin/settings",label:"Configurações",category:"Configurações"},{path:"/admin/company-settings",label:"Dados da Empresa",category:"Configurações"},{path:"/admin/integrations",label:"Integrações",category:"Configurações"}
1620,{path:"/admin/timezone-settings",label:"Config. Fuso Horário",category:"Configurações"},{path:"/admin/whatsapp-config",label:"Config. WhatsApp",category:"Configurações"},{path:"/admin/page-manager",label:"Gestor de Páginas",category:"Configurações"},{path:"/admin/page-layout-config",label:"Layout de Páginas",category:"Configurações"},{path:"/admin/top-menu",label:"Menu Superior",category:"Configurações"},{path:"/admin/action-bar-config",label:"Barra de Ações",category:"Configurações"},{path:"/admin/layout-center",label:"Central de Layout",category:"Configurações"},{path:"/admin/media-center",label:"Central de MÃdia",category:"MÃdia & Conteúdo"},{path:"/admin/product-center",label:"Central de Produtos",category:"MÃdia & Conteúdo"},{path:"/admin/youtube-crud",label:"YouTube CRUD",category:"MÃdia & Conteúdo"},{path:"/admin/support-tickets",label:"Tickets de Suporte",category:"Suporte & TI"},{path:"/admin/support-monitoring",label:"Monitoramento Support 360",category:"Suporte & TI"},{path:"/admin/support-ticket-config",label:"Config. Tickets",category:"Suporte & TI"},{path:"/admin/it-software",label:"Software TI",category:"Suporte & TI"},{path:"/admin/it-assets",label:"Ativos de TI",category:"Suporte & TI"},{path:"/admin/it-services",label:"Serviços TI",category:"Suporte & TI"},{path:"/admin/activity-logs",label:"Logs de Atividades",category:"Sistema"},{path:"/admin/auditoria-acessos",label:"Central de Acessos e Auditoria",category:"Sistema"},{path:"/admin/platform-logs",label:"Logs da Plataforma",category:"Sistema"},{path:"/admin/audit-logs",label:"Logs de Auditoria",category:"Sistema"},{path:"/admin/security-dashboard",label:"Dashboard Segurança",category:"Sistema"},{path:"/admin/system-performance",label:"Performance do Sistema",category:"Sistema"},{path:"/admin/resource-monitor",label:"Monitor de Recursos",category:"Sistema"},{path:"/admin/backups",label:"Backups",category:"Sistema"},{path:"/admin/limpar-cache",label:"Limpar Cache",category:"Sistema"},{path:"/admin/system-mindmap",label:"Mapa do Sistema",category:"Sistema"},{path:"/admin/versoes",label:"Versões",category:"Sistema"},{path:"/admin/knowledge-center",label:"Centro de Conhecimento",category:"Sistema"},{path:"/admin/admin-manual",label:"Manual Admin",category:"Sistema"},{path:"/admin/platform-documentation",label:"Documentação",category:"Sistema"},{path:"/admin/api-documentation",label:"Documentação API",category:"Sistema"},{path:"/admin/lixeira",label:"Lixeira",category:"Sistema"},{path:"/admin/sitemap",label:"Sitemap",category:"Sistema"},{path:"/admin/sitemap-generator",label:"Gerador Sitemap",category:"Sistema"},{path:"/admin/validacao-publicacao",label:"Validação Publicação",category:"Sistema"},{path:"/admin/import",label:"Importação",category:"Sistema"},{path:"/admin/debug/tracking-test",label:"Debug Tracking",category:"Sistema"},{path:"/admin/create-trial",label:"Criar Trial",category:"Trial & Acesso"},{path:"/admin/trial-management",label:"Gestão de Trials",category:"Trial & Acesso"},{path:"/admin/basic-client-access",label:"Acesso Básico",category:"Trial & Acesso"},{path:"/admin/superadmin-panel",label:"Painel Superadmin",category:"Superadmin"}],Ob={can_view_own_leads:!0,can_view_all_leads:!1,can_edit_leads:!0,can_delete_leads:!1,can_view_own_orders:!0,can_view_all_orders:!1,can_create_orders:!1,can_edit_orders:!1,can_view_financial:!1,can_manage_payments:!1,can_create_payment_links:!1,can_view_all_payment_links:!1,can_view_sales_dashboard:!1,can_view_full_analytics:!1,can_view_commissions:!0,can_export_data:!0,can_manage_team:!1,can_configure_goals:!1,can_manage_schedules:!1,can_view_team_metrics:!1,can_manage_employees:!1,can_view_payroll:!1,can_manage_benefits:!1,can_access_hr_reports:!1,can_access_support_tickets:!1,can_manage_it_assets:!1,can_manage_software:!1,can_view_it_reports:!1,can_manage_courses:!1,can_manage_cohorts:!1,can_allocate_students:!1,can_issue_certificates:!1,can_issue_certificates_manually:!1,can_access_admin_pedidos:!1,can_access_admin_payment_links:!1,can_access_admin_cohorts:!1,can_access_admin_b2b:!1,team_pass_trial_view:!1,team_pass_trial_approve:!1,team_pass_trial_reject:!1,team_pass_trial_configure:!1,team_pass_trial_edit_templates:!1,team_pass_trial_grant:!1,can_create_retroactive_orders:!1},cOe=lOe.flatMap(e=>e.permissions.map(t=>t.key)),a7e=[{value:"vendas",label:"Vendas",color:"blue"},{value:"rh",label:"Recursos Humanos",color:"green"},{value:"ti",label:"TI",color:"purple"},{value:"financeiro",label:"Financeiro",color:"yellow"},{value:"academico",label:"Acadêmico",color:"orange"},{value:"geral",label:"Geral",color:"gray"}];function y2(e){if(!e||!e.startsWith("/")||e.startsWith("//"))return null;const t=e.split(/[?#]/,1)[0].replace(/\/+$/,"")||"/";return/[\\%\s\u0000-\u001f]/.test(t)||t.includes("//")||t.split("/").some(r=>r==="."||r==="..")?null:t}function BF(e,t){const r=y2(e);if(!r)return!1;if(t==="*")return!0;
1620if(/[?#]/.test(t))return!1;const n=t.endsWith("/*"),s=y2(n?t.slice(0,-2):t);return!s||s.includes("*")?!1:r===s?!0:(s==="/admin"||s==="/")&&!n?!1:r.startsWith(s==="/"?"/":`${s}/`)}function s7e(e,t){const r=["/admin/minha-fila","/admin/leads","/admin/atendimentos"];for(const n of[...r,...e]){if(n.includes("*")||/[?#]/.test(n))continue;const s=y2(n);if(s?.startsWith("/admin/")&&t(s))return s}return null}const uOe=cOe.reduce((e,t)=>(e[t]=!0,e),{});function dOe(){const{user:e,isAdmin:t,isSuperAdmin:r,isCompanyAdmin:n,isCompanyUser:s,rolesError:o,rolesStale:i,refreshRoles:l}=fL(),{data:c,isLoading:u,error:d}=jt({queryKey:["unified-sales-team-member",e?.id,e?.email],queryFn:async()=>{if(!e)return null;const{data:O,error:k}=await J.from("sales_team").select("id, name, role, email, user_id, phone, is_active, foto_url").eq("user_id",e.id).eq("is_active",!0).maybeSingle();if(k)throw k;if(O)return O;if(e.email){const{data:D,error:H}=await J.from("sales_team").select("id, name, role, email, user_id, phone, is_active, foto_url").eq("email",e.email).eq("is_active",!0).maybeSingle();if(H)throw H;if(D&&(!D.user_id||D.user_id===e.id))return D}return null},enabled:!!e,staleTime:60*1e3,refetchOnWindowFocus:"always",refetchOnMount:"always",refetchInterval:60*1e3}),f=A.useRef(!1);A.useEffect(()=>{f.current=!1},[e?.id]),A.useEffect(()=>{!c||!e?.id||c.user_id||f.current||(f.current=!0,J.from("sales_team").update({user_id:e.id}).eq("id",c.id).is("user_id",null).then(({error:O})=>{O?console.error("[useUnifiedPermissions] Erro ao auto-vincular user_id:",O):console.log("[useUnifiedPermissions] user_id auto-vinculado para sales_team:",c.id)}))},[c,e?.id]);const{data:h,isLoading:m,error:g,dataUpdatedAt:p,refetch:x}=jt({queryKey:["unified-permissions",e?.id,t],queryFn:async()=>{if(!e?.id)return{is_admin:!1,permissions:Ob,page_paths:[],template_id:null,template_name:null,source_breakdown:{},integrity_status:"sem_template",is_legacy_fallback:!1,override_count:0};if(t)return{is_admin:!0,permissions:uOe,page_paths:["*"],template_id:null,template_name:"Administrador",source_breakdown:{source:"admin_bypass"},integrity_status:"ok",is_legacy_fallback:!1,override_count:0};const{data:O,error:k}=await J.rpc("resolve_user_permissions",{target_user_id:e.id});if(k)throw k;if(O&&typeof O=="object"&&!Array.isArray(O)){const D=O;return{is_admin:D.is_admin||!1,permissions:D.permissions||Ob,page_paths:D.page_paths||[],template_id:D.template_id||null,template_name:D.template_name||null,source_breakdown:D.source_breakdown||{},integrity_status:D.integrity_status||"sem_template",is_legacy_fallback:D.is_legacy_fallback||!1,override_count:D.override_count||0}}throw new Error("O servidor não confirmou as permissões de acesso.")},enabled:!!e?.id,staleTime:60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:"always",refetchOnMount:"always",refetchInterval:60*1e3}),[,y]=A.useState(0);A.useEffect(()=>{if(!g||!p)return;const O=setTimeout(()=>y(k=>k+1),Math.max(0,p+l5-Date.now()));return()=>clearTimeout(O)},[g,p]);const b=!!h&&lL(g,p),j=(!o||i)&&(!g||b)&&!(h?.is_admin&&!t),C=O=>t?!0:j?h?.permissions?.[O]??!1:!1,T=["/admin/empresas","/admin/pedidos","/admin/propostas","/admin/propostas-ia","/admin/deal-desk","/admin/leads","/admin/payment-links","/admin/finance","/admin/comercial","/admin/cohorts","/admin/pipeline","/admin/pipeline-settings","/admin/crm","/admin/metas","/admin/prospeccao","/admin/sales-team","/admin/sales-playbook","/admin/whatsapp-sms","/admin/priority-leads","/admin/leads-dashboard","/admin/scripts-hub","/admin/calendar","/admin/comissoes","/admin/proposal-editor","/admin/agenda-central","/admin/atendimentos","/admin/reunioes","/admin/minha-fila","/admin/vendedor","/admin/clientes"],L=O=>(n||s)&&!r&&!t&&O.startsWith("/admin")?!1:t?!0:j?!!(h?.page_paths?.some(k=>BF(O,k))||!d&&!h?.template_id&&h?.is_legacy_fallback&&c&&["sdr","closer","gestor"].includes(c.role)&&T.some(k=>BF(O,k))):!1,P=O=>t?!0:j&&O.some(k=>h?.permissions?.[k]),I=O=>t?!0:j&&O.every(k=>h?.permissions?.[k]),E=c?.role==="gestor";return{permissions:j?h?.permissions??Ob:{},pagePaths:j?h?.page_paths??[]:[],templateId:h?.template_id,templateName:h?.template_name,isAdmin:t,isLoading:m||u,permissionsError:(b?null:g)||(o&&!i?new Error("Não foi possÃvel verificar os papéis de acesso."):null),accessRefreshStale:i||b,hasPermission:C,hasPageAccess:L,hasAnyPermission:P,hasAllPermissions:I,refetch:async()=>(await l(),x()),integrityStatus:h?.integrity_status??"sem_template",sourceBreakdown:h?.source_breakdown??{},isLegacyFallback:h?.is_legacy_fallback??!1,overrideCount:h?.override_count??0,salesTeamMember:c??null,isSalesTeamMember:!!c,hasCommercialAccess:!!c||t,isGestor:E}}function o7e(){const e=vn(),{data:t,isLoading:r}=jt({queryKey:["permission-templates"],queryFn:async()=>{const{data:i,error:l}=await J.from("permission_templates").select("*").order("category").order("name");if(l)throw l;return i}}),n=Dr({mutationFn:async i=>{const{data:l,error:c}=await J.from("permission_templates").insert(i).select().single();if(c)throw c;return l},onSuccess:()=>
1620{e.invalidateQueries({queryKey:["permission-templates"]}),et.success("Template criado com sucesso")},onError:i=>{console.error("Erro ao criar template:",i),et.error("Erro ao criar template")}}),s=Dr({mutationFn:async({id:i,...l})=>{const{data:c,error:u}=await J.from("permission_templates").update(l).eq("id",i).select().single();if(u)throw u;return c},onSuccess:()=>{e.invalidateQueries({queryKey:["permission-templates"]}),e.invalidateQueries({queryKey:["unified-permissions"]}),et.success("Template atualizado")},onError:i=>{console.error("Erro ao atualizar template:",i),et.error("Erro ao atualizar template")}}),o=Dr({mutationFn:async i=>{const{error:l}=await J.from("permission_templates").delete().eq("id",i).eq("is_system",!1);if(l)throw l},onSuccess:()=>{e.invalidateQueries({queryKey:["permission-templates"]}),et.success("Template removido")},onError:i=>{console.error("Erro ao remover template:",i),et.error("Erro ao remover template")}});return{templates:t??[],isLoading:r,createTemplate:n,updateTemplate:s,deleteTemplate:o}}function i7e(){const e=vn(),{data:t,isLoading:r}=b5({includeInactive:!1}),{data:n,isLoading:s}=jt({queryKey:["users-with-unified-permissions",t?.length],queryFn:async()=>{if(!t||t.length===0)return[];const c=t.filter(f=>f.has_auth_account).map(f=>f.user_id);let u=new Map,d=new Map;if(c.length>0){const{data:f}=await J.from("unified_permissions").select("*, template:permission_templates(id, name, category)").in("user_id",c);f?.forEach(m=>u.set(m.user_id,m));const{data:h}=await J.from("effective_user_permissions").select("user_id, integrity_status, is_legacy_fallback, override_count, template_name").in("user_id",c);h?.forEach(m=>d.set(m.user_id,m))}return t.map(f=>{const h=f.user_id?u.get(f.user_id):null,m=f.user_id?d.get(f.user_id):null,g=f.app_roles.includes("admin");return{sales_team_id:f.sales_team_id,user_id:f.user_id,role:g?"admin":f.app_roles[0]||f.sales_role||"employee",roles:f.app_roles,sales_role:f.sales_role,origin:f.is_commercial?"sales_team":"internal",full_name:f.name,avatar_url:f.foto_url,email:f.email,permissions:h?.permissions??{},page_paths:h?.page_paths??[],template_id:h?.template_id,template:h?.template,override_template:h?.override_template??!1,has_unified_permissions:!!h,integrity_status:m?.integrity_status||"sem_template",is_legacy_fallback:m?.is_legacy_fallback||!1,override_count:m?.override_count||0,created_at:null,has_auth_account:f.has_auth_account,department_id:f.department_id,department_name:f.department_name,is_internal_employee:!0}}).sort((f,h)=>(f.full_name||"").localeCompare(h.full_name||""))},enabled:!r&&!!t}),o=r||s,i=Dr({mutationFn:async({userId:c,templateId:u})=>{const{data:d}=await J.from("sales_team").select("id, user_id").or(`user_id.eq.${c},id.eq.${c}`).single();if(!d)throw new Error("Profissional não encontrado");const f=d.user_id;if(f){const{data:h}=await J.from("unified_permissions").select("id").eq("user_id",f).maybeSingle();if(h){const{error:m}=await J.from("unified_permissions").update({template_id:u,updated_at:new Date().toISOString()}).eq("id",h.id);if(m)throw m}else{const{error:m}=await J.from("unified_permissions").insert({user_id:f,template_id:u,permissions:{},page_paths:[]});if(m)throw m}}else throw new Error("Profissional sem conta de acesso â crie o login antes de atribuir template")},onSuccess:()=>{e.invalidateQueries({queryKey:["users-with-unified-permissions"]}),e.invalidateQueries({queryKey:["unified-permissions"]}),e.invalidateQueries({queryKey:["effective-permissions"]}),e.invalidateQueries({queryKey:["unified-internal-users"]}),et.success("Template atribuÃdo com sucesso")},onError:c=>{console.error("Erro ao atribuir template:",c),et.error("Erro ao atribuir template")}}),l=Dr({mutationFn:async({userId:c,permissions:u,pagePaths:d,overrideTemplate:f,notes:h})=>{const m={updated_at:new Date().toISOString()};u!==void 0&&(m.permissions=u),d!==void 0&&(m.page_paths=d),f!==void 0&&(m.override_template=f),h!==void 0&&(m.notes=h);const{data:g}=await J.from("unified_permissions").select("id").eq("user_id",c).maybeSingle();if(g){const{error:p}=await J.from("unified_permissions").update(m).eq("id",g.id);if(p)throw p}else{const{error:p}=await J.from("unified_permissions").insert({user_id:c,permissions:u??{},page_paths:d??[],override_template:f??!1,notes:h});if(p)throw p}},onSuccess:()=>
1620{e.invalidateQueries({queryKey:["users-with-unified-permissions"]}),e.invalidateQueries({queryKey:["unified-permissions"]}),e.invalidateQueries({queryKey:["effective-permissions"]}),et.success("Permissões atualizadas")},onError:c=>{console.error("Erro ao atualizar permissões:",c),et.error("Erro ao atualizar permissões")}});return{usersWithPermissions:n??[],isLoading:o,assignTemplate:i,updateUserPermissions:l}}function l7e(e){return jt({queryKey:["permission-audit-log",e],queryFn:async()=>{let t=J.from("permission_audit_log").select("*").order("created_at",{ascending:!1}).limit(100);const{data:r,error:n}=await t;if(n)throw n;return r}})}const AOe=A.lazy(()=>B(()=>import("./WarRoomHome-CxKDBcah.js"),__vite__mapDeps([1587,1,2,1588,1539,1540]))),fOe=A.lazy(()=>B(()=>import("./WarRoomPlaybook-gI887qZH.js"),__vite__mapDeps([1589,1,2,1588,1540,4,5]))),mOe=A.lazy(()=>B(()=>import("./WarRoomAssistente-NSFXeinv.js"),__vite__mapDeps([1590,1,2,1588,102]))),hOe=A.lazy(()=>B(()=>import("./WarRoomTrilha-BruTdNqk.js"),__vite__mapDeps([1591,1,2,1588,1539,1540]))),pOe=A.lazy(()=>B(()=>import("./WarRoomCertificados-ChfA2Mun.js"),__vite__mapDeps([1592,1,2,1588]))),gOe=A.lazy(()=>B(()=>import("./WarRoomGestor-Bst-M4wg.js"),__vite__mapDeps([1593,1,2,1588,1539,1540,124,783,784,67,1594]))),xOe=A.lazy(()=>B(()=>import("./WarRoomIngestao-wY6TPvlq.js"),__vite__mapDeps([1595,1,2,1588,188]))),vOe=A.lazy(()=>B(()=>import("./WarRoomRoles-BSZPeD6S.js"),__vite__mapDeps([1596,1,2,1588,1597]))),yOe=A.lazy(()=>B(()=>import("./WarRoomRoleTrack-UR01hDCF.js"),__vite__mapDeps([1598,1,2,1588,1597,377,1594,358,261])));function il({children:e}){const{user:t,loading:r}=Zn();return r?null:t?a.jsx(a.Fragment,{children:e}):a.jsx(Me,{to:"/auth",replace:!0})}function NF({children:e}){const{isAdmin:t}=dOe();return t?a.jsx(a.Fragment,{children:e}):a.jsx(Me,{to:"/war-room",replace:!0})}function bOe(){return a.jsxs(_,{path:"/war-room",children:[a.jsx(_,{index:!0,element:a.jsx(il,{children:a.jsx(AOe,{})})}),a.jsx(_,{path:"playbook",element:a.jsx(il,{children:a.jsx(fOe,{})})}),a.jsx(_,{path:"playbook/assistente",element:a.jsx(il,{children:a.jsx(mOe,{})})}),a.jsx(_,{path:"trilha",element:a.jsx(il,{children:a.jsx(hOe,{})})}),a.jsx(_,{path:"funcoes",element:a.jsx(il,{children:a.jsx(vOe,{})})}),a.jsx(_,{path:"funcoes/:slug",element:a.jsx(il,{children:a.jsx(yOe,{})})}),a.jsx(_,{path:"certificados",element:a.jsx(il,{children:a.jsx(pOe,{})})}),a.jsx(_,{path:"gestor",element:a.jsx(il,{children:a.jsx(NF,{children:a.jsx(gOe,{})})})}),a.jsx(_,{path:"admin/ingestao",element:a.jsx(il,{children:a.jsx(NF,{children:a.jsx(xOe,{})})})})]})}A.lazy(()=>B(()=>import("./LeadsWorkspacePage-CkHXbdVb.js").then(e=>e.L),__vite__mapDeps([1599,1,2,870,756,757,1600,759,327,177,243,76,173,758,1601])));function SF(){const{search:e,hash:t}=fn();return a.jsx(Me,{to:`/admin/leads${e}${t}`,replace:!0})}function wOe(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{path:"/leads-novo",element:a.jsx(SF,{})}),a.jsx(_,{path:"/admin/leads-novo",element:a.jsx(SF,{})})]})}const _Oe=A.lazy(async()=>{const e=await B(()=>import("./LearningExplorer-7P_M9phW.js"),__vite__mapDeps([1602,1,2,1603,637,1604]));return await B(()=>Promise.resolve({}),__vite__mapDeps([1605])),await B(()=>Promise.resolve({}),__vite__mapDeps([1606])),e}),COe=A.lazy(()=>B(()=>import("./CalendarioV2Preview-DREQUJx4.js"),__vite__mapDeps([1607,1,2,113,114,1603,241,103,13])));function jOe(){return a.jsxs(a.Fragment,{children:[a.jsx(_,{path:"/explorar",element:a.jsx(_Oe,{})}),a.jsx(_,{path:"/teste/calendario-v2",element:a.jsx(COe,{})})]})}const gi=({label:e,value:t,mono:r=!0})=>a.jsxs("div",{className:"flex gap-2 text-xs py-0.5",children:[a.jsx("span",{className:"text-muted-foreground min-w-[110px]",children:e}),a.jsx("span",{className:r?"font-mono break-all":"break-all",children:t==null||t===""?a.jsx("em",{className:"text-muted-foreground/70",children:"â"}):String(t)})]}),EOe=({e})=>{const t=e.utm_campaign_resolved&&e.utm_campaign_raw&&e.utm_campaign_resolved!==e.utm_campaign_raw;return a.jsxs("div",{className:"rounded-md border border-border bg-card p-3 space-y-1",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.warnings.length>0?a.jsx(vh,{className:"w-3.5 h-3.5 text-amber-500 shrink-0"}):a.jsx(ss,{className:"w-3.5 h-3.5 text-emerald-500 shrink-0"}),a.jsx("span",{className:"text-[11px] text-muted-foreground",children:new Date(e.at).toLocaleStr
1620ing("pt-BR")})]}),a.jsx("button",{onClick:()=>navigator.clipboard.writeText(JSON.stringify(e,null,2)),className:"text-muted-foreground hover:text-foreground shrink-0",title:"Copiar JSON",children:a.jsx(PA,{className:"w-3.5 h-3.5"})})]}),a.jsx(gi,{label:"event_id",value:e.event_id}),a.jsx(gi,{label:"utm_source",value:e.utm_source}),a.jsx(gi,{label:"utm_medium",value:e.utm_medium}),a.jsx(gi,{label:"utm_campaign",value:t?`${e.utm_campaign_raw} â ${e.utm_campaign_resolved}`:e.utm_campaign??e.utm_campaign_raw}),e.utm_content&&a.jsx(gi,{label:"utm_content",value:e.utm_content}),e.utm_term&&a.jsx(gi,{label:"utm_term",value:e.utm_term}),e.gclid&&a.jsx(gi,{label:"gclid",value:e.gclid}),e.fbclid&&a.jsx(gi,{label:"fbclid",value:e.fbclid}),e.tracking_uuid&&a.jsx(gi,{label:"tracking_uuid",value:e.tracking_uuid}),e.landing_url&&a.jsx(gi,{label:"landing_url",value:e.landing_url,mono:!1}),e.warnings.length>0&&a.jsx("div",{className:"mt-2 rounded bg-amber-500/10 border border-amber-500/30 p-2 space-y-0.5",children:e.warnings.map((r,n)=>a.jsxs("div",{className:"text-[11px] text-amber-700 dark:text-amber-300",children:["⢠",r]},n))})]})},BOe=()=>{const e=fn(),[t,r]=A.useState(!1),[n,s]=A.useState(!1),[o,i]=A.useState([]);return A.useEffect(()=>{r(r0e())},[e.pathname]),A.useEffect(()=>{i(xS());const l=()=>i(xS());return window.addEventListener("lv:lead-tracking-inspector:update",l),()=>window.removeEventListener("lv:lead-tracking-inspector:update",l)},[]),t?a.jsxs(a.Fragment,{children:[a.jsxs("button",{onClick:()=>s(l=>!l),className:"fixed bottom-4 right-4 z-[9998] flex items-center gap-2 rounded-full bg-primary text-primary-foreground shadow-lg px-3 py-2 text-xs font-medium hover:opacity-90",title:"UTM Inspector",children:[a.jsx(qb,{className:"w-4 h-4"}),"UTM (",o.length,")",o.some(l=>l.warnings.length>0)&&a.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"})]}),n&&a.jsxs("div",{className:"fixed bottom-16 right-4 z-[9999] w-[380px] max-h-[70vh] rounded-lg border border-border bg-background shadow-2xl flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(qb,{className:"w-4 h-4"}),a.jsx("span",{className:"text-sm font-semibold",children:"UTM Inspector"}),a.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["últimos ",o.length]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{onClick:()=>{N8(),i([])},className:"p-1 rounded hover:bg-muted",title:"Limpar",children:a.jsx(TT,{className:"w-4 h-4 text-muted-foreground"})}),a.jsx("button",{onClick:()=>s(!1),className:"p-1 rounded hover:bg-muted",children:a.jsx(Ua,{className:"w-4 h-4"})})]})]}),a.jsx("div",{className:"p-3 overflow-y-auto space-y-2",children:o.length===0?a.jsxs("div",{className:"text-xs text-muted-foreground text-center py-8",children:["Nenhum lead capturado nesta sessão.",a.jsx("br",{}),"Envie um formulário para ver o payload."]}):o.map(l=>a.jsx(EOe,{e:l},l.event_id+l.at))})]})]}):null},NOe=A.lazy(()=>B(()=>import("./HotjarProvider-BCSZoktW.js"),__vite__mapDeps([1608,1,2])).then(e=>({default:e.HotjarProvider}))),SOe=A.lazy(()=>B(()=>import("./FloatingAudioContext-BKy9052n.js"),__vite__mapDeps([587,1,2])).then(e=>({default:e.FloatingAudioProvider}))),kOe=A.lazy(()=>B(()=>import("./DeferredGlobalComponents-DE3ERqsI.js"),__vite__mapDeps([1609,1,2])).then(e=>({default:e.DeferredGlobalComponents}))),IOe=A.lazy(()=>B(()=>import("./FloatingAudioPlayer-CjjrOz11.js"),__vite__mapDeps([1610,1,2,99,587,594])).then(e=>({default:e.FloatingAudioPlayer})));A.lazy(()=>B(()=>Promise.resolve().then(()=>bve),void 0).then(e=>({default:e.WhatsAppButton})));const FOe=A.lazy(()=>B(()=>import("./TrackingScriptInjector-BFPro4rR.js"),__vite__mapDeps([1230,1,2])).then(e=>({default:e.TrackingScriptInjector}))),TOe=A.lazy(()=>B(()=>import("./PushNotificationToast-D6t9XVPU.js"),__vite__mapDeps([1611,1,2])).then(e=>({default:e.PushNotificationToast}))),POe=A.lazy(()=>B(()=>import("./ActionBar-B8xIfc8A.js"),__vite__mapDeps([1612,1,2,1157])).then(e=>({default:e.ActionBar}))),LOe=A.lazy(()=>B(()=>import("./UtilityHub-CPyQ02kj.js"),__vite__mapDeps([1613,1,2,1614,157]))),DOe=A.lazy(()=>B(()=>import("./UtilityDetail-BHJKhElp.js"),__vite__mapDeps([1615,1,2,62,1614,13]))),ROe=()=>a.jsx("div",{className:"flex items-center justify-center min-h-screen",children:a.jsx($r,{className:"w-8 h-8 animate-spin text-primary"})}),MOe=new dZ({defaultOptions:{queries:{staleTime:10*60*1e3,gcTime:30*60*1e3,retry:1,refetchOnWindowFocus:!1,refetchOnMount:!1}}}),OOe=()=>{VJ(),iee(),pee(),gee(),xee(),gL(),A.useEffect(()=>{try{sessionStorage.getItem("landing_url")||sessionStorage.setItem("landing_url",window.location.href)}catch{}B(async()=>{const{persistAdPlatformIds:t}=await Promise.resolve().then(()=>Wge);return{persistAdPlatformIds:t}},void 0).then(({persistAdPlatformIds:t})=>{t()})},[]);const e=fn();return A.useEffect(()=>{bee()},[e.pathname]),null},UOe=()=>{const[e,t]=A.useState(!1);return A.useEffect(()=>{const r=setTimeout(()=>t(!0),5e3);return()=>clearTimeout(r)},[]),e?a.jsx(QOe,{}):null},QOe=()=>{const{user:e}=Zn(),[t,r]=A.useState(null);return A.useEffect(()=>{let n=!0;(async()=>{const{data:l}=await J.from("notifications").select("*").eq("is_public",!0).is("expires_at",null).order("created_at",{ascending:!1}).limit(1).maybeSingle();l&&n&&r(l)})();const o=J.channel("public-notifications").on("postgres_changes",{event:"INSERT",schema:"public",table:"notifications",filter:"is_public=eq.true"},l=>{n&&r(l.new)}).subscribe();let i=null;return e&&(i=J.channel("user-notifications").on("postgres_changes",{event:"INSERT",schema:"public",table:"user_notifications",filter:`user_id=eq.${e.id}`},async l=>{if(!n)return;const{data:c}=await J.from("notifications").select("*").eq("id",l.new.notification_id).single();if(c&&n){const u=c?.metadata?.kind;if(u==="certificate_unlocked"||u==="certificate_issued")return;r(c)}}).subscribe()),()=>{n=!1,J.removeChannel(o),i&&J.removeChannel(i)}},[e]),t?a.jsx(TOe,{notification:t,onClose:()=>r(null)}):null},VOe=()=>a.jsx(QJ,{children:a.jsx(Cee,{children:a.jsx(A.Suspense,{fallback:null,children:a.jsx(NOe,{children:a.jsx(wee,{children:a.jsx(SOe,{children:a.jsx(LP,{children:a.jsxs(ide,{children:[a.jsx(FW,{}),a.jsx(cY,{}),a.jsxs(A.Suspense,{fallback:null,children:[a.jsx(FOe,{}),a.jsx(POe,{}),a.jsx(IOe,{})]}),a.jsx(OOe,{}),a.jsx(UOe,{}),a.jsx(A.Suspense,{fallback:a.jsx(ROe,{}),children:a.jsxs(xJ,{children:[pIe(),wIe(),gMe(),iOe(),bOe(),wOe(),jOe(),a.jsx(_,{path:"/utilidades",element:a.jsx(LOe,{})}),a.jsx(_,{path:"/utilidades/:slug",element:a.jsx(DOe,{})}),tke()]})}),a.jsx(A.Suspense,{fallback:null,children:a.jsx(kOe,{})}),a.jsx(BOe,{})]})})})})})})})}),HOe=()=>a.jsx(rH,{children:a.jsx(pZ,{client:MOe,children:a.jsx(BJ,{children:a.jsx(VOe,{})})})}),c7e=Object.freeze(Object.defineProperty({__proto__:null,default:HOe},Symbol.toStringTag,{value:"Module"}));
1620export{Vr as $,Vw as A,Oe as B,us as C,Vx as D,Iu as E,jI as F,$t as G,e$ as H,Jt as I,os as J,hl as K,Te as L,mo as M,Lu as N,Tm as O,Gb as P,t$ as Q,kn as R,q$ as S,vh as T,wa as U,ls as V,dq as W,Ua as X,Pu as Y,qs as Z,Sx as _,Pm as a,L2 as a$,th as a0,br as a1,pr as a2,wr as a3,gr as a4,yt as a5,ef as a6,hh as a7,fn as a8,vn as a9,gh as aA,Zo as aB,tfe as aC,rfe as aD,S2 as aE,OU as aF,ife as aG,UU as aH,r_ as aI,hA as aJ,sd as aK,DA as aL,IT as aM,k$ as aN,dz as aO,_ve as aP,H8e as aQ,AT as aR,x$ as aS,Kz as aT,$s as aU,Vs as aV,C8e as aW,v8 as aX,tv as aY,oUe as aZ,cs as a_,jt as aa,Dr as ab,ve as ac,jw as ad,qre as ae,gj as af,Ir as ag,vl as ah,Gt as ai,Ci as aj,Zn as ak,wNe as al,xj as am,Qa as an,Ba as ao,Mn as ap,Ks as aq,Va as ar,Po as as,gNe as at,xNe as au,vNe as av,cj as aw,Ju as ax,Hf as ay,je as az,A2 as b,H$ as b$,$8e as b0,ep as b1,tp as b2,rp as b3,np as b4,ap as b5,$j as b6,NI as b7,yT as b8,LA as b9,cn as bA,LBe as bB,fQe as bC,dn as bD,gL as bE,Fu as bF,F2 as bG,sq as bH,Fm as bI,f$ as bJ,xh as bK,Ez as bL,Tu as bM,yh as bN,cl as bO,RO as bP,DV as bQ,sp as bR,Xo as bS,bT,lve as bU,tne as bV,Sv as bW,xT as bX,_x as bY,Jd as bZ,Dt as b_,fl as ba,cT as bb,rs as bc,$M as bd,kz as be,pm as bf,jv as bg,s0e as bh,o0e as bi,cEe as bj,N2 as bk,S$ as bl,j8 as bm,Jge as bn,see as bo,mUe as bp,JU as bq,Vf as br,PA as bs,NT as bt,Zw as bu,uT as bv,su as bw,B2 as bx,Kt as by,aq as bz,h2 as c,ove as c$,lz as c0,BT as c1,l6 as c2,NW as c3,jx as c4,o$ as c5,L$ as c6,fT as c7,Gg as c8,F$ as c9,O$ as cA,kC as cB,IC as cC,dv as cD,CA as cE,iz as cF,uz as cG,vi as cH,J$ as cI,z$ as cJ,rq as cK,V2 as cL,kx as cM,Hs as cN,JK as cO,U2 as cP,ZK as cQ,oT as cR,BNe as cS,hEe as cT,sc as cU,Oc as cV,vT as cW,W8e as cX,w1 as cY,fm as cZ,Me as c_,B$ as ca,UQe as cb,kNe as cc,QQe as cd,r9 as ce,u4e as cf,ENe as cg,Gm as ch,m$ as ci,by as cj,Xx as ck,EEe as cl,Nw as cm,P2 as cn,zz as co,Jz as cp,yz as cq,dT as cr,uue as cs,Vz as ct,kT as cu,vEe as cv,WT as cw,ml as cx,_y as cy,ki as cz,Vt as d,pO as d$,mv as d0,hv as d1,xve as d2,vve as d3,h8e as d4,Fo as d5,U5 as d6,O5 as d7,u_ as d8,IS as d9,u$ as dA,n$ as dB,ET as dC,Sz as dD,_$ as dE,iq as dF,Yz as dG,TT as dH,Wz as dI,Qz as dJ,jve as dK,fL as dL,rc as dM,bu as dN,rA as dO,aG as dP,LP as dQ,WX as dR,YX as dS,DP as dT,vR as dU,pT as dV,Ea as dW,jue as dX,g8e as dY,xc as dZ,hO as d_,Yxe as da,Rt as db,F8e as dc,fne as dd,fQ as de,d0e as df,FT as dg,Cxe as dh,zA as di,Sh as dj,$A as dk,wM as dl,fle as dm,qw as dn,u0 as dp,jge as dq,B1 as dr,tde as ds,Qs as dt,YK as du,O2 as dv,Iz as dw,Ex as dx,uq as dy,d$ as dz,vc as e,sQ as e$,xO as e0,vO as e1,gO as e2,bO as e3,yO as e4,fUe as e5,gUe as e6,Bx as e7,jQe as e8,EQe as e9,ZG as eA,R$ as eB,VT as eC,Vm as eD,Oj as eE,AEe as eF,WA as eG,Ane as eH,zUe as eI,vUe as eJ,gT as eK,T$ as eL,Bz as eM,jz as eN,xz as eO,dOe as eP,F4e as eQ,hL as eR,Xue as eS,_T as eT,Lz as eU,dUe as eV,uUe as eW,Aq as eX,Az as eY,yj as eZ,aQ as e_,BQe as ea,NQe as eb,SQe as ec,bNe as ed,CQe as ee,A$ as ef,eq as eg,hUe as eh,Rz as ei,YL as ej,B4e as ek,c9 as el,u9 as em,d9 as en,ST as eo,Al as ep,pj as eq,w2 as er,$$ as es,mH as et,MUe as eu,bz as ev,n8e as ew,r8e as ex,s8e as ey,XG as ez,Nr as f,JUe as f$,oQ as f0,iQ as f1,lQ as f2,zE as f3,mT as f4,D4e as f5,g4e as f6,r7e as f7,e7e as f8,XQe as f9,Mi as fA,Ri as fB,ine as fC,NUe as fD,BUe as fE,kUe as fF,one as fG,SUe as fH,lne as fI,nne as fJ,ene as fK,Jre as fL,Zre as fM,Xre as fN,Yre as fO,Wre as fP,Di as fQ,TUe as fR,RBe as fS,mQe as fT,EC as fU,BC as fV,NC as fW,C5 as fX,_Ue as fY,o8e as fZ,DR as f_,ZQe as fa,JQe as fb,h4e as fc,x4e as fd,v4e as fe,WQe as ff,YQe as fg,v2 as fh,CT as fi,W$ as fj,bUe as fk,cq as fl,GA as fm,i0e as fn,S1 as fo,i0 as fp,l0e as fq,l0 as fr,c0e as fs,c0 as ft,k8e as fu,dxe as fv,Axe as fw,zt as fx,EUe as fy,FUe as fz,_r as g,Ha as g$,e8e as g0,t8e as g1,One as g2,PR as g3,a8e as g4,V$ as g5,sfe as g6,I2 as g7,qb as g8,$E as g9,rUe as gA,w5 as gB,A9 as gC,U$ as gD,a$ as gE,NBe as gF,bx as gG,UJ as gH,AUe as gI,W8 as gJ,j4e as gK,S8e as gL,ixe as gM,om as gN,OUe as gO,VUe as gP,uD as gQ,b8e as gR,Gx as gS,Io as gT,Vde as gU,_t as gV,er as gW,Hde as gX,At as gY,OO as gZ,Na as g_,$Ue as ga,T2 as gb,p$ as gc,D$ as gd,b$ as ge,NS as gf,KA as gg,b5 as gh,Yb as gi,fz as gj,OK as gk,fxe as gl,mxe as gm,mz as gn,sm as go,Ipe as gp,E8e as gq,j8e as gr,wT as gs,P$ as gt,kge as gu,cz as gv,Kb as gw,Y$ as gx,MR as gy,N4e as gz,FJ as h,CZ as h$,v5 as h0,Z2 as h1,yx as h2,la as h3,Iue as h4,v8e as h5,y8e as h6,x8e as h7,oNe as h8,xEe as h9,GE as hA,Fp as hB,GOe as hC,Xu as hD,B8e as hE,E5 as hF,pz as hG,Une as hH,DUe as hI,Hre as hJ,zre as hK,$re as hL,PUe as hM,LUe as hN,I4e as hO,_Qe as hP,wQe as hQ,vne as hR,YUe as hS,oN as hT,rne as hU,D0 as hV,UA as hW,ya as hX,MP as hY,gZ as hZ,yZ as h_,yye as ha,vye as hb,AZ as hc,NB as hd,lUe as he,iUe as hf,BZ as hg,_Ne as hh,i$ as hi,I$ as hj,O7 as hk,gu as hl,T8e as hm,L8e as hn,cQ as ho,I8e as hp,Nv as hq,gEe as hr,Tye as hs,pEe as ht,lR as hu,cR as hv,Z$ as hw,R2 as hx,Wg as hy,pA as hz,ds as i,QV as i$,bZ as i0,wZ as i1,bs as i2,EZ as i3,IB as i4,jZ as i5,_Z as i6,wUe as i7,sN as i8,h$ as i9,LV as iA,TBe as iB,uo as iC,vx as iD,CUe as iE,jUe as iF,SBe as iG,EBe as iH,iEe as iI,qV as iJ,vw as iK,KV as iL,b0 as iM,Uz as iN,rg as iO,ng as iP,eh as iQ,iee as iR,wI as iS,pQ as iT,gQ as iU,x_ as iV,v_ as iW,vQ as iX,fEe as iY,HV as iZ,VV as i_,C$ as ia,_ge as ib,wne as ic,hQe as id,QBe as ie,QUe as ig,pne as ih,Dc as ii,vL as ij,Pp as ik,lOe as il,i7e as im,wh as io,_h as ip,Sc as iq,Yu as ir,Lx as is,Dx as it,mR as iu,sne as iv,d8e as iw,SQ as ix,O8e as iy,z8e as iz,qM as j,FQe as j$,aEe as j0,fR as
1620j1,CBe as j2,NA as j3,w8e as j4,lQe as j5,cQe as j6,dQe as j7,AQe as j8,oQe as j9,RUe as jA,KUe as jB,qUe as jC,UUe as jD,pQe as jE,lNe as jF,yQe as jG,bQe as jH,dNe as jI,gQe as jJ,JBe as jK,xQe as jL,GV as jM,vQe as jN,aNe as jO,eNe as jP,ANe as jQ,sNe as jR,Tz as jS,Q8e as jT,ZV as jU,V8e as jV,oq as jW,GUe as jX,N$ as jY,Zz as jZ,IQe as j_,iQe as ja,sQe as jb,_I as jc,FR as jd,iNe as je,Uc as jf,dne as jg,t7e as jh,b4e as ji,Gj as jj,_4e as jk,Wj as jl,w4e as jm,JV as jn,E4e as jo,zv as jp,Yj as jq,L4e as jr,Gz as js,dj as jt,Aj as ju,fj as jv,mj as jw,hj as jx,DO as jy,l$ as jz,TA as k,DQe as k$,kQe as k0,TQe as k1,PQe as k2,LQe as k3,Fz as k4,wz as k5,jT as k6,LR as k7,jR as k8,Ih as k9,KQe as kA,TI as kB,PI as kC,MQe as kD,OQe as kE,g2 as kF,zQe as kG,RQe as kH,Zj as kI,VQe as kJ,HQe as kK,GQe as kL,r$ as kM,UBe as kN,T4 as kO,rG as kP,Eh as kQ,f5 as kR,Bh as kS,ed as kT,td as kU,VA as kV,N8e as kW,sxe as kX,q8e as kY,Nz as kZ,hR as k_,Fh as ka,B5 as kb,s$ as kc,Oz as kd,X$ as ke,IUe as kf,wR as kg,xR as kh,qK as ki,By as kj,Ey as kk,Bge as kl,Jp as km,Rne as kn,P8e as ko,NNe as kp,K8 as kq,U8e as kr,G8e as ks,uEe as kt,uQe as ku,gz as kv,lT as kw,DW as kx,$Qe as ky,qQe as kz,FC as l,HUe as l$,Ore as l0,AR as l1,G8 as l2,cxe as l3,uxe as l4,gxe as l5,xUe as l6,Lre as l7,vz as l8,X8e as l9,QU as lA,jBe as lB,yve as lC,Bn as lD,gAe as lE,xAe as lF,$O as lG,vAe as lH,yAe as lI,_Ae as lJ,bAe as lK,wAe as lL,CAe as lM,jAe as lN,EAe as lO,BAe as lP,NAe as lQ,SAe as lR,IAe as lS,FAe as lT,I8 as lU,Wxe as lV,xQ as lW,s7e as lX,jne as lY,Qre as lZ,Vre as l_,pc as la,Z8e as lb,TV as lc,FV as ld,rQe as le,DEe as lf,tQe as lg,dA as lh,nQe as li,aQe as lj,IV as lk,J8e as ll,Y8e as lm,eQe as ln,PV as lo,D8e as lp,R8e as lq,M8e as lr,d0 as ls,rve as lt,nve as lu,Zxe as lv,Hz as lw,lq as lx,Mne as ly,wc as lz,Ze as m,KOe as m$,Cne as m0,Lne as m1,Dne as m2,Pne as m3,Tne as m4,Ine as m5,o7e as m6,n7e as m7,a7e as m8,l7e as m9,_8e as mA,nfe as mB,afe as mC,Ure as mD,WUe as mE,Bs as mF,NK as mG,HT as mH,GT as mI,WK as mJ,GK as mK,qOe as mL,Du as mM,M2 as mN,tG as mO,Ur as mP,_K as mQ,WOe as mR,CK as mS,JOe as mT,QT as mU,eUe as mV,EK as mW,XK as mX,tUe as mY,gA as mZ,jK as m_,jee as ma,pUe as mb,qB as mc,Xy as md,mh as me,Im as mf,hT as mg,HA as mh,l8e as mi,c8e as mj,i8e as mk,u8e as ml,iN as mm,f8e as mn,A8e as mo,c6 as mp,pR as mq,kne as mr,Fne as ms,Sne as mt,Nne as mu,Bne as mv,Ene as mw,H2 as mx,Q$ as my,zj as mz,KM as n,$T as n0,qT as n1,zT as n2,oG as n3,IK as n4,DK as n5,RK as n6,LK as n7,uG as n8,zl as n9,Xz as nA,c$ as nB,g$ as nC,v$ as nD,y$ as nE,w$ as nF,j$ as nG,E$ as nH,M$ as nI,K$ as nJ,G$ as nK,tq as nL,nq as nM,oz as nN,aUe as nO,hee as nP,yUe as nQ,XUe as nR,ZUe as nS,m8e as nT,d5e as nU,K8e as nV,c7e as nW,wK as na,YOe as nb,XOe as nc,ZOe as nd,jy as ne,$Oe as nf,SK as ng,KK as nh,YT as ni,nG as nj,WE as nk,BK as nl,sG as nm,iG as nn,cG as no,Q2 as np,eG as nq,lG as nr,JE as ns,hz as nt,_z as nu,Cz as nv,Pz as nw,Dz as nx,$z as ny,qz as nz,cue as o,$r as p,et as q,Ra as r,zs as s,_i as t,jl as u,Cx as v,ss as w,Nx as x,Mz as y,k2 as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.