/*!
 * bsBreakpoints v1.0.0 (https://github.com/Johann-S/bs-breakpoints)
 * Copyright 2018 Johann-S <johann.servoire@gmail.com>
 * Licensed under MIT (https://github.com/Johann-S/bs-breakpoints/blob/master/LICENSE)
 */
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.bsBreakpoints=e()}(this,function(){"use strict";!function(){function n(n,e){var t=document.createEvent("CustomEvent");return e=e||{bubbles:!1,cancelable:!1,detail:void 0},t.initCustomEvent(n,e.bubbles,e.cancelable,e.detail),t}"function"!=typeof window.CustomEvent&&(n.prototype=window.Event.prototype,window.CustomEvent=n)}();var t={xSmall:{min:0,max:575},small:{min:576,max:767},medium:{min:768,max:991},large:{min:992,max:1199},xLarge:{min:1200,max:1/0}},r=null,n="init.bs.breakpoint",u="new.bs.breakpoint",e=function(){var n=Math.max(document.documentElement.clientWidth,window.innerWidth||0);for(var e in t)if(n<t[e].max&&n>=t[e].min)return e;return r},i=function(n,e){if(void 0===e&&(e=u),null===r||r!==n){r=n;var t=window.$||window.jQuery;if(t){var i=t.Event(e,{breakpoint:n});t(window).trigger(i)}else{var o=new window.CustomEvent(e,{detail:n});window.dispatchEvent(o)}}};return{init:function(){i(e(),n),window.addEventListener("resize",function(){i(e())})},detectBreakpoint:function(){return r=e()},getCurrentBreakpoint:function(){return r}}});
//# sourceMappingURL=bs-breakpoints.min.js.map
