PageSourceSearch

https://www.elsoundsystem.com/_next/static/chunks/0a7rswnq1a3hh.js

js elsoundsystem.com collected 2026-10-06 13:36:24 UTC 83,974 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38298,(e,t,a)=>{t.exports=JSON.parse('{"_meta":{"schema_version":"v2.1.0","vertical_id":"music_creators","_doc":"Live elsoundsystem music_creators payload. Single source for /soundcheck/music. Mirrors question_bank_versions row v2.1.0 (music_creators slice) so Chunk 7 DB-fetch wire-up is a drop-in swap. Intake fields (ecosystemCapture, bonusQuestion, identity, emailGate) are live elsoundsystem features, kept top-level, NOT part of the scored 13-question diagnostic.","_changes_from_v1":["Replaced 8 nested pillars × 24 questions with 4 top-level sections + 13 top-level questions","All scored questions now use option_id / score / bilingual labels / no_se_allowed","Added qualifier section (sub_segment + stage)","Added testimonial section (open_140)","Replaced inline section-weighted scoring with scoring_config_ref pointer","Removed inline scoring/benchmarks blocks (benchmarks will be rebuilt against the 9 music_creators dimensions in a later sprint)"],"_routing":"Form slugs music-entertainment + creator-media both resolve to vertical_id=music_creators (per reference_beta_signup_contract.md, locked 2026-04-24)."},"schema_version":"v2.1.0","vertical_id":"music_creators","slug":"music","form_slugs":["music-entertainment","creator-media"],"name":"Música y creadores","name_en":"Music & creators","tagline":"Afina el sistema antes de escalarlo.","tagline_en":"Tune the system before you scale it.","description":"Diagnóstico específico para artistas, productores, performers en vivo y creadores de contenido. 13 preguntas, ~7 minutos. Tu Sound Check Health Score y tu siguiente movimiento claro.","description_en":"Sector-specific diagnostic for artists, producers, live performers, and content creators. 13 questions, ~7 minutes. Your Sound Check Health Score and a clear next move.","hero":{"headline":"Afina el sistema antes de escalarlo.","headline_en":"Tune the system before you scale it.","subheadline":"Un diagnóstico específico. 13 preguntas, ~7 minutos. Tu Sound Check Health Score y tu siguiente movimiento claro.","subheadline_en":"A sector-specific diagnostic. 13 questions, ~7 minutes. Your Sound Check Health Score and a clear next move.","cta":"Iniciar Sound Check","cta_en":"Begin Sound Check","backgroundGradient":"from-teal-950 via-teal-800 to-teal-900"},"ecosystemCapture":{"id":"ecosystem","label":"Sintonicemos tu frecuencia","label_en":"Let\'s tune your frequency","help":"Pega los handles que tengas. Todos opcionales; mientras más compartas, más rico el escaneo.","help_en":"Paste any handles you have. All optional; the more you share, the richer the scan.","fields":["instagram","tiktok","youtube","soundcloud","spotify_artist_url"],"triggersLiveScrape":true},"bonusQuestion":{"id":"artist-references","type":"artist-tags","label":"Nombra de 1 a 5 artistas con los que resuene tu trabajo.","label_en":"Name 1 to 5 artists whose work resonates with yours.","help":"Lejanos o cercanos, gigantes o de nicho. Lo importante es lo que significan para ti. Con esto construimos tu Escena Sónica.","help_en":"Near or far, giants or niche. What counts is what they mean to you. We use this to build your Sonic Scene.","min":1,"max":5,"resolver":"wikidata+lastfm"},"identity":{"id":"identity","fields":["name","role","artist_project_name","genre_format"]},"emailGate":{"id":"email","label":"¿A dónde te enviamos tu Sound Check?","label_en":"Where should we send your Sound Check?","field":"email","consent":"klaviyo_optin"},"stage_required":true,"sections":[{"section_id":"qualifier","order":1,"color_token":"slate","label_es":"Dos preguntas para calibrar tu Sound Check","label_en":"Two questions to calibrate your Sound Check","description":"Sin esto, las recomendaciones quedan genéricas.","description_en":"Without this, recommendations stay generic."},{"section_id":"vertical_specific","order":2,"color_token":"amber","label_es":"Tu negocio musical/creador","label_en":"Your music/creator business","description":"Las palancas únicas de tu sector.","description_en":"The levers unique to your sector."},{"section_id":"core","order":3,"color_token":"terracotta","label_es":"Cómo opera tu trabajo","label_en":"How your work runs","description":"Las palancas operativas que aplican a todo creador.","description_en":"The operational levers that apply to every creator."},{"section_id":"testimonial","order":4,"color_token":"sage","label_es":"Una última cosa","label_en":"One last thing","description":"Tu voz para personalizar la lectura.","description_en":"Your voice to personalize the read."}],"questions":[{"q_id":"q1_sub_segment","section_id":"qualifier","order":1,"type":"radio","scored":false,"feeds":[],"no_se_allowed":false,"triggers_visibility_penalty":false,"metadata_key":"sub_segment","stem_es":"¿Cómo describes mejor tu trabajo principal hoy?","stem_en":"Which best describes your primary work today?","options":[{"option_id":"recording_artist","score":null,"label_es":"Soy artista/productor musical (mi producto principal es música grabada)","label_en":"I\'m a recording artist/producer (my primary product is recorded music)"},{"option_id":"live_performer","score":null,"label_es":"Soy performer en vivo (DJ, banda, show; mi producto principal es la presentación)","label_en":"I\'m a live performer (DJ, band, show; my primary product is the performance)"},{"option_id":"content_creator","score":null,"label_es":"Soy creador de contenido (mi producto principal son posts, videos, podcast)","label_en":"I\'m a content creator (my primary product is posts, videos, podcast)"},{"option_id":"hybrid","score":null,"label_es":"Hago mezcla de los anteriores y no hay uno dominante","label_en":"I do a mix of the above with no dominant one"}]},{"q_id":"q2_stage","section_id":"qualifier","order":2,"type":"radio","scored":false,"feeds":[],"no_se_allowed":false,"triggers_visibility_penalty":false,"metadata_key":"stage","stem_es":"¿Cuánto 
1ingreso te dejó tu música/contenido en los últimos 12 meses? (Aproximado, en USD o equivalente local.)","stem_en":"How much revenue did your music/content generate in the last 12 months? (Approximate, in USD or local equivalent.)","options":[{"option_id":"pre_revenue","score":null,"label_es":"Aún no tengo ingresos consistentes","label_en":"No consistent revenue yet"},{"option_id":"under_5k","score":null,"label_es":"Menos de USD 5,000 al año","label_en":"Under USD 5,000 per year"},{"option_id":"5k_to_25k","score":null,"label_es":"USD 5,000-25,000 al año (ingreso secundario)","label_en":"USD 5,000-25,000 per year (side income)"},{"option_id":"25k_to_100k","score":null,"label_es":"USD 25,000-100,000 al año (ingreso principal)","label_en":"USD 25,000-100,000 per year (primary income)"},{"option_id":"100k_to_500k","score":null,"label_es":"USD 100,000-500,000 al año","label_en":"USD 100,000-500,000 per year"},{"option_id":"over_500k","score":null,"label_es":"Más de USD 500,000 al año","label_en":"Over USD 500,000 per year"}]},{"q_id":"q3_monetization_concentration","section_id":"vertical_specific","order":3,"type":"likert5","scored":true,"feeds":[{"dimension":"monetization_diversity","weight_within_dimension":0.5}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"En los últimos 3 meses, ¿qué parte de lo que ganaste vino de una sola fuente? (Por ejemplo: streaming, shows, merch o una marca.)","stem_en":"In the last 3 months, how much of what you earned came from a single source? (For example: streaming, shows, merch, or one brand.)","options":[{"option_id":"over_90","score":0,"label_es":"Más del 90%","label_en":"Over 90%"},{"option_id":"70_to_90","score":25,"label_es":"70-90%","label_en":"70-90%"},{"option_id":"50_to_70","score":50,"label_es":"50-70%","label_en":"50-70%"},{"option_id":"30_to_50","score":75,"label_es":"30-50%","label_en":"30-50%"},{"option_id":"under_30","score":100,"label_es":"Menos del 30%","label_en":"Under 30%"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q4_distribution_ownership","section_id":"vertical_specific","order":4,"type":"radio","scored":true,"feeds":[{"dimension":"distribution_ownership","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"Hoy, ¿dónde está la mayoría de tus seguidores?","stem_en":"Today, where are most of your fans?","options":[{"option_id":"single_platform_social","score":0,"label_es":"En una sola red social (TikTok, Instagram o YouTube)","label_en":"On a single social platform (TikTok, Instagram, or YouTube)"},{"option_id":"multi_platform_social","score":25,"label_es":"Repartidos entre varias redes sociales","label_en":"Spread across several social platforms"},{"option_id":"streaming_dominant","score":25,"label_es":"Sobre todo en plataformas de streaming (Spotify, Apple Music)","label_en":"Mostly on streaming platforms (Spotify, Apple Music)"},{"option_id":"email_or_owned_partial","score":75,"label_es":"Una buena parte en un canal que tú controlas, como tu lista de correo o un grupo (más del 20%)","label_en":"A good share on a channel you control, like your email list or a group (over 20%)"},{"option_id":"email_or_owned_majority","score":100,"label_es":"Sobre todo en canales que tú controlas (tu lista de correo, tu grupo de WhatsApp o Discord)","label_en":"Mostly on channels you control (your email list, your WhatsApp group, or Discord)"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q5_sync_brand_pipeline","section_id":"vertical_specific","order":5,"type":"likert5","scored":true,"feeds":[{"dimension":"sync_brand_pipeline","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"En los últimos 3 meses, ¿cuántos acuerdos de marca o de sync (licenciar tu música para cine, TV, anuncios o videojuegos) tienes cerrados o en proceso?","stem_en":"In the last 3 months, how many brand or sync deals (licensing your music for film, TV, ads, or games) do you have closed or in progress?","options":[{"option_id":"0","score":0,"label_es":"Ninguna","label_en":"None"},{"option_id":"1","score":25,"label_es":"1","label_en":"1"},{"option_id":"2_to_3","score":50,"label_es":"2-3","label_en":"2-3"},{"option_id":"4_to_6","score":75,"label_es":"4-6","label_en":"4-6"},{"option_id":"7_plus","score":100,"label_es":"7 o más","label_en":"7 or more"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q6_release_cadence","section_id":"core","order":6,"type":"likert5","scored":true,"feeds":[{"dimension":"release_cadence","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"En el último año, ¿cuántas piezas principales publicaste? (Una pieza principal = un lanzamiento musical, un video largo o un episodio de podcast. No cuentes los posts diarios.)","stem_en":"In the last year, how many main pieces did you put out? (A main piece = a music release, a long video, or a podcast episode. Do not count daily posts.)","options":[{"option_id":"0_or_1","score":0,"label_es":"0 o 1","label_en":"0 or 1"},{"option_id":"2_to_3","score":25,"label_es":"2-3","label_en":"2-3"},{"option_id":"4_to_8","score":50,"label_es":"4-8","label_en":"4-8"},{"option_id":"9_to_15","score":75,"label_es":"9-15","label_en":"9-15"},{"option_id":"16_plus","score":100,"label_es":"16 o más","label_en":"16 or more"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]}
1,{"q_id":"q7_audience_retention","section_id":"core","order":7,"type":"likert5","scored":true,"feeds":[{"dimension":"audience_retention","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"De las personas que te descubrieron en el último año, ¿qué parte regresa cada mes, más o menos?","stem_en":"Of the people who discovered you in the last year, roughly what share comes back each month?","options":[{"option_id":"under_10","score":0,"label_es":"Menos del 10%","label_en":"Under 10%"},{"option_id":"10_to_25","score":25,"label_es":"10-25%","label_en":"10-25%"},{"option_id":"25_to_50","score":50,"label_es":"25-50%","label_en":"25-50%"},{"option_id":"50_to_75","score":75,"label_es":"50-75%","label_en":"50-75%"},{"option_id":"over_75","score":100,"label_es":"Más del 75%","label_en":"Over 75%"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q8_content_velocity","section_id":"core","order":8,"type":"likert5","scored":true,"feeds":[{"dimension":"content_velocity","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"Aparte de tus lanzamientos principales, ¿qué tan seguido publicas contenido (posts, reels, lives, shorts)?","stem_en":"Apart from your main releases, how often do you post content (posts, reels, lives, shorts)?","options":[{"option_id":"rarely","score":0,"label_es":"Rara vez o nunca","label_en":"Rarely or never"},{"option_id":"monthly","score":25,"label_es":"Algunas veces al mes","label_en":"A few times a month"},{"option_id":"weekly","score":50,"label_es":"Algunas veces a la semana","label_en":"A few times a week"},{"option_id":"several_times_weekly","score":75,"label_es":"Varias veces a la semana","label_en":"Several times a week"},{"option_id":"daily_plus","score":100,"label_es":"Diario o varias veces al día","label_en":"Daily or multiple times a day"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q9_data_clarity","section_id":"core","order":9,"type":"likert5","scored":true,"feeds":[{"dimension":"data_clarity","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"¿Qué tan seguido revisas tus números (oyentes, seguidores, correos)?","stem_en":"How often do you check your numbers (listeners, followers, emails)?","options":[{"option_id":"never","score":0,"label_es":"Nunca / no las miro","label_en":"Never / don\'t look at them"},{"option_id":"quarterly","score":25,"label_es":"Cada 2-3 meses","label_en":"Every 2-3 months"},{"option_id":"monthly","score":50,"label_es":"Una vez al mes","label_en":"Once a month"},{"option_id":"weekly","score":75,"label_es":"Una vez por semana","label_en":"Once a week"},{"option_id":"multiple_per_week","score":100,"label_es":"Varias veces a la semana o diario","label_en":"Multiple times a week or daily"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q10_ops_visibility","section_id":"core","order":10,"type":"radio","scored":true,"feeds":[{"dimension":"ops_visibility","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":false,"_doc":"triggers_visibility_penalty=false because this IS the ops_visibility question. Don\'t double-penalize.","stem_es":"¿Sabes cuánto te quedó el mes pasado después de gastos, con menos de USD 500 de diferencia?","stem_en":"Do you know how much you kept last month after expenses, within $500?","options":[{"option_id":"no","score":0,"label_es":"No","label_en":"No"},{"option_id":"roughly","score":50,"label_es":"Aproximadamente, pero no exacto","label_en":"Roughly, but not exact"},{"option_id":"yes","score":100,"label_es":"Sí, con menos de USD 500 de diferencia","label_en":"Yes, within $500"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q11_team_delegation","section_id":"core","order":11,"type":"radio","scored":true,"feeds":[{"dimension":"team_delegation","weight_within_dimension":1.0}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"¿Quién maneja tu marketing de lanzamiento, tu calendario y tu administración?","stem_en":"Who handles your release marketing, scheduling, and admin?","options":[{"option_id":"just_me","score":0,"label_es":"Solo yo","label_en":"Just me"},{"option_id":"mostly_me","score":25,"label_es":"Mayoría yo, ayuda esporádica","label_en":"Mostly me, sporadic help"},{"option_id":"freelancers","score":50,"label_es":"Freelancers / contratistas que coordino yo","label_en":"Freelancers/contractors I coordinate"},{"option_id":"mixed","score":75,"label_es":"Mezcla de freelancers más un asistente o manager","label_en":"Mix of freelancers plus an assistant or manager"},{"option_id":"team","score":100,"label_es":"Tengo equipo (gente interna o una agencia fija)","label_en":"I have a team (in-house people or a steady agency)"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q12_monetization_stream_count","section_id":"core","order":12,"type":"likert5","scored":true,"feeds":[{"dimension":"monetization_diversity","weight_within_dimension":0.5}],"no_se_allowed":true,"triggers_visibility_penalty":true,"stem_es":"Hoy, ¿de cuántas fuentes distintas viene tu dinero? (Streaming, shows, merch, marcas o sync, fans o Patreon, enseñar, etc.)","stem_en":"Today, how many different sources does your money come from? (Streaming, shows, merch, brands or sync, fans or Patreon, teaching, etc.)","options":[{"option_id":"1","score":0,"label_es":"Solo 1","label_en":"Just 1"},{"option_id":"2","score":25,"label_es":"2","label_en":"2"},{"option_id":"3","score":50,"label_es":"3","label_en":"3"},{"option_id":"4_to_5","score":75,"label_es":"4-5","label_en":"4-5"},{"option_id":"6_plus","score":100,"label_es":"6 o más","label_en":"6 or more"},{"option_id":"no_se","score":0,"is_no_se":true,"label_es":"Aún no lo mido","label_en":"I don\'t measure it yet"}]},{"q_id":"q13_testimonial","section_id":"testimonial","order":13,"type":"open_140","scored":false,"feeds":[],"no_se_allowed":false,"triggers_visibility_penalty":false,"metadata_key":"testimonial","optional":true,"max_length":140,"stem_es":"¿Qué señal de tu trabajo crees que se está perdiendo en el ruido?","stem_en":"What signal from your work do you think is getting lost in the noise?","options":[]}],"scoring_config_ref":"v2.1.0","_scoring_doc":"Per-dimension weights live in question_bank_versions.scoring_config (v2.1.0). 9 dimensions for music_creators: monetization_diversity (0.16), release_cadence (0.14), audience_retention (0.14), distribution_ownership (0.10), content_velocity (0.
110), data_clarity (0.10), ops_visibility (0.10), sync_brand_pipeline (0.08), team_delegation (0.08). no_se_penalty=0.3. Score band thresholds: starter [0-40), scaling [40-65), system [65-85), compound [85-100].","_benchmarks_doc":"v1.0 benchmarks. Industry-rough averages across all music_creator stages (pre_pmf to over_5m collapsed). Sourced from El Sound System sector research 2026 + Gemini deep research 2026-04-22. Not stage-specific yet; v1.1 will refresh with cohort-derived percentiles once real respondent data lands per project_market_intelligence_deep_2026_04_22.","benchmarks":{"audience_retention":{"low":15,"median":35,"high":60,"label":"Audience Retention"},"monetization_diversity":{"low":15,"median":30,"high":55,"label":"Monetization Diversity"},"release_cadence":{"low":20,"median":40,"high":65,"label":"Release Cadence"},"distribution_ownership":{"low":10,"median":25,"high":50,"label":"Distribution Ownership"},"content_velocity":{"low":25,"median":50,"high":75,"label":"Content Velocity"},"data_clarity":{"low":15,"median":35,"high":60,"label":"Data Clarity"},"ops_visibility":{"low":20,"median":40,"high":65,"label":"Ops Visibility"},"sync_brand_pipeline":{"low":0,"median":15,"high":40,"label":"Sync & Brand Pipeline"},"team_delegation":{"low":10,"median":25,"high":50,"label":"Team & Delegation"}},"pricing":[{"id":"free","name":"Clear the Noise","price":0,"description":"Tu Sound Check Health Score + tu primer movimiento, claro y rápido.","features":["Score general en 9 dimensiones","Lectura por dimensión","Tu primer movimiento: una acción a tu medida","Boletín DIWU gratis"],"cta":"Empezar el escaneo"},{"id":"lite","name":"Tune Your System","price":149,"description":"Tune-up del sistema + roadmap de 90 días a tu medida + tablero DIWU.","features":["Todo lo de Clear the Noise","Análisis profundo por dimensión","Roadmap de 90 días a tu medida","Tablero de progreso DIWU (90 días)","Matriz de prioridades","Export PDF"],"cta":"Choose Tune Your System","popular":true},{"id":"pro","name":"Custom Tune","price":497,"description":"Análisis profundo + llamada de estrategia + coaching DIWU.","features":["Todo lo de Tune Your System","Llamada de estrategia de 45 min con Nico","Coaching DIWU durante 90 días","Plan de acción personalizado"],"cta":"Choose Custom Tune"}],"tactics":[{"id":"digital-pr","name":"Digital PR & Press","category":"media","description":"Pitching music to online publications, music blogs, and digital media."},{"id":"playlist-pitching","name":"Playlist Pitching","category":"distribution","description":"Pitching Spotify editorial, Apple Music, algorithmic, and independent curators."},{"id":"social-organic","name":"Organic Social","category":"social","description":"TikTok, Instagram Reels, YouTube Shorts. No paid spend."},{"id":"influencer-seeding","name":"Influencer Seeding / UGC","category":"influencer","description":"Seeding music to creators and paying for UGC campaigns."},{"id":"official-video-launch","name":"Official Video Launches","category":"content","description":"Official music videos with paid amplification."},{"id":"fan-engagement","name":"Fan Community","category":"community","description":"Discord / WhatsApp / group chats. Direct fan interaction."},{"id":"sync-licensing","name":"Sync & Brand Partnerships","category":"revenue","description":"Licensing music to film, TV, games, ads; brand partnerships."},{"id":"email-sms","name":"Email / SMS to Fans","category":"direct","description":"Newsletters and offers to an owned fan list."},{"id":"paid-social","name":"Paid Social Ads","category":"paid","description":"Meta, TikTok, YouTube ads to grow audience."}],"verticalConfig":{"brokerChannel":"Ruben Santos (PR, WhatsApp activations)","primaryAudience":["Independent recording artists / producers","Live performers (DJs, bands, performance acts)","Content creators (video, podcast, social)","Hybrid creator-artists","Indie labels and managers (secondary)"],"aiPromptTemplate":"Analyze this music_creators respondent\'s Sound Check v2.1.0 dimension scores. Identify: (1) the 2 most underweight dimensions relative to their sub_segment + stage, (2) the cross-dimension contradiction most likely to be capping their growth, (3) 3 specific tool-named next moves ranked by effort vs. compounding impact. Use their testimonial answer to personalize the read.","dataVizFocus":["Sound Check Health Score ring (band: starter / scaling / system / compound)","9-dimension radar with weight indicators","Cross-dimension visibility-tax overlay (greyed dimensions where ops_visibility penalty applied)","Promotional-network graph (artist-tag cohort)","Single-source income alert (if monetization_diversity dimension < 25)"],"aiCrossReference":{"insightfulQuestionId":"artist-references","crossReferenceWith":["q1_sub_segment","q2_stage","q3_monetization_concentration","q12_monetization_stream_count","q13_testimonial"],"promptTemplate":"The respondent named these artists as their reference set: {artist_tags}. Cross-reference with their sub_segment ({q1_sub_segment}), stage ({q2_stage}), monetization concentration ({q3_monetization_concentration}), revenue source count ({q12_monetization_stream_count}), and testimonial ({q13_testimonial}). Identify: (1) alignment or contradiction between their reference set and their actual setup, (2) the single highe
1st-leverage change they could make in the next 30 days, (3) a specific, non-obvious recommendation based on the gap between where they\'re aiming and what they\'re doing."}}}')},23431,e=>{"use strict";e.i(47167);var t=e.i(43476),a=e.i(18566),s=e.i(71645);let i={music:e.i(38298).default},n={no_se_penalty:.3,score_band_thresholds:{starter:[0,40],scaling:[40,65],system:[65,85],compound:[85,100.01]},weights_per_vertical:{music_creators:{monetization_diversity:.16,release_cadence:.14,audience_retention:.14,distribution_ownership:.1,content_velocity:.1,data_clarity:.1,ops_visibility:.1,sync_brand_pipeline:.08,team_delegation:.08}}};function o(e,t,a={}){let s=a.scoringConfig??n,i=s.weights_per_vertical[e.vertical_id];if(!i)throw Error(`[scoring] No weights_per_vertical[${e.vertical_id}] in scoring_config. This vertical is a stub in v2.1.0 — May 1 routes it to waitlist instead. Did the form-slug router gate get bypassed?`);let d=function(e,t,a){let s=new Map,i=e=>{let t=s.get(e);return t||(t={raw:0,no_se_count:0,contributing_q_ids:[]},s.set(e,t)),t};for(let s of e.questions){if(!s.scored||0===s.feeds.length)continue;let e=t[s.q_id];if("string"!=typeof e||""===e)continue;let n=s.options.find(t=>t.option_id===e);if(!n||null===n.score)continue;let o=!0===n.is_no_se,r=o?n.score*a:n.score;for(let e of s.feeds){let t=i(e.dimension);t.raw+=r*e.weight_within_dimension,o&&(t.no_se_count+=1),t.contributing_q_ids.push(s.q_id)}}return[...s.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({dimension:e,score:l(r(t.raw)),weight:0,contributing_q_ids:t.contributing_q_ids,no_se_count:t.no_se_count}))}(e,t,s.no_se_penalty),{dimensionsAfterTax:c,visibility_penalty_applied:u}=function(e,t,a){let s=0;for(let a of e.questions){if(!a.scored||!a.triggers_visibility_penalty)continue;let e=t[a.q_id];if("string"!=typeof e)continue;let i=a.options.find(t=>t.option_id===e);i?.is_no_se===!0&&(s+=1)}let i=Math.max(0,1-.05*s);return{dimensionsAfterTax:a.map(e=>"ops_visibility"===e.dimension?{...e,score:l(e.score*i)}:e),visibility_penalty_applied:Math.round(100*i)/100}}(e,t,d),m=0,p=0,h=c.map(e=>{let t=i[e.dimension]??0;return m+=e.score*t,p+=t,{...e,weight:t}}),_=p>0?r(m/p):0,f=function(e,t){for(let[a,[s,i]]of[["starter",t.starter],["scaling",t.scaling],["system",t.system],["compound",t.compound]])if(e>=s&&e<i)return a;return"compound"}(_,s.score_band_thresholds),b=function(e,t){let a={};for(let s of e.questions){if(!s.metadata_key)continue;let e=t[s.q_id];"string"==typeof e&&""!==e&&(a[s.metadata_key]=e)}return a}(e,t);return{vertical_id:e.vertical_id,total_score:l(_),band:f,dimensions:h,visibility_penalty_applied:u,metadata:b}}function r(e){return Math.min(100,Math.max(0,e))}function l(e){return Math.round(10*e)/10}var d=e.i(75679);let c=[{value:"recording_artist",label_es:"Artista / Productor",label_en:"Recording Artist / Producer"},{value:"live_performer",label_es:"DJ / Performer en vivo",label_en:"DJ / Live Performer"},{value:"producer",label_es:"Productor / Mezclador",label_en:"Producer / Engineer"},{value:"songwriter",label_es:"Compositor / Letrista",label_en:"Songwriter / Composer"},{value:"content_creator",label_es:"Creador de contenido",label_en:"Content Creator"},{value:"manager",label_es:"Manager / Representante",label_en:"Manager"},{value:"label",label_es:"Sello / Empresa",label_en:"Label / Company"},{value:"other",label_es:"Otro",label_en:"Other"}];function u(e,t){let a=c.find(t=>t.value===e);return a?"es"===t?a.label_es:a.label_en:e}let m=["Hip Hop / Rap","R&B / Soul","Pop","Electronic / Dance","Rock / Indie","Latin","Country / Folk","Jazz / Classical","Afrobeats / Global","Other"];var p=e.i(65);let h={ecoEyebrow:"PASO 2 · TU ECOSISTEMA",ecoTitle:"Conecta tus entradas",refsEyebrow:"PASO 3 · REFERENCIAS",refsTitle:"Tu Escena Sónica",idyEyebrow:"PASO 4 · IDENTIDAD",idyTitle:"Quién firma este escaneo",calEyebrow:"PASO 5 · CALIBRACIÓN",calTitle:"Calibración",calIntro:"Responder honesto vale más que adivinar: el mapa se construye con lo que sí sabes.",gateEyebrow:"PASO FINAL COMPLETADO AL 95%",gateTitle:"Último paso",channelWord:"CANAL",barQuestion:e=>`pregunta ${e}`,barStep:e=>`paso ${e}`,optionsAria:e=>`Opciones de la pregunta ${e}`,editAnswerAria:e=>`Editar respuesta de la pregunta ${e}`,skipQuestionAria:"Saltar la pregunta",openPlaceholder:"Escribe tu respuesta…",sendLabel:"Enviar",skipThis:"Saltar esta",skippedValue:"(saltada)",skippedMoment:"(saltado)",railEmptyHint:"CADA MOMENTO ATERRIZA AQUÍ AL CERRARSE",railTitle:"Tus respuestas",railEditHint:"TOCA PARA EDITAR",agentWord:"agente",followers:"seguidores",subscribers:"suscriptores",railInputs:"ENTRADAS",railScene:"ESCENA",railIdentity:"IDENTIDAD",railProfile:"PERFIL",railEmail:"EMAIL",ecoStem:"Conecta tus entradas, suelta tus handles aquí",ecoSub:"mientras más compartas, más rico el escaneo.",continue:"Continuar →",ecoSkip:"¿No los tienes a mano? Salta y sigue →",ecoBar:"Ya completaste el primer paso: llegar.",refsStem:"Nombra de 1 a 5 artistas con los que resuene tu trabajo.",refsSub:"Gigantes o de nicho, lo que cuenta es lo que significan para ti. Con ellos armamos tu Escena Sónica: el mapa de dónde suena lo tuyo.",refsDropHeader:"ESCENA SÓNICA · CONFIRMA EN LA BASE",refsSearching:"BUSCANDO…",refsNoResults:"sin resultados · envía para agregarlo igual",refsDegraded:"No pudimos buscar tu señal ahora mismo. Puedes seguir sin confirmar.",refsPlaceholderEmpty:"Escribe un artista y envía…",refsPlaceholderMore:"Otro artista, o Continuar abajo…",refsRemove:e=>`Quitar ${e}`,idyStem:"Quién firma este escaneo",idySub:"Tu nombre y tu rol calibran la lectura: no es lo mismo el mapa de un productor que el de un sello.",idyNamePlaceholder:"Nombre y apellido",idyNameMin:"Tu nombre debe tener al menos 2 caracteres.",idyNameMax:"Tu nombre pasa de 120 caracteres.",idyProjectStem:"Nombre artístico / del proyecto",idyProjectSub:"El nombre con el que firmas tu música/contenido",idyProjectPlaceholder:"ej., Outlier",idyProjectRequired:"Ingresa tu nombre artístico o del proyecto.",idyProjectMax:"Pasa de 200 caracteres. Acórtalo un poco.",hermesFound:"Te encontramos.",hermesFoundSub:"Toca tu perfil y el escaneo queda anclado a tu señal real, no a un promedio.",hermesSpotifyLabel:"SPOTIFY · TOCA EL TUYO",hermesNote:"Solo leemos lo que ya es público. Tu confirmación ancla el escaneo a tus perfiles reales.",hermesManual:"¿Ninguno eres tú? Pega el link de tu perfil de Spotify, YouTube, Instagram o SoundCloud y seguimos.",hermesManualPlaceholder:"pega el link de tu perfil",hermesManualError:"Ese link no parece un perfil válido. Pega tu Spotify, YouTube, Instagram o SoundCloud.",roleAria:"Tu rol",noResultsShort:"sin resultados",idyMiniName:"TU NOMBRE",idyMiniRole:"TU ROL",idyMiniProject:"TU PROYECTO",idyMiniProfile:"TU PERFIL",idyMiniGenre:"TU GÉNERO",idyMiniSite:"TU SITIO",genreStem:"Tu género o formato",genreSub:"Elige el más cercano a lo que haces.",siteStem:"Tu sitio web",siteSub:"Opcional. También lo leemos como parte de tu señal pública.",sitePlaceholder:"tudominio.com",gateStem:"¿A dónde te enviamos tu Sound Check?",gateConsent:"Envíame mi escaneo y notas ocasionales de crecimiento de El Sound System. Cancelo cuando quiera.",gateConsentError:"Marca la casilla para que podamos enviarte tu escaneo.",gateEmailPlaceholder:"[email protected]",gateEmailEmpty:"Ingresa tu correo.",gateEmailInvalid:"Ese correo no parece válido. Revisa el formato ([email protected]).",gateMissingFields:"Faltan campos por completar. Están marcados aquí abajo.",gateCta:"Ver mis resultados →",gateMini:"TU EMAIL",gateEditEmailAria:"Editar tu correo",scanKicker:"AGENT · LIVE SCAN",scanCoverage:e=>
1`Leyendo tu se\xf1al p\xfablica \xb7 ${e}/16 fuentes`,scanCapturing:e=>`Capturando ${e}…`,scanFallbackTitle:"Tu Sound Check, basado en tus respuestas.",scanSeeResult:"Ver mi resultado →",scanTermBar:"soundcheck · agente",scanMessage:e=>`⏺ Se\xf1al completa: 13 respuestas, 9 canales.
2⏺ Escaneando tu se\xf1al p\xfablica: ${e}.
3⏺ Comparando cada canal con el nivel de la escena en tu etapa.
4⏺ Componiendo tu mapa: score, lectura y primera jugada.
5› listo. tu resultado est\xe1 subiendo…`,scanWebsiteChip:"Sitio web",progressAria:"Preguntas respondidas",progress:(e,t)=>e>=t?`${t}/${t}`:`${e}/${t} \xb7 te falta${1==t-e?"":"n"} ${t-e}`,progressTail:e=>e>0?` \xb7 te falta${1===e?"":"n"} ${e}`:"",themeToLight:"Cambiar a tema claro",themeToDark:"Cambiar a tema oscuro",railSave:"Actualizar",errOffline:"Estás sin conexión. Tus respuestas están guardadas; vuelve a intentar cuando recuperes internet.",errMissing:"Quedan preguntas marcadas por responder.",errServer:"No pudimos guardar tu escaneo. Vuelve a intentarlo."},_={es:h,en:{ecoEyebrow:"STEP 2 · YOUR ECOSYSTEM",ecoTitle:"Connect your inputs",refsEyebrow:"STEP 3 · REFERENCES",refsTitle:"Your Sonic Scene",idyEyebrow:"STEP 4 · IDENTITY",idyTitle:"Who signs this scan",calEyebrow:"STEP 5 · CALIBRATION",calTitle:"Calibration",calIntro:"Answering honestly is worth more than guessing: the map is built from what you do know.",gateEyebrow:"FINAL STEP, 95% COMPLETE",gateTitle:"Last step",channelWord:"CHANNEL",barQuestion:e=>`question ${e}`,barStep:e=>`step ${e}`,optionsAria:e=>`Question ${e} options`,editAnswerAria:e=>`Edit the answer to question ${e}`,skipQuestionAria:"Skip the question",openPlaceholder:"Type your answer…",sendLabel:"Send",skipThis:"Skip this",skippedValue:"(skipped)",skippedMoment:"(skipped)",railEmptyHint:"EACH MOMENT LANDS HERE AS IT CLOSES",railTitle:"Your answers",railEditHint:"TAP TO EDIT",agentWord:"agent",followers:"followers",subscribers:"subscribers",railInputs:"INPUTS",railScene:"SCENE",railIdentity:"IDENTITY",railProfile:"PROFILE",railEmail:"EMAIL",ecoStem:"Connect your inputs, drop your handles here",ecoSub:"the more you share, the richer the scan.",continue:"Continue →",ecoSkip:"Don't have them handy? Skip and keep going →",ecoBar:"You already finished the first step: arriving.",refsStem:"Name 1 to 5 artists your work resonates with.",refsSub:"Giants or niche, what counts is what they mean to you. With them we build your Sonic Scene: the map of where your sound lives.",refsDropHeader:"SONIC SCENE · CONFIRM IN THE DATABASE",refsSearching:"SEARCHING…",refsNoResults:"no results · send it to add it anyway",refsDegraded:"We couldn't search your signal right now. You can keep going without confirming.",refsPlaceholderEmpty:"Type an artist and send…",refsPlaceholderMore:"Another artist, or Continue below…",refsRemove:e=>`Remove ${e}`,idyStem:"Who signs this scan",idySub:"Your name and role calibrate the read: a producer's map is not a label's map.",idyNamePlaceholder:"Name and surname",idyNameMin:"Your name must be at least 2 characters.",idyNameMax:"Your name is over 120 characters.",idyProjectStem:"Artist / project name",idyProjectSub:"The name you sign your music/content with",idyProjectPlaceholder:"e.g., Outlier",idyProjectRequired:"Enter your artist or project name.",idyProjectMax:"That's over 200 characters. Shorten it a little.",hermesFound:"We found you.",hermesFoundSub:"Tap your profile and the scan anchors to your real signal, not to an average.",hermesSpotifyLabel:"SPOTIFY · TAP YOURS",hermesNote:"We only read what is already public. Your confirmation anchors the scan to your real profiles.",hermesManual:"None of these you? Paste your Spotify, YouTube, Instagram, or SoundCloud profile link and we keep going.",hermesManualPlaceholder:"paste your profile link",hermesManualError:"That link doesn't look like a valid profile. Paste your Spotify, YouTube, Instagram, or SoundCloud.",roleAria:"Your role",noResultsShort:"no results",idyMiniName:"YOUR NAME",idyMiniRole:"YOUR ROLE",idyMiniProject:"YOUR PROJECT",idyMiniProfile:"YOUR PROFILE",idyMiniGenre:"YOUR GENRE",idyMiniSite:"YOUR SITE",genreStem:"Your genre or format",genreSub:"Pick the closest to what you do.",siteStem:"Your website",siteSub:"Optional. We also read it as part of your public signal.",sitePlaceholder:"yourdomain.com",gateStem:"Where do we send your Sound Check?",gateConsent:"Send me my scan and the occasional growth note from El Sound System. I can cancel anytime.",gateConsentError:"Check the box so we can send you your scan.",gateEmailPlaceholder:"[email protected]",gateEmailEmpty:"Enter your email.",gateEmailInvalid:"That email doesn't look valid. Check the format ([email protected]).",gateMissingFields:"Some fields are missing. They are marked below.",gateCta:"See my results →",gateMini:"YOUR EMAIL",gateEditEmailAria:"Edit your email",scanKicker:"AGENT · LIVE SCAN",scanCoverage:e=>`Reading your public signal \xb7 ${e}/16 sources`,scanCapturing:e=>`Capturing ${e}…`,scanFallbackTitle:"Your Sound Check, based on your answers.",scanSeeResult:"See my result →",scanTermBar:"soundcheck · agent",scanMessage:e=>`⏺ Signal complete: 13 answers, 9 channels.
6⏺ Scanning your public signal: ${e}.
7⏺ Comparing each channel to the scene level at your stage.
8⏺ Composing your map: score, read, and first move.
9› done. your result is coming up…`,scanWebsiteChip:"Website",progressAria:"Questions answered",progress:(e,t)=>e>=t?`${t}/${t}`:`${e}/${t} \xb7 ${t-e} to go`,progressTail:e=>e>0?` \xb7 ${e} to go`:"",themeToLight:"Switch to light theme",themeToDark:"Switch to dark theme",railSave:"Update",errOffline:"You're offline. Your answers are saved; try again when your connection is back.",errMissing:"There are still questions marked to answer.",errServer:"We couldn't save your scan. Try again."}};function f(e){return _[e]??h}function b({href:e,otherLocale:a,className:s}){return(0,t.jsx)("a",{href:e,hrefLang:a,className:s,"aria-label":"en"===a?"Switch to English":"Cambiar a Español",children:"en"===a?"EN":"ES"})}var y=e.i(15898);function g({answered:e,questionTotal:s,fillPct:i,theme:n,locale:o,mou
9nted:r,onToggleTheme:l}){let d=f(o),c="dark"===n,u=s-e,m=(0,a.usePathname)(),p="en"===o?m.replace(/^\/en(?=\/|$)/,"")||"/":`/en${m}`;return(0,t.jsxs)("header",{className:y.default.slim,children:[(0,t.jsxs)("span",{className:y.default.tube,children:[(0,t.jsx)("span",{className:y.default.pipe,role:"progressbar","aria-valuemin":0,"aria-valuemax":s,"aria-valuenow":e,"aria-label":d.progressAria,children:(0,t.jsx)("span",{className:y.default.pipeFill,style:{width:`${Math.min(100,i)}%`}})}),(0,t.jsxs)("span",{className:y.default.tubeN,children:[(0,t.jsx)("b",{children:e}),"/",s,d.progressTail(u)]})]}),(0,t.jsxs)("span",{className:y.default.slimRight,children:[(0,t.jsx)(b,{href:p,otherLocale:"en"===o?"es":"en",className:y.default.langTgl}),(0,t.jsxs)("button",{type:"button",className:y.default.tgl,onClick:l,"aria-label":c?d.themeToLight:d.themeToDark,"aria-pressed":c,children:[(0,t.jsx)("span",{className:r&&c?y.default.tglOn:"",children:"☾"}),(0,t.jsx)("span",{className:r&&!c?y.default.tglOn:"",children:"☀"})]})]})]})}var x=e.i(78777),v=e.i(19980);let S=[["musicbrainz","MusicBrainz"],["website","Sitio web"],["spotify","Spotify"],["apple_music","Apple Music"],["youtube","YouTube"],["soundcloud","SoundCloud"],["tiktok","TikTok"],["instagram","Instagram"],["bandcamp","Bandcamp"],["tidal","TIDAL"],["deezer","Deezer"],["audiomack","Audiomack"],["lastfm","Last.fm"],["mixcloud","Mixcloud"],["bandsintown","Bandsintown"],["songkick","Songkick"]];function k(e,t){let a=(t??"").trim();if(!a)return null;if(a.includes("://"))return a;let s=a.replace(/^@/,"");return s?"instagram"===e?`https://instagram.com/${s}`:"youtube"===e?s.includes("/")?`https://www.youtube.com/${s}`:`https://www.youtube.com/@${s}`:`https://soundcloud.com/${s}`:null}function w({scanId:e,artistName:a,ecosystem:i,websiteUrl:n,locale:o,theme:r,onReadyChange:l,onSeeResults:d}){let c=(0,x.useReducedMotion)(),u=f(o),[m,p]=(0,s.useState)(!1),[h,_]=(0,s.useState)({}),[b,g]=(0,s.useState)(0),[j,N]=(0,s.useState)(null),[C,E]=(0,s.useState)(!1),[T,A]=(0,s.useState)(!1),[I,q]=(0,s.useState)(!1),M=(0,s.useRef)(!1),$=(0,s.useMemo)(()=>{let e=[i.spotify_artist_url?"Spotify":null,i.youtube?"YouTube":null,i.tiktok?"TikTok":null,i.instagram?"Instagram":null,i.soundcloud?"SoundCloud":null,n?u.scanWebsiteChip:null].filter(Boolean),t=e.length?e.join(", "):"Spotify, TikTok, Instagram, YouTube";return u.scanMessage(t)},[i,n,u]);(0,s.useEffect)(()=>{if(c)return void p(!0);let e=setTimeout(()=>p(!0),60);return()=>clearTimeout(e)},[c]),(0,s.useEffect)(()=>{if(M.current)return;M.current=!0;let t=k("youtube",i.youtube),s=k("soundcloud",i.soundcloud),r=k("instagram",i.instagram);fetch("/api/scan/submit",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({scan_id:e,artist_name:a,locale:o,...i.spotify_artist_url?{spotify_url:i.spotify_artist_url}:{},...n?{website_url:n}:{},...t?{youtube_url:t}:{},...s?{soundcloud_url:s}:{},...r?{instagram_url:r}:{}})}).catch(()=>{})},[e,a,o,i,n]),(0,s.useEffect)(()=>{let t=!1,a=async()=>{try{let a=await fetch(`/api/hermes/findings/${e}`,{credentials:"same-origin"});if(!a.ok||t)return;let s=await a.json();if(!s.platforms_detected)return;let i={};for(let e of s.platforms_detected)i[e.platform]="found"===e.status?"found":"not_found"===e.status?"not":"idle";_(i),g(s.coverage?.found??0),("completed"===s.agent_status||"failed"===s.agent_status)&&(A("completed"===s.agent_status&&!0!==s.fallback),E(!0),t=!0)}catch{}},s=setInterval(()=>{t||a()},2e3);a();let i=setTimeout(()=>{t=!0,q(!0)},25e3);return()=>{t=!0,clearInterval(s),clearTimeout(i)}},[e]),(0,s.useEffect)(()=>{if(c||C)return void N(null);let e=0,t=setInterval(()=>{let[t,a]=S[e%S.length];N(u.scanCapturing("website"===t?u.scanWebsiteChip:a)),_(a=>{if("found"===a[t]||"not"===a[t])return a;let s={...a,[t]:"scan"},[i]=S[(e-1+16)%16];return"scan"===s[i]&&(s[i]="idle"),s}),e++},430);return()=>clearInterval(t)},[c,C,u]);let{typed:R,done:P}=(0,v.useTypewriter)($,{startDelayMs:1700,reduced:c}),L=P&&(C||I),D=L&&!T;return(0,s.useEffect)(()=>{l?.(L)},[L,l]),(0,t.jsxs)(t.Fragment,{children:["dark"===r?(0,t.jsx)("div",{className:`${y.default.scanOverlay} ${m?y.default.scanOverlayOn:""}`,"aria-hidden":"true"}):null,(0,t.jsxs)("div",{className:y.default.scanScreen,children:[(0,t.jsx)("span",{className:y.default.scanKick,children:u.scanKicker}),(0,t.jsx)("span",{className:y.default.scanCov,role:"status","aria-live":"polite",children:u.scanCoverage(b)}),(0,t.jsx)("span",{className:y.default.scanActive,"aria-hidden":"true",children:j??""}),(0,t.jsx)("div",{className:y.default.chiprow,"aria-hidden":"true",children:S.map(([e,a])=>{let s=h[e]??"idle";return(0,t.jsx)("span",{className:`${y.default.pchip} ${"scan"===s?y.default.pchipScan:"found"===s?y.default.pchipFound:"not"===s?y.default.pchipNot:""}`,children:"website"===e?u.scanWebsiteChip:a},e)})}),(0,t.jsxs)("div",{className:y.default.term,children:[(0,t.jsxs)("div",{className:y.default.termBar,children:[(0,t.jsx)("i",{}),(0,t.jsx)("i",{}),(0,t.jsx)("i",{}),(0,t.jsx)("span",{children:u.scanTermBar})]}),(0,t.jsxs)("pre",{className:y.default.termBody,"aria-hidden":"true",children:[(0,t.jsx)("span",{className:y.default.prompt,children:"$"})," ",R,P?null:(0,t.jsx)("span",{className:y.default.caret,children:"▮"})]}),(0,t.jsx)("span",{className:y.default.srOnly,children:$})]}),D?(0,t.jsx)("div",{className:y.default.shead,children:(0,t.jsx)("h2",{className:y.default.stitle,children:u.scanFallbackTitle})}):null,L?(0,t.jsx)("div",{className:y.default.ctaRow,children:(0,t.jsx)("button",{type:"button",className:y.default.btnGo,onClick:d,children:u.scanSeeResult})}):null]})]})}var j=e.i(66250);function N(){let e=(0,s.useRef)(null),t=(0,x.useReducedMotion)();return(0,s.useEffect)(()=>{let a=e.current;if(!a)return;let s=setTimeout(()=>a.scrollIntoView({behavior:t?"auto":"smooth",block:"start"}),60),i=setTimeout(()=>{Math.abs(a.getBoundingClientRect().top-60)>90&&a.scrollIntoView({behavior:"auto",block:"start"})},t?120:900);return()=>{clearTimeout(s),clearTimeout(i)}},[]),e}function C({barLabel:e,intro:a,stem:s,sub:i,children:n,locale:o="es"}){let r=N();return(0,t.jsx)("div",{className:y.default.msg,ref:r,children:(0,t.jsxs)("div",{className:y.default.tbub,children:[(0,t.jsxs)("div",{className:y.default.tbBar,children:[(0,t.jsx)("i",{}),(0,t.jsx)("i",{}),(0,t.jsx)("i",{}),(0,t.jsxs)("span",{children:["soundcheck · ",(0,t.jsx)("b",{children:f(o).agentWord})," · ",e]})]}),(0,t.jsxs)("div",{className:y.default.tbBody,children:[(0,t.jsx)("span",{className:y.default.pr,children:"⏺"})," ",a?(0,t.jsxs)(t.Fragment,{children:[a,s?(0,t.jsx)("span",{className:y.default.stem,children:s}):null]}):s?(0,t.jsx)("span",{className:y.default.stemInline,children:s}):i?(0,t.jsx)("span",{children:i}
9):null,s&&i?(0,t.jsx)("span",{className:y.default.sub,children:i}):null,n]})]})})}function E({mini:e,children:a,flyId:s,onEdit:i,editLabel:n}){let o=(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsx)("span",{className:y.default.mini,children:e}):null,a]});return(0,t.jsx)("div",{className:`${y.default.msg} ${y.default.msgMe}`,children:i?(0,t.jsx)("button",{type:"button",className:`${y.default.meBub} ${y.default.meBubEdit}`,"data-fly-id":s,"aria-label":n,onClick:i,children:o}):(0,t.jsx)("div",{className:y.default.meBub,"data-fly-id":s,children:o})})}function T({items:e,onPick:a,ariaLabel:s}){return(0,t.jsx)("div",{className:y.default.chips,role:"group","aria-label":s,children:e.map(e=>(0,t.jsx)("button",{type:"button",className:`${y.default.chipo} ${e.isNose?y.default.chipoNose:""}`,onClick:()=>a(e),children:e.label},e.id))})}function A({prefix:e,placeholder:a,multiline:i,maxLength:n,sendLabel:o,validate:r,onSend:l}){let[d,c]=(0,s.useState)(""),[u,m]=(0,s.useState)(null),p=()=>{let e=d.trim();if(r){let t=r(e);if(t)return void m(t)}else if(!e)return;m(null),l(e)};return(0,t.jsx)("div",{className:y.default.inbubRow,children:(0,t.jsxs)("div",{style:{maxWidth:"min(440px, 92%)",width:"100%"},children:[(0,t.jsxs)("div",{className:y.default.inbub,children:[e?(0,t.jsx)("span",{className:y.default.pfx,children:e}):null,i?(0,t.jsx)("textarea",{value:d,maxLength:n,placeholder:a,"aria-invalid":!!u||void 0,onChange:e=>{c(e.target.value),m(null)}}):(0,t.jsx)("input",{type:"text",value:d,maxLength:n,placeholder:a,"aria-invalid":!!u||void 0,onChange:e=>{c(e.target.value),m(null)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),p())}}),(0,t.jsx)("button",{type:"button",className:y.default.send,"aria-label":o,onClick:p,children:"→"})]}),n?(0,t.jsxs)("p",{className:y.default.inbubCnt,children:[d.length,"/",n]}):null,u?(0,t.jsx)("p",{className:y.default.fieldErr,role:"alert",children:u}):null]})})}function I(){let e=N(),a=(0,s.useMemo)(()=>{let e=9+Math.floor(3*Math.random());return Array.from({length:e},(t,a)=>{let s=a/(e-1);return{ix:a,sx:Math.round(76*Math.random()-38),sy:Math.round(48*Math.random()-28),sz:(2.5+1.5*Math.random()).toFixed(1),ty:Math.round((10*Math.random()-5)*(1-s)),d:(.07*a).toFixed(2)}})},[]);return(0,t.jsx)("div",{className:y.default.ldots,ref:e,"aria-hidden":"true",children:a.map(e=>(0,t.jsx)("i",{style:{"--ix":e.ix,"--sx":`${e.sx}px`,"--sy":`${e.sy}px`,"--sz":`${e.sz}px`,"--ty":`${e.ty}px`,"--d":`${e.d}s`}},e.ix))})}function q({eyebrow:e,title:a,closed:s}){return(0,t.jsxs)("div",{className:`${y.default.shead} ${s?y.default.sheadClosed:""}`,children:[(0,t.jsx)("span",{className:y.default.eyebrow,children:e}),(0,t.jsxs)("h2",{className:y.default.stitle,children:[a,"."]})]})}function M({ordinal:e,hueToken:a,mnLight:s,mnDark:i}){let n=e%2==1?y.default.mnRight:y.default.mnLeft;return(0,t.jsxs)("div",{className:`${y.default.meganum} ${n}`,style:{"--sv-hue":`var(${a})`,"--mn-l1":`var(${s[0]})`,"--mn-l2":`var(${s[1]})`,"--mn-d1":`var(${i[0]})`,"--mn-d2":`var(${i[1]})`},"aria-hidden":"true",children:[(0,t.jsx)("div",{className:y.default.blob}),(0,t.jsx)("div",{className:y.default.n,children:e})]})}function $({rows:e,emptyHint:a,locale:i,onReanswer:n,renderEditor:o,listRef:r}){let l=f(i),[d,c]=(0,s.useState)(null),[u,m]=(0,s.useState)({}),p=e=>{c(null),m(t=>({...t,[e]:(t[e]??0)+1}))};return(0,t.jsxs)("aside",{className:y.default.rail,children:[(0,t.jsxs)("div",{className:y.default.railHd,children:[(0,t.jsx)("span",{className:y.default.railT,children:l.railTitle}),(0,t.jsx)("span",{className:y.default.railHint,children:l.railEditHint})]}),(0,t.jsxs)("div",{className:y.default.alist,ref:r,children:[e.map(e=>{let a=!!e.options?.length||!!e.editorKind,s=d===e.id,i=e.editorKind?`${e.id}:${u[e.id]??0}`:`${e.id}:${e.text}`;return(0,t.jsxs)("div",{className:`${y.default.arow} ${y.default.arowFlash}`,children:[(0,t.jsxs)("button",{type:"button",className:y.default.arowSum,onClick:a?()=>c(s?null:e.id):void 0,"aria-expanded":a?s:void 0,children:[(0,t.jsx)("span",{className:y.default.arowLb,children:e.label}),(0,t.jsx)("span",{className:y.default.arowVv,children:e.isNose?(0,t.jsx)("em",{children:e.text}):e.text}),a?(0,t.jsx)("span",{className:y.default.arowEd,children:"EDITAR"}):null]}),s&&e.editorKind&&o?(0,t.jsxs)("div",{onKeyDown:t=>{if("Enter"!==t.key)return;let a=t.target;"INPUT"===a.tagName&&"combobox"!==a.getAttribute("role")&&(a.blur(),setTimeout(()=>p(e.id),0))},children:[o(e),(0,t.jsx)("div",{className:y.default.railEdActions,children:(0,t.jsx)("button",{type:"button",className:y.default.btnUpdate,onClick:()=>p(e.id),children:"Actualizar"})})]}):s&&e.options?.length?(0,t.jsx)("div",{className:`${y.default.optsEd} ${y.default.listCap}`,children:e.options.map(a=>(0,t.jsx)("button",{type:"button",className:`${a.id===e.currentId?y.default.cur:""} ${a.isNose?y.default.noseOpt:""}`,onClick:()=>{c(null),n(e.id,a)},children:a.label},a.id))}):null]},i)}),0===e.length?(0,t.jsx)("span",{className:y.default.railEmpty,children:a}):null]})]})}let R=[{key:"instagram",name:"INSTAGRAM",prefix:"@",placeholder:"tuhandle"}
9,{key:"tiktok",name:"TIKTOK",prefix:"@",placeholder:"tuhandle"},{key:"youtube",name:"YOUTUBE",prefix:"@",placeholder:"canal"},{key:"soundcloud",name:"SOUNDCLOUD",prefix:"soundcloud.com/",placeholder:"tu-artist-slug"},{key:"spotify_artist_url",name:"SPOTIFY",prefix:"spotify.com/artist/",placeholder:"id de artista"}];function P(e,t){if(!t)return"";if("spotify_artist_url"===e){let e=t.match(/artist\/([A-Za-z0-9]+)/);return e?e[1]:t}return t}function L({ecosystem:e,onCommit:a}){let[i,n]=(0,s.useState)(()=>Object.fromEntries(R.map(t=>[t.key,P(t.key,e[t.key])]))),o=e=>{let t=function(e,t){let a,s=t.trim();if(!s)return"";if("spotify_artist_url"===e){let e=s.match(/artist\/([A-Za-z0-9]+)/),t=e?e[1]:s.replace(/[^A-Za-z0-9]/g,"");return t?`https://open.spotify.com/artist/${t}`:""}return(a=s.trim())?a=(a=(a=(a=a.replace(/^https?:\/\/(www\.)?/i,"")).replace(/^(instagram\.com|tiktok\.com|youtube\.com|soundcloud\.com)\//i,"")).replace(/\/+$/,"")).replace(/^@/,""):a}(e,i[e]??"");a({[e]:t}),t&&n(a=>({...a,[e]:P(e,t)}))};return(0,t.jsx)("div",{className:y.default.handles,children:R.map(e=>{let a=!!(i[e.key]??"").trim();return(0,t.jsxs)("div",{className:y.default.hrow,children:[(0,t.jsx)("span",{className:y.default.platName,"aria-hidden":"true",children:e.name}),(0,t.jsx)("span",{className:y.default.pfx,"aria-hidden":"true",children:e.prefix}),(0,t.jsx)("input",{type:"text",value:i[e.key]??"",placeholder:e.placeholder,"aria-label":`${e.name} ${e.prefix}`,onChange:t=>n(a=>({...a,[e.key]:t.target.value})),onBlur:()=>o(e.key),onKeyDown:t=>{"Enter"===t.key&&o(e.key)}}),a?(0,t.jsx)("span",{className:y.default.hok,children:"✓"}):null]},e.key)})})}function D({ecosystem:e,locale:a,onCommit:s,onContinue:i,onSkip:n}){let o=f(a);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:o.barStep(2),stem:o.ecoStem,sub:o.ecoSub,locale:a}),(0,t.jsx)("div",{children:(0,t.jsx)(L,{ecosystem:e,onCommit:s})}),(0,t.jsxs)("div",{className:y.default.ctaRow,children:[(0,t.jsx)("button",{type:"button",className:y.default.btnGo,onClick:i,children:o.continue}),(0,t.jsx)("button",{type:"button",className:y.default.skipln,onClick:n,children:o.ecoSkip})]}),(0,t.jsxs)("p",{className:y.default.momentBar,children:[(0,t.jsx)("i",{"aria-hidden":"true"}),o.ecoBar]})]})}function O({refs:e,onChange:a,locale:i,idPrefix:n="refs"}){let o=f(i),[r,l]=(0,s.useState)(""),[d,c]=(0,s.useState)(new Set),[u,m]=(0,s.useState)(-1),[p,h]=(0,s.use
9State)(""),_=(0,s.useRef)(null),b=(0,s.useRef)(null),{state:g,reset:x}=function(e,t=2){let[a,i]=(0,s.useState)({phase:"idle"}),n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let a=e.trim();if(n.current?.abort(),a.length<t)return;let s=new AbortController;n.current=s;let o=setTimeout(async()=>{i({phase:"loading"});try{let e=await fetch(`/api/artists/search?q=${encodeURIComponent(a)}`,{signal:s.signal});if(!e.ok)return void i({phase:"error"});let t=await e.json();i({phase:"done",results:t.results??[]})}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;i({phase:"error"})}},220);return()=>{clearTimeout(o),s.abort()}},[e,t]),{state:e.trim().length<t?{phase:"idle"}:a,reset:()=>i({phase:"idle"})}}(r),v=e.length>=5,S="done"===g.phase?g.results:[],k="error"===g.phase,w=r.trim().length>=2&&!v&&p!==r;(0,s.useEffect)(()=>{u<0||b.current?.querySelector(`#${n}-opt-${u}`)?.scrollIntoView({block:"nearest"})},[u,n]);let j=(t,s)=>{let i=t.trim();!i||v||e.some(e=>e.toLowerCase()===i.toLowerCase())||(a([...e,i]),s&&c(e=>new Set(e).add(i.toLowerCase())),l(""),x(),h(""),_.current?.focus())};return(0,t.jsxs)(t.Fragment,{children:[e.length>0?(0,t.jsx)("div",{className:y.default.pills,children:e.map(s=>(0,t.jsxs)("span",{className:y.default.pill,children:[s,d.has(s.toLowerCase())?(0,t.jsx)("b",{children:"✓"}):null,(0,t.jsx)("button",{type:"button",className:y.default.pillX,"aria-label":o.refsRemove(s),onClick:()=>{a(e.filter(e=>e!==s)),c(e=>{let t=new Set(e);return t.delete(s.toLowerCase()),t})},children:"×"})]},s))}):null,v?null:(0,t.jsxs)("div",{className:y.default.artwrap,children:[(0,t.jsxs)("div",{className:y.default.inbub,style:{borderRadius:14},children:[(0,t.jsx)("span",{className:y.default.pfx,"aria-hidden":"true",children:"♪"}),(0,t.jsx)("input",{ref:_,type:"text",role:"combobox","aria-expanded":w&&S.length>0,"aria-controls":`${n}-listbox`,"aria-autocomplete":"list","aria-activedescendant":u>=0?`${n}-opt-${u}`:void 0,value:r,placeholder:e.length?o.refsPlaceholderMore:o.refsPlaceholderEmpty,onChange:e=>{l(e.target.value),m(-1),h("")},onKeyDown:e=>{"ArrowDown"===e.key&&S.length?(e.preventDefault(),m(e=>(e+1)%S.length)):"ArrowUp"===e.key&&S.length?(e.preventDefault(),m(e=>e<=0?S.length-1:e-1)):"Enter"===e.key?(e.preventDefault(),u>=0&&S[u]?j(S[u].name,!0):j(r,!1)):"Escape"===e.key&&(h(r),m(-1))}}),(0,t.jsx)("button",{type:"button",className:y.default.send,"aria-label":o.sendLabel,onClick:()=>j(r,!1),children:"→"})]}),w?(0,t.jsxs)("div",{className:`${y.default.dropdown} ${y.default.listCap}`,ref:b,children:[(0,t.jsx)("p",{className:y.default.dh,children:o.refsDropHeader}),"loading"===g.phase?(0,t.jsx)("p",{className:y.default.dh,children:o.refsSearching}):null,k?(0,t.jsx)("p",{className:y.default.dh,children:o.refsDegraded}):null,S.length>0?(0,t.jsx)("div",{id:`${n}-listbox`,role:"listbox",children:S.map((e,a)=>{let s=e.description?e.description:e.aliases&&e.aliases.length>0?e.aliases.slice(0,2).join(", "):"wikidata"===e.source?"Wikidata":"Last.fm";return(0,t.jsxs)("button",{id:`${n}-opt-${a}`,type:"button",role:"option","aria-selected":a===u,className:y.default.dopt,onMouseEnter:()=>m(a),onClick:()=>j(e.name,!0),children:[e.image?(0,t.jsx)("img",{className:y.default.dav,src:e.image,alt:""}):(0,t.jsx)("span",{className:y.default.dav,"aria-hidden":"true"}),e.name,s||a===u?(0,t.jsxs)("span",{className:y.default.dmeta,children:[a===u?(0,t.jsx)("b",{children:"✓ "}):null,s]}):null]},e.id)})}):null,"done"!==g.phase||k||0!==S.length?null:(0,t.jsx)("p",{className:y.default.dh,children:o.refsNoResults})]}):null]})]})}function U({refs:e,locale:a,onChange:s,onContinue:i}){let n=f(a);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:n.barStep(3),stem:n.refsStem,sub:n.refsSub,locale:a}),(0,t.jsx)("div",{children:(0,t.jsx)(O,{refs:e,onChange:s,locale:a,idPrefix:"refs"})}),(0,t.jsx)("div",{className:y.default.ctaRow,children:(0,t.jsx)("button",{type:"button",className:y.default.btnGo,disabled:e.length<1,onClick:i,children:n.continue})})]})}async function F(e,t){try{let a=await fetch(`/api/hermes/candidates?artist_name=${encodeURIComponent(e.trim())}`,{signal:t});if(!a.ok)return{phase:"error"};return{phase:"done",data:await a.json()}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return{phase:"idle"};return{phase:"error"}}}
9let z={"Electronic / Dance":"Electrónica / Dance",Latin:"Latina","Jazz / Classical":"Jazz / Clásica",Other:"Otro"},Y=(e,t)=>"en"===t?e:z[e]??e,B="__manual_spotify";function W(e){let t=e.trim();if(!t)return null;let a=t.toLowerCase(),s=/^https?:\/\//i.test(t)?t:`https://${t}`;if(a.includes("spotify.com")||/^[A-Za-z0-9]{22}$/.test(t)){let e=function(e){let t=e.trim();if(!t)return"";let a=t.match(/artist\/([A-Za-z0-9]+)/),s=a?a[1]:/^[A-Za-z0-9]+$/.test(t)?t:"";return s?`https://open.spotify.com/artist/${s}`:""}(t);return e?{platform:"spotify",url:e}:null}return a.includes("youtube.com")||a.includes("youtu.be")?{platform:"youtube",url:s}:a.includes("instagram.com")||a.includes("instagr.am")?{platform:"instagram",url:s}:a.includes("soundcloud.com")?{platform:"soundcloud",url:s}:null}function H(e,t,a){let s="spotify"===e?t.meta?.followers:t.meta?.subscribers;if("number"!=typeof s||s<=0)return null;let i=f(a),n="spotify"===e?i.followers:i.subscribers,o=new Intl.NumberFormat("en"===a?"en-US":"es-MX");return`${o.format(s)} ${n}`}function G({locale:e,onIdentity:a,onPickProfile:i,onWebsite:n,onDone:o}
9){let r=f(e),l=(0,x.useReducedMotion)(),[d,p]=(0,s.useState)("name"),[h,_]=(0,s.useState)(!1),[b,g]=(0,s.useState)(""),[v,S]=(0,s.useState)(""),[k,w]=(0,s.useState)(""),[j,N]=(0,s.useState)(""),[q,M]=(0,s.useState)(""),[$,R]=(0,s.useState)({phase:"idle"}),[P,L]=(0,s.useState)({}),D=(0,s.useRef)(!1),O=["spotify","youtube","instagram","soundcloud"],U=()=>{for(let e of O){let t=P[e];if(t)return[e,t]}return null},z=(t,a)=>{let s="spotify"===t||"youtube"===t?H(t,a,e):null;return`${a.name} ✓${s?` \xb7 ${s}`:""}`},V=e=>{_(!0),setTimeout(()=>{_(!1),p(e)},l?60:1400)};(0,s.useEffect)(()=>{if("hermes-loading"!==d)return;let e=!1;return(async()=>{let t=await F(k);e||(R(t),p("hermes"))})(),()=>{e=!0}},[d,k]);let K=t=>{if(D.current)return;D.current=!0;let a=U(),s=a?z(a[0],a[1]):null;o({identityLabel:`${b} \xb7 ${u(v,e)}`,profileLabel:s})},Q="done"===$.phase?$.data.candidates.spotify:[],J="done"===$.phase?$.data.candidates.youtube:[],Z="done"===$.phase&&0===Q.length&&0===J.length,X="error"===$.phase,ee=(e,t)=>{L(a=>({...a,[e]:t})),i(e,t.url)},et=!!U();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:r.barStep(4),stem:r.idyStem,sub:r.idySub,locale:e}),"name"!==d||h?null:(0,t.jsx)(A,{placeholder:r.idyNamePlaceholder,sendLabel:r.sendLabel,validate:e=>e.length<2?r.idyNameMin:e.length>120?r.idyNameMax:null,onSend:e=>{g(e),a("name",e),V("role")}}),b?(0,t.jsx)(E,{mini:r.idyMiniName,children:b}):null,"role"!==d||h?null:(0,t.jsx)(T,{ariaLabel:r.roleAria,items:c.map(t=>({id:t.value,label:u(t.value,e)})),onPick:e=>{S(e.id),a("role",e.id),V("artist")}}),v?(0,t.jsx)(E,{mini:r.idyMiniRole,children:u(v,e)}):null,"artist"!==d||h?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:r.barStep(4),stem:r.idyProjectStem,sub:r.idyProjectSub,locale:e}),(0,t.jsx)(A,{placeholder:r.idyProjectPlaceholder,sendLabel:r.sendLabel,validate:e=>0===e.length?r.idyProjectRequired:e.length>200?r.idyProjectMax:null,onSend:e=>{w(e),a("artist_project_name",e),p("hermes-loading")}})]}),k?(0,t.jsx)(E,{mini:r.idyMiniProject,children:k}):null,"hermes-loading"===d?(0,t.jsx)(I,{}):null,"hermes"===d?(0,t.jsxs)(t.Fragment,{children:[X||Z?(0,t.jsx)(C,{barLabel:r.barStep(4),locale:e,children:(0,t.jsx)("span",{className:y.default.degraded,children:X?r.refsDegraded:r.noResultsShort})}):(0,t.jsxs)(C,{barLabel:r.barStep(4),stem:r.hermesFound,sub:r.hermesFoundSub,locale:e,children:[(0,t.jsx)("div",{className:`${y.default.hcards} ${y.default.listCap}`,children:[["spotify",r.hermesSpotifyLabel,Q],["youtube","YOUTUBE",J]].map(([a,s,i])=>i.length?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:y.default.dh,style:{paddingLeft:0},children:s}),i.map(s=>(0,t.jsxs)("button",{type:"button",className:`${y.default.hcard} ${P[a]?.id===s.id?y.default.hcardSel:""}`,onClick:()=>ee(a,s),children:[s.image?(0,t.jsx)("img",{className:y.default.dav,src:s.image,alt:""}):(0,t.jsx)("span",{className:y.default.dav,"aria-hidden":"true"}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:y.default.hname,children:[s.name,P[a]?.id===s.id?" ✓":""]}),H(a,s,e)?(0,t.jsx)("span",{className:y.default.hmeta,children:H(a,s,e)}):null]})]},s.id))]},a):null)}),(0,t.jsx)("span",{className:y.default.sub,children:r.hermesNote}),et?null:(0,t.jsx)("span",{className:y.default.sub,children:r.hermesManual})]}),et?null:(0,t.jsx)(A,{placeholder:r.hermesManualPlaceholder,sendLabel:r.sendLabel,validate:e=>W(e)?null:r.hermesManualError,onSend:e=>{let t;(t=W(e))&&ee(t.platform,{id:B,name:k,url:t.url,meta:{}})}}),U()?.[1].id===B?(0,t.jsxs)(E,{mini:r.idyMiniProfile,children:[k," ✓"]}):null,(0,t.jsx)(T,{ariaLabel:r.continue,items:[{id:"__go",label:r.continue}],onPick:()=>V("genre")})]}):null,"name"!==d&&"role"!==d&&"artist"!==d&&"hermes-loading"!==d&&"hermes"!==d&&U()?(0,t.jsx)(E,{mini:r.idyMiniProfile,children:z(U()[0],U()[1])}):null,"genre"!==d||h?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:r.barStep(4),stem:r.genreStem,sub:r.genreSub,locale:e}),(0,t.jsx)(T,{ariaLabel:r.genreStem,items:m.map(t=>({id:t,label:Y(t,e)})),onPick:e=>{N(e.id),a("genre_format",e.id),V("website")}})]}),j?(0,t.jsx)(E,{mini:r.idyMiniGenre,children:Y(j,e)}):null,"website"!==d||h?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:r.barStep(4),stem:r.siteStem,sub:r.siteSub,locale:e}),(0,t.jsx)(A,{prefix:"https://",placeholder:r.sitePlaceholder,sendLabel:r.sendLabel,onSend:e=>{let t=/^https?:\/\//i.test(e)?e:`https://${e}`;M(t),n(t),p("done"),K(t)}}),(0,t.jsx)(T,{ariaLabel:r.continue,items:[{id:"__skip",label:r.continue,isNose:!0}],onPick:()=>{p("done"),K("")}})]}),q?(0,t.jsx)(E,{mini:r.idyMiniSite,children:q}):null,h?(0,t.jsx)(I,{}):null]})}let V=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function K({email:e,consent:a,submitStatus:i,locale:n,onEmail:o,onConsent:r,onSubmit:l}
9){let d=f(n),[c,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(null),h="submitting"===i.phase;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{barLabel:d.gateTitle.toLowerCase(),stem:d.gateStem,locale:n}),(0,t.jsx)("div",{className:y.default.chips,children:(0,t.jsx)("button",{type:"button",className:`${y.default.chipo} ${y.default.chipTog} ${a?y.default.chipTogOn:""}`,"aria-pressed":a,onClick:()=>{r(!a),a||p(null)},children:d.gateConsent})}),m?(0,t.jsx)("p",{className:y.default.fieldErr,role:"alert",style:{textAlign:"left"},children:m}):null,e?(0,t.jsx)(E,{mini:d.gateMini,onEdit:h?void 0:()=>o(""),editLabel:d.gateEditEmailAria,children:e}):(0,t.jsx)(A,{prefix:"✉",placeholder:d.gateEmailPlaceholder,sendLabel:d.sendLabel,validate:e=>0===e.length?d.gateEmailEmpty:V.test(e)?null:d.gateEmailInvalid,onSend:e=>{o(e),u(null)}}),(0,t.jsx)("div",{className:y.default.ctaRow,children:(0,t.jsx)("button",{type:"button",className:y.default.btnGo,disabled:h,onClick:()=>{if(!V.test(e.trim())||!a){u(d.gateMissingFields),p(a?null:d.gateConsentError);return}u(null),p(null),l()},children:d.gateCta})}),c?(0,t.jsx)("p",{className:y.default.fieldErr,role:"alert",style:{textAlign:"left"},children:c}):null,"error"===i.phase?(0,t.jsx)("p",{className:y.default.fieldErr,role:"alert",style:{textAlign:"left"},children:i.message}):null]})}let Q={"Electronic / Dance":"Electrónica / Dance",Latin:"Latina","Jazz / Classical":"Jazz / Clásica",Other:"Otro"};function J({identity:e,onIdentity:a}){let[i,n]=(0,s.useState)(e.name),[o,r]=(0,s.useState)(null),l=()=>{let e=i.trim();e.length<2?r("Tu nombre debe tener al menos 2 caracteres."):e.length>120?r("Tu nombre pasa de 120 caracteres."):(r(null),a("name",e))};return(0,t.jsxs)("div",{className:y.default.railEd,children:[(0,t.jsx)("span",{className:y.default.railEdLb,children:"TU NOMBRE"}),(0,t.jsx)("div",{className:y.default.hrow,children:(0,t.jsx)("input",{type:"text",value:i,"aria-label":"Tu nombre","aria-invalid":!!o||void 0,onChange:e=>{n(e.target.value),r(null)},onBlur:l,onKeyDown:e=>{"Enter"===e.key&&l()}})}),o?(0,t.jsx)("p",{className:y.default.fieldErr,role:"alert",children:o}):null,(0,t.jsx)("span",{className:y.default.railEdLb,children:"TU ROL"}),(0,t.jsx)("div",{className:`${y.default.optsEd} ${y.default.listCap}`,style:{padding:"2px 2px 6px"},children:c.map(s=>(0,t.jsx)("button",{type:"button",className:e.role===s.value?y.default.cur:"",onClick:()=>a("role",s.value),children:s.label_es},s.value))}),(0,t.jsx)("span",{className:y.default.railEdLb,children:"TU GÉNERO"}),(0,t.jsx)("div",{className:`${y.default.optsEd} ${y.default.listCap}`,style:{padding:"2px 2px 6px"},children:m.map(s=>(0,t.jsx)("button",{type:"button",className:e.genre_format===s?y.default.cur:"",onClick:()=>a("genre_format",s),children:Q[s]??s},s))})]})}function Z({artistName:e,pickedUrls:a,onPick:i}){let[n,o]=(0,s.useState)({phase:"idle"});if((0,s.useEffect)(()=>{let t=!1;return o({phase:"loading"}),F(e).then(e=>{t||"idle"===e.phase||o(e)}),()=>{t=!0}},[e]),"loading"===n.phase||"idle"===n.phase)return(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)("span",{className:y.default.railEdLb,children:"BUSCANDO…"})});if("error"===n.phase)return(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)("span",{className:y.default.degraded,children:"No pudimos buscar tu señal ahora mismo. Puedes seguir sin confirmar."})});let r=[["spotify","SPOTIFY",n.data.candidates.spotify],["youtube","YOUTUBE",n.data.candidates.youtube]].filter(([,,e])=>e.length>0);return 0===r.length?(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)("span",{className:y.default.degraded,children:"sin resultados"})}):(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)("div",{className:`${y.default.hcards} ${y.default.listCap}`,children:r.map(([e,s,n])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:y.default.railEdLb,children:s}),n.map(s=>{let n,o="number"!=typeof(n="spotify"===e?s.meta?.followers:s.meta?.subscribers)||n<=0?null:`${new Intl.NumberFormat("es-MX").format(n)} ${"spotify"===e?"seguidores":"suscriptores"}`,r=a[e]===s.url;return(0,t.jsxs)("button",{type:"button",className:`${y.default.hcard} ${r?y.default.hcardSel:""}`,onClick:()=>i(e,s),children:[s.image?(0,t.jsx)("img",{className:y.default.dav,src:s.image,alt:""}):(0,t.jsx)("span",{className:y.default.dav,"aria-hidden":"true"}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:y.default.hname,children:[s.name,r?" ✓":""]}),o?(0,t.jsx)("span",{className:y.default.hmeta,children:o}):null]})]},s.id)})]},e))})})}let X=e=>String(e).padStart(2,"0");function ee(e,t){var a;let s,i=e.q_id.match(/^q(\d+)/),n=(s=(a="en"===t&&e.stem_en||e.stem_es).match(/^(.*?)\s*\(([^()]+)\)\s*$/))?{stem:s[1],sub:s[2]}:{stem:a};return{qid:e.q_id,qNum:i?Number(i[1]):0,stem:n.stem,sub:n.sub,open:"open_140"===e.type,maxLength:e.max_length??("open_140"===e.type?140:void 0),options:e.options.map(e=>({id:e.option_id,label:"en"===t&&e.label_en||e.label_es,isNose:!!e.is_no_se}))}}function et({config:e,survey:a,locale:i,submitStatus:n,onSubmit:o,onProgress:r}){let l=(0,x.useReducedMotion)(),c=f(i),m=(0,s.useMemo)(()=>{let t,a,s,n;return t=f(i),s={key:"cal",kind:"channel",meganum:5,short:t.calEyebrow.split("·").pop()?.trim()??"CALIBRACIÓN",title:((a=e.sections.find(e=>"qualifier"===e.section_id))?("en"===i&&a.label_en||a.label_es)??"":"")||t.calTitle,eyebrow:t.calEyebrow,hueToken:"--editorial-ground-warm",mnLight:["--print-data-2","--print-data-3"],mnDark:["--data-2","--data-3"],chIndex:null,intro:t.calIntro,qs:e.questions.filter(e=>"qualifier"===e.section_id).map(e=>ee(e,i)).sort((e,t)=>
9e.qNum-t.qNum)},n={key:"gate",kind:"gate",meganum:6,short:t.railEmail,title:t.gateTitle,eyebrow:t.gateEyebrow,hueToken:"--editorial-section-6",mnLight:["--print-data-9","--print-data-8"],mnDark:["--data-9","--data-8"],chIndex:null,qs:[]},[{key:"eco",kind:"eco",meganum:2,short:t.railInputs,title:t.ecoTitle,eyebrow:t.ecoEyebrow,hueToken:"--editorial-section-1",mnLight:["--print-data-1","--print-data-2"],mnDark:["--data-1","--data-2"],chIndex:null,qs:[]},{key:"refs",kind:"refs",meganum:3,short:t.railScene,title:t.refsTitle,eyebrow:t.refsEyebrow,hueToken:"--editorial-section-1",mnLight:["--print-data-1","--print-data-2"],mnDark:["--data-1","--data-2"],chIndex:null,qs:[]},{key:"idy",kind:"idy",meganum:4,short:t.railIdentity,title:t.idyTitle,eyebrow:t.idyEyebrow,hueToken:"--editorial-section-1",mnLight:["--print-data-1","--print-data-2"],mnDark:["--data-1","--data-2"],chIndex:null,qs:[]},s,...j.SURVEY_DIMENSIONS.map((a,s)=>{let n,o;return n=j.SURVEY_DIMENSIONS[s],o=e.questions.filter(e=>e.scored&&e.feeds.some(e=>e.dimension===n.key)).map(e=>ee(e,i)).sort((e,t)=>e.qNum-t.qNum),{key:n.key,kind:"channel",meganum:s+1,short:(0,j.dimShort)(n,i),title:(0,j.dimSurface)(n,i),eyebrow:`${t.channelWord} ${X(s+1)} / ${X(j.SURVEY_DIMENSIONS.length)} \xb7 ${n.hz} HZ`,hueToken:n.hueToken,mnLight:n.mnLight,mnDark:n.mnDark,chIndex:s,qs:o}}),n]},[e,i]),{state:p,setEcosystem:h,setArtistRefs:_,setIdentity:b,setWebsiteUrl:g,setAnswer:v,setEmail:S,setConsent:k}=a,[w,N]=(0,s.useState)(0),[R,P]=(0,s.useState)(0),[F,z]=(0,s.useState)("think"),[Y,B]=(0,s.use
9State)(!1),[W,H]=(0,s.useState)({}),[V,Q]=(0,s.useState)([]),[ea,es]=(0,s.useState)([]),[ei,en]=(0,s.useState)(!1),[eo,er]=(0,s.useState)(null),[el,ed]=(0,s.useState)(null),ec=(0,s.useRef)(W);ec.current=W;let eu=(0,s.useRef)(null),em=(0,s.useRef)(null),ep=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if("think"!==F||Y)return;let e=setTimeout(()=>z("ask"),l?60:1400);return()=>clearTimeout(e)},[F,w,R,Y,l]);let eh=(0,s.useMemo)(()=>m.reduce((e,t)=>e+t.qs.length,0),[m]),e_=(0,s.useMemo)(()=>{let e=m[Math.min(w,m.length-1)],t=V.filter(e=>m[e]?.chIndex!==null&&m[e]?.kind==="channel").length,a=Object.keys(W).length,s=Math.round((ea.length+a)/(3+eh)*100);return{chIndex:e.chIndex??Math.max(0,Math.min(t-1,8)),closedChannels:t,hueToken:e.hueToken,answered:a,questionTotal:eh,fillPct:s}},[m,w,V,W,ea,eh]);(0,s.useEffect)(()=>{r(e_)},[e_,r]);let ef=(0,s.useRef)(!1),eb=(0,s.useRef)(!1),ey=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{ef.current||0===w&&"ask"===F&&(ef.current=!0,(0,d.scanStarted)({vertical:e.slug,locale:i}))},[w,F,e.slug,i]),(0,s.useEffect)(()=>{for(let t of V)ey.current.has(t)||(ey.current.add(t),(0,d.surveyStepCompleted)({step_index:t,section_id:m[t]?.key??String(t),vertical:e.slug}))},[V,m,e.slug]),(0,s.useEffect)(()=>{eb.current||m[w]?.kind==="gate"&&"ask"===F&&(eb.current=!0,(0,d.emailGateReached)({vertical:e.slug}))},[w,F,m,e.slug]);let eg=(0,s.useCallback)((e,t)=>{let a=em.current;if(!a||!e||l)return;let s=a.getBoundingClientRect(),i=document.createElement("div");i.className=y.default.fly,i.textContent=t,i.style.left=`${e.left}px`,i.style.top=`${e.top}px`,document.body.appendChild(i),requestAnimationFrame(()=>{i.style.transform=`translate(${s.left-e.left+8}px, ${(s.bottom||s.top+20)-e.top-20}px) scale(.7)`,i.style.opacity=".2"}),setTimeout(()=>i.remove(),650)},[l]),ex=(0,s.useCallback)(e=>{e+1<m.length?(N(e+1),P(0),z("think")):B(!0)},[m.length]),ev=(0,s.useCallback)((e,t=0)=>{ed(null),ep.current.has(e)||(ep.current.add(e),setTimeout(()=>{Q(t=>t.includes(e)?t:[...t,e]);let t=eu.current;!l&&t&&(t.style.maxHeight=`${t.scrollHeight}px`,t.offsetHeight,t.classList.add(y.default.folding),t.style.maxHeight="0px"),setTimeout(()=>ex(e),750*!l)},t))},[ex,l]),eS=(0,s.useCallback)(e=>{z("fold");let t=m[e],a=eu.current,s=0;!l&&a&&t.qs.forEach(e=>{let t=ec.current[e.qid];if(!t)return;let i=a.querySelector(`[data-fly-id="${e.qid}"]`);if(i){let e=i.getBoundingClientRect(),a=t.label;setTimeout(()=>eg(e,a),s),s+=240}}),ev(e,s+420*!l)},[m,l,eg,ev]),ek=(0,s.useCallback)((e,t,a)=>{if(ep.current.has(e))return;z("fold"),es(e=>e.includes(t)?e:[...e,t]);let s=eu.current;a&&s&&eg(s.getBoundingClientRect(),a),ev(e,300*!l)},[eg,ev,l]),ew=(0,s.useMemo)(()=>{let e=p.ecosystem,t=[e.instagram?`@${e.instagram}`:null,e.tiktok?`@${e.tiktok}`:null,e.youtube?e.youtube.includes("://")?"youtube ✓":`@${e.youtube}`:null,e.soundcloud??null,e.spotify_artist_url?"spotify ✓":null].filter(Boolean);return t.length?t.join(" · "):c.skippedMoment},[p.ecosystem,c]),ej=(0,s.useMemo)(()=>[p.identity.name||"",p.identity.role?u(p.identity.role,i):""].filter(Boolean).join(" · "),[p.identity,i]),eN=(0,s.useCallback)(e=>{en(e),ek(0,"eco",e?c.skippedMoment:ew)},[ew,ek,c]),eC=(0,s.useCallback)(()=>{ek(1,"refs",p.artistRefs.join(" · "))},[p.artistRefs,ek]),eE=(0,s.useCallback)(e=>{e.profileLabel&&er(e.profileLabel),ek(2,"idy",e.identityLabel)},[ek]),eT=(0,s.useCallback)((e,t)=>{h("spotify"===e?{spotify_artist_url:t.url}:{youtube:t.url});let a="spotify"===e?t.meta?.followers:t.meta?.subscribers,s="number"==typeof a&&a>0?` \xb7 ${new Intl.NumberFormat("en"===i?"en-US":"es-MX").format(a)} ${"spotify"===e?c.followers:c.subscribers}`:"";er(`${t.name} ✓${s}`)},[h,i,c]),eA=(0,s.useCallback)((e,t,a,s=!0)=>{H(e=>({...e,[t.qid]:a})),s&&v(t.qid,a.optionId??a.label);let i=R+1;P(i),i<e.qs.length&&z("think")},[R,v]);(0,s.useEffect)(()=>{if(Y||"fold"===F)return;let e=m[w];if("channel"!==e.kind||0===e.qs.length||R<e.qs.length)return;let t=setTimeout(()=>eS(w),520*!l);return()=>clearTimeout(t)},[w,R,F,Y,m,l,eS]);let eI=(0,s.useCallback)((e,t)=>{H(a=>({...a,[e.qid]:{label:t.label,optionId:t.id,isNose:!!t.isNose}})),v(e.qid,t.id),ed(null)},[v]),eq=(0,s.useMemo)(()=>{let e=[];for(let t of(ea.includes("eco")&&e.push({id:"rail-eco",label:c.railInputs,text:ew,isNose:ew===c.skippedMoment&&ei,editorKind:"ecosystem"}),ea.includes("refs")&&e.push({id:"rail-refs",label:c.railScene,text:p.artistRefs.join(" · "),editorKind:"refs"}),ea.includes("idy")&&(e.push({id:"rail-idy",label:c.railIdentity,text:ej,editorKind:"identity"}),eo&&e.push({id:"rail-perfil",label:c.railProfile,text:eo,editorKind:"profile"})),[...V].sort((e,t)=>
9e-t))){let a=m[t];if(a&&"channel"===a.kind)for(let t of a.qs){let s=W[t.qid];s&&e.push({id:t.qid,label:a.short,text:s.label,isNose:s.isNose,options:t.open?void 0:t.options,currentId:s.optionId})}}return p.email&&e.push({id:"rail-email",label:c.railEmail,text:p.email}),e},[ea,ew,ei,ej,eo,p.artistRefs,p.email,V,m,W,c]),eM=(0,s.useCallback)((e,t)=>{H(a=>({...a,[e]:{label:t.label,optionId:t.id,isNose:!!t.isNose}})),v(e,t.id)},[v]),e$=(0,s.useCallback)(e=>{switch(e.editorKind){case"ecosystem":return(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)(L,{ecosystem:p.ecosystem,onCommit:h})});case"refs":return(0,t.jsx)("div",{className:y.default.railEd,children:(0,t.jsx)(O,{refs:p.artistRefs,onChange:_,locale:i,idPrefix:"rail-refs"})});case"identity":return(0,t.jsx)(J,{identity:p.identity,onIdentity:(e,t)=>b(e,t)});case"profile":return(0,t.jsx)(Z,{artistName:p.identity.artist_project_name,pickedUrls:{spotify:p.ecosystem.spotify_artist_url,youtube:p.ecosystem.youtube},onPick:eT});default:return null}},[p.ecosystem,p.artistRefs,p.identity,h,_,b,eT]);return(0,t.jsxs)("div",{className:y.default.pageGrid,children:[(0,t.jsx)("div",{className:y.default.mainCol,children:(0,t.jsx)("div",{className:y.default.thread,"aria-live":"polite",children:m.map((e,a)=>{if(a>w)return null;if(a<w||Y&&V.includes(a))return(0,t.jsx)(q,{eyebrow:e.eyebrow,title:e.title,closed:!0},e.key);let r="channel"===e.kind&&e.qs.length>0?e.qs[Math.min(R,e.qs.length-1)].qNum:e.meganum;return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)(q,{eyebrow:e.eyebrow,title:e.title}),(0,t.jsxs)("div",{className:y.default.secwrap,ref:eu,children:[(0,t.jsx)(M,{ordinal:r,hueToken:e.hueToken,mnLight:e.mnLight,mnDark:e.mnDark}),"think"===F&&"channel"!==e.kind?(0,t.jsx)(I,{}):null,"think"!==F&&"eco"===e.kind?(0,t.jsx)(D,{ecosystem:p.ecosystem,locale:i,onCommit:h,onContinue:()=>eN(!1),onSkip:()=>eN(!0)}):null,"think"!==F&&"refs"===e.kind?(0,t.jsx)(U,{refs:p.artistRefs,locale:i,onChange:_,onContinue:eC}):null,"think"!==F&&"gate"===e.kind?(0,t.jsx)(K,{email:p.email,consent:p.consent,submitStatus:n,locale:i,onEmail:S,onConsent:k,onSubmit:o}):null,"think"!==F&&"idy"===e.kind?(0,t.jsx)(G,{locale:i,onIdentity:b,onPickProfile:(e,t)=>h("spotify"===e?{spotify_artist_url:t}:"youtube"===e?{youtube:t}:"instagram"===e?{instagram:t}:{soundcloud:t}),onWebsite:g,onDone:eE}):null,"channel"===e.kind?e.qs.map((a,n)=>{if(n>R)return null;let o=W[a.qid],r=n===R,l=el===a.qid;return(0,t.jsxs)(s.Fragment,{children:[r&&"think"===F?(0,t.jsx)(I,{}):null,r&&"think"===F?null:(0,t.jsx)(C,{barLabel:c.barQuestion(a.qNum),intro:0===n?e.intro:void 0,stem:a.stem,sub:a.sub,locale:i}),r&&"ask"===F&&!a.open?(0,t.jsx)(T,{items:a.options,ariaLabel:c.optionsAria(a.qNum),onPick:t=>eA(e,a,{label:t.label,optionId:t.id,isNose:!!t.isNose})}):null,r&&"ask"===F&&a.open?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A,{multiline:!0,maxLength:a.maxLength,placeholder:c.openPlaceholder,sendLabel:c.sendLabel,onSend:t=>eA(e,a,{label:t,isNose:!1})}),(0,t.jsx)(T,{items:[{id:"__skip",label:c.skipThis,isNose:!0}],ariaLabel:c.skipQuestionAria,onPick:()=>eA(e,a,{label:c.skippedValue,isNose:!0},!1)})]}):null,o?(0,t.jsx)(E,{flyId:a.qid,onEdit:"fold"!==F?()=>ed(l?null:a.qid):void 0,editLabel:c.editAnswerAria(a.qNum),children:o.label}):null,l&&o?(0,t.jsx)(T,{items:a.options,ariaLabel:c.editAnswerAria(a.qNum),onPick:e=>eI(a,e)}):null]},a.qid)}):null]})]},e.key)})})}),(0,t.jsx)($,{rows:eq,emptyHint:c.railEmptyHint,locale:i,onReanswer:eM,renderEditor:e$,listRef:em})]})}var ea=e.i(7512);function es({config:e,onComplete:i}){let{theme:n,mounted:r,toggle:l}
9=(0,ea.useSurveyTheme)(),c=function(e){let[t,a]=(0,s.useState)(()=>({scanId:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,startedAt:new Date().toISOString(),ecosystem:{},artistRefs:[],identity:{name:"",role:"",artist_project_name:"",genre_format:""},website_url:"",email:"",consent:!1,insightfulAnswer:"",website:"",answers:{__vertical:e}})),i=(0,s.useCallback)(e=>{a(t=>({...t,ecosystem:{...t.ecosystem,...e}}))},[]),n=(0,s.useCallback)(e=>{a(t=>({...t,artistRefs:e}))},[]),o=(0,s.useCallback)((e,t)=>{a(a=>({...a,identity:{...a.identity,[e]:t}}))},[]),r=(0,s.useCallback)(e=>{a(t=>({...t,website_url:e}))},[]),l=(0,s.useCallback)((e,t)=>{a(a=>({...a,answers:{...a.answers,[e]:t}}))},[]),d=(0,s.useCallback)(e=>{a(t=>({...t,email:e}))},[]),c=(0,s.useCallback)(e=>{a(t=>({...t,consent:e}))},[]);return(0,s.useMemo)(()=>({state:t,setEcosystem:i,setArtistRefs:n,setIdentity:o,setWebsiteUrl:r,setAnswer:l,setEmail:d,setConsent:c}),[t,i,n,o,r,l,d,c])}(e.slug),m=(0,a.useRouter)(),h=(0,a.usePathname)(),_=h?.startsWith("/en/")||"/en"===h?"en":"es",{status:b,submit:x}=function({config:e,locale:t,onComplete:a}){let[i,n]=(0,s.useState)({phase:"idle"}),r=(0,s.useRef)(!1);return{status:i,submit:(0,s.useCallback)(async s=>{var i,l,c;let m,p;if(r.current)return;r.current=!0,n({phase:"submitting"});let{payload:h,intake:_,body:b}=(i={scanId:s.scanId,step:0,startedAt:s.startedAt,ecosystem:s.ecosystem,artistRefs:s.artistRefs,identity:s.identity,email:s.email,consent:s.consent,insightfulAnswer:s.insightfulAnswer,website:s.website,answers:s.answers},l=e.slug,c=new Date().toISOString(),m={...i.answers,__scanId:i.scanId,__ecosystem_instagram:i.ecosystem.instagram??"",__ecosystem_tiktok:i.ecosystem.tiktok??"",__ecosystem_youtube:i.ecosystem.youtube??"",__ecosystem_soundcloud:i.ecosystem.soundcloud??"",__ecosystem_spotify:i.ecosystem.spotify_artist_url??"",__artist_refs:i.artistRefs,__identity_name:i.identity.name,__identity_role:i.identity.role,__identity_artist_project_name:i.identity.artist_project_name,__identity_genre_format:i.identity.genre_format,__email_consent:i.consent?"1":"0"},p=`${u(i.identity.role,t)} - ${i.identity.artist_project_name}`.trim(),{payload:m,intake:{fullName:i.identity.name,email:i.email,companyName:p,genreFormat:i.identity.genre_format,insightfulAnswer:i.insightfulAnswer},body:{scanId:i.scanId,vertical:l,language:t,tier:"free",personalIntake:{fullName:i.identity.name,email:i.email,role:i.identity.role,artistProjectName:i.identity.artist_project_name,companyName:p,genreFormat:i.identity.genre_format,insightfulAnswer:i.insightfulAnswer,website:i.website},answers:Object.fromEntries(Object.entries(i.answers).filter(([e])=>!e.startsWith("__"))),handles:{instagram:i.ecosystem.instagram,tiktok:i.ecosystem.tiktok,youtube:i.ecosystem.youtube,soundcloud:i.ecosystem.soundcloud},referenceArtistIds:i.artistRefs,clientStartedAt:i.startedAt,clientCompletedAt:c}});try{await a(h,_)}catch(e){console.warn("onComplete threw:",e)}if("u">typeof navigator&&!1===navigator.onLine){n({phase:"error",message:f(t).errOffline}),r.current=!1;return}try{let a=await fetch("/api/soundcheck/submit",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(b)});if(400===a.status){n({phase:"error",message:f(t).errMissing}),r.current=!1;return}if(!a.ok){n({phase:"error",message:f(t).errServer}),r.current=!1;return}let i=await a.json(),l=o(e,b.answers);(0,d.scanSubmitted)({vertical:e.slug,score_band:l.band,no_se_count:l.dimensions.reduce((e,t)=>e+t.no_se_count,0)}),n({phase:"done",resultId:i.id??s.scanId})}catch(e){console.warn("/api/soundcheck/submit failed:",e),n({phase:"error",message:f(t).errServer}),r.current=!1}},[e.slug,t,a])}}({config:e,locale:_,onComplete:i}),[v,S]=(0,s.useState)({chIndex:0,closedChannels:0,hueToken:"--editorial-section-1",answered:0,questionTotal:12,fillPct:0}),k=(0,s.useCallback)(e=>S(e),[]),[N,C]=(0,s.useState)(!1),E=(0,s.useCallback)(()=>{x(c.state)},[x,c.state]),T=j.SURVEY_DIMENSIONS[v.chIndex],A="done"===b.phase;return(0,t.jsxs)("div",{className:y.default.root,"data-survey-v2":!0,children:[(0,t.jsx)("div",{className:y.default.ground,style:{"--sv-hue":`var(${A?"--editorial-section-6":v.hueToken})`},"aria-hidden":"true"}),(0,t.jsx)(p.default,{nm:T.nm,closedCount:A?j.CHANNEL_TOTAL:v.closedChannels,theme:n,scanning:A&&!N}),(0,t.jsx)(g,{answered:A?v.questionTotal:v.answered,questionTotal:v.questionTotal,fillPct:A?100:v.fillPct,theme:n,locale:_,mounted:r,onToggleTheme:l}),(0,t.jsx)("div",{className:y.default.page,children:A?(0,t.jsx)(w,{scanId:b.resultId,artistName:c.state.identity.artist_project_name,ecosystem:c.state.ecosystem,websiteUrl:c.state.website_url,locale:_,theme:n,onReadyChange:C,onSeeResults:()=>
9m.push("es"===_?`/es/results/${b.resultId}`:`/results/${b.resultId}`)}):(0,t.jsx)(et,{config:e,survey:c,locale:_,submitStatus:b,onSubmit:E,onProgress:k})})]})}e.s(["default",0,function(){let e=(0,a.useParams)(),n=(0,a.useRouter)(),r=(0,a.usePathname)(),l=r?.startsWith("/en/")||"/en"===r?"en":"es",[d,c]=(0,s.useState)(null);(0,s.useEffect)(()=>{let t=i[e.vertical]??null;t?c(t):n.replace("/")},[e.vertical,n,l]);let u=async(e,t)=>{if(!d)return;let a=o(d,e),s="string"==typeof e.__scanId&&e.__scanId||`local-${Date.now()}`,i={id:s,vertical_id:d.vertical_id,verticalSlug:d.slug,verticalName:d.name,answers:e,intake:t,total_score:a.total_score,band:a.band,dimensions:a.dimensions,visibility_penalty_applied:a.visibility_penalty_applied,metadata:a.metadata,benchmarks:d.benchmarks,scoring_config_ref:d.scoring_config_ref,createdAt:new Date().toISOString()};try{sessionStorage.setItem(`result_${s}`,JSON.stringify(i))}catch{}};return d?(0,t.jsx)(es,{config:d,onComplete:u}):(0,t.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"es"===l?"Cargando Sound Check":"Loading Sound Check",className:"min-h-screen flex items-center justify-center",style:{background:"var(--paper)"},children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"w-8 h-8 border-2 border-t-transparent rounded-full animate-spin",style:{borderColor:"var(--aqua)",borderTopColor:"transparent"}}),(0,t.jsx)("span",{className:"sr-only",children:"es"===l?"Cargando Sound Check…":"Loading Sound Check…"})]})}],23431)}]);

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.