/*! For license information please see index.js.LICENSE.txt */
!function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){t=function(){return r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(n){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),c=new T(r||[]);return a(i,"_invoke",{value:N(e,n,c)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var L={};d(L,s,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(B([])));_&&_!==o&&i.call(_,s)&&(L=_);var k=x.prototype=w.prototype=Object.create(L);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(o,a,c,s){var l=h(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==e(d)&&i.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){u.value=e,c(u)}),(function(e){return r("throw",e,c,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function N(e,t,r){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=I(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(e,t,r);if("normal"===l.type){if(o=r.done?y:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function I(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,I(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(i.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}throw new TypeError(e(t)+" is not iterable")}return b.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=d(x,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},S(O.prototype),d(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=B,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return c.type="throw",c.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:B(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,s,"next",e)}function s(e){n(a,o,i,c,s,"throw",e)}c(void 0)}))}}var o,i;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,a=Object.create(i.prototype),c=new T(r||[]);return o(a,"_invoke",{value:N(e,n,c)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var L={};d(L,s,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(B([])));_&&_!==n&&r.call(_,s)&&(L=_);var k=x.prototype=w.prototype=Object.create(L);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,c,s){var l=h(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(d).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function N(t,n,r){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=I(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?y:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function I(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return b.prototype=x,o(k,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(O.prototype),d(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=B,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}!function(){if(document.getElementById("h-basic-pointer")&&!document.querySelector("header.eluniversal")){var e=document.querySelector(".top-nav"),t=document.querySelector(".top-nav_menu-burger "),n=document.getElementById("h-basic-pointer"),r=function(){var n;e.classList.add("scrolled"),t.classList.remove("hidden"),null===(n=document.querySelector(".header-main"))||void 0===n||n.classList.add("scrolled")},o=function(){var n;e.classList.remove("scrolled"),t.classList.add("hidden"),null===(n=document.querySelector(".header-main"))||void 0===n||n.classList.remove("scrolled")};"IntersectionObserver"in window?new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting?o():r()}))})).observe(n):window.addEventListener("scroll",(function(){var t=document,n=t.body,i=void 0===n?{}:n,a=t.documentElement,c=void 0===a?{}:a,s=i.scrollTop,l=void 0===s?0:s,u=c.scrollTop,d=null!=l?l:void 0===u?0:u;d>0&&!e.className.includes("scrolled")?r():d<=0&&e.className.includes("scrolled")&&o()}));var i=document.querySelector(".top-nav_menu-burger"),a=document.querySelector(".menu-navegacion"),c=document.querySelector(".svg-inline"),s=document.querySelector(".svg-inline-close");i.addEventListener("click",(function(){var e=c.className,t=e.animVal||e;console.log("Comp"),t.indexOf("icon-hamburguer")>0?(a.classList.remove("hidden"),c.classList.add("hidden"),s.classList.remove("hidden"),c.classList.remove("icon-hamburguer"),a.classList.add("active")):(c.classList.add("icon-hamburguer"),s.classList.add("hidden"),a.classList.remove("active"),a.classList.add("hidden"),c.classList.remove("hidden"))}));var l=document.getElementById("header-search-button"),u=document.getElementById("header-search-input");l.addEventListener("click",(function(){var e=u.value,t=encodeURIComponent(e).replace(/%20/g,"+");t?window.location.href="/buscar/".concat(t,"/"):u.focus()})),u.addEventListener("keydown",(function(e){if(13===e.keyCode){var t=encodeURIComponent(u.value).replace(/%20/g,"+");t?window.location.href="/buscar/".concat(t,"/"):u.focus()}}));var d=document.querySelector(".item-menu-verticales"),f=document.querySelector(".item-menu-locales"),h=document.querySelector(".item-menu-suplementos"),p=document.getElementById("menu-verticales"),m=document.getElementById("menu-locales"),v=document.getElementById("menu-suplementos"),y=document.querySelector(".menu-verticales"),g=document.querySelector(".menu-locales"),w=document.querySelector(".menu-suplementos");null==p||p.addEventListener("click",(function(){var e=d.className,t=f.className;(null==e?void 0:e.indexOf("hidden"))>0?(d.classList.remove("hidden"),y.classList.add("active-menu")):(d.classList.add("hidden"),y.classList.remove("active-menu")),(null==t?void 0:t.indexOf("hidden"))<0&&f.classList.add("hidden")})),null==m||m.addEventListener("click",(function(){var e=f.className,t=d.className;(null==e?void 0:e.indexOf("hidden"))>0?(f.classList.remove("hidden"),g.classList.add("active-menu")):(f.classList.add("hidden"),g.classList.remove("active-menu")),(null==t?void 0:t.indexOf("hidden"))<0&&(null==d||d.classList.add("hidden"))})),null==v||v.addEventListener("click",(function(){var e=h.className;(null==e?void 0:e.indexOf("hidden"))>0?(h.classList.remove("hidden"),w.classList.add("active-menu")):(h.classList.add("hidden"),w.classList.remove("active-menu"))}));var b=document.querySelector(".search_block_form");b&&(null==b||b.addEventListener("click",(function(){console.log("addCloseBtn?.nodeValue",null==b?void 0:b.value);var e=b.className;(null==e?void 0:e.indexOf("w-full"))>0?null!=b&&b.value||(b.classList.remove("w-full"),b.setAttribute("style","width: 15px;")):(b.classList.add("w-full"),b.setAttribute("style","width: 100%;"))})))}if(document.getElementById("h-basic-point")){var x=document.querySelector(".top-nav"),L=document.getElementById("h-basic-point"),E=function(){var e;x.classList.add("scrolled"),null===(e=document.querySelector(".header-multibrand"))||void 0===e||e.classList.add("scrolled")},_=function(){var e;x.classList.remove("scrolled"),null===(e=document.querySelector(".header-multibrand"))||void 0===e||e.classList.remove("scrolled")};"IntersectionObserver"in window?new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting?_():E()}))})).observe(L):window.addEventListener("scroll",(function(){var e=document,t=e.body,n=void 0===t?{}:t,r=e.documentElement,o=void 0===r?{}:r,i=n.scrollTop,a=void 0===i?0:i,c=o.scrollTop,s=null!=a?a:void 0===c?0:c;s>0&&!x.className.includes("scrolled")?E():s<=0&&x.className.includes("scrolled")&&_()}))}}(),function(){if("IntersectionObserver"in window){var e=Array.from(document.body.querySelectorAll(".s-multimedia__lL-iframe")),t=Array.from(document.body.querySelectorAll(".sc__lL-iframe")).concat(e),n=new IntersectionObserver((function(e,t){e.forEach((function(e){var n=e.isIntersecting,r=e.target;n&&(r.innerHTML=r.getAttribute("data-iframe"),setTimeout((function(){r.classList.remove("story-contents__p-default"),r.classList.remove("s-multimedia__p-default")}),1e3),t.unobserve(r))}))}),{rootMargin:"0px"});t.forEach((function(e){n.observe(e)}))}}(),function(){window.ytPreconnected=!1;var e=function(){!window.ytPreconnected&&window.addPrefetch&&(window.addPrefetch("preconnect","https://www.youtube.com"),window.addPrefetch("preconnect","https://www.google.com"),window.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),window.addPrefetch("preconnect","https://static.doubleclick.net"),window.ytPreconnected=!0)},t=function(e){/iPad|iPhone|iPod|android|webOS|Windows Phone/i.test(navigator.userAgent)&&e.target.mute(),window._cbv=window._cbv||[],window._cbv.push(e.target),e.target.playVideo()},n=function(e){var n=e.getAttribute("id"),r=encodeURIComponent(n.substring(4));e.parentNode.setAttribute("id","idPrueba"+r);var o=e.parentNode.getAttribute("id");e.parentNode.classList.add("lyt-activated");var i={width:"100%",height:"100%",videoId:r,playerVars:{autoplay:1,playsinline:1,enablejsapi:1},events:{onReady:t}};new YT.Player(o,i)},r=function(t){t.addEventListener("pointerover",e,{once:!0}),t.addEventListener("click",(function(){return n(t)}),{once:!0})},o=[];(o=Array.from(document.body.querySelectorAll(".lyt-player"))).length>0&&function(){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.async=!0;var t=document.getElementsByTagName("script")[0];null==t||t.parentNode.insertBefore(e,t)}(),o.forEach((function(t){var o;t.className.includes("lyt-player")?(o=t,"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&new IntersectionObserver((function(t,o){t.forEach((function(t){t.isIntersecting&&(t.target.className.includes("auto")?(e(),n(t.target)):r(t.target),o.unobserve(t.target))}))}),{root:null,rootMargin:"0px",threshold:0}).observe(o)):r(t)}))}(),function(){window.addEventListener("load",(function(){var e;if(null===(e=window)||void 0===e||!e.shareButtons){var t=document.body.querySelectorAll("a[data-share]");if(t&&t.length>0){var n=window.screen.width/2-300,r=window.screen.height/2-200;t.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),window.open(e.getAttribute("href"),"","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=".concat(600,", height=").concat(400,", top=").concat(r,", left=").concat(n))}))}))}}}));var e=function(e,t){navigator.clipboard.writeText(e).then((function(){console.info("Async: Copying to clipboard was successful!"),t.textContent="✓ Enlace copiado"}),(function(e){console.error("Async: Could not copy text: ",e)}))},t=function(t,n){t&&("clipboard"in navigator?(t.addEventListener("click",(function(){window.location!==window.parent.location?(window.top.postMessage({id:n},window.location.origin),t.textContent="✓ Enlace copiado"):e(window.location.href,t)})),window.location===window.parent.location&&window.addEventListener("message",(function(r){var o=r.origin,i=r.data,a=void 0===i?{}:i;o===window.location.origin&&a.id===n&&e(window.location.href,t)}),!1)):(t.style.opacity="0.2",t.style.cursor="initial",t.setAttribute("disabled","true")))},n=document.getElementById("copy-link");t(document.getElementById("copy-link-footer"),"copy-link-footer"),t(n,"copy-link")}(),window.addEventListener("load",(function(){document.querySelectorAll(".si__pregunta--icon").forEach((function(e,t){e.addEventListener("click",(function(){var n=document.querySelectorAll(".si__pregunta--respuesta")[t];n.className.includes("active")?(e.classList.remove("active"),n.classList.remove("active"),n.classList.add("hidden")):(n.classList.remove("hidden"),n.classList.add("active"),e.classList.add("active"))}))}))})),function(){var e=document.getElementById("select-section");if(e){e.addEventListener("change",(function(e){var t=e.target,n="/minuto-x-minuto".concat(null==t?void 0:t.value,"/");window.location.href=n}));var t=window.location.pathname.split("/")[2];t&&(e.value="/".concat(t))}var n=document.getElementById("select-submit");n&&n.addEventListener("click",(function(e){location.reload()}))}(),null==(o=Array.from(document.getElementsByClassName("dfp-tag-wrapper__close")))||o.forEach((function(e){return e.addEventListener("click",(function(){var t=e.parentElement;null==t||t.remove()}))})),function(){var e;console.log("News");var n=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;function o(e){alert("".concat(e))}Array.from(document.getElementsByClassName("newsletter")).forEach((function(i){var a=i.querySelector(".content-form"),c=i.querySelector(".subtitle-newsletter"),s=i.querySelector(".email-subscription"),l=i.querySelector(".button-subscription"),u=i.querySelector(".type-newsletter"),d=i.querySelector(".mailing-api");l.addEventListener("click",r(t().mark((function r(){var i,l,f;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.value,!n.test(e)){t.next=15;break}return i="".concat(d.value),(l=new FormData).append("email",e),l.append("nws",u.value),f=window.fetch(i,{method:"POST",body:l}),t.next=10,f;case 10:if(!t.sent){t.next=13;break}return t.next=13,f.then((function(e){var t;500===e.status?o("Ocurrió un error en el servidor, intente de nuevo en unos momentos."):(t=u.value,s.value="",c.innerText="Gracias por registrarte, te enviamos un correo para confirmar tu dirección.","nwsl31"===t&&(c.innerHTML+='<p>Conoce nuestra oferta de newsletters <a class="underline" href="/newsletters">aquí</a></p>',a.remove()))}));case 13:t.next=16;break;case 15:o("Debe agregar un correo electrónico valido.");case 16:case"end":return t.stop()}}),r)}))))}))}(),function(){console.log("Newsletters");var e,t,n=[],r=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,o=Array.from(document.getElementsByClassName("newsletter__add")),i=Array.from(document.getElementsByClassName("newsletter__added")),a=Array.from(document.getElementsByClassName("newsletter__removed")),s=Array.from(document.getElementsByClassName("newsletter__bottom")),u=document.getElementById("fixed_element"),d=document.getElementById("close_fixed"),f=document.getElementById("form_container"),h=document.getElementById("register_news"),p=document.getElementById("subtitle_newsletters"),m=document.getElementById("email-news"),v=document.querySelector(".mailing-api");function y(){var e="nwsl3".concat(this.dataset.type);this.classList.toggle("hidden"),this.nextSibling.classList.remove("hidden"),e&&n.push(e),null==u||u.classList.remove("is-close")}function g(){var e="nwsl3".concat(this.dataset.type),t=n.indexOf(e);n.splice(t,1),this.classList.toggle("hidden"),this.previousSibling.classList.remove("hidden")}function w(e){alert("".concat(e))}null==d||d.addEventListener("click",(function(){null==u||u.classList.add("is-close")})),o.forEach((function(e){e.addEventListener("click",y)})),i.forEach((function(e){e.addEventListener("click",g)})),null==h||h.addEventListener("click",l(c().mark((function t(){var o,i,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.join(),e=m.value,!r.test(e)){t.next=16;break}return i="".concat(v.value),(a=new FormData).append("email",e),a.append("nws",o),s=window.fetch(i,{method:"POST",body:a}),t.next=11,s;case 11:if(!t.sent){t.next=14;break}return t.next=14,s.then((function(e){500===e.status?w("Ocurrió un error 500 en el servidor."):(m.value="",f.classList.add("hidden"),p.classList.remove("hidden"),p.innerText="Gracias por registrarte, te enviamos un correo para confirmar tu dirección.")}));case 14:t.next=17;break;case 16:w("Debe agregar un correo electrónico valido y aceptar el captcha.");case 17:case"end":return t.stop()}}),t)})))),window.tp=window.tp||[],window.tp.push(["init",function(){if(window.tp.pianoId.isUserValid()){var e=tp.pianoId.getUser(),n=e.email,r=e.uid,u=e.firstName;window.tp.api.callApi("/access/list",{},(function(e){if(t=!1,e.data.length>0&&void 0!==e.data)for(var r in e.data)1==e.data[r].granted&&(t=!0);window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/type-newsletter",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email=".concat(n)}).then((function(e){return e.json()})).then((function(e){t&&function(e){null==s||s.forEach((function(t,n){var r,o,i,a,c,s,l;1==(null===(r=e[n])||void 0===r?void 0:r.plus)&&(null!==(c=e[n])&&void 0!==c&&c.id_piano&&(null==t||null===(s=t.children[1])||void 0===s||s.classList.toggle("hidden"),null==t||null===(l=t.lastElementChild)||void 0===l||l.classList.toggle("hidden")),t.innerHTML=(o=e[n].id,i=n,a=e[n].id_piano,'\n      <a\n        class="inline-block absolute bottom-0 p-0 my-2 mx-0 text-[16px] font-normal text-[#006cad] newsletter__link"\n        href=""\n      >\n        \n      </a>\n      '.concat(null===a?'<button\n              data-type="'.concat(o,'"\n              data-id="').concat(i,'"\n              class="block absolute right-[11px] bottom-[8px] py-1 px-2 m-0 font-sans text-xs text-center text-black bg-white rounded-lg border border-solid border-stone-300 hover:cursor-pointer hover:bg-neutral-600 newsletter__add_plus"\n              >\n              <svg\n                width="14"\n                height="14"\n                fill="none"\n                class="newsletter__icon"\n                >\n                <path\n                  fill="#000"\n                  d="M8.4 5.6h4.317v2.8H8.4v4.317H5.6V8.4H1.283V5.6H5.6V1.283h2.8V5.6Z"\n                />\n              </svg>\n            </button>\n            <button\n            data-type="').concat(o,'"\n              class="hidden inline-flex items-center absolute right-[11px] bottom-[8px] py-1 px-2 m-0 font-sans text-xs text-center text-white bg-lime-600 rounded-lg border border-lime-600 border-solid hover:cursor-pointer newsletter__removed newsletter__removed_plus"\n              >\n              <svg\n                width="24px"\n                height="24px"\n                viewBox="0 0 24 24"\n                class="newsletter__icon mr-2 w-[15px] h-[15px]"\n                >\n                <path\n                  fill="#fff"\n                  d="M22,13h-2V7.2l-7.9,7.1L4,7.2V19h10v2H3c-0.6,0-1-0.4-1-1V4c0-0.6,0.4-1,1-1h18c0.6,0,1,0.4,1,1V13z M4.5,5    l7.6,6.7L19.5,5H4.5z"\n                  />\n                <text\n                transform="matrix(1 0 0 1 16.0503 20.9653)"\n                fill="#fff"\n                style="font-family:"Arial-Black";font-size:8px;"\n                >\n                X\n                </text>\n              </svg>\n              Quitar\n            </button>'):'\n          <button\n            data-type="'.concat(o,'"\n            data-id="').concat(i,'"\n            class="hidden block absolute right-[11px] bottom-[8px] py-1 px-2 m-0 font-sans text-xs text-center text-black bg-white rounded-lg border border-solid border-stone-300 hover:cursor-pointer hover:bg-neutral-600 newsletter__add_plus"\n            >\n            <svg\n              width="14"\n              height="14"\n              fill="none"\n              class="newsletter__icon"\n              >\n              <path\n                fill="#000"\n                d="M8.4 5.6h4.317v2.8H8.4v4.317H5.6V8.4H1.283V5.6H5.6V1.283h2.8V5.6Z"\n              />\n            </svg>\n          </button>\n          <button\n          data-type="').concat(o,'"\n            class=" inline-flex items-center absolute right-[11px] bottom-[8px] py-1 px-2 m-0 font-sans text-xs text-center text-white bg-lime-600 rounded-lg border border-lime-600 border-solid hover:cursor-pointer newsletter__removed newsletter__removed_plus"\n            >\n            <svg\n              width="24px"\n              height="24px"\n              viewBox="0 0 24 24"\n              class="newsletter__icon mr-2 w-[15px] h-[15px]"\n              >\n              <path\n                fill="#fff"\n                d="M22,13h-2V7.2l-7.9,7.1L4,7.2V19h10v2H3c-0.6,0-1-0.4-1-1V4c0-0.6,0.4-1,1-1h18c0.6,0,1,0.4,1,1V13z M4.5,5    l7.6,6.7L19.5,5H4.5z"\n                />\n              <text\n              transform="matrix(1 0 0 1 16.0503 20.9653)"\n              fill="#fff"\n              style="font-family:"Arial-Black";font-size:8px;"\n              >\n              X\n              </text>\n            </svg>\n            Quitar\n            </button>'),"      \n    ")))}));var t=Array.from(document.getElementsByClassName("newsletter__add_plus")),n=Array.from(document.getElementsByClassName("newsletter__removed_plus"));t.forEach((function(e){var t=tp.pianoId.getUser(),n=t.email,r=t.uid,o=t.firstName;e.addEventListener("click",function(){var e=l(c().mark((function e(t){var i,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="nwsl3".concat(t.target.dataset.type),a=window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/register-new-user",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pianoId=".concat(r,"&email=").concat(n,"&name=").concat(o,"&nws=").concat(i)}),e.next=5,a;case 5:if(!e.sent){e.next=8;break}return e.next=8,a.then((function(e){500===e.status?w("Ocurrió un error 500 en el servidor."):(console.log("Target Add 2: ",t.target),console.log(t.target.classList.toggle("hidden")),console.log(t.target.parentNode.lastElementChild.classList.toggle("hidden")))}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})),n.forEach((function(e){var t=tp.pianoId.getUser(),n=(t.email,t.uid);t.firstName,e.addEventListener("click",function(){var e=l(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/user-unsubscription",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"piano_id=".concat(n,"&news_id=").concat(t.target.dataset.type)}),e.next=3,r;case 3:if(!e.sent){e.next=6;break}return e.next=6,r.then((function(e){500===e.status?w("Ocurrió un error 500 en el servidor."):(console.log("Target Removed: ",t.target),console.log(t.target.classList.toggle("hidden")),console.log(t.target.parentNode.children[1].classList.toggle("hidden")))}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}))}(e.newsletter)})).catch((function(e){return console.log("Error fetch isSubscriber: ",e)}))})),o=Array.from(document.getElementsByClassName("newsletter__add")),i=Array.from(document.getElementsByClassName("newsletter__added")),a=Array.from(document.getElementsByClassName("newsletter__removed")),o.forEach((function(e){e.removeEventListener("click",y),e.addEventListener("click",function(){var e=l(c().mark((function e(t){var o,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="nwsl3".concat(t.target.dataset.type),i=window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/register-new-user",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pianoId=".concat(r,"&email=").concat(n,"&name=").concat(u,"&nws=").concat(o)}),e.next=5,i;case 5:if(!e.sent){e.next=8;break}return e.next=8,i.then((function(e){500===e.status?w("Ocurrió un error 500 en el servidor."):(console.log("Target Add: ",t.target),console.log(t.target.classList.toggle("hidden")),console.log(t.target.parentNode.lastElementChild.classList.toggle("hidden")))}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})),a.forEach((function(e){e.addEventListener("click",function(){var e=l(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/user-unsubscription",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"piano_id=".concat(r,"&news_id=").concat(t.target.dataset.type)}),e.next=3,n;case 3:if(!e.sent){e.next=6;break}return e.next=6,n.then((function(e){500===e.status?w("Ocurrió un error 500 en el servidor."):(console.log("Target Removed: ",t.target),console.log(t.target.classList.toggle("hidden")),console.log(t.target.parentNode.children[1].classList.toggle("hidden")))}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})),window.fetch("https://newsletter.eluniversal.com.mx/v1/newsletter/type-newsletter",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email=".concat(n)}).then((function(e){return e.json()})).then((function(e){var t;t=e.newsletter,null==s||s.forEach((function(e,n){var r,o,i;null!==(r=t[n])&&void 0!==r&&r.id_piano&&(null==e||null===(o=e.children[1])||void 0===o||o.classList.toggle("hidden"),null==e||null===(i=e.lastElementChild)||void 0===i||i.classList.toggle("hidden"))}))})).catch((function(e){return console.log("Error fetch news: ",e)}))}}])}(),document.addEventListener("DOMContentLoaded",(function(){if(document.getElementById("main-carousel-nota")){var e=new Splide("#main-carousel-nota",{type:"fade",rewind:!1,pagination:!1,isNavigation:!1,arrows:!0}),t=new Splide("#thumbnail-carousel-nota",{fixedWidth:177,fixedHeight:120,gap:10,rewind:!0,pagination:!1,isNavigation:!0,focus:"center",breakpoints:{600:{fixedWidth:90,fixedHeight:52}}});e.sync(t),e.mount(),t.mount()}})),document.addEventListener("DOMContentLoaded",(function(){if(document.getElementById("main-carousel")){var e=new Splide("#main-carousel",{type:"fade",rewind:!1,pagination:!1,isNavigation:!1,arrows:!0}),t=new Splide("#thumbnail-carousel",{fixedWidth:265,fixedHeight:180,gap:10,rewind:!0,pagination:!1,isNavigation:!0,perPage:5,focus:"center",breakpoints:{600:{fixedWidth:90,fixedHeight:52}}});e.sync(t),e.mount(),t.mount()}})),document.getElementById("opinion-carousel")&&new Splide("#opinion-carousel",{type:"slide",autoplay:!0,speed:1e3,rewind:!0,rewindSpeed:1e3,pagination:!0}).mount(),(i=document.getElementsByClassName("splide__carousel"))&&i.length&&new Splide(".splide__carousel",{type:"loop",perPage:3,padding:0,focus:"center",breakpoints:{640:{perPage:1}}}).mount(),console.log("coupons")}();