!function(){var e=!!window.ResizeObserver,i=[];if(!e){var t=null,n=0;$(window).resize((function(){n!==window.innerWidth&&(n=window.innerWidth,clearTimeout(t),t=setTimeout((function(){for(var e=0;e<i.length;e++)i[e]()}),49))}))}var kkContainerQuery=function(e){var i=$.extend({target:"",breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1440,xxl:1700},classPrefix:"_dcq-"},e);this.init(i)};kkContainerQuery.prototype={init:function(e){for(var i in this.options=e,this.observed=[],this.breakpoints=[],e.breakpoints)this.breakpoints.push({id:i,max:e.breakpoints[i]});this.breakpoints.sort((function(e,i){return e.max-i.max})),this.initObserver(),e.target&&this.observe(e.target)},initObserver:function(){this.observer=this.initResizeObserver(),this.observer||(this.observer=this.initLegacyObserver())},initResizeObserver:function(){if(!e)return null;var i=this;return new window.ResizeObserver((function(e){for(var t=0;t<e.length;t++){var n=e[t];i.handleResize(n.target,n.contentRect.width)}}))},initLegacyObserver:function(){var e=this,onResize=function(){e.observed&&e.observed.length&&$(e.observed).each((function(){if(this===document.body||document.body.contains(this)){for(var i=$(this),t=0,n=this;!t&&n;)t=n.offsetWidth,n=n.parentNode;t&&i.data("kkContainerQueryOldWidth")!==t&&(e.handleResize(this,t),i.data("kkContainerQueryOldWidth",t))}}))},t={observe:function(i){e.observed.push(i),$(i).on("drop.parent.resize",(function(e){onResize()})),onResize()},unobserve:function(i){var t=e.observed.indexOf(i);t<0||e.observed.splice(t,1)}};return i.push(onResize),t},observe:function(e){var i=this;$(e).each((function(){i.observer.observe(this)}))},unobserve:function(e){var i=this;$(e).each((function(){i.observer.unobserve(this)}))},handleResize:function(e,i){if(e){for(var t=$(e),n="max",r=e.classList,s=this.options.classPrefix+"max",o=0;o<this.breakpoints.length;o++){var a=this.breakpoints[o],h=this.options.classPrefix+a.id;"max"===n&&i<=a.max?n=a.id:r.contains(h)&&r.remove(h)}var d=this.options.classPrefix+n;"max"!==n&&r.contains(s)&&r.remove(s),r.contains(d)||(e.dataset.bp=n,r.add(d,"_kkcq"),t.find(".dropper-js, ._kkcq").each((function(){$(this).triggerHandler("drop.parent.resize",[t])}))),t.triggerHandler("drop.container.resize",[t,i])}}},window.kkContainerQuery=kkContainerQuery}();