Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hc-sticky

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hc-sticky - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

4

dist/hc-sticky.js
/*
* HC-Sticky
* =========
* Version: 2.2.4
* Version: 2.2.5
* Author: Some Web Media

@@ -11,2 +11,2 @@ * Author URL: https://github.com/somewebmedia

*/
"use strict";function _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,e){if("object"===("undefined"==typeof module?"undefined":_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(_){var U=_.document,Y=!1;try{var t=Object.defineProperty({},"passive",{get:function(){Y={passive:!1}}});_.addEventListener("testPassive",null,t),_.removeEventListener("testPassive",null,t)}catch(t){}var $={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},Q=function(t,e,o){console.warn("%cHC Sticky:%c "+o+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},X=function(n,f){var o=this;if(f=f||{},"string"==typeof n&&(n=U.querySelector(n)),!n)return!1;f.queries&&Q("queries","responsive","option"),f.queryFlow&&Q("queryFlow","mobileFirst","option");var p={},u=X.Helpers,s=n.parentNode;"static"===u.getStyle(s,"position")&&(s.style.position="relative");function d(t){t=t||{},u.isEmptyObject(t)&&!u.isEmptyObject(p)||(p=Object.assign({},$,p,t))}function t(){return p.disable}function e(){var t,e=p.responsive||p.queries;if(e){var o=_.innerWidth;if(t=f,(p=Object.assign({},$,t||{})).mobileFirst)for(var i in e)i<=o&&!u.isEmptyObject(e[i])&&d(e[i]);else{var n=[];for(var s in e){var r={};r[s]=e[s],n.push(r)}for(var l=n.length-1;0<=l;l--){var a=n[l],c=Object.keys(a)[0];o<=c&&!u.isEmptyObject(a[c])&&d(a[c])}}}}function i(){var t,e,o,i;F.css=(t=n,e=u.getCascadedStyle(t),o=u.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),q.init(),b=!(!p.stickTo||!("document"===p.stickTo||p.stickTo.nodeType&&9===p.stickTo.nodeType||"object"===_typeof(p.stickTo)&&p.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),v=p.stickTo?b?U:"string"==typeof p.stickTo?U.querySelector(p.stickTo):p.stickTo:s,H=(B=function(){var t=n.offsetHeight+(parseInt(F.css.marginTop)||0)+(parseInt(F.css.marginBottom)||0),e=(H||0)-t;return-1<=e&&e<=1?H:t})(),w=(A=function(){return b?Math.max(U.documentElement.clientHeight,U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight):v.offsetHeight})(),k=b?0:u.offset(v).top,L=p.stickTo?b?0:u.offset(s).top:k,x=_.innerHeight,R=n.offsetTop-(parseInt(F.css.marginTop)||0),S=p.innerSticker?"string"==typeof p.innerSticker?U.querySelector(p.innerSticker):p.innerSticker:null,T=isNaN(p.top)&&-1<p.top.indexOf("%")?parseFloat(p.top)/100*x:p.top,E=isNaN(p.bottom)&&-1<p.bottom.indexOf("%")?parseFloat(p.bottom)/100*x:p.bottom,j=S?S.offsetTop:p.innerTop?p.innerTop:0,O=isNaN(p.bottomEnd)&&-1<p.bottomEnd.indexOf("%")?parseFloat(p.bottomEnd)/100*x:p.bottomEnd,C=k-T+j+R}function r(){H=B(),w=A(),z=k+w-T-O,N=x<H;var t,e=_.pageYOffset||U.documentElement.scrollTop,o=u.offset(n).top,i=o-e;I=e<M?"up":"down",P=e-M,C<(M=e)?z+T+(N?E:0)-(p.followScroll&&N?0:T)<=e+H-j-(x-(C-j)<H-j&&p.followScroll&&0<(t=H-x-j)?t:0)?F.release({position:"absolute",bottom:L+s.offsetHeight-z-T}):N&&p.followScroll?"down"==I?i+H+E<=x+.9?F.stick({bottom:E}):"fixed"===F.position&&F.release({position:"absolute",top:o-T-C-P+j}):Math.ceil(i+j)<0&&"fixed"===F.position?F.release({position:"absolute",top:o-T-C+j-P}):e+T-j<=o&&F.stick({top:T-j}):F.stick({top:T-j}):F.release({stop:!0})}function l(){D&&(_.removeEventListener("scroll",r,Y),D=!1)}function a(){null!==n.offsetParent&&"none"!==u.getStyle(n,"display")?(i(),w<H?l():(r(),D||(_.addEventListener("scroll",r,Y),D=!0))):l()}function c(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),F.css={},!(F.position=null)===q.isAttached&&q.detach()}function y(){c(),e(),(t()?l:a)()}function m(){p.onBeforeResize&&p.onBeforeResize.call(n,Object.assign({},p)),y(),p.onResize&&p.onResize.call(n,Object.assign({},p))}function g(){W&&(_.removeEventListener("resize",V,Y),W=!1),l()}function h(){W||(_.addEventListener("resize",V,Y),W=!0),e(),(t()?l:a)()}var b,v,S,w,k,L,x,T,E,j,O,C,z,N,H,R,A,B,I,F={css:{},position:null,stick:function(t){t=t||{},u.hasClass(n,p.stickyClass)||(!1===q.isAttached&&q.attach(),F.position="fixed",n.style.position="fixed",n.style.left=q.offsetLeft+"px",n.style.width=q.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(p.stickyClass):n.className+=" "+p.stickyClass,p.onStart&&p.onStart.call(n,Object.assign({},p)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===F.position||null===F.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(u.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(u.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===q.isAttached&&q.detach():!1===q.isAttached&&q.attach();var e=t.position||F.css.position;F.position=e,n.style.position=e,n.style.left=!0===t.stop?F.css.left:q.positionLeft+"px",n.style.width="absolute"!==e?F.css.width:q.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(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),p.onStop&&p.onStop.call(n,Object.assign({},p))}}},q={el:U.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in q.el.className="sticky-spacer",F.css)q.el.style[t]=F.css[t];q.el.style["z-index"]="-1";var e=u.getStyle(n);q.offsetLeft=u.offset(n).left-(parseInt(e.marginLeft)||0),q.positionLeft=u.position(n).left,q.width=u.getStyle(n,"width")},attach:function(){s.insertBefore(q.el,n),q.isAttached=!0},detach:function(){q.el=s.removeChild(q.el),q.isAttached=!1}},M=_.pageYOffset||U.documentElement.scrollTop,P=0,D=!1,W=!1,V=p.resizeDebounce?u.debounce(m,p.resizeDebounce):m;this.options=function(t){return t?p[t]:Object.assign({},p)},this.refresh=y,this.update=function(t){d(t),f=Object.assign({},f,t||{}),y()},this.attach=h,this.detach=g,this.destroy=function(){g(),c()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){Q("reinit","refresh","method"),y()},d(f),h(),_.addEventListener("load",y)};if(void 0!==_.jQuery){var i=_.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 X(this,e),i.data(this,n,t))}):this}})}return _.hcSticky=_.hcSticky||X,X}),function(c){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}}t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r;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,o=t.cloneNode(!0);o.style.display="none",Array.prototype.slice.call(o.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(o,t.nextSibling),o.currentStyle?e=o.currentStyle:c.getComputedStyle&&(e=f.defaultView.getComputedStyle(o,null));var i={};for(var n in e)!isNaN(n)||"string"!=typeof e[n]&&"number"!=typeof e[n]||(i[n]=e[n]);if(Object.keys(i).length<3)for(var s in i={},e)isNaN(s)||(i[e[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[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 o.parentNode.removeChild(o),o=null,i}}}(window);
"use strict";!function(t,e){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(U){var Y=U.document,$=!1;try{var t=Object.defineProperty({},"passive",{get:function(){$={passive:!1}}});U.addEventListener("testPassive",null,t),U.removeEventListener("testPassive",null,t)}catch(t){}var Q={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},X=function(t,e,o){console.warn("%cHC Sticky:%c "+o+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},G=function(n,f){var o=this;if(f=f||{},"string"==typeof n&&(n=Y.querySelector(n)),!n)return!1;f.queries&&X("queries","responsive","option"),f.queryFlow&&X("queryFlow","mobileFirst","option");var p={},u=G.Helpers,s=n.parentNode;"static"===u.getStyle(s,"position")&&(s.style.position="relative");function d(t){t=t||{},u.isEmptyObject(t)&&!u.isEmptyObject(p)||(p=Object.assign({},Q,p,t))}function t(){return p.disable}function e(){var t,e=p.responsive||p.queries;if(e){var o=U.innerWidth;if(t=f,(p=Object.assign({},Q,t||{})).mobileFirst)for(var i in e)i<=o&&!u.isEmptyObject(e[i])&&d(e[i]);else{var n=[];for(var s in e){var r={};r[s]=e[s],n.push(r)}for(var l=n.length-1;0<=l;l--){var a=n[l],c=Object.keys(a)[0];o<=c&&!u.isEmptyObject(a[c])&&d(a[c])}}}}function i(){var t,e,o,i;F.css=(t=n,e=u.getCascadedStyle(t),o=u.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),q.init(),b=!(!p.stickTo||!("document"===p.stickTo||p.stickTo.nodeType&&9===p.stickTo.nodeType||"object"==typeof p.stickTo&&p.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),v=p.stickTo?b?Y:"string"==typeof p.stickTo?Y.querySelector(p.stickTo):p.stickTo:s,H=(B=function(){var t=n.offsetHeight+(parseInt(F.css.marginTop)||0)+(parseInt(F.css.marginBottom)||0),e=(H||0)-t;return-1<=e&&e<=1?H:t})(),w=(A=function(){return b?Math.max(Y.documentElement.clientHeight,Y.body.scrollHeight,Y.documentElement.scrollHeight,Y.body.offsetHeight,Y.documentElement.offsetHeight):v.offsetHeight})(),k=b?0:u.offset(v).top,L=p.stickTo?b?0:u.offset(s).top:k,x=U.innerHeight,R=n.offsetTop-(parseInt(F.css.marginTop)||0),S=p.innerSticker?"string"==typeof p.innerSticker?Y.querySelector(p.innerSticker):p.innerSticker:null,T=isNaN(p.top)&&-1<p.top.indexOf("%")?parseFloat(p.top)/100*x:p.top,E=isNaN(p.bottom)&&-1<p.bottom.indexOf("%")?parseFloat(p.bottom)/100*x:p.bottom,j=S?S.offsetTop:p.innerTop?p.innerTop:0,O=isNaN(p.bottomEnd)&&-1<p.bottomEnd.indexOf("%")?parseFloat(p.bottomEnd)/100*x:p.bottomEnd,C=k-T+j+R}function r(){H=B(),w=A(),z=k+w-T-O,N=x<H;var t,e=U.pageYOffset||Y.documentElement.scrollTop,o=u.offset(n).top,i=o-e;I=e<M?"up":"down",P=e-M,C<(M=e)?z+T+(N?E:0)-(p.followScroll&&N?0:T)<=e+H-j-(x-(C-j)<H-j&&p.followScroll&&0<(t=H-x-j)?t:0)?F.release({position:"absolute",bottom:L+s.offsetHeight-z-T}):N&&p.followScroll?"down"==I?i+H+E<=x+.9?F.stick({bottom:E}):"fixed"===F.position&&F.release({position:"absolute",top:o-T-C-P+j}):Math.ceil(i+j)<0&&"fixed"===F.position?F.release({position:"absolute",top:o-T-C+j-P}):e+T-j<=o&&F.stick({top:T-j}):F.stick({top:T-j}):F.release({stop:!0})}function l(){D&&(U.removeEventListener("scroll",r,$),D=!1)}function a(){null!==n.offsetParent&&"none"!==u.getStyle(n,"display")?(i(),w<H?l():(r(),D||(U.addEventListener("scroll",r,$),D=!0))):l()}function c(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),F.css={},!(F.position=null)===q.isAttached&&q.detach()}function g(){c(),e(),(t()?l:a)()}function m(){p.onBeforeResize&&p.onBeforeResize.call(n,Object.assign({},p)),g(),p.onResize&&p.onResize.call(n,Object.assign({},p))}function y(){W&&(U.removeEventListener("resize",V,$),W=!1),l()}function h(){W||(U.addEventListener("resize",V,$),W=!0),e(),(t()?l:a)()}var b,v,S,w,k,L,x,T,E,j,O,C,z,N,H,R,A,B,I,F={css:{},position:null,stick:function(t){t=t||{},u.hasClass(n,p.stickyClass)||(!1===q.isAttached&&q.attach(),F.position="fixed",n.style.position="fixed",n.style.left=q.offsetLeft+"px",n.style.width=q.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(p.stickyClass):n.className+=" "+p.stickyClass,p.onStart&&p.onStart.call(n,Object.assign({},p)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===F.position||null===F.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(u.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(u.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===q.isAttached&&q.detach():!1===q.isAttached&&q.attach();var e=t.position||F.css.position;F.position=e,n.style.position=e,n.style.left=!0===t.stop?F.css.left:q.positionLeft+"px",n.style.width="absolute"!==e?F.css.width:q.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(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),p.onStop&&p.onStop.call(n,Object.assign({},p))}}},q={el:Y.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in q.el.className="sticky-spacer",F.css)q.el.style[t]=F.css[t];q.el.style["z-index"]="-1";var e=u.getStyle(n);q.offsetLeft=u.offset(n).left-(parseInt(e.marginLeft)||0),q.positionLeft=u.position(n).left,q.width=u.getStyle(n,"width")},attach:function(){s.insertBefore(q.el,n),q.isAttached=!0},detach:function(){q.el=s.removeChild(q.el),q.isAttached=!1}},M=U.pageYOffset||Y.documentElement.scrollTop,P=0,D=!1,W=!1,V=p.resizeDebounce?u.debounce(m,p.resizeDebounce):m;this.options=function(t){return t?p[t]:Object.assign({},p)},this.refresh=g,this.update=function(t){d(t),f=Object.assign({},f,t||{}),g()},this.attach=h,this.detach=y,this.destroy=function(){y(),c()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){X("reinit","refresh","method"),g()},d(f),h(),U.addEventListener("load",g)};if(void 0!==U.jQuery){var i=U.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 G(this,e),i.data(this,n,t))}):this}})}return U.hcSticky=U.hcSticky||G,G}),function(c){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}}t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r;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,o=t.cloneNode(!0);o.style.display="none",Array.prototype.slice.call(o.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(o,t.nextSibling),o.currentStyle?e=o.currentStyle:c.getComputedStyle&&(e=f.defaultView.getComputedStyle(o,null));var i={};for(var n in e)!isNaN(n)||"string"!=typeof e[n]&&"number"!=typeof e[n]||(i[n]=e[n]);if(Object.keys(i).length<3)for(var s in i={},e)isNaN(s)||(i[e[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[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 o.parentNode.removeChild(o),o=null,i}}}(window);

@@ -1,1 +0,1 @@

function _typeof2(t){return(_typeof2="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 r(i,s,a){function f(n,t){if(!s[n]){if(!i[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw new Error("Cannot find module '"+n+"'")}var o=s[n]={exports:{}};i[n][0].call(o.exports,function(t){var e=i[n][1][t];return f(e||t)},o,o.exports,r,i,s,a)}return s[n].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)f(a[t]);return f}({1:[function(t,h,e){(function(t,e,n,o,r,i,s,a,f){"use strict";function X(t){return(X="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(t){return _typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof2(t)})(t)}function l(t,e){return c.getComputedStyle?e?d.defaultView.getComputedStyle(t,null).getPropertyValue(e):d.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0}function u(t){var e=t.getBoundingClientRect(),n=c.pageYOffset||d.documentElement.scrollTop,o=c.pageXOffset||d.documentElement.scrollLeft;return{top:e.top+n,left:e.left+o}}var c,p,d;!function(t,e){if("object"===(void 0===h?"undefined":X(h))&&"object"===X(h.exports)){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");h.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(G){var P=G.document,W=!1;try{var t=Object.defineProperty({},"passive",{get:function(){W={passive:!1}}});G.addEventListener("testPassive",null,t),G.removeEventListener("testPassive",null,t)}catch(t){}function V(t,e,n){console.warn("%cHC Sticky:%c "+n+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")}function Y(r,l){var n=this;if(l=l||{},"string"==typeof r&&(r=P.querySelector(r)),!r)return!1;l.queries&&V("queries","responsive","option"),l.queryFlow&&V("queryFlow","mobileFirst","option");var u={},c=Y.Helpers,i=r.parentNode;function p(t){t=t||{},c.isEmptyObject(t)&&!c.isEmptyObject(u)||(u=Object.assign({},J,u,t))}function t(){return u.disable}function e(){var t=u.responsive||u.queries;if(t){var e=G.innerWidth;if((u=Object.assign({},J,l||{})).mobileFirst)for(var n in t)n<=e&&!c.isEmptyObject(t[n])&&p(t[n]);else{var o=[];for(var r in t){var i={};i[r]=t[r],o.push(i)}for(var s=o.length-1;0<=s;s--){var a=o[s],f=Object.keys(a)[0];e<=f&&!c.isEmptyObject(a[f])&&p(a[f])}}}}function s(){U=_(),v=N(),x=E+v-I-k,C=B<U;var t,e=G.pageYOffset||P.documentElement.scrollTop,n=c.offset(r).top,o=n-e;M=e<z?"up":"down",D=e-z,T<(z=e)?x+I+(C?L:0)-(u.followScroll&&C?0:I)<=e+U-A-(B-(T-A)<U-A&&u.followScroll&&0<(t=U-B-A)?t:0)?O.release({position:"absolute",bottom:S+i.offsetHeight-x-I}):C&&u.followScroll?"down"==M?o+U+L<=B+.9?O.stick({bottom:L}):"fixed"===O.position&&O.release({position:"absolute",top:n-I-T-D+A}):Math.ceil(o+A)<0&&"fixed"===O.position?O.release({position:"absolute",top:n-I-T+A-D}):e+I-A<=n&&O.stick({top:I-A}):O.stick({top:I-A}):O.release({stop:!0})}function a(){R&&(G.removeEventListener("scroll",s,W),R=!1)}function o(){var t,e,n,o;null!==r.offsetParent&&"none"!==c.getStyle(r,"display")?(O.css=(t=r,e=c.getCascadedStyle(t),n=c.getStyle(t),o={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:n.position,display:n.display,verticalAlign:n.verticalAlign,boxSizing:n.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(o.float=e.float||"none"),e.cssFloat&&(o.cssFloat=e.cssFloat||"none"),n.MozBoxSizing&&(o.MozBoxSizing=n.MozBoxSizing),o.width="auto"!==e.width?e.width:"border-box"===o.boxSizing||"border-box"===o.MozBoxSizing?t.offsetWidth+"px":n.width,o),F.init(),b=!(!u.stickTo||!("document"===u.stickTo||u.stickTo.nodeType&&9===u.stickTo.nodeType||"object"===X(u.stickTo)&&u.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),m=u.stickTo?b?P:"string"==typeof u.stickTo?P.querySelector(u.stickTo):u.stickTo:i,U=(_=function(){var t=r.offsetHeight+(parseInt(O.css.marginTop)||0)+(parseInt(O.css.marginBottom)||0),e=(U||0)-t;return-1<=e&&e<=1?U:t})(),v=(N=function(){return b?Math.max(P.documentElement.clientHeight,P.body.scrollHeight,P.documentElement.scrollHeight,P.body.offsetHeight,P.documentElement.offsetHeight):m.offsetHeight})(),E=b?0:c.offset(m).top,S=u.stickTo?b?0:c.offset(i).top:E,B=G.innerHeight,j=r.offsetTop-(parseInt(O.css.marginTop)||0),w=u.innerSticker?"string"==typeof u.innerSticker?P.querySelector(u.innerSticker):u.innerSticker:null,I=isNaN(u.top)&&-1<u.top.indexOf("%")?parseFloat(u.top)/100*B:u.top,L=isNaN(u.bottom)&&-1<u.bottom.indexOf("%")?parseFloat(u.bottom)/100*B:u.bottom,A=w?w.offsetTop:u.innerTop?u.innerTop:0,k=isNaN(u.bottomEnd)&&-1<u.bottomEnd.indexOf("%")?parseFloat(u.bottomEnd)/100*B:u.bottomEnd,T=E-I+A+j,v<U?a():(s(),R||(G.addEventListener("scroll",s,W),R=!0))):a()}function f(){r.style.position="",r.style.left="",r.style.top="",r.style.bottom="",r.style.width="",r.classList?r.classList.remove(u.stickyClass):r.className=r.className.replace(new RegExp("(^|\\b)"+u.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),O.css={},!(O.position=null)===F.isAttached&&F.detach()}function d(){f(),e(),(t()?a:o)()}function h(){u.onBeforeResize&&u.onBeforeResize.call(r,Object.assign({},u)),d(),u.onResize&&u.onResize.call(r,Object.assign({},u))}function g(){H&&(G.removeEventListener("resize",q,W),H=!1),a()}function y(){H||(G.addEventListener("resize",q,W),H=!0),e(),(t()?a:o)()}"static"===c.getStyle(i,"position")&&(i.style.position="relative");var b,m,w,v,E,S,B,I,L,A,k,T,x,C,U,j,N,_,M,O={css:{},position:null,stick:function(t){t=t||{},c.hasClass(r,u.stickyClass)||(!1===F.isAttached&&F.attach(),O.position="fixed",r.style.position="fixed",r.style.left=F.offsetLeft+"px",r.style.width=F.width,void 0===t.bottom?r.style.bottom="auto":r.style.bottom=t.bottom+"px",void 0===t.top?r.style.top="auto":r.style.top=t.top+"px",r.classList?r.classList.add(u.stickyClass):r.className+=" "+u.stickyClass,u.onStart&&u.onStart.call(r,Object.assign({},u)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===O.position||null===O.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(c.getStyle(r,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(c.getStyle(r,"bottom"))||0)===t.bottom)){!0===t.stop?!0===F.isAttached&&F.detach():!1===F.isAttached&&F.attach();var e=t.position||O.css.position;O.position=e,r.style.position=e,r.style.left=!0===t.stop?O.css.left:F.positionLeft+"px",r.style.width="absolute"!==e?O.css.width:F.width,void 0===t.bottom?r.style.bottom=!0===t.stop?"":"auto":r.style.bottom=t.bottom+"px",void 0===t.top?r.style.top=!0===t.stop?"":"auto":r.style.top=t.top+"px",r.classList?r.classList.remove(u.stickyClass):r.className=r.className.replace(new RegExp("(^|\\b)"+u.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),u.onStop&&u.onStop.call(r,Object.assign({},u))}}},F={el:P.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in F.el.className="sticky-spacer",O.css)F.el.style[t]=O.css[t];F.el.style["z-index"]="-1";var e=c.getStyle(r);F.offsetLeft=c.offset(r).left-(parseInt(e.marginLeft)||0),F.positionLeft=c.position(r).left,F.width=c.getStyle(r,"width")},attach:function(){i.insertBefore(F.el,r),F.isAttached=!0},detach:function(){F.el=i.removeChild(F.el),F.isAttached=!1}},z=G.pageYOffset||P.documentElement.scrollTop,D=0,R=!1,H=!1,q=u.resizeDebounce?c.debounce(h,u.resizeDebounce):h;this.options=function(t){return t?u[t]:Object.assign({},u)},this.refresh=d,this.update=function(t){p(t),l=Object.assign({},l,t||{}),d()},this.attach=y,this.detach=g,this.destroy=function(){g(),f()},this.triggerMethod=function(t,e){"function"==typeof n[t]&&n[t](e)},this.reinit=function(){V("reinit","refresh","method"),d()},p(l),y(),G.addEventListener("load",d)}var J={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};if(void 0!==G.jQuery){var o=G.jQuery,r="hcSticky";o.fn.extend({hcSticky:function(e,n){return this.length?"options"===e?o.data(this.get(0),r).options():this.each(function(){var t=o.data(this,r);t?t.triggerMethod(e,n):(t=new Y(this,e),o.data(this,r,t))}):this}})}return G.hcSticky=G.hcSticky||Y,Y}),c=window,p=c.hcSticky,d=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 n=Object(t),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,n;if(null==this)throw new TypeError("this is null or not defined");var o=Object(this),r=o.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),n=0;n<r;){var i;n in o&&(i=o[n],t.call(e,i,n,o)),n++}}),p.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(o,r,i){var s;return function(){var t=this,e=arguments,n=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||o.apply(t,e)},r),n&&o.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:u,position:function(t){var e=t.offsetParent,n=u(e),o=u(t),r=l(e),i=l(t);return n.top+=parseInt(r.borderTopWidth)||0,n.left+=parseInt(r.borderLeftWidth)||0,{top:o.top-n.top-(parseInt(i.marginTop)||0),left:o.left-n.left-(parseInt(i.marginLeft)||0)}},getStyle:l,getCascadedStyle:function(t){var e,n=t.cloneNode(!0);n.style.display="none",Array.prototype.slice.call(n.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(n,t.nextSibling),n.currentStyle?e=n.currentStyle:c.getComputedStyle&&(e=d.defaultView.getComputedStyle(n,null));var o={};for(var r in e)!isNaN(r)||"string"!=typeof e[r]&&"number"!=typeof e[r]||(o[r]=e[r]);if(Object.keys(o).length<3)for(var i in o={},e)isNaN(i)||(o[e[i].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[i]));if(o.margin||"auto"!==o.marginLeft?o.margin||o.marginLeft!==o.marginRight||o.marginLeft!==o.marginTop||o.marginLeft!==o.marginBottom||(o.margin=o.marginLeft):o.margin="auto",!o.margin&&"0px"===o.marginLeft&&"0px"===o.marginRight){var s=t.offsetLeft-t.parentNode.offsetLeft,a=s-(parseInt(o.left)||0)-(parseInt(o.right)||0),f=t.parentNode.offsetWidth-t.offsetWidth-s-(parseInt(o.right)||0)+(parseInt(o.left)||0)-a;0!=f&&1!=f||(o.margin="auto")}return n.parentNode.removeChild(n),n=null,o}}}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../dist/hc-sticky.js","/../dist")},{buffer:4,pBGvAp:6}],2:[function(l,t,e){(function(t,e,n,o,r,i,s,a,f){"use strict";new(l("../dist/hc-sticky.js"))("aside",{stickTo:"main",responsive:{980:{disable:!0}}})}).call(this,l("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_c48e83a3.js","/")},{"../dist/hc-sticky.js":1,buffer:4,pBGvAp:6}],3:[function(t,e,l){(function(t,e,n,o,r,i,s,a,f){!function(t){"use strict";var l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),o="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),f="_".charCodeAt(0);function u(t){var e=t.charCodeAt(0);return e===n||e===a?62:e===o||e===f?63:e<r?-1:e<r+10?e-r+26+26:e<s+26?e-s:e<i+26?e-i+26:void 0}t.toByteArray=function(t){var e,n,o,r,i;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;r="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,i=new l(3*t.length/4-r),n=0<r?t.length-4:t.length;var a=0;function f(t){i[a++]=t}for(e=0;e<n;e+=4,0)f((16711680&(o=u(t.charAt(e))<<18|u(t.charAt(e+1))<<12|u(t.charAt(e+2))<<6|u(t.charAt(e+3))))>>16),f((65280&o)>>8),f(255&o);return 2==r?f(255&(o=u(t.charAt(e))<<2|u(t.charAt(e+1))>>4)):1==r&&(f((o=u(t.charAt(e))<<10|u(t.charAt(e+1))<<4|u(t.charAt(e+2))>>2)>>8&255),f(255&o)),i},t.fromByteArray=function(t){var e,n,o,r,i=t.length%3,s="";function a(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,o=t.length-i;e<o;e+=3)n=(t[e]<<16)+(t[e+1]<<8)+t[e+2],s+=a((r=n)>>18&63)+a(r>>12&63)+a(r>>6&63)+a(63&r);switch(i){case 1:s+=a((n=t[t.length-1])>>2),s+=a(n<<4&63),s+="==";break;case 2:s+=a((n=(t[t.length-2]<<8)+t[t.length-1])>>10),s+=a(n>>4&63),s+=a(n<<2&63),s+="="}return s}}(void 0===l?this.base64js={}:l)}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/base64-js/lib/b64.js","/../node_modules/base64-js/lib")},{buffer:4,pBGvAp:6}],4:[function(D,t,R){(function(t,e,d,n,o,r,i,s,a){var f=D("base64-js"),l=D("ieee754");function d(t,e,n){if(!(this instanceof d))return new d(t,e,n);var o,r,i,s,a,f=_typeof2(t);if("base64"===e&&"string"===f)for(t=(o=t).trim?o.trim():o.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"===f)r=T(t);else if("string"===f)r=d.byteLength(t,e);else{if("object"!==f)throw new Error("First argument needs to be a number, array or string.");r=T(t.length)}if(d._useTypedArrays?i=d._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),d._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(x(a=t)||d.isBuffer(a)||a&&"object"===_typeof2(a)&&"number"==typeof a.length)for(s=0;s<r;s++)d.isBuffer(t)?i[s]=t.readUInt8(s):i[s]=t[s];else if("string"===f)i.write(t,0,e);else if("number"===f&&!d._useTypedArrays&&!n)for(s=0;s<r;s++)i[s]=0;return i}function h(t,e,n,o){return d._charsWritten=N(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,o)}function g(t,e,n,o){return d._charsWritten=N(function(t){for(var e,n,o,r=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,o=e%256,r.push(o),r.push(n);return r}(e),t,n,o)}function u(t,e,n){var o="";n=Math.min(t.length,n);for(var r=e;r<n;r++)o+=String.fromCharCode(t[r]);return o}function c(t,e,n,o){o||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+1<t.length,"Trying to read beyond buffer length"));var r,i=t.length;if(!(i<=e))return n?(r=t[e],e+1<i&&(r|=t[e+1]<<8)):(r=t[e]<<8,e+1<i&&(r|=t[e+1])),r}function p(t,e,n,o){o||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+3<t.length,"Trying to read beyond buffer length"));var r,i=t.length;if(!(i<=e))return n?(e+2<i&&(r=t[e+2]<<16),e+1<i&&(r|=t[e+1]<<8),r|=t[e],e+3<i&&(r+=t[e+3]<<24>>>0)):(e+1<i&&(r=t[e+1]<<16),e+2<i&&(r|=t[e+2]<<8),e+3<i&&(r|=t[e+3]),r+=t[e]<<24>>>0),r}function y(t,e,n,o){if(o||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+1<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var r=c(t,e,n,!0);return 32768&r?-1*(65535-r+1):r}}function b(t,e,n,o){if(o||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+3<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var r=p(t,e,n,!0);return 2147483648&r?-1*(4294967295-r+1):r}}function m(t,e,n,o){return o||(z("boolean"==typeof n,"missing or invalid endian"),z(e+3<t.length,"Trying to read beyond buffer length")),l.read(t,e,n,23,4)}function w(t,e,n,o){return o||(z("boolean"==typeof n,"missing or invalid endian"),z(e+7<t.length,"Trying to read beyond buffer length")),l.read(t,e,n,52,8)}function v(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+1<t.length,"trying to write beyond buffer length"),M(e,65535));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,2);s<a;s++)t[n+s]=(e&255<<8*(o?s:1-s))>>>8*(o?s:1-s)}function E(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"trying to write beyond buffer length"),M(e,4294967295));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,4);s<a;s++)t[n+s]=e>>>8*(o?s:3-s)&255}function S(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+1<t.length,"Trying to write beyond buffer length"),O(e,32767,-32768)),t.length<=n||v(t,0<=e?e:65535+e+1,n,o,r)}function B(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"Trying to write beyond buffer length"),O(e,2147483647,-2147483648)),t.length<=n||E(t,0<=e?e:4294967295+e+1,n,o,r)}function I(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"Trying to write beyond buffer length"),F(e,34028234663852886e22,-34028234663852886e22)),t.length<=n||l.write(t,e,n,o,23,4)}function L(t,e,n,o,r){r||(z(null!=e,"missing value"),z("boolean"==typeof o,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+7<t.length,"Trying to write beyond buffer length"),F(e,17976931348623157e292,-17976931348623157e292)),t.length<=n||l.write(t,e,n,o,52,8)}R.Buffer=d,R.SlowBuffer=d,R.INSPECT_MAX_BYTES=50,d.poolSize=8192,d._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),d.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.isBuffer=function(t){return!(null==t||!t._isBuffer)},d.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=U(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=j(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},d.concat=function(t,e){if(z(x(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new d(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(n=e=0;n<t.length;n++)e+=t[n].length;var o=new d(e),r=0;for(n=0;n<t.length;n++){var i=t[n];i.copy(o,r),r+=i.length}return o},d.prototype.write=function(t,e,n,o){if(isFinite(e))isFinite(n)||(o=n,n=void 0);else{var r=o;o=e,e=n,n=r}e=Number(e)||0;var i,s,a,f,l,u,c,p=this.length-e;switch((!n||p<(n=Number(n)))&&(n=p),o=String(o||"utf8").toLowerCase()){case"hex":i=function(t,e,n,o){n=Number(n)||0;var r=t.length-n;(!o||r<(o=Number(o)))&&(o=r);var i=e.length;z(i%2==0,"Invalid hex string"),i/2<o&&(o=i/2);for(var s=0;s<o;s++){var a=parseInt(e.substr(2*s,2),16);z(!isNaN(a),"Invalid hex string"),t[n+s]=a}return d._charsWritten=2*s,s}(this,t,e,n);break;case"utf8":case"utf-8":l=this,u=e,c=n,i=d._charsWritten=N(U(t),l,u,c);break;case"ascii":i=h(this,t,e,n);break;case"binary":i=h(this,t,e,n);break;case"base64":s=this,a=e,f=n,i=d._charsWritten=N(j(t),s,a,f);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=g(this,t,e,n);break;default:throw new Error("Unknown encoding")}return i},d.prototype.toString=function(t,e,n){var o,r,i,s,a=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=a.length)===e)return"";switch(t){case"hex":o=function(t,e,n){var o=t.length;(!e||e<0)&&(e=0);(!n||n<0||o<n)&&(n=o);for(var r="",i=e;i<n;i++)r+=C(t[i]);return r}(a,e,n);break;case"utf8":case"utf-8":o=function(t,e,n){var o="",r="";n=Math.min(t.length,n);for(var i=e;i<n;i++)t[i]<=127?(o+=_(r)+String.fromCharCode(t[i]),r=""):r+="%"+t[i].toString(16);return o+_(r)}(a,e,n);break;case"ascii":o=u(a,e,n);break;case"binary":o=u(a,e,n);break;case"base64":r=a,s=n,o=0===(i=e)&&s===r.length?f.fromByteArray(r):f.fromByteArray(r.slice(i,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=function(t,e,n){for(var o=t.slice(e,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}(a,e,n);break;default:throw new Error("Unknown encoding")}return o},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.copy=function(t,e,n,o){if(n=n||0,o||0===o||(o=this.length),e=e||0,o!==n&&0!==t.length&&0!==this.length){z(n<=o,"sourceEnd < sourceStart"),z(0<=e&&e<t.length,"targetStart out of bounds"),z(0<=n&&n<this.length,"sourceStart out of bounds"),z(0<=o&&o<=this.length,"sourceEnd out of bounds"),o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);var r=o-n;if(r<100||!d._useTypedArrays)for(var i=0;i<r;i++)t[i+e]=this[i+n];else t._set(this.subarray(n,n+r),e)}},d.prototype.slice=function(t,e){var n=this.length;if(t=k(t,n,0),e=k(e,n,n),d._useTypedArrays)return d._augment(this.subarray(t,e));for(var o=e-t,r=new d(o,void 0,!0),i=0;i<o;i++)r[i]=this[i+t];return r},d.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},d.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},d.prototype.readUInt8=function(t,e){if(e||(z(null!=t,"missing offset"),z(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},d.prototype.readUInt16LE=function(t,e){return c(this,t,!0,e)},d.prototype.readUInt16BE=function(t,e){return c(this,t,!1,e)},d.prototype.readUInt32LE=function(t,e){return p(this,t,!0,e)},d.prototype.readUInt32BE=function(t,e){return p(this,t,!1,e)},d.prototype.readInt8=function(t,e){if(e||(z(null!=t,"missing offset"),z(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){return y(this,t,!0,e)},d.prototype.readInt16BE=function(t,e){return y(this,t,!1,e)},d.prototype.readInt32LE=function(t,e){return b(this,t,!0,e)},d.prototype.readInt32BE=function(t,e){return b(this,t,!1,e)},d.prototype.readFloatLE=function(t,e){return m(this,t,!0,e)},d.prototype.readFloatBE=function(t,e){return m(this,t,!1,e)},d.prototype.readDoubleLE=function(t,e){return w(this,t,!0,e)},d.prototype.readDoubleBE=function(t,e){return w(this,t,!1,e)},d.prototype.writeUInt8=function(t,e,n){n||(z(null!=t,"missing value"),z(null!=e,"missing offset"),z(e<this.length,"trying to write beyond buffer length"),M(t,255)),e>=this.length||(this[e]=t)},d.prototype.writeUInt16LE=function(t,e,n){v(this,t,e,!0,n)},d.prototype.writeUInt16BE=function(t,e,n){v(this,t,e,!1,n)},d.prototype.writeUInt32LE=function(t,e,n){E(this,t,e,!0,n)},d.prototype.writeUInt32BE=function(t,e,n){E(this,t,e,!1,n)},d.prototype.writeInt8=function(t,e,n){n||(z(null!=t,"missing value"),z(null!=e,"missing offset"),z(e<this.length,"Trying to write beyond buffer length"),O(t,127,-128)),e>=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},d.prototype.writeInt16LE=function(t,e,n){S(this,t,e,!0,n)},d.prototype.writeInt16BE=function(t,e,n){S(this,t,e,!1,n)},d.prototype.writeInt32LE=function(t,e,n){B(this,t,e,!0,n)},d.prototype.writeInt32BE=function(t,e,n){B(this,t,e,!1,n)},d.prototype.writeFloatLE=function(t,e,n){I(this,t,e,!0,n)},d.prototype.writeFloatBE=function(t,e,n){I(this,t,e,!1,n)},d.prototype.writeDoubleLE=function(t,e,n){L(this,t,e,!0,n)},d.prototype.writeDoubleBE=function(t,e,n){L(this,t,e,!1,n)},d.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),z("number"==typeof t&&!isNaN(t),"value is not a number"),z(e<=n,"end < start"),n!==e&&0!==this.length){z(0<=e&&e<this.length,"start out of bounds"),z(0<=n&&n<=this.length,"end out of bounds");for(var o=e;o<n;o++)this[o]=t}},d.prototype.inspect=function(){for(var t=[],e=this.length,n=0;n<e;n++)if(t[n]=C(this[n]),n===R.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},d.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(d._useTypedArrays)return new d(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer};var A=d.prototype;function k(t,e,n){return"number"!=typeof t?n:e<=(t=~~t)?e:0<=t||0<=(t+=e)?t:0}function T(t){return(t=~~Math.ceil(+t))<0?0:t}function x(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function C(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t){for(var e=[],n=0;n<t.length;n++){var o=t.charCodeAt(n);if(o<=127)e.push(t.charCodeAt(n));else{var r=n;55296<=o&&o<=57343&&n++;for(var i=encodeURIComponent(t.slice(r,n+1)).substr(1).split("%"),s=0;s<i.length;s++)e.push(parseInt(i[s],16))}}return e}function j(t){return f.toByteArray(t)}function N(t,e,n,o){for(var r=0;r<o&&!(r+n>=e.length||r>=t.length);r++)e[r+n]=t[r];return r}function _(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function M(t,e){z("number"==typeof t,"cannot write a non-number as a number"),z(0<=t,"specified a negative value for writing an unsigned value"),z(t<=e,"value is larger than maximum value for type"),z(Math.floor(t)===t,"value has a fractional component")}function O(t,e,n){z("number"==typeof t,"cannot write a non-number as a number"),z(t<=e,"value larger than maximum allowed value"),z(n<=t,"value smaller than minimum allowed value"),z(Math.floor(t)===t,"value has a fractional component")}function F(t,e,n){z("number"==typeof t,"cannot write a non-number as a number"),z(t<=e,"value larger than maximum allowed value"),z(n<=t,"value smaller than minimum allowed value")}function z(t,e){if(!t)throw new Error(e||"Failed assertion")}d._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=A.get,t.set=A.set,t.write=A.write,t.toString=A.toString,t.toLocaleString=A.toString,t.toJSON=A.toJSON,t.copy=A.copy,t.slice=A.slice,t.readUInt8=A.readUInt8,t.readUInt16LE=A.readUInt16LE,t.readUInt16BE=A.readUInt16BE,t.readUInt32LE=A.readUInt32LE,t.readUInt32BE=A.readUInt32BE,t.readInt8=A.readInt8,t.readInt16LE=A.readInt16LE,t.readInt16BE=A.readInt16BE,t.readInt32LE=A.readInt32LE,t.readInt32BE=A.readInt32BE,t.readFloatLE=A.readFloatLE,t.readFloatBE=A.readFloatBE,t.readDoubleLE=A.readDoubleLE,t.readDoubleBE=A.readDoubleBE,t.writeUInt8=A.writeUInt8,t.writeUInt16LE=A.writeUInt16LE,t.writeUInt16BE=A.writeUInt16BE,t.writeUInt32LE=A.writeUInt32LE,t.writeUInt32BE=A.writeUInt32BE,t.writeInt8=A.writeInt8,t.writeInt16LE=A.writeInt16LE,t.writeInt16BE=A.writeInt16BE,t.writeInt32LE=A.writeInt32LE,t.writeInt32BE=A.writeInt32BE,t.writeFloatLE=A.writeFloatLE,t.writeFloatBE=A.writeFloatBE,t.writeDoubleLE=A.writeDoubleLE,t.writeDoubleBE=A.writeDoubleBE,t.fill=A.fill,t.inspect=A.inspect,t.toArrayBuffer=A.toArrayBuffer,t}}).call(this,D("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},D("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/buffer/index.js","/../node_modules/buffer")},{"base64-js":3,buffer:4,ieee754:5,pBGvAp:6}],5:[function(t,e,l){(function(t,e,n,o,r,i,s,a,f){l.read=function(t,e,n,o,r){var i,s,a=8*r-o-1,f=(1<<a)-1,l=f>>1,u=-7,c=n?r-1:0,p=n?-1:1,d=t[e+c];for(c+=p,i=d&(1<<-u)-1,d>>=-u,u+=a;0<u;i=256*i+t[e+c],c+=p,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=o;0<u;s=256*s+t[e+c],c+=p,u-=8);if(0===i)i=1-l;else{if(i===f)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,o),i-=l}return(d?-1:1)*s*Math.pow(2,i-o)},l.write=function(t,e,n,o,r,i){var s,a,f,l=8*i-r-1,u=(1<<l)-1,c=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=o?0:i-1,h=o?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),2<=(e+=1<=s+c?p/f:p*Math.pow(2,1-c))*f&&(s++,f/=2),u<=s+c?(a=0,s=u):1<=s+c?(a=(e*f-1)*Math.pow(2,r),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,r),s=0));8<=r;t[n+d]=255&a,d+=h,a/=256,r-=8);for(s=s<<r|a,l+=r;0<l;t[n+d]=255&s,d+=h,s/=256,l-=8);t[n+d-h]|=128*g}}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/ieee754/index.js","/../node_modules/ieee754")},{buffer:4,pBGvAp:6}],6:[function(t,u,e){(function(t,e,n,o,r,i,s,a,f){function l(){}(t=u.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0<n.length&&n.shift()())},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=l,t.addListener=l,t.once=l,t.off=l,t.removeListener=l,t.removeAllListeners=l,t.emit=l,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/process/browser.js","/../node_modules/process")},{buffer:4,pBGvAp:6}]},{},[2]);
function _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 o(i,s,a){function f(n,t){if(!s[n]){if(!i[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw new Error("Cannot find module '"+n+"'")}var r=s[n]={exports:{}};i[n][0].call(r.exports,function(t){var e=i[n][1][t];return f(e||t)},r,r.exports,o,i,s,a)}return s[n].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)f(a[t]);return f}({1:[function(t,l,e){(function(t,e,n,r,o,i,s,a,f){"use strict";!function(t,e){if("object"===_typeof(l)&&"object"===_typeof(l.exports)){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");l.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(P){var W=P.document,V=!1;try{var t=Object.defineProperty({},"passive",{get:function(){V={passive:!1}}});P.addEventListener("testPassive",null,t),P.removeEventListener("testPassive",null,t)}catch(t){}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},J=function(t,e,n){console.warn("%cHC Sticky:%c "+n+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},X=function(o,u){var n=this;if(u=u||{},"string"==typeof o&&(o=W.querySelector(o)),!o)return!1;u.queries&&J("queries","responsive","option"),u.queryFlow&&J("queryFlow","mobileFirst","option");var c={},p=X.Helpers,i=o.parentNode;"static"===p.getStyle(i,"position")&&(i.style.position="relative");function d(t){t=t||{},p.isEmptyObject(t)&&!p.isEmptyObject(c)||(c=Object.assign({},Y,c,t))}function t(){return c.disable}function e(){var t,e=c.responsive||c.queries;if(e){var n=P.innerWidth;if(t=u,(c=Object.assign({},Y,t||{})).mobileFirst)for(var r in e)r<=n&&!p.isEmptyObject(e[r])&&d(e[r]);else{var o=[];for(var i in e){var s={};s[i]=e[i],o.push(s)}for(var a=o.length-1;0<=a;a--){var f=o[a],l=Object.keys(f)[0];n<=l&&!p.isEmptyObject(f[l])&&d(f[l])}}}}function r(){var t,e,n,r;F.css=(t=o,e=p.getCascadedStyle(t),n=p.getStyle(t),r={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:n.position,display:n.display,verticalAlign:n.verticalAlign,boxSizing:n.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(r.float=e.float||"none"),e.cssFloat&&(r.cssFloat=e.cssFloat||"none"),n.MozBoxSizing&&(r.MozBoxSizing=n.MozBoxSizing),r.width="auto"!==e.width?e.width:"border-box"===r.boxSizing||"border-box"===r.MozBoxSizing?t.offsetWidth+"px":n.width,r),z.init(),m=!(!c.stickTo||!("document"===c.stickTo||c.stickTo.nodeType&&9===c.stickTo.nodeType||"object"===_typeof(c.stickTo)&&c.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),w=c.stickTo?m?W:"string"==typeof c.stickTo?W.querySelector(c.stickTo):c.stickTo:i,j=(M=function(){var t=o.offsetHeight+(parseInt(F.css.marginTop)||0)+(parseInt(F.css.marginBottom)||0),e=(j||0)-t;return-1<=e&&e<=1?j:t})(),E=(_=function(){return m?Math.max(W.documentElement.clientHeight,W.body.scrollHeight,W.documentElement.scrollHeight,W.body.offsetHeight,W.documentElement.offsetHeight):w.offsetHeight})(),B=m?0:p.offset(w).top,I=c.stickTo?m?0:p.offset(i).top:B,L=P.innerHeight,N=o.offsetTop-(parseInt(F.css.marginTop)||0),v=c.innerSticker?"string"==typeof c.innerSticker?W.querySelector(c.innerSticker):c.innerSticker:null,S=isNaN(c.top)&&-1<c.top.indexOf("%")?parseFloat(c.top)/100*L:c.top,A=isNaN(c.bottom)&&-1<c.bottom.indexOf("%")?parseFloat(c.bottom)/100*L:c.bottom,k=v?v.offsetTop:c.innerTop?c.innerTop:0,T=isNaN(c.bottomEnd)&&-1<c.bottomEnd.indexOf("%")?parseFloat(c.bottomEnd)/100*L:c.bottomEnd,x=B-S+k+N}function s(){j=M(),E=_(),C=B+E-S-T,U=L<j;var t,e=P.pageYOffset||W.documentElement.scrollTop,n=p.offset(o).top,r=n-e;O=e<D?"up":"down",R=e-D,x<(D=e)?C+S+(U?A:0)-(c.followScroll&&U?0:S)<=e+j-k-(L-(x-k)<j-k&&c.followScroll&&0<(t=j-L-k)?t:0)?F.release({position:"absolute",bottom:I+i.offsetHeight-C-S}):U&&c.followScroll?"down"==O?r+j+A<=L+.9?F.stick({bottom:A}):"fixed"===F.position&&F.release({position:"absolute",top:n-S-x-R+k}):Math.ceil(r+k)<0&&"fixed"===F.position?F.release({position:"absolute",top:n-S-x+k-R}):e+S-k<=n&&F.stick({top:S-k}):F.stick({top:S-k}):F.release({stop:!0})}function a(){H&&(P.removeEventListener("scroll",s,V),H=!1)}function f(){null!==o.offsetParent&&"none"!==p.getStyle(o,"display")?(r(),E<j?a():(s(),H||(P.addEventListener("scroll",s,V),H=!0))):a()}function l(){o.style.position="",o.style.left="",o.style.top="",o.style.bottom="",o.style.width="",o.classList?o.classList.remove(c.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+c.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),F.css={},!(F.position=null)===z.isAttached&&z.detach()}function h(){l(),e(),(t()?a:f)()}function g(){c.onBeforeResize&&c.onBeforeResize.call(o,Object.assign({},c)),h(),c.onResize&&c.onResize.call(o,Object.assign({},c))}function y(){q&&(P.removeEventListener("resize",G,V),q=!1),a()}function b(){q||(P.addEventListener("resize",G,V),q=!0),e(),(t()?a:f)()}var m,w,v,E,B,I,L,S,A,k,T,x,C,U,j,N,_,M,O,F={css:{},position:null,stick:function(t){t=t||{},p.hasClass(o,c.stickyClass)||(!1===z.isAttached&&z.attach(),F.position="fixed",o.style.position="fixed",o.style.left=z.offsetLeft+"px",o.style.width=z.width,void 0===t.bottom?o.style.bottom="auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top="auto":o.style.top=t.top+"px",o.classList?o.classList.add(c.stickyClass):o.className+=" "+c.stickyClass,c.onStart&&c.onStart.call(o,Object.assign({},c)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===F.position||null===F.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(p.getStyle(o,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(p.getStyle(o,"bottom"))||0)===t.bottom)){!0===t.stop?!0===z.isAttached&&z.detach():!1===z.isAttached&&z.attach();var e=t.position||F.css.position;F.position=e,o.style.position=e,o.style.left=!0===t.stop?F.css.left:z.positionLeft+"px",o.style.width="absolute"!==e?F.css.width:z.width,void 0===t.bottom?o.style.bottom=!0===t.stop?"":"auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top=!0===t.stop?"":"auto":o.style.top=t.top+"px",o.classList?o.classList.remove(c.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+c.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),c.onStop&&c.onStop.call(o,Object.assign({},c))}}},z={el:W.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in z.el.className="sticky-spacer",F.css)z.el.style[t]=F.css[t];z.el.style["z-index"]="-1";var e=p.getStyle(o);z.offsetLeft=p.offset(o).left-(parseInt(e.marginLeft)||0),z.positionLeft=p.position(o).left,z.width=p.getStyle(o,"width")},attach:function(){i.insertBefore(z.el,o),z.isAttached=!0},detach:function(){z.el=i.removeChild(z.el),z.isAttached=!1}},D=P.pageYOffset||W.documentElement.scrollTop,R=0,H=!1,q=!1,G=c.resizeDebounce?p.debounce(g,c.resizeDebounce):g;this.options=function(t){return t?c[t]:Object.assign({},c)},this.refresh=h,this.update=function(t){d(t),u=Object.assign({},u,t||{}),h()},this.attach=b,this.detach=y,this.destroy=function(){y(),l()},this.triggerMethod=function(t,e){"function"==typeof n[t]&&n[t](e)},this.reinit=function(){J("reinit","refresh","method"),h()},d(u),b(),P.addEventListener("load",h)};if(void 0!==P.jQuery){var r=P.jQuery,o="hcSticky";r.fn.extend({hcSticky:function(e,n){return this.length?"options"===e?r.data(this.get(0),o).options():this.each(function(){var t=r.data(this,o);t?t.triggerMethod(e,n):(t=new X(this,e),r.data(this,o,t))}):this}})}return P.hcSticky=P.hcSticky||X,X}),function(l){var t=l.hcSticky,u=l.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 n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),n=0;n<o;){var i;n in r&&(i=r[n],t.call(e,i,n,r)),n++}});function s(t,e){return l.getComputedStyle?e?u.defaultView.getComputedStyle(t,null).getPropertyValue(e):u.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0}function a(t){var e=t.getBoundingClientRect(),n=l.pageYOffset||u.documentElement.scrollTop,r=l.pageXOffset||u.documentElement.scrollLeft;return{top:e.top+n,left:e.left+r}}t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(r,o,i){var s;return function(){var t=this,e=arguments,n=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||r.apply(t,e)},o),n&&r.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:a,position:function(t){var e=t.offsetParent,n=a(e),r=a(t),o=s(e),i=s(t);return n.top+=parseInt(o.borderTopWidth)||0,n.left+=parseInt(o.borderLeftWidth)||0,{top:r.top-n.top-(parseInt(i.marginTop)||0),left:r.left-n.left-(parseInt(i.marginLeft)||0)}},getStyle:s,getCascadedStyle:function(t){var e,n=t.cloneNode(!0);n.style.display="none",Array.prototype.slice.call(n.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(n,t.nextSibling),n.currentStyle?e=n.currentStyle:l.getComputedStyle&&(e=u.defaultView.getComputedStyle(n,null));var r={};for(var o in e)!isNaN(o)||"string"!=typeof e[o]&&"number"!=typeof e[o]||(r[o]=e[o]);if(Object.keys(r).length<3)for(var i in r={},e)isNaN(i)||(r[e[i].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[i]));if(r.margin||"auto"!==r.marginLeft?r.margin||r.marginLeft!==r.marginRight||r.marginLeft!==r.marginTop||r.marginLeft!==r.marginBottom||(r.margin=r.marginLeft):r.margin="auto",!r.margin&&"0px"===r.marginLeft&&"0px"===r.marginRight){var s=t.offsetLeft-t.parentNode.offsetLeft,a=s-(parseInt(r.left)||0)-(parseInt(r.right)||0),f=t.parentNode.offsetWidth-t.offsetWidth-s-(parseInt(r.right)||0)+(parseInt(r.left)||0)-a;0!=f&&1!=f||(r.margin="auto")}return n.parentNode.removeChild(n),n=null,r}}}(window)}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../dist/hc-sticky.js","/../dist")},{buffer:4,pBGvAp:6}],2:[function(l,t,e){(function(t,e,n,r,o,i,s,a,f){"use strict";new(l("../dist/hc-sticky.js"))("aside",{stickTo:"main",responsive:{980:{disable:!0}}})}).call(this,l("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_d25a7b11.js","/")},{"../dist/hc-sticky.js":1,buffer:4,pBGvAp:6}],3:[function(t,e,l){(function(t,e,n,r,o,i,s,a,f){!function(t){"use strict";var l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),f="_".charCodeAt(0);function u(t){var e=t.charCodeAt(0);return e===n||e===a?62:e===r||e===f?63:e<o?-1:e<o+10?e-o+26+26:e<s+26?e-s:e<i+26?e-i+26:void 0}t.toByteArray=function(t){var e,n,r,o,i;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;o="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,i=new l(3*t.length/4-o),n=0<o?t.length-4:t.length;var a=0;function f(t){i[a++]=t}for(e=0;e<n;e+=4,0)f((16711680&(r=u(t.charAt(e))<<18|u(t.charAt(e+1))<<12|u(t.charAt(e+2))<<6|u(t.charAt(e+3))))>>16),f((65280&r)>>8),f(255&r);return 2==o?f(255&(r=u(t.charAt(e))<<2|u(t.charAt(e+1))>>4)):1==o&&(f((r=u(t.charAt(e))<<10|u(t.charAt(e+1))<<4|u(t.charAt(e+2))>>2)>>8&255),f(255&r)),i},t.fromByteArray=function(t){var e,n,r,o,i=t.length%3,s="";function a(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-i;e<r;e+=3)n=(t[e]<<16)+(t[e+1]<<8)+t[e+2],s+=a((o=n)>>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:s+=a((n=t[t.length-1])>>2),s+=a(n<<4&63),s+="==";break;case 2:s+=a((n=(t[t.length-2]<<8)+t[t.length-1])>>10),s+=a(n>>4&63),s+=a(n<<2&63),s+="="}return s}}(void 0===l?this.base64js={}:l)}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/base64-js/lib/b64.js","/../node_modules/base64-js/lib")},{buffer:4,pBGvAp:6}],4:[function(D,t,R){(function(t,e,d,n,r,o,i,s,a){var f=D("base64-js"),l=D("ieee754");function d(t,e,n){if(!(this instanceof d))return new d(t,e,n);var r,o,i,s,a,f=_typeof(t);if("base64"===e&&"string"===f)for(t=(r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"===f)o=T(t);else if("string"===f)o=d.byteLength(t,e);else{if("object"!==f)throw new Error("First argument needs to be a number, array or string.");o=T(t.length)}if(d._useTypedArrays?i=d._augment(new Uint8Array(o)):((i=this).length=o,i._isBuffer=!0),d._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(x(a=t)||d.isBuffer(a)||a&&"object"===_typeof(a)&&"number"==typeof a.length)for(s=0;s<o;s++)d.isBuffer(t)?i[s]=t.readUInt8(s):i[s]=t[s];else if("string"===f)i.write(t,0,e);else if("number"===f&&!d._useTypedArrays&&!n)for(s=0;s<o;s++)i[s]=0;return i}function h(t,e,n,r){return d._charsWritten=N(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function g(t,e,n,r){return d._charsWritten=N(function(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}(e),t,n,r)}function u(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;o++)r+=String.fromCharCode(t[o]);return r}function c(t,e,n,r){r||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+1<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(o=t[e],e+1<i&&(o|=t[e+1]<<8)):(o=t[e]<<8,e+1<i&&(o|=t[e+1])),o}function p(t,e,n,r){r||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+3<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(e+2<i&&(o=t[e+2]<<16),e+1<i&&(o|=t[e+1]<<8),o|=t[e],e+3<i&&(o+=t[e+3]<<24>>>0)):(e+1<i&&(o=t[e+1]<<16),e+2<i&&(o|=t[e+2]<<8),e+3<i&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}function y(t,e,n,r){if(r||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+1<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=c(t,e,n,!0);return 32768&o?-1*(65535-o+1):o}}function b(t,e,n,r){if(r||(z("boolean"==typeof n,"missing or invalid endian"),z(null!=e,"missing offset"),z(e+3<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=p(t,e,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function m(t,e,n,r){return r||(z("boolean"==typeof n,"missing or invalid endian"),z(e+3<t.length,"Trying to read beyond buffer length")),l.read(t,e,n,23,4)}function w(t,e,n,r){return r||(z("boolean"==typeof n,"missing or invalid endian"),z(e+7<t.length,"Trying to read beyond buffer length")),l.read(t,e,n,52,8)}function v(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+1<t.length,"trying to write beyond buffer length"),M(e,65535));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,2);s<a;s++)t[n+s]=(e&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function E(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"trying to write beyond buffer length"),M(e,4294967295));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,4);s<a;s++)t[n+s]=e>>>8*(r?s:3-s)&255}function B(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+1<t.length,"Trying to write beyond buffer length"),O(e,32767,-32768)),t.length<=n||v(t,0<=e?e:65535+e+1,n,r,o)}function I(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"Trying to write beyond buffer length"),O(e,2147483647,-2147483648)),t.length<=n||E(t,0<=e?e:4294967295+e+1,n,r,o)}function L(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+3<t.length,"Trying to write beyond buffer length"),F(e,34028234663852886e22,-34028234663852886e22)),t.length<=n||l.write(t,e,n,r,23,4)}function S(t,e,n,r,o){o||(z(null!=e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(null!=n,"missing offset"),z(n+7<t.length,"Trying to write beyond buffer length"),F(e,17976931348623157e292,-17976931348623157e292)),t.length<=n||l.write(t,e,n,r,52,8)}R.Buffer=d,R.SlowBuffer=d,R.INSPECT_MAX_BYTES=50,d.poolSize=8192,d._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),d.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.isBuffer=function(t){return!(null==t||!t._isBuffer)},d.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=U(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=j(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},d.concat=function(t,e){if(z(x(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new d(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(n=e=0;n<t.length;n++)e+=t[n].length;var r=new d(e),o=0;for(n=0;n<t.length;n++){var i=t[n];i.copy(r,o),o+=i.length}return r},d.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var o=r;r=e,e=n,n=o}e=Number(e)||0;var i,s,a,f,l,u,c,p=this.length-e;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":i=function(t,e,n,r){n=Number(n)||0;var o=t.length-n;(!r||o<(r=Number(r)))&&(r=o);var i=e.length;z(i%2==0,"Invalid hex string"),i/2<r&&(r=i/2);for(var s=0;s<r;s++){var a=parseInt(e.substr(2*s,2),16);z(!isNaN(a),"Invalid hex string"),t[n+s]=a}return d._charsWritten=2*s,s}(this,t,e,n);break;case"utf8":case"utf-8":l=this,u=e,c=n,i=d._charsWritten=N(U(t),l,u,c);break;case"ascii":i=h(this,t,e,n);break;case"binary":i=h(this,t,e,n);break;case"base64":s=this,a=e,f=n,i=d._charsWritten=N(j(t),s,a,f);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=g(this,t,e,n);break;default:throw new Error("Unknown encoding")}return i},d.prototype.toString=function(t,e,n){var r,o,i,s,a=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=a.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=e;i<n;i++)o+=C(t[i]);return o}(a,e,n);break;case"utf8":case"utf-8":r=function(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;i<n;i++)t[i]<=127?(r+=_(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+_(o)}(a,e,n);break;case"ascii":r=u(a,e,n);break;case"binary":r=u(a,e,n);break;case"base64":o=a,s=n,r=0===(i=e)&&s===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(a,e,n);break;default:throw new Error("Unknown encoding")}return r},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e=e||0,r!==n&&0!==t.length&&0!==this.length){z(n<=r,"sourceEnd < sourceStart"),z(0<=e&&e<t.length,"targetStart out of bounds"),z(0<=n&&n<this.length,"sourceStart out of bounds"),z(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o=r-n;if(o<100||!d._useTypedArrays)for(var i=0;i<o;i++)t[i+e]=this[i+n];else t._set(this.subarray(n,n+o),e)}},d.prototype.slice=function(t,e){var n=this.length;if(t=k(t,n,0),e=k(e,n,n),d._useTypedArrays)return d._augment(this.subarray(t,e));for(var r=e-t,o=new d(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+t];return o},d.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},d.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},d.prototype.readUInt8=function(t,e){if(e||(z(null!=t,"missing offset"),z(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},d.prototype.readUInt16LE=function(t,e){return c(this,t,!0,e)},d.prototype.readUInt16BE=function(t,e){return c(this,t,!1,e)},d.prototype.readUInt32LE=function(t,e){return p(this,t,!0,e)},d.prototype.readUInt32BE=function(t,e){return p(this,t,!1,e)},d.prototype.readInt8=function(t,e){if(e||(z(null!=t,"missing offset"),z(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){return y(this,t,!0,e)},d.prototype.readInt16BE=function(t,e){return y(this,t,!1,e)},d.prototype.readInt32LE=function(t,e){return b(this,t,!0,e)},d.prototype.readInt32BE=function(t,e){return b(this,t,!1,e)},d.prototype.readFloatLE=function(t,e){return m(this,t,!0,e)},d.prototype.readFloatBE=function(t,e){return m(this,t,!1,e)},d.prototype.readDoubleLE=function(t,e){return w(this,t,!0,e)},d.prototype.readDoubleBE=function(t,e){return w(this,t,!1,e)},d.prototype.writeUInt8=function(t,e,n){n||(z(null!=t,"missing value"),z(null!=e,"missing offset"),z(e<this.length,"trying to write beyond buffer length"),M(t,255)),e>=this.length||(this[e]=t)},d.prototype.writeUInt16LE=function(t,e,n){v(this,t,e,!0,n)},d.prototype.writeUInt16BE=function(t,e,n){v(this,t,e,!1,n)},d.prototype.writeUInt32LE=function(t,e,n){E(this,t,e,!0,n)},d.prototype.writeUInt32BE=function(t,e,n){E(this,t,e,!1,n)},d.prototype.writeInt8=function(t,e,n){n||(z(null!=t,"missing value"),z(null!=e,"missing offset"),z(e<this.length,"Trying to write beyond buffer length"),O(t,127,-128)),e>=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},d.prototype.writeInt16LE=function(t,e,n){B(this,t,e,!0,n)},d.prototype.writeInt16BE=function(t,e,n){B(this,t,e,!1,n)},d.prototype.writeInt32LE=function(t,e,n){I(this,t,e,!0,n)},d.prototype.writeInt32BE=function(t,e,n){I(this,t,e,!1,n)},d.prototype.writeFloatLE=function(t,e,n){L(this,t,e,!0,n)},d.prototype.writeFloatBE=function(t,e,n){L(this,t,e,!1,n)},d.prototype.writeDoubleLE=function(t,e,n){S(this,t,e,!0,n)},d.prototype.writeDoubleBE=function(t,e,n){S(this,t,e,!1,n)},d.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),z("number"==typeof t&&!isNaN(t),"value is not a number"),z(e<=n,"end < start"),n!==e&&0!==this.length){z(0<=e&&e<this.length,"start out of bounds"),z(0<=n&&n<=this.length,"end out of bounds");for(var r=e;r<n;r++)this[r]=t}},d.prototype.inspect=function(){for(var t=[],e=this.length,n=0;n<e;n++)if(t[n]=C(this[n]),n===R.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},d.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(d._useTypedArrays)return new d(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer};var A=d.prototype;function k(t,e,n){return"number"!=typeof t?n:e<=(t=~~t)?e:0<=t||0<=(t+=e)?t:0}function T(t){return(t=~~Math.ceil(+t))<0?0:t}function x(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function C(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(t.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),s=0;s<i.length;s++)e.push(parseInt(i[s],16))}}return e}function j(t){return f.toByteArray(t)}function N(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function _(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function M(t,e){z("number"==typeof t,"cannot write a non-number as a number"),z(0<=t,"specified a negative value for writing an unsigned value"),z(t<=e,"value is larger than maximum value for type"),z(Math.floor(t)===t,"value has a fractional component")}function O(t,e,n){z("number"==typeof t,"cannot write a non-number as a number"),z(t<=e,"value larger than maximum allowed value"),z(n<=t,"value smaller than minimum allowed value"),z(Math.floor(t)===t,"value has a fractional component")}function F(t,e,n){z("number"==typeof t,"cannot write a non-number as a number"),z(t<=e,"value larger than maximum allowed value"),z(n<=t,"value smaller than minimum allowed value")}function z(t,e){if(!t)throw new Error(e||"Failed assertion")}d._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=A.get,t.set=A.set,t.write=A.write,t.toString=A.toString,t.toLocaleString=A.toString,t.toJSON=A.toJSON,t.copy=A.copy,t.slice=A.slice,t.readUInt8=A.readUInt8,t.readUInt16LE=A.readUInt16LE,t.readUInt16BE=A.readUInt16BE,t.readUInt32LE=A.readUInt32LE,t.readUInt32BE=A.readUInt32BE,t.readInt8=A.readInt8,t.readInt16LE=A.readInt16LE,t.readInt16BE=A.readInt16BE,t.readInt32LE=A.readInt32LE,t.readInt32BE=A.readInt32BE,t.readFloatLE=A.readFloatLE,t.readFloatBE=A.readFloatBE,t.readDoubleLE=A.readDoubleLE,t.readDoubleBE=A.readDoubleBE,t.writeUInt8=A.writeUInt8,t.writeUInt16LE=A.writeUInt16LE,t.writeUInt16BE=A.writeUInt16BE,t.writeUInt32LE=A.writeUInt32LE,t.writeUInt32BE=A.writeUInt32BE,t.writeInt8=A.writeInt8,t.writeInt16LE=A.writeInt16LE,t.writeInt16BE=A.writeInt16BE,t.writeInt32LE=A.writeInt32LE,t.writeInt32BE=A.writeInt32BE,t.writeFloatLE=A.writeFloatLE,t.writeFloatBE=A.writeFloatBE,t.writeDoubleLE=A.writeDoubleLE,t.writeDoubleBE=A.writeDoubleBE,t.fill=A.fill,t.inspect=A.inspect,t.toArrayBuffer=A.toArrayBuffer,t}}).call(this,D("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},D("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/buffer/index.js","/../node_modules/buffer")},{"base64-js":3,buffer:4,ieee754:5,pBGvAp:6}],5:[function(t,e,l){(function(t,e,n,r,o,i,s,a,f){l.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,f=(1<<a)-1,l=f>>1,u=-7,c=n?o-1:0,p=n?-1:1,d=t[e+c];for(c+=p,i=d&(1<<-u)-1,d>>=-u,u+=a;0<u;i=256*i+t[e+c],c+=p,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;0<u;s=256*s+t[e+c],c+=p,u-=8);if(0===i)i=1-l;else{if(i===f)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=l}return(d?-1:1)*s*Math.pow(2,i-r)},l.write=function(t,e,n,r,o,i){var s,a,f,l=8*i-o-1,u=(1<<l)-1,c=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),2<=(e+=1<=s+c?p/f:p*Math.pow(2,1-c))*f&&(s++,f/=2),u<=s+c?(a=0,s=u):1<=s+c?(a=(e*f-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));8<=o;t[n+d]=255&a,d+=h,a/=256,o-=8);for(s=s<<o|a,l+=o;0<l;t[n+d]=255&s,d+=h,s/=256,l-=8);t[n+d-h]|=128*g}}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/ieee754/index.js","/../node_modules/ieee754")},{buffer:4,pBGvAp:6}],6:[function(t,u,e){(function(t,e,n,r,o,i,s,a,f){function l(){}(t=u.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0<n.length&&n.shift()())},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=l,t.addListener=l,t.once=l,t.off=l,t.removeListener=l,t.removeAllListeners=l,t.emit=l,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("pBGvAp"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/process/browser.js","/../node_modules/process")},{buffer:4,pBGvAp:6}]},{},[2]);
/*
* HC-Sticky
* =========
* Version: 2.2.4
* Version: 2.2.5
* Author: Some Web Media

@@ -11,2 +11,2 @@ * Author URL: https://github.com/somewebmedia

*/
"use strict";function _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,e){if("object"===("undefined"==typeof module?"undefined":_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(_){var U=_.document,Y=!1;try{var t=Object.defineProperty({},"passive",{get:function(){Y={passive:!1}}});_.addEventListener("testPassive",null,t),_.removeEventListener("testPassive",null,t)}catch(t){}var $={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},Q=function(t,e,o){console.warn("%cHC Sticky:%c "+o+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},X=function(n,f){var o=this;if(f=f||{},"string"==typeof n&&(n=U.querySelector(n)),!n)return!1;f.queries&&Q("queries","responsive","option"),f.queryFlow&&Q("queryFlow","mobileFirst","option");var p={},u=X.Helpers,s=n.parentNode;"static"===u.getStyle(s,"position")&&(s.style.position="relative");function d(t){t=t||{},u.isEmptyObject(t)&&!u.isEmptyObject(p)||(p=Object.assign({},$,p,t))}function t(){return p.disable}function e(){var t,e=p.responsive||p.queries;if(e){var o=_.innerWidth;if(t=f,(p=Object.assign({},$,t||{})).mobileFirst)for(var i in e)i<=o&&!u.isEmptyObject(e[i])&&d(e[i]);else{var n=[];for(var s in e){var r={};r[s]=e[s],n.push(r)}for(var l=n.length-1;0<=l;l--){var a=n[l],c=Object.keys(a)[0];o<=c&&!u.isEmptyObject(a[c])&&d(a[c])}}}}function i(){var t,e,o,i;F.css=(t=n,e=u.getCascadedStyle(t),o=u.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),q.init(),b=!(!p.stickTo||!("document"===p.stickTo||p.stickTo.nodeType&&9===p.stickTo.nodeType||"object"===_typeof(p.stickTo)&&p.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),v=p.stickTo?b?U:"string"==typeof p.stickTo?U.querySelector(p.stickTo):p.stickTo:s,H=(B=function(){var t=n.offsetHeight+(parseInt(F.css.marginTop)||0)+(parseInt(F.css.marginBottom)||0),e=(H||0)-t;return-1<=e&&e<=1?H:t})(),w=(A=function(){return b?Math.max(U.documentElement.clientHeight,U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight):v.offsetHeight})(),k=b?0:u.offset(v).top,L=p.stickTo?b?0:u.offset(s).top:k,x=_.innerHeight,R=n.offsetTop-(parseInt(F.css.marginTop)||0),S=p.innerSticker?"string"==typeof p.innerSticker?U.querySelector(p.innerSticker):p.innerSticker:null,T=isNaN(p.top)&&-1<p.top.indexOf("%")?parseFloat(p.top)/100*x:p.top,E=isNaN(p.bottom)&&-1<p.bottom.indexOf("%")?parseFloat(p.bottom)/100*x:p.bottom,j=S?S.offsetTop:p.innerTop?p.innerTop:0,O=isNaN(p.bottomEnd)&&-1<p.bottomEnd.indexOf("%")?parseFloat(p.bottomEnd)/100*x:p.bottomEnd,C=k-T+j+R}function r(){H=B(),w=A(),z=k+w-T-O,N=x<H;var t,e=_.pageYOffset||U.documentElement.scrollTop,o=u.offset(n).top,i=o-e;I=e<M?"up":"down",P=e-M,C<(M=e)?z+T+(N?E:0)-(p.followScroll&&N?0:T)<=e+H-j-(x-(C-j)<H-j&&p.followScroll&&0<(t=H-x-j)?t:0)?F.release({position:"absolute",bottom:L+s.offsetHeight-z-T}):N&&p.followScroll?"down"==I?i+H+E<=x+.9?F.stick({bottom:E}):"fixed"===F.position&&F.release({position:"absolute",top:o-T-C-P+j}):Math.ceil(i+j)<0&&"fixed"===F.position?F.release({position:"absolute",top:o-T-C+j-P}):e+T-j<=o&&F.stick({top:T-j}):F.stick({top:T-j}):F.release({stop:!0})}function l(){D&&(_.removeEventListener("scroll",r,Y),D=!1)}function a(){null!==n.offsetParent&&"none"!==u.getStyle(n,"display")?(i(),w<H?l():(r(),D||(_.addEventListener("scroll",r,Y),D=!0))):l()}function c(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),F.css={},!(F.position=null)===q.isAttached&&q.detach()}function y(){c(),e(),(t()?l:a)()}function m(){p.onBeforeResize&&p.onBeforeResize.call(n,Object.assign({},p)),y(),p.onResize&&p.onResize.call(n,Object.assign({},p))}function g(){W&&(_.removeEventListener("resize",V,Y),W=!1),l()}function h(){W||(_.addEventListener("resize",V,Y),W=!0),e(),(t()?l:a)()}var b,v,S,w,k,L,x,T,E,j,O,C,z,N,H,R,A,B,I,F={css:{},position:null,stick:function(t){t=t||{},u.hasClass(n,p.stickyClass)||(!1===q.isAttached&&q.attach(),F.position="fixed",n.style.position="fixed",n.style.left=q.offsetLeft+"px",n.style.width=q.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(p.stickyClass):n.className+=" "+p.stickyClass,p.onStart&&p.onStart.call(n,Object.assign({},p)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===F.position||null===F.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(u.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(u.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===q.isAttached&&q.detach():!1===q.isAttached&&q.attach();var e=t.position||F.css.position;F.position=e,n.style.position=e,n.style.left=!0===t.stop?F.css.left:q.positionLeft+"px",n.style.width="absolute"!==e?F.css.width:q.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(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),p.onStop&&p.onStop.call(n,Object.assign({},p))}}},q={el:U.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in q.el.className="sticky-spacer",F.css)q.el.style[t]=F.css[t];q.el.style["z-index"]="-1";var e=u.getStyle(n);q.offsetLeft=u.offset(n).left-(parseInt(e.marginLeft)||0),q.positionLeft=u.position(n).left,q.width=u.getStyle(n,"width")},attach:function(){s.insertBefore(q.el,n),q.isAttached=!0},detach:function(){q.el=s.removeChild(q.el),q.isAttached=!1}},M=_.pageYOffset||U.documentElement.scrollTop,P=0,D=!1,W=!1,V=p.resizeDebounce?u.debounce(m,p.resizeDebounce):m;this.options=function(t){return t?p[t]:Object.assign({},p)},this.refresh=y,this.update=function(t){d(t),f=Object.assign({},f,t||{}),y()},this.attach=h,this.detach=g,this.destroy=function(){g(),c()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){Q("reinit","refresh","method"),y()},d(f),h(),_.addEventListener("load",y)};if(void 0!==_.jQuery){var i=_.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 X(this,e),i.data(this,n,t))}):this}})}return _.hcSticky=_.hcSticky||X,X}),function(c){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}}t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r;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,o=t.cloneNode(!0);o.style.display="none",Array.prototype.slice.call(o.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(o,t.nextSibling),o.currentStyle?e=o.currentStyle:c.getComputedStyle&&(e=f.defaultView.getComputedStyle(o,null));var i={};for(var n in e)!isNaN(n)||"string"!=typeof e[n]&&"number"!=typeof e[n]||(i[n]=e[n]);if(Object.keys(i).length<3)for(var s in i={},e)isNaN(s)||(i[e[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[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 o.parentNode.removeChild(o),o=null,i}}}(window);
"use strict";!function(t,e){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(U){var Y=U.document,$=!1;try{var t=Object.defineProperty({},"passive",{get:function(){$={passive:!1}}});U.addEventListener("testPassive",null,t),U.removeEventListener("testPassive",null,t)}catch(t){}var Q={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},X=function(t,e,o){console.warn("%cHC Sticky:%c "+o+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},G=function(n,f){var o=this;if(f=f||{},"string"==typeof n&&(n=Y.querySelector(n)),!n)return!1;f.queries&&X("queries","responsive","option"),f.queryFlow&&X("queryFlow","mobileFirst","option");var p={},u=G.Helpers,s=n.parentNode;"static"===u.getStyle(s,"position")&&(s.style.position="relative");function d(t){t=t||{},u.isEmptyObject(t)&&!u.isEmptyObject(p)||(p=Object.assign({},Q,p,t))}function t(){return p.disable}function e(){var t,e=p.responsive||p.queries;if(e){var o=U.innerWidth;if(t=f,(p=Object.assign({},Q,t||{})).mobileFirst)for(var i in e)i<=o&&!u.isEmptyObject(e[i])&&d(e[i]);else{var n=[];for(var s in e){var r={};r[s]=e[s],n.push(r)}for(var l=n.length-1;0<=l;l--){var a=n[l],c=Object.keys(a)[0];o<=c&&!u.isEmptyObject(a[c])&&d(a[c])}}}}function i(){var t,e,o,i;F.css=(t=n,e=u.getCascadedStyle(t),o=u.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),q.init(),b=!(!p.stickTo||!("document"===p.stickTo||p.stickTo.nodeType&&9===p.stickTo.nodeType||"object"==typeof p.stickTo&&p.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),v=p.stickTo?b?Y:"string"==typeof p.stickTo?Y.querySelector(p.stickTo):p.stickTo:s,H=(B=function(){var t=n.offsetHeight+(parseInt(F.css.marginTop)||0)+(parseInt(F.css.marginBottom)||0),e=(H||0)-t;return-1<=e&&e<=1?H:t})(),w=(A=function(){return b?Math.max(Y.documentElement.clientHeight,Y.body.scrollHeight,Y.documentElement.scrollHeight,Y.body.offsetHeight,Y.documentElement.offsetHeight):v.offsetHeight})(),k=b?0:u.offset(v).top,L=p.stickTo?b?0:u.offset(s).top:k,x=U.innerHeight,R=n.offsetTop-(parseInt(F.css.marginTop)||0),S=p.innerSticker?"string"==typeof p.innerSticker?Y.querySelector(p.innerSticker):p.innerSticker:null,T=isNaN(p.top)&&-1<p.top.indexOf("%")?parseFloat(p.top)/100*x:p.top,E=isNaN(p.bottom)&&-1<p.bottom.indexOf("%")?parseFloat(p.bottom)/100*x:p.bottom,j=S?S.offsetTop:p.innerTop?p.innerTop:0,O=isNaN(p.bottomEnd)&&-1<p.bottomEnd.indexOf("%")?parseFloat(p.bottomEnd)/100*x:p.bottomEnd,C=k-T+j+R}function r(){H=B(),w=A(),z=k+w-T-O,N=x<H;var t,e=U.pageYOffset||Y.documentElement.scrollTop,o=u.offset(n).top,i=o-e;I=e<M?"up":"down",P=e-M,C<(M=e)?z+T+(N?E:0)-(p.followScroll&&N?0:T)<=e+H-j-(x-(C-j)<H-j&&p.followScroll&&0<(t=H-x-j)?t:0)?F.release({position:"absolute",bottom:L+s.offsetHeight-z-T}):N&&p.followScroll?"down"==I?i+H+E<=x+.9?F.stick({bottom:E}):"fixed"===F.position&&F.release({position:"absolute",top:o-T-C-P+j}):Math.ceil(i+j)<0&&"fixed"===F.position?F.release({position:"absolute",top:o-T-C+j-P}):e+T-j<=o&&F.stick({top:T-j}):F.stick({top:T-j}):F.release({stop:!0})}function l(){D&&(U.removeEventListener("scroll",r,$),D=!1)}function a(){null!==n.offsetParent&&"none"!==u.getStyle(n,"display")?(i(),w<H?l():(r(),D||(U.addEventListener("scroll",r,$),D=!0))):l()}function c(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),F.css={},!(F.position=null)===q.isAttached&&q.detach()}function g(){c(),e(),(t()?l:a)()}function m(){p.onBeforeResize&&p.onBeforeResize.call(n,Object.assign({},p)),g(),p.onResize&&p.onResize.call(n,Object.assign({},p))}function y(){W&&(U.removeEventListener("resize",V,$),W=!1),l()}function h(){W||(U.addEventListener("resize",V,$),W=!0),e(),(t()?l:a)()}var b,v,S,w,k,L,x,T,E,j,O,C,z,N,H,R,A,B,I,F={css:{},position:null,stick:function(t){t=t||{},u.hasClass(n,p.stickyClass)||(!1===q.isAttached&&q.attach(),F.position="fixed",n.style.position="fixed",n.style.left=q.offsetLeft+"px",n.style.width=q.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(p.stickyClass):n.className+=" "+p.stickyClass,p.onStart&&p.onStart.call(n,Object.assign({},p)))},release:function(t){if((t=t||{}).stop=t.stop||!1,!0===t.stop||"fixed"===F.position||null===F.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(u.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(u.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===q.isAttached&&q.detach():!1===q.isAttached&&q.attach();var e=t.position||F.css.position;F.position=e,n.style.position=e,n.style.left=!0===t.stop?F.css.left:q.positionLeft+"px",n.style.width="absolute"!==e?F.css.width:q.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(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),p.onStop&&p.onStop.call(n,Object.assign({},p))}}},q={el:Y.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in q.el.className="sticky-spacer",F.css)q.el.style[t]=F.css[t];q.el.style["z-index"]="-1";var e=u.getStyle(n);q.offsetLeft=u.offset(n).left-(parseInt(e.marginLeft)||0),q.positionLeft=u.position(n).left,q.width=u.getStyle(n,"width")},attach:function(){s.insertBefore(q.el,n),q.isAttached=!0},detach:function(){q.el=s.removeChild(q.el),q.isAttached=!1}},M=U.pageYOffset||Y.documentElement.scrollTop,P=0,D=!1,W=!1,V=p.resizeDebounce?u.debounce(m,p.resizeDebounce):m;this.options=function(t){return t?p[t]:Object.assign({},p)},this.refresh=g,this.update=function(t){d(t),f=Object.assign({},f,t||{}),g()},this.attach=h,this.detach=y,this.destroy=function(){y(),c()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){X("reinit","refresh","method"),g()},d(f),h(),U.addEventListener("load",g)};if(void 0!==U.jQuery){var i=U.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 G(this,e),i.data(this,n,t))}):this}})}return U.hcSticky=U.hcSticky||G,G}),function(c){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}}t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r;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,o=t.cloneNode(!0);o.style.display="none",Array.prototype.slice.call(o.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(o,t.nextSibling),o.currentStyle?e=o.currentStyle:c.getComputedStyle&&(e=f.defaultView.getComputedStyle(o,null));var i={};for(var n in e)!isNaN(n)||"string"!=typeof e[n]&&"number"!=typeof e[n]||(i[n]=e[n]);if(Object.keys(i).length<3)for(var s in i={},e)isNaN(s)||(i[e[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=e.getPropertyValue(e[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 o.parentNode.removeChild(o),o=null,i}}}(window);

@@ -22,2 +22,3 @@ const { src, dest, parallel, series, watch } = require('gulp');

])
.pipe(concat('hc-sticky.js'))
.pipe(babel(

@@ -29,3 +30,5 @@ {

{
modules: false
modules: false,
loose: true,
exclude: ['transform-typeof-symbol']
}

@@ -36,3 +39,2 @@ ]

))
.pipe(concat('hc-sticky.js'))
.pipe(argv.dev ? through.obj() : uglify({

@@ -39,0 +41,0 @@ output: {

{
"name": "hc-sticky",
"version": "2.2.4",
"description": "Dependency free javascript library that makes elements on your page visible while you scroll",
"version": "2.2.5",
"description": "JavaScript library that makes any element on your page visible while you scroll",
"homepage": "http://somewebmedia.com/hc-sticky",

@@ -9,3 +9,3 @@ "main": "dist/hc-sticky.js",

"name": "Some Web Media",
"url": "http://somewebmedia.com"
"url": "https://github.com/somewebmedia"
},

@@ -12,0 +12,0 @@ "license": "MIT",

HC-Sticky
=========
[![Version](https://img.shields.io/npm/v/hc-sticky.svg)](https://www.npmjs.com/package/hc-sticky) [![Downloads](https://img.shields.io/npm/dt/hc-sticky.svg)](https://www.npmjs.com/package/hc-sticky)
JavaScript library that makes any element on your page visible while you scroll. Dependency free, but lso works as a jQuery plugin.

@@ -5,0 +7,0 @@ Check out the [demos](https://somewebmedia.github.io/hc-sticky).

/*
* HC-Sticky
* =========
* Version: 2.2.4
* Version: 2.2.5
* Author: Some Web Media

@@ -6,0 +6,0 @@ * Author URL: https://github.com/somewebmedia

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc