function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments?arguments:{};e%2?ownKeys(r,!0).forEach(function(e){_defineProperty(t,e,r)}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors®):ownKeys®.forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t=r,t}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var i=e;i.enumerable=i.enumerable||!1,i.configurable=!0,“value”in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t} /*!

* Mekari UI scrollspy.js (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme)
* Copyright 2011-2021 Mekari
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

/*!

* Mekari UI scrollspy.js (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme)
* Copyright 2011-2021 Mekari
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

!function(t,e){“object”==typeof exports&&“undefined”!=typeof module?module.exports=e(require(“jquery”),require(“./util.js”)):“function”==typeof define&&define.amd?define(,e):(t=t||self).ScrollSpy=e(t.jQuery,t.Util)}(this,function(t,e){“use strict”;t=t&&t.hasOwnProperty(“default”)?t.default:t,e=e&&e.hasOwnProperty(“default”)?e.default:e;var r=“scrollspy”,i=t.fn,s={offset:10,method:“auto”,target:“”},n={offset:“number”,method:“string”,target:“(string|element)”},o=“scroll.bs.scrollspy”,l=“.nav-link”,c=“.list-group-item”,a=“.dropdown-item”,f=function(){function i(e,r){var i=this;this._element=e,this._scrollElement=“BODY”===e.tagName?window:e,this._config=this._getConfig®,this._selector=this._config.target+“ ”l“,”this._config.target“ ”c“,”this._config.target“ ”+a,this._offsets=[],this._targets=,this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(o,function(t){return i._process(t)}),this.refresh(),this._process()}var f=i.prototype;return f.refresh=function(){var r=this,i=this._scrollElement===this._scrollElement.window?“offset”:“position”,s=“auto”===this._config.method?i:this._config.method,n=“position”===s?this._getScrollTop():0;this._offsets=[],this._targets=,this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function®{var i,o=e.getSelectorFromElement®;if(o&&(i=document.querySelector(o)),i){var l=i.getBoundingClientRect();if(l.width||l.height)return[t(i)().top+n,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t-e}).forEach(function(t){r._offsets.push(t),r._targets.push(t)})},f.dispose=function(){t.removeData(this._element,“bs.scrollspy”),t(this._scrollElement).off(“.bs.scrollspy”),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},f._getConfig=function(i){if(“string”!=typeof(i=_objectSpread({},s,{},“object”==typeof i&&i?i:{})).target&&e.isElement(i.target)){var o=t(i.target).attr(“id”);o||(o=e.getUID®,t(i.target).attr(“id”,o)),i.target=“#”+o}return e.typeCheckConfig(r,i,n),i},f._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},f._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},f._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},f._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),r=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=r){var i=this._targets;this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t&&this._offsets>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s–;){this._activeTarget!==this._targets&&t>=this._offsets&&(“undefined”==typeof this._offsets||t)&&this._activate(this._targets)}}},f._activate=function(e){this._activeTarget=e,this._clear();var r=this._selector.split(“,”).map(function(t){return t+‘[data-target=“’e‘”],'t’[href=“‘e’”]'}),i=t([].slice.call(document.querySelectorAll(r.join(“,”))));i.hasClass(“dropdown-item”)?(i.closest(“.dropdown”).find(“.dropdown-toggle”).addClass(“active”),i.addClass(“active”)):(i.addClass(“active”),i.parents(“.nav, .list-group”).prev(l+“, ”+c).addClass(“active”),i.parents(“.nav, .list-group”).prev(“.nav-item”).children(l).addClass(“active”)),t(this._scrollElement).trigger(“activate.bs.scrollspy”,{relatedTarget:e})},f._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(“active”)}).forEach(function(t){return t.classList.remove(“active”)})},i._jQueryInterface=function(e){return this.each(function(){var r=t(this).data(“bs.scrollspy”);if(r||(r=new i(this,“object”==typeof e&&e),t(this).data(“bs.scrollspy”,r)),“string”==typeof e){if(“undefined”==typeof r)throw new TypeError('No method named “'e‘”’);r()}})},_createClass(i,null,[{key:“VERSION”,get:function(){return“4.5.2”}},{key:“Default”,get:function(){return s}}]),i}();return t(window).on(“load.bs.scrollspy.data-api”,function(){for(var e=[].slice.call(document.querySelectorAll(‘')),r=e.length;r–;){var i=t(e);f._jQueryInterface.call(i,i.data())}}),t.fn=f._jQueryInterface,t.fn.Constructor=f,t.fn.noConflict=function(){return t.fn=i,f._jQueryInterface},f}); //# sourceMappingURL=mekari-ui-scrollspy.min.js.map