asyncfunctionhandleGlossaryButton(e){constt=document.getElementById("offcanvasGlossary");if(!t)return;constn=newbootstrap.Offcanvas(t);try{conste=awaitfetch("manual_pld_ft.html");if(!e.ok)thrownewError("Error al cargar el glosario");consto=awaite.text(),a=newDOMParser,s=a.parseFromString(o,"text/html").querySelector("main");t.querySelector(".offcanvas-body").innerHTML=s?s.innerHTML:'<p class="text-danger">No se encontró el contenido.</p>';constl=CourseNav.getCurrentSlide().title;t.querySelectorAll("section[data-title]").forEach((e=>{e.classList.toggle("d-none",e.dataset.title!==l)})),n.show()}catch(e){t.querySelector(".offcanvas-body").innerHTML='<p class="text-danger">Error al cargar el glosario. Recargue la página e intente nuevamente.</p>',n.show()}}functionsetupGlossaryListeners(){document.body.addEventListener("click",(function(e){constt=e.target.closest(".btn-glossary");t&&(e.preventDefault(),handleGlossaryButton(t))}))}functiongotoSection(e,t={}){constn=Object.assign({behavior:"smooth",block:"start"},t);leto=e;"number"==typeofe?o=`sec${e}`:"string"!=typeofe||e.startsWith("#")?e.startsWith("#")&&(o=e.substring(1)):o=e.startsWith("sec")?e:`sec${e}`;consta=document.getElementById(o);return!!a&&("none"===a.style.display&&(a.style.display=""),a.scrollIntoView(n),!0)}functionscrollToElementTop(e,t={}){constn=Object.assign({behavior:"smooth",block:"start",inline:"nearest"},t),o=document.querySelector(e);o&&o.scrollIntoView(n)}functionanimateOnScroll(e,t,n={}){const{threshold:o=.1,animateOnce:a=!0,prefix:s="animate__animated"}=n,l=newIntersectionObserver(((e,n)=>{e.forEach((e=>{e.isIntersecting?(e.target.classList.add(s,t),a&&n.unobserve(e.target)):a||e.target.classList.remove(s,t)}))}),{threshold:o});returndocument.querySelectorAll(e).forEach((e=>l.observe(e))),l}functioninitializeSwiper(e,t,n={},o=[],a=!0){consts=newSet,l="string"==typeofe?document.querySelector(e):e,r=l.parentElement;n.navigation&&n.navigation.nextEl&&n.navigation.prevEl&&(n.navigation.nextEl=l.querySelector(n.navigation.nextEl)?l.querySelector(n.navigation.nextEl):r.querySelector(n.navigation.nextEl),n.navigation.prevEl=l.querySelector(n.navigation.prevEl)?l.querySelector(n.navigation.prevEl):r.querySelector(n.navigation.prevEl));consti={effect:"slide",loop:!1,autoHeight:!0,...n,on:{init:function(){s.add(this.activeIndex),o.length>0&&o[this.activeIndex]&&a&&CourseNav.audioController.stopAllSoundsAndPlay(o[this.activeIndex])},slideChange:function(){conste=this.activeIndex;s.add(e),o.length>0&&CourseNav.audioController.stopAudio(),o.length>0&&o[e]&&CourseNav.audioController.stopAllSoundsAndPlay(o[e]),s.size===this.slides.length&&"function"==typeoft&&t()}}};returnnewSwiper(l,i)}window.COURSE_CONFIG={COURSE_CONFIG_URL:"config.json",DEBUG:!1,SHOW_PAGINATION:!1,SHOW_TITLE:!1,SHOW_GLOSSARY:!1},document.addEventListener("DOMContentLoaded",(()=>{setupGlossaryListeners(),"undefined"!=typeofsal&&document.querySelectorAll("[data-sal]").length>0&&setTimeout((()=>{document.querySelectorAll("[data-sal]").forEach((e=>e.style.visibility="visible")),sal({once:!1,threshold:.3,duration:600,easing:"ease-out",distance:"50px",opacity:0,scale:.95})}),200),document.body.addEventListener("beforeSlideChange",(e=>{})),document.body.addEventListener("slideChange",(e=>{if(e.detail&&"number"==typeofe.detail.slideIndex&&Array.isArray(e.detail.contentArray)){"undefined"!=typeofsal&&document.querySelectorAll("[data-sal]").length>0&&setTimeout((()=>{document.querySelectorAll("[data-sal]").forEach((e=>e.style.visibility="visible")),sal({once:!1,threshold:.3,duration:600,easing:"ease-out",distance:"50px",opacity:0,scale:.95})}),200);constt=document.getElementById("pagination"),n=document.querySelector(".paginacion_sco");window.COURSE_CONFIG.SHOW_PAGINATION?(t&&(t.innerHTML=e.detail.slideIndex+1+" / "+e.detail.contentArray.length),n&&n.classList.remove("isFalse")):n&&n.classList.add("isFalse");consto=document.getElementById("titleSco");o&&(window.COURSE_CONFIG.SHOW_TITLE?(o.classList.remove("d-none"),e.detail.contentArray[e.detail.slideIndex]&&(o