\n \n \n \n \n \n \n \n\n\n `;this.shadowRoot.innerHTML=t}}window.customElements.define("dws-wapp1",DWS_wapp1);class DWS_spiner1 extends HTMLElement{constructor(){super(),this.color,this.diametro,this.borde,this.attachShadow({mode:"open"})}static get observedAttributes(){return["color","diametro","borde"]}attributeChangedCallback(nameAtr,oldValue,newValue){switch(nameAtr){case"color":this.color=newValue;break;case"diametro":this.diametro=newValue;break;case"borde":this.borde=newValue}}connectedCallback(){let sp=`\n \n
\n \n
\n `;this.shadowRoot.innerHTML=sp}}window.customElements.define("dws-spiner1",DWS_spiner1);class DWS_facebook extends HTMLElement{constructor(){super(),this.width,this.url,this.color,this.attachShadow({mode:"open"})}static get observedAttributes(){return["width","url","color"]}attributeChangedCallback(nameAtr,oldValue,newValue){switch(nameAtr){case"width":this.width=newValue;break;case"url":this.url=newValue;break;case"color":this.color=newValue}}connectedCallback(){let fa=`\n \n \n `;this.shadowRoot.innerHTML=fa}}window.customElements.define("dws-facebook",DWS_facebook);class DWS_instagram extends HTMLElement{constructor(){super(),this.width,this.url,this.color,this.attachShadow({mode:"open"})}static get observedAttributes(){return["width","url","color"]}attributeChangedCallback(nameAtr,oldValue,newValue){switch(nameAtr){case"width":this.width=newValue;break;case"url":this.url=newValue;break;case"color":this.color=newValue}}connectedCallback(){let fa=`\n \n \n `;this.shadowRoot.innerHTML=fa}}window.customElements.define("dws-instagram",DWS_instagram);class DWS_dncredits extends HTMLElement{constructor(){super(),this.width,this.attachShadow({mode:"open"})}static get observedAttributes(){return["width"]}attributeChangedCallback(nameAtr,oldValue,newValue){switch(nameAtr){case"width":this.width=newValue}}connectedCallback(){let wa=`\n \n \n `;this.shadowRoot.innerHTML=wa}}window.customElements.define("dws-dncredits",DWS_dncredits);class DWS_btnup extends HTMLElement{constructor(){super(),this.posb,this.wi,this.he,this.borderra,this.bg,this.flechacolor,this.attachShadow({mode:"open"})}static get observedAttributes(){return["posb","wi","he","borderra","bg","flechacolor"]}attributeChangedCallback(e,t,n){switch(e){case"posb":this.posb=n;break;case"wi":this.wi=n;break;case"he":this.he=n;break;case"borderra":this.borderra=n;break;case"bg":this.bg=n;break;case"flechacolor":this.flechacolor=n;break}}connectedCallback(){let e=`\n \n \n `;this.shadowRoot.innerHTML=e,this.shadowRoot.querySelector("#btn1").addEventListener("click",(e=>{this.smoothScroll(0)})),window.addEventListener("scroll",(()=>{this.muestra_flecha()}))}smoothScroll(e){const t=document.documentElement.scrollTop||document.body.scrollTop,n=e-t;let o=null;requestAnimationFrame((function e(s){null===o&&(o=s);const r=s-o,i=(l=r,a=t,c=n,(l/=500/2)<1?c/2*l*l+a:(l--,-c/2*(l*(l-2)-1)+a));var l,a,c;document.documentElement.scrollTop=i,document.body.scrollTop=i,r<500&&requestAnimationFrame(e)}))}muestra_flecha(){window.scrollY>200?this.shadowRoot.querySelector("#btn1").style.display="flex":this.shadowRoot.querySelector("#btn1").style.display="none"}}window.customElements.define("dws-btnup",DWS_btnup);window.addEventListener("load",(function(){document.querySelector("#dws-mascara").style.display="none"}));let box_hamb=document.getElementById("box_hamb"),menu_sm_btns=document.getElementById("menu_sm_btns"),hamb2=document.getElementById("hamb2"),menu_open=!1;box_hamb.addEventListener("click",(()=>{menu_open=!menu_open,menu_sm_btns.classList.toggle("abrir_menu")})),window.addEventListener("scroll",(()=>{menu_open&&(menu_open=!1,menu_sm_btns.classList.remove("abrir_menu"),hamb2.cierra())}));