1function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,o){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(t=t||self).Headroom=o()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function u(t){return(i=t)&&i.document&&9===i.document.nodeType?(i=(e=t).document,n=i.body,s=i.documentElement,{scrollHeight:function(){return Math.max(n.scrollHeight,s.scrollHeight,n.offsetHeight,s.offsetHeight,n.clientHeight,s.clientHeight)},height:function(){return e.innerHeight||s.clientHeight||n.clientHeight},scrollY:function(){return void 0!==e.pageYOffset?e.pageYOffset:(s||n.parentNode||n).scrollTop}}):(o=t,{scrollHeight:function(){return Math.max(o.scrollHeight,o.offsetHeight,o.clientHeight)},height:function(){return Math.max(o.offsetHeight,o.clientHeight)},scrollY:function(){return o.scrollTop}});var o,e,n,s,i}function o(t,n,s){var o,e=function(){var o=!1;try{var t={get passive(){o=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){o=!1}return o}(),i=!1,r=u(t),a=r.scrollY(),l={};function c(){var t=Math.round(r.scrollY()),o=r.height(),e=r.scrollHeight();l.scrollY=t,l.lastScrollY=a,l.direction=a<t?"down":"up",l.distance=Math.abs(t-a),l.
1isOutOfBounds=t<0||e<t+o,l.top=t<=n.offset[l.direction],l.bottom=e<=t+o,l.toleranceExceeded=l.distance>n.tolerance[l.direction],s(l),a=t,i=!1}function h(){i||(i=!0,o=requestAnimationFrame(c))}var d=!!e&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,d),c(),{destroy:function(){cancelAnimationFrame(o),t.removeEventListener("scroll",h,d)}}}function e(t){return t===Object(t)?t:{down:t,up:t}}function n(t,o){o=o||{},Object.assign(this,n.options,o),this.classes=Object.assign({},n.options.classes,o.classes),this.elem=t,this.tolerance=e(this.tolerance),this.offset=e(this.offset),this.initialised=!1,this.frozen=!1}return n.prototype={constructor:n,init:function(){return n.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=o(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},n.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},n.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),n}),function(s){s&&(s.fn.headroom=function(n){return this.each(function(){var t=s(this),o=t.data("headroom"),e="object"===_typeof(n)&&n,e=s.extend(!0,{},Headroom.options,e);o||((o=new Headroom(this,e)).init(),t.data("headroom",o)),"string"==typeof n&&(o[n](),"destroy"===n&&t.removeData("headroom"))})},s("[data-headroom]").each(function(){var t=s(this);t.headroom(t.data())}))}(window.Zepto||window.jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.