1/*! 2 * HC-Sticky 3 * ========= 4 * Version: 2.2.3 5 * Author: Some Web Media 6 * Author URL: http://somewebmedia.com 7 * Plugin URL: https://github.com/somewebmedia/hc-sticky 8 * Description: Cross-browser plugin that makes any element on your page visible while you scroll 9 * License: MIT 10 */ 11!function(t,e){"use strict";if("object"==typeof module&&"object"==typeof module.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");module.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(V){"use strict";function U(t,e,o){console.log("%c! HC Sticky:%c "+t+"%c "+o+" is now deprecated and will be removed. Use%c "+e+"%c instead.","color: red","color: darkviolet","color: black","color: darkviolet","color: black")}var Y={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,responsive:null,mobileFirst:!1,onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1,queries:null,queryFlow:"down"},$=V.document,Q=function(n,c){var o=this;if("string"==typeof n&&(n=$.querySelector(n)),!n)return!1;c.queries&&U("queries","responsive","option"),c.queryFlow&&U("queryFlow","mobileFirst","option");var f={},p=Q.Helpers,s=n.parentNode;"static"===p.getStyle(s,"position")&&(s.style.position="relative");function d(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};p.isEmptyObject(t)&&!p.isEmptyObject(f)||(f=Object.assign({},Y,f,t))}function t(){return f.disable}function e(){var t=f.responsive||f.queries;if(t){var e=V.innerWidth;if((f=Object.assign({},Y,c||{})).mobileFirst)for(var o in t)o<=e&&!p.isEmptyObject(t[o])&&d(t[o]);else{var i=[];for(var n in t){var s={};s[n]=t[n],i.push(s)}for(var r=i.length-1;0<=r;r--){var l=i[r],a=Object.keys(l)[0];e<=a&&!p.isEmptyObject(l[a])&&d(l[a])}}}}function r(){R=I(),k=B(),N=E+k-T-C,H=L<R;var t=V.pageYOffset||$.documentElement.scrollTop,e=p.offset(n).top,o=e-t,i=void 0;M=t<q?"up":"down",F=t-q,z<(q=t)?N+T+(H?j:0)-(f.followScroll&&H?0:T)<=t+R-O-(L-(z-O)<R-O&&f.followScroll&&0<(i=R-L-O)?i:0)?v.release({position:"absolute",bottom:x+s.offsetHeight-N-T}):H&&f.followScroll?"down"===M?o+R+j<=L+.9?v.stick({bottom:j}):"fixed"===v.position&&v.release({position:"absolute",top:e-T-z-F+O}):Math.ceil(o+O)<0&&"fixed"===v.position?v.release({position:"absolute",top:e-T-z+O-F}):t+T-O<=e&&v.stick({top:T-O}):v.stick({top:T-O}):v.release({stop:!0})}function l(){D&&(p.event.unbind(V,"scroll",r),D=!1)}function i(){var t,e,o,i;null!==n.offsetParent&&"none"!==p.getStyle(n,"display")?(v.css=(t=n,e=p.getCascadedStyle(t),o=p.getStyle(t),i={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:o.position,display:o.display,verticalAlign:o.verticalAlign,boxSizing:o.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(i.float=e.float||"none"),e.cssFloat&&(i.cssFloat=e.cssFloat||"none"),o.MozBoxSizing&&(i.MozBoxSizing=o.MozBoxSizing),i.width="auto"!==e.width?e.width:"border-box"===i.boxSizing||"border-box"===i.MozBoxSizing?t.offsetWidth+"px":o.width,i),y.init(),b=!(!f.stickTo||!("document"===f.stickTo||f.stickTo.nodeType&&9===f.stickTo.nodeType||"object"==typeof f.stickTo&&f.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),S=f.stickTo?b?$:"string"==typeof f.stickTo?$.querySelector(f.stickTo):f.stickTo:s,R=(I=function(){var t=n.offsetHeight+(parseInt(v.css.marginTop)||0)+(parseInt(v.css.marginBottom)||0),e=(R||0)-t;return-1<=e&&e<=1?R:t})(),k=(B=function(){return b?Math.max($.documentElement.clientHeight,$.body.scrollHeight,$.documentElement.scrollHeight,$.body.offsetHeight,$.documentElement.offsetHeight):S.offsetHeight})(),E=b?0:p.offset(S).top,x=f.stickTo?b?0:p.offset(s).top:E,L=V.innerHeight,A=n.offsetTop-(parseInt(v.css.marginTop)||0),w=f.innerSticker?"string"==typeof f.innerSticker?$.querySelector(f.innerSticker):f.innerSticker:null,T=isNaN(f.top)&&-1<f.top.indexOf("%")?parseFloat(f.top)/100*L:f.top,j=isNaN(f.bottom)&&-1<f.bottom.indexOf("%")?parseFloat(f.bottom)/100*L:f.bottom,O=w?w.offsetTop:f.innerTop?f.innerTop:0,C=isNaN(f.bottomEnd)&&-1<f.bottomEnd.indexOf("%")?parseFloat(f.bottomEnd)/100*L:f.bottomEnd,z=E-T+O+A,k<=R?l():(r(),D||(p.event.bind(V,"scroll",r),D=!0))):l()}function a(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(f.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+f.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),v.css={},!(v.position=null)===y.isAttached&&y.detach()}function u(){a(),e(),(t()?l:i)()}function g(){f.onBeforeResize&&f.onBeforeResize.call(n,Object.assign({},f)),u(),f.onResize&&f.onResize.call(n,Object.assign({},f))}function m(){P&&(p.event.unbind(V,"resize",W),P=!1),l()}function h(){P||(p.event.bind(V,"resize",W),P=!0),e(),(t()?l:i)()}var v={css:{},position:null,stick:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};p.hasClass(n,f.stickyClass)||(!1===y.isAttached&&y.attach(),v.position="fixed",n.style.position="fixed",n.style.left=y.offsetLeft+"px",n.style.width=y.width,void 0===t.bottom?n.style.bottom="auto":n.style.bottom=t.bottom+"px",void 0===t.top?n.style.top="auto":n.style.top=t.top+"px",n.classList?n.classList.add(f.stickyClass):n.className+=" "+f.stickyClass,f.onStart&&f.onStart.call(n,Object.assign({},f)))},release:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===v.position||null===v.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(p.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(p.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===y.isAttached&&y.detach():!1===y.isAttached&&y.attach();var e=t.position||v.css.position;v.position=e,n.style.position=e,n.style.left=!0===t.stop?v.css.left:y.positionLeft+"px",n.style.width="absolute"!==e?v.css.width:y.width,void 0===t.bottom?n.style.bottom=!0===t.stop?"":"auto":n.style.bottom=t.bottom+"px",void 0===t.top?n.style.top=!0===t.stop?"":"auto":n.style.top=t.top+"px",n.classList?n.classList.remove(f.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+f.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),f.onStop&&f.onStop.call(n,Object.assign({},f))}}},y={el:$.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in y.el.className="sticky-spacer",v.css)y.el.style[t]=v.css[t];y.el.style["z-index"]="-1";var e=p.getStyle(n);y.offsetLeft=p.offset(n).left-(parseInt(e.marginLeft)||0),y.positionLeft=p.position(n).left,y.width=p.getStyle(n,"width")},attach:function(){s.insertBefore(y.el,n),y.isAttached=!0},detach:function(){y.el=s.removeChild(y.el),y.isAttached=!1}},b=void 0,S=void 0,w=void 0,k=void 0,E=void 0,x=void 0,L=void 0,T=void 0,j=void 0,O=void 0,C=void 0,z=void 0,N=void 0,H=void 0,R=void 0,A=void 0,B=void 0,I=void 0,q=V.pageYOffset||$.documentElement.scrollTop,F=0,M=void 0,D=!1,P=!1,W=f.resizeDebounce?p.debounce(g,f.resizeDebounce):g;this.options=function(t){return t?f[t]:Object.assign({},f)},this.refresh=u,this.update=function(t){d(t),c=Object.assign({},c,t||{}),u()},this.attach=h,this.detach=m,this.destroy=function(){m(),a()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){U("reinit","refresh","method"),u()},d(c),h(),p.event.bind(V,"load",u)};if(void 0!==V.jQuery){var i=V.jQuery,n="hcSticky";i.fn.extend({hcSticky:function(e,o){return this.length?"options"===e?i.data(this.get(0),n).options():this.each(function(){var t=i.data(this,n);t?t.triggerMethod(e,o):(t=new Q(this,e),i.data(this,n,t))}):this}})}return V.hcSticky=V.hcSticky||Q,Q}),function(c){"use strict";var t=c.hcSticky,f=c.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}return o},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,o;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),n=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),o=0;o<n;){var s;o in i&&(s=i[o],t.call(e,s,o,i)),o++}});function r(t,e){return c.getComputedStyle?e?f.defaultView.getComputedStyle(t,null).getPropertyValue(e):f.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0}function l(t){var e=t.getBoundingClientRect(),o=c.pageYOffset||f.documentElement.scrollTop,i=c.pageXOffset||f.documentElement.scrollLeft;return{top:e.top+o,left:e.left+i}}var e=function(){var t=f.documentElement,e=function(){};function i(t){var e=c.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,o){t.addEventListener(e,o,!1)}:t.attachEvent&&(e=function(e,t,o){e[t+o]=o.handleEvent?function(){var t=i(e);o.handleEvent.call(o,t)}:function(){var t=i(e);o.call(e,t)},e.attachEvent("on"+t,e[t+o])});var o=function(){};return t.removeEventListener?o=function(t,e,o){t.removeEventListener(e,o,!1)}:t.detachEvent&&(o=function(e,o,i){e.detachEvent("on"+o,e[o+i]);try{delete e[o+i]}
11catch(t){e[o+i]=void 0}}),{bind:e,unbind:o}}();t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r=void 0;return function(){var t=this,e=arguments,o=s&&!r;clearTimeout(r),r=setTimeout(function(){r=null,s||i.apply(t,e)},n),o&&i.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:l,position:function(t){var e=t.offsetParent,o=l(e),i=l(t),n=r(e),s=r(t);return o.top+=parseInt(n.borderTopWidth)||0,o.left+=parseInt(n.borderLeftWidth)||0,{top:i.top-o.top-(parseInt(s.marginTop)||0),left:i.left-o.left-(parseInt(s.marginLeft)||0)}},getStyle:r,getCascadedStyle:function(t){var e=t.cloneNode(!0);e.style.display="none",Array.prototype.slice.call(e.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(e,t.nextSibling);var o=void 0;e.currentStyle?o=e.currentStyle:c.getComputedStyle&&(o=f.defaultView.getComputedStyle(e,null));var i={};for(var n in o)!isNaN(n)||"string"!=typeof o[n]&&"number"!=typeof o[n]||(i[n]=o[n]);if(Object.keys(i).length<3)for(var s in i={},o)isNaN(s)||(i[o[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=o.getPropertyValue(o[s]));if(i.margin||"auto"!==i.marginLeft?i.margin||i.marginLeft!==i.marginRight||i.marginLeft!==i.marginTop||i.marginLeft!==i.marginBottom||(i.margin=i.marginLeft):i.margin="auto",!i.margin&&"0px"===i.marginLeft&&"0px"===i.marginRight){var r=t.offsetLeft-t.parentNode.offsetLeft,l=r-(parseInt(i.left)||0)-(parseInt(i.right)||0),a=t.parentNode.offsetWidth-t.offsetWidth-r-(parseInt(i.right)||0)+(parseInt(i.left)||0)-l;0!=a&&1!=a||(i.margin="auto")}return e.parentNode.removeChild(e),e=null,i},event:e}}(window);
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.