'use strict';Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(t){var h=this;if(!document.documentElement.contains(h))return null;do{if(h.matches(t))return h;h=h.parentElement||h.parentNode}while(null!==h&&1===h.nodeType);return null}); (function(){function t(g){function k(b){b.element.removeAttribute("data-cmp-is");f(b.element);c._active=l(c._elements.tab);c._elements.tabpanel&&(n(),p());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(new window.Granite.author.MessageChannel("cqauthor",window)).subscribeRequestMessage("cmp.panelcontainer",function(a){a.data&&"cmp-tabs"===a.data.type&&a.data.id===c._elements.self.dataset.cmpPanelcontainerId&&"navigate"===a.data.operation&&(c._active=a.data.index,n())})} function l(b){if(b)for(var a=0;a