/*! * Polyficky (Stickyfill Reborn) – `position: sticky` polyfill * v. 1.0.0 | https://github.com/trevonerd/polyficky * MIT License */'use strict';/* * 1. Check if the browser supports `position: sticky` natively or is too old to run the polyfill. * If either of these is the case set `seppuku` flag. It will be checked later to disable key features * of the polyfill, but the API will remain functional to avoid breaking things. */function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d=this._limits.end?"end":"middle";this._stickyMode!=a&&("start"==a?extend(this._node.style,{position:"absolute",left:"".concat(this._offsetToParent.left,"px"),right:"".concat(this._offsetToParent.right,"px"),top:"".concat(this._offsetToParent.top-this._customOffset,"px"),bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"middle"===a?extend(this._node.style,{position:"fixed",left:"".concat(this._offsetToWindow.left,"px"),right:"".concat(this._offsetToWindow.right,"px"),top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"end"===a?extend(this._node.style,{position:"absolute",left:"".concat(this._offsetToParent.left,"px"),right:"".concat(this._offsetToParent.right,"px"),top:"auto",bottom:"".concat(0+this._customOffset,"px"),width:"auto",marginLeft:0,marginRight:0}):void 0,this._stickyMode=a)}}},{key:"_fastCheck",value:function _fastCheck(){var a=Math.abs;!this._active||this._removed||(1