1!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/app/themes/sage/dist/",e(e.s=15)}([function(t,e){t.exports=jQuery},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var e=n(0),i=(n.n(e),n(4)),o=(n.n(i),n(11)),r=n(6),s=n(7),a=n(9),l=n(5),c=n(8),h=new o.a({common:r.a,home:s.a,team:a.a,hasComments:l.a,singleVideo:c.a});t(document).ready(function(){return h.loadEvents()})}.call(e,n(0))},function(t,e){},function(t,e,n){(function(t,e){/*! 2 * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com) 3 * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 */ 6if(void 0===t)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),function(){function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r="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},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(t){function e(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(t){return(t[0]||t).nodeType}function i(){return{bindType:s.end,delegateType:s.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function o(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in a)if(void 0!==t.style[e])return{end:a[e]};return!1}function r(e){var n=this,i=!1;return t(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(n)},e),this}var s=!1,a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(s.end)},supportsTransitionEnd:function(){return Boolean(s)},typeCheckConfig:function(t,i,o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r],a=i[r],l=a&&n(a)?"element":e(a);if(!new RegExp(s).test(l))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+l+'" but expected type "'+s+'".')}}};return function(){s=o(),t.fn.emulateTransitionEnd=r,l.supportsTransitionEnd()&&(t.event.special[l.TRANSITION_END]=i())}(),l}(t),l=(function(t){var e="alert",n=t.fn[e],i={DISMISS:'[data-dismiss="alert"]'},r={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},l={ALERT:"alert",FADE:"fade",SHOW:"show"},c=function(){function e(t){o(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
vendor: 12,712 bytes, line 6
6,e.prototype.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},e.prototype._getRootElement=function(e){var n=a.getSelectorFromElement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+l.ALERT)[0]),i},e.prototype._triggerCloseEvent=function(e){var n=t.Event(r.CLOSE);return t(e).trigger(n),n},e.prototype._removeElement=function(e){var n=this;if(t(e).removeClass(l.SHOW),!a.supportsTransitionEnd()||!t(e).hasClass(l.FADE))return void this._destroyElement(e);t(e).one(a.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150)},e.prototype._destroyElement=function(e){t(e).detach().trigger(r.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(r.CLICK_DATA_API,i.DISMISS,c._handleDismiss(new c)),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=n,c._jQueryInterface}}(t),function(t){var e="button",n=t.fn[e],i={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},r={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},a={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function e(t){o(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=t(this._element).closest(r.DATA_TOGGLE)[0];if(n){var o=t(this._element).find(r.INPUT)[0];if(o){if("radio"===o.type)if(o.checked&&t(this._element).hasClass(i.ACTIVE))e=!1;else{var s=t(n).find(r.ACTIVE)[0];s&&t(s).removeClass(i.ACTIVE)}e&&(o.checked=!t(this._element).hasClass(i.ACTIVE),t(o).trigger("change")),o.focus()}}this._element.setAttribute("aria-pressed",!t(this._element).hasClass(i.ACTIVE)),e&&t(this._element).toggleClass(i.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()})},s(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(a.CLICK_DATA_API,r.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var n=e.target;t(n).hasClass(i.BUTTON)||(n=t(n).closest(r.BUTTON)),l._jQueryInterface.call(t(n),"toggle")}).on(a.FOCUS_BLUR_DATA_API,r.DATA_TOGGLE_CARROT,function(e){var n=t(e.target).closest(r.BUTTON)[0];t(n).toggleClass(i.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=n,l._jQueryInterface}}(t),function(t){var e="carousel",n="bs.carousel",i="."+n,l=t.fn[e],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},h={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},u={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},d={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},p={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},g=function(){function l(e,n){o(this,l),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(p.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(u.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(u.PREVIOUS)},l.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(p.NEXT_PREV)[0]&&a.supportsTransitionEnd()&&(a.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(e){var n=this;this._activeElement=t(this._element).find(p.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(d.SLID,function(){return n.to(e)});if(i===e)return this.pause(),void this.cycle();var o=e>i?u.NEXT:u.PREVIOUS;this._slide(o,this._items[e])}},l.prototype.dispose=function(){t(this._element).off(i),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l.prototype._getConfig=function(n){return n=t.extend({},c,n),a.typeCheckConfig(e,n,h),n},l.prototype._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)})},l.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(p.ITEM)),this._items.indexOf(e)},l.prototype._getItemByDirection=function(t,e){var n=t===u.NEXT,i=t===u.PREVIOUS,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=t===u.PREVIOUS?-1:1,a=(o+s)%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},l.prototype._triggerSlideEvent=function(e,n){var i=t.Event(d.SLIDE,{relatedTarget:e,direction:n});return t(this._element).trigger(i),i},l.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(p.ACTIVE).removeClass(f.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(f.ACTIVE)}},l.prototype._slide=function(e,n){var i=this,o=t(this._element).find(p.ACTIVE_ITEM)[0],r=n||o&&this._getItemByDirection(e,o),s=Boolean(this._interval),l=void 0,c=void 0,h=void 0;if(e===u.NEXT?(l=f.LEFT,c=f.NEXT,h=u.LEFT):(l=f.RIGHT,c=f.PREV,h=u.RIGHT),r&&t(r).hasClass(f.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(r,h).isDefaultPrevented()&&o&&r){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(r);var g=t.Event(d.SLID,{relatedTarget:r,direction:h});a.supportsTransitionEnd()&&t(this._element).hasClass(f.SLIDE)?(t(r).addClass(c),a.reflow(r),t(o).addClass(l),t(r).addClass(l),t(o).one(a.TRANSITION_END,function(){t(r).removeClass(l+" "+c).addClass(f.ACTIVE),t(o).removeClass(f.ACTIVE+" "+c+" "+l),i._isSliding=!1,setTimeout(function(){return t(i._element).trigger(g)},0)}).emulateTransitionEnd(600)):(t(o).removeClass(f.ACTIVE),t(r).addClass(f.ACTIVE),this._isSliding=!1,t(this._element).trigger(g)),s&&this.cycle()}},l._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o=t.extend({},c,t(this).data());"object"===(void 0===e?"undefined":r(e))&&t.extend(o,e);var s="string"==typeof e?e:o.slide;if(i||(i=new l(this,o),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new Error('No method named "'+s+'"');i[s]()}else o.interval&&(i.pause(),i.cycle())})},l._dataApiClickHandler=function(e){var i=a.getSelectorFromElement(this);if(i){var o=t(i)[0];if(o&&t(o).hasClass(f.CAROUSEL)){var r=t.extend({},t(o).data(),t(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),l._jQueryInterface.call(t(o),r),s&&t(o).data(n).to(s),e.preventDefault()}}},s(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}}]),l}();t(document).on(d.CLICK_DATA_API,p.DATA_SLIDE,g._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(p.DATA_RIDE).each(function(){var e=t(this);g._jQueryInterface.call(e,e.data())})}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=l,g._jQueryInterface}}(t),function(t){var e="collapse",n="bs.collapse",i=t.fn[e],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"string"},h={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},u={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},f={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},p=function(){function i(e,n){o(this,i),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i.prototype.toggle=function(){t(this._element).hasClass(u.SHOW)?this.hide():this.show()},i.prototype.show=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!t(this._element).hasClass(u.SHOW)){var o=void 0,r=void 0;if(this._parent&&(o=t.makeArray(t(this._parent).find(f.ACTIVES)),o.length||(o=null)),!(o&&(r=t(o).data(n))&&r._isTransitioning)){var s=t.Event(h.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){o&&(i._jQueryInterface.call(t(o),"hide"),r||t(o).data(n,null));var l=this._getDimension();t(this._element).removeClass(u.COLLAPSE).addClass(u.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(u.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).addClass(u.SHOW),e._element.style[l]="",e.setTransitioning(!1),t(e._element).trigger(h.SHOWN)};if(!a.supportsTransitionEnd())return void c();var d=l[0].toUpperCase()+l.slice(1),p="scroll"+d;t(this._element).one(a.TRANSITION_END,c).emulateTransitionEnd(600),this._element.style[l]=this._element[p]+"px"}}}},i.prototype.hide=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(t(this._element).hasClass(u.SHOW)){var n=t.Event(h.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension(),o=i===d.WIDTH?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[o]+"px",a.reflow(this._element),t(this._element).addClass(u.COLLAPSING).removeClass(u.COLLAPSE).removeClass(u.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(u.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var r=function(){e.setTransitioning(!1),t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).trigger(h.HIDDEN)};if(this._element.style[i]="",!a.supportsTransitionEnd())return void r();t(this._element).one(a.TRANSITION_END,r).emulateTransitionEnd(600)}}},i.prototype.setTransitioning=function(t){this._isTransitioning=t},i.prototype.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i.prototype._getConfig=function(n){return n=t.extend({},l,n),n.toggle=Boolean(n.toggle),a.typeCheckConfig(e,n,c),n},i.prototype._getDimension=function(){return t(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},i.prototype._getParent=function(){var e=this,n=t(this._config.parent)[0],o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(o).each(function(t,n){e._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])}),n},i.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(u.
6SHOW);e.setAttribute("aria-expanded",i),n.length&&t(n).toggleClass(u.COLLAPSED,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(e){var n=a.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each(function(){var o=t(this),s=o.data(n),a=t.extend({},l,o.data(),"object"===(void 0===e?"undefined":r(e))&&e);if(!s&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),s||(s=new i(this,a),o.data(n,s)),"string"==typeof e){if(void 0===s[e])throw new Error('No method named "'+e+'"');s[e]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),i}();t(document).on(h.CLICK_DATA_API,f.DATA_TOGGLE,function(e){e.preventDefault();var i=p._getTargetFromElement(this),o=t(i).data(n),r=o?"toggle":t(this).data();p._jQueryInterface.call(t(i),r)}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=i,p._jQueryInterface}}(t),function(t){var e="dropdown",n=".bs.dropdown",i=t.fn[e],r={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK:"click"+n,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},l={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},c={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},h=function(){function e(t){o(this,e),this._element=t,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasClass(l.DISABLED))return!1;var n=e._getParentFromElement(this),i=t(n).hasClass(l.SHOW);if(e._clearMenus(),i)return!1;if("ontouchstart"in document.documentElement&&!t(n).closest(c.NAVBAR_NAV).length){var o=document.createElement("div");o.className=l.BACKDROP,t(o).insertBefore(this),t(o).on("click",e._clearMenus)}var s={relatedTarget:this},a=t.Event(r.SHOW,s);return t(n).trigger(a),!a.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),t(n).toggleClass(l.SHOW),t(n).trigger(t.Event(r.SHOWN,s)),!1)},e.prototype.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(n),this._element=null},e.prototype._addEventListeners=function(){t(this._element).on(r.CLICK,this.toggle)},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.dropdown");if(i||(i=new e(this),t(this).data("bs.dropdown",i)),"string"==typeof n){if(void 0===i[n])throw new Error('No method named "'+n+'"');i[n].call(this)}})},e._clearMenus=function(n){if(!n||3!==n.which){var i=t(c.BACKDROP)[0];i&&i.parentNode.removeChild(i);for(var o=t.makeArray(t(c.DATA_TOGGLE)),s=0;s<o.length;s++){var a=e._getParentFromElement(o[s]),h={relatedTarget:o[s]};if(t(a).hasClass(l.SHOW)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"focusin"===n.type)&&t.contains(a,n.target))){var u=t.Event(r.HIDE,h);t(a).trigger(u),u.isDefaultPrevented()||(o[s].setAttribute("aria-expanded","false"),t(a).removeClass(l.SHOW).trigger(t.Event(r.HIDDEN,h)))}}}},e._getParentFromElement=function(e){var n=void 0,i=a.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},e._dataApiKeydownHandler=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(l.DISABLED))){var i=e._getParentFromElement(this),o=t(i).hasClass(l.SHOW);if(!o&&27!==n.which||o&&27===n.which){if(27===n.which){var r=t(i).find(c.DATA_TOGGLE)[0];t(r).trigger("focus")}return void t(this).trigger("click")}var s=t(i).find(c.VISIBLE_ITEMS).get();if(s.length){var a=s.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}},s(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(r.KEYDOWN_DATA_API,c.DATA_TOGGLE,h._dataApiKeydownHandler).on(r.KEYDOWN_DATA_API,c.ROLE_MENU,h._dataApiKeydownHandler).on(r.KEYDOWN_DATA_API,c.ROLE_LISTBOX,h._dataApiKeydownHandler).on(r.CLICK_DATA_API+" "+r.FOCUSIN_DATA_API,h._clearMenus).on(r.CLICK_DATA_API,c.DATA_TOGGLE,h.prototype.toggle).on(r.CLICK_DATA_API,c.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=i,h._jQueryInterface}}(t),function(t){var e="modal",n=".bs.modal",i=t.fn[e],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},h={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},u={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},d={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},f=function(){function i(e,n){o(this,i),this._config=this._getConfig(n),this._element=e,this._dialog=t
vendor: 12,634 bytes, line 6
6(e).find(d.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return i.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this;if(this._isTransitioning)throw new Error("Modal is transitioning");a.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE)&&(this._isTransitioning=!0);var i=t.Event(h.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(u.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(h.CLICK_DISMISS,d.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(h.MOUSEDOWN_DISMISS,function(){t(n._element).one(h.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))},i.prototype.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");var i=a.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE);i&&(this._isTransitioning=!0);var o=t.Event(h.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(h.FOCUSIN),t(this._element).removeClass(u.SHOW),t(this._element).off(h.CLICK_DISMISS),t(this._dialog).off(h.MOUSEDOWN_DISMISS),i?t(this._element).one(a.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal())},i.prototype.dispose=function(){t.removeData(this._element,"bs.modal"),t(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},i.prototype._getConfig=function(n){return n=t.extend({},l,n),a.typeCheckConfig(e,n,c),n},i.prototype._showElement=function(e){var n=this,i=a.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&a.reflow(this._element),t(this._element).addClass(u.SHOW),this._config.focus&&this._enforceFocus();var o=t.Event(h.SHOWN,{relatedTarget:e}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};i?t(this._dialog).one(a.TRANSITION_END,r).emulateTransitionEnd(300):r()},i.prototype._enforceFocus=function(){var e=this;t(document).off(h.FOCUSIN).on(h.FOCUSIN,function(n){document===n.target||e._element===n.target||t(e._element).has(n.target).length||e._element.focus()})},i.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(h.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(h.KEYDOWN_DISMISS)},i.prototype._setResizeEvent=function(){var e=this;this._isShown?t(window).on(h.RESIZE,function(t){return e._handleUpdate(t)}):t(window).off(h.RESIZE)},i.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(u.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(h.HIDDEN)})},i.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},i.prototype._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(u.FADE)?u.FADE:"";if(this._isShown&&this._config.backdrop){var o=a.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=u.BACKDROP,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(h.CLICK_DISMISS,function(t){if(n._ignoreBackdropClick)return void(n._ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),o&&a.reflow(this._backdrop),t(this._backdrop).addClass(u.SHOW),!e)return;if(!o)return void e();t(this._backdrop).one(a.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(u.SHOW);var r=function(){n._removeBackdrop(),e&&e()};a.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE)?t(this._backdrop).one(a.TRANSITION_END,r).emulateTransitionEnd(150):r()}else e&&e()},i.prototype._handleUpdate=function(){this._adjustDialog()},i.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},i.prototype._setScrollbar=function(){var e=parseInt(t(d.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},i.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},i.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=u.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},i._jQueryInterface=function(e,n){return this.each(function(){var o=t(this).data("bs.modal"),s=t.extend({},i.Default,t(this).data(),"object"===(void 0===e?"undefined":r(e))&&e);if(o||(o=new i(this,s),t(this).data("bs.modal",o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e](n)}else s.show&&o.show(n)})},s(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),i}();t(document).on(h.CLICK_DATA_API,d.DATA_TOGGLE,function(e){var n=this,i=void 0,o=a.getSelectorFromElement(this);o&&(i=t(o)[0]);var r=t(i).data("bs.modal")?"toggle":t.extend({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var s=t(i).one(h.SHOW,function(e){e.isDefaultPrevented()||s.one(h.HIDDEN,function(){t(n).is(":visible")&&n.focus()})});f._jQueryInterface.call(t(i),r,this)}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=i,f._jQueryInterface}}(t),function(t){var e="scrollspy",n=t.fn[e],i={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},h={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d={OFFSET:"offset",POSITION:"position"},f=function(){function n(e,i){var r=this;o(this,n),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return r._process(t)}),this.refresh(),this._process()}return n.prototype.refresh=function(){var e=this,n=this._scrollElement!==this._scrollElement.window?d.POSITION:d.OFFSET,i="auto"===this._config.method?n:this._config.method,o=i===d.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n=void 0,r=a.getSelectorFromElement(e);return r&&(n=t(r)[0]),n&&(n.offsetWidth||n.offsetHeight)?[t(n)[i]().top+o,r]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.prototype.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n.prototype._getConfig=function(n){if(n=t.extend({},i,n),"string"!=typeof n.target){var o=t(n.target).attr("id");o||(o=a.getUID(e),t(n.target).attr("id",o)),n.target="#"+o}return a.typeCheckConfig(e,n,l),n},n.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.offsetHeight},n.prototype._process=function(){var t=this,e=this._getScrollTop()+this._config.offset,n=this._getScrollHeight(),i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n&&this.refresh(),e>=i){var o=this._targets[this._targets.length-1];return void(this._activeTarget!==o&&this._activate(o))}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){t._activeTarget!==t._targets[r]&&e>=t._offsets[r]&&(void 0===t._offsets[r+1]||e<t._offsets[r+1])&&t._activate(t._targets[r])}},n.prototype._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(h.DROPDOWN_ITEM)?(i.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(h.ACTIVE),i.addClass(h.ACTIVE)):i.parents(u.LI).find("> "+u.NAV_LINKS).addClass(h.ACTIVE),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},n.prototype._clear=function(){t(this._selector).filter(u.ACTIVE).removeClass(h.ACTIVE)},n._jQueryInterface=function(e){return this.each(function(){var i=t(this).data("bs.scrollspy"),o="object"===(void 0===e?"undefined":r(e))&&e;if(i||(i=new n(this,o),t(this).data("bs.scrollspy",i)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return i}}]),n}();t(window).on(c.LOAD_DATA_API,function(){for(var e=t.makeArray(t(u.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);f._jQueryInterface.call(i,i.data())}}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=n,f._jQueryInterface}}(t),function(t){var e=t.fn.tab,n={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},i={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},r={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},l=function(){function e(t){o(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(i.ACTIVE)||t(this._element).hasClass(i.DISABLED))){var o=void 0,s=void 0,l=t(this._element).closest(r.LIST)[0],c=a.getSelectorFromElement(this._element);l&&(s=t.makeArray(t(l).find(r.ACTIVE)),s=s[s.length-1]);var h=t.Event(n.HIDE,{relatedTarget:this._element}),u=t.Event(n.SHOW,{relatedTarget:s});if(s&&t(s).trigger(h),t(this._element).trigger(u),!u.isDefaultPrevented()&&!h.isDefaultPrevented()){c&&(o=t(c)[0]),this._activate(this._element,l);var d=function(){var i=t.Event(n.HIDDEN,{relatedTarget:e._element}),o=t.Event(n.SHOWN,{relatedTarget:s});t(s).trigger(i),t(e._element).trigger(o)};o?this._activate(o,o.parentNode,d):d()}}}
6,e.prototype.dispose=function(){t.removeClass(this._element,"bs.tab"),this._element=null},e.prototype._activate=function(e,n,o){var s=this,l=t(n).find(r.ACTIVE_CHILD)[0],c=o&&a.supportsTransitionEnd()&&(l&&t(l).hasClass(i.FADE)||Boolean(t(n).find(r.FADE_CHILD)[0])),h=function(){return s._transitionComplete(e,l,c,o)};l&&c?t(l).one(a.TRANSITION_END,h).emulateTransitionEnd(150):h(),l&&t(l).removeClass(i.SHOW)},e.prototype._transitionComplete=function(e,n,o,s){if(n){t(n).removeClass(i.ACTIVE);var l=t(n.parentNode).find(r.DROPDOWN_ACTIVE_CHILD)[0];l&&t(l).removeClass(i.ACTIVE),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(i.ACTIVE),e.setAttribute("aria-expanded",!0),o?(a.reflow(e),t(e).addClass(i.SHOW)):t(e).removeClass(i.FADE),e.parentNode&&t(e.parentNode).hasClass(i.DROPDOWN_MENU)){var c=t(e).closest(r.DROPDOWN)[0];c&&t(c).find(r.DROPDOWN_TOGGLE).addClass(i.ACTIVE),e.setAttribute("aria-expanded",!0)}s&&s()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new Error('No method named "'+n+'"');o[n]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(n.CLICK_DATA_API,r.DATA_TOGGLE,function(e){e.preventDefault(),l._jQueryInterface.call(t(this),"show")}),t.fn.tab=l._jQueryInterface,t.fn.tab.Constructor=l,t.fn.tab.noConflict=function(){return t.fn.tab=e,l._jQueryInterface}}(t),function(t){if(void 0===e)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var n="tooltip",i=".bs.tooltip",l=t.fn[n],c={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},u={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},d={SHOW:"show",OUT:"out"},f={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},p={FADE:"fade",SHOW:"show"},g={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},m={element:!1,enabled:!1},v={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},_=function(){function l(t,e){o(this,l),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(p.SHOW))return void this._leave(null,this);this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},l.prototype.show=function(){var n=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");t(this.element).trigger(i);var o=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!o)return;var r=this.getTipElement(),s=a.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(r).addClass(p.FADE);var c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(c),u=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new e({attachment:h,element:r,target:this.element,classes:m,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),a.reflow(r),this._tether.position(),t(r).addClass(p.SHOW);var f=function(){var e=n._hoverState;n._hoverState=null,n._isTransitioning=!1,t(n.element).trigger(n.constructor.Event.SHOWN),e===d.OUT&&n._leave(null,n)};if(a.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE))return this._isTransitioning=!0,void t(this.tip).one(a.TRANSITION_END,f).emulateTransitionEnd(l._TRANSITION_DURATION);f()}},l.prototype.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var r=function(){n._hoverState!==d.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n._isTransitioning=!1,n.cleanupTether(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(i).removeClass(p.SHOW),this._activeTrigger[v.CLICK
6]=!1,this._activeTrigger[v.FOCUS]=!1,this._activeTrigger[v.HOVER]=!1,a.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE)?(this._isTransitioning=!0,t(i).one(a.TRANSITION_END,r).emulateTransitionEnd(150)):r(),this._hoverState="")},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},l.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(g.TOOLTIP_INNER),this.getTitle()),e.removeClass(p.FADE+" "+p.SHOW),this.cleanupTether()},l.prototype.setElementContent=function(e,n){var i=this.config.html;"object"===(void 0===n?"undefined":r(n))&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},l.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},l.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},l.prototype._getAttachment=function(t){return u[t.toUpperCase()]},l.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==v.MANUAL){var i=n===v.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===v.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var t=r(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l.prototype._enter=function(e,n){var i=this.constructor.DATA_KEY;return n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?v.FOCUS:v.HOVER]=!0),t(n.getTipElement()).hasClass(p.SHOW)||n._hoverState===d.SHOW?void(n._hoverState=d.SHOW):(clearTimeout(n._timeout),n._hoverState=d.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===d.SHOW&&n.show()},n.config.delay.show)):void n.show())},l.prototype._leave=function(e,n){var i=this.constructor.DATA_KEY;if(n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?v.FOCUS:v.HOVER]=!1),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=d.OUT,!n.config.delay||!n.config.delay.hide)return void n.hide();n._timeout=setTimeout(function(){n._hoverState===d.OUT&&n.hide()},n.config.delay.hide)}},l.prototype._isWithActiveTrigger=function(){var t=this;for(var e in t._activeTrigger)if(t._activeTrigger[e])return!0;return!1},l.prototype._getConfig=function(e){return e=t.extend({},this.constructor.Default,t(this.element).data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),a.typeCheckConfig(n,e,this.constructor.DefaultType),e},l.prototype._getDelegateConfig=function(){var t=this,e={};if(this.config)for(var n in t.config)t.constructor.Default[n]!==t.config[n]&&(e[n]=t.config[n]);return e},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),i="object"===(void 0===e?"undefined":r(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new l(this,i),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},s(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return h}}]),l}();
6return t.fn[n]=_._jQueryInterface,t.fn[n].Constructor=_,t.fn[n].noConflict=function(){return t.fn[n]=l,_._jQueryInterface},_}(t));!function(t){var e="popover",a=".bs.popover",c=t.fn[e],h=t.extend({},l.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),u=t.extend({},l.DefaultType,{content:"(string|element|function)"}),d={FADE:"fade",SHOW:"show"},f={TITLE:".popover-title",CONTENT:".popover-content"},p={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},g=function(l){function c(){return o(this,c),n(this,l.apply(this,arguments))}return i(c,l),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},c.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(f.TITLE),this.getTitle()),this.setElementContent(e.find(f.CONTENT),this._getContent()),e.removeClass(d.FADE+" "+d.SHOW),this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),i="object"===(void 0===e?"undefined":r(e))?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new c(this,i),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},s(c,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return u}}]),c}(l);t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=c,g._jQueryInterface}}(t)}()}).call(e,n(0),n(13))},function(t,e,n){"use strict";e.a={init:function(){quicktags({id:"comment",buttons:"link,em,strong"}),quicktags({id:"bbp_reply_content",buttons:"link,em,strong"}),quicktags({id:"bbp_topic_content",buttons:"link,em,strong"}),quicktags({id:"posttext",buttons:"link,em,strong"}),QTags.addButton("quote","quote","<blockquote>","</blockquote>","quote")},finalize:function(){}}},function(t,e,n){"use strict";(function(t){var i=n(10);e.a={init:function(){"undefined"!=typeof aa&&"undefined"!=typeof algolia&&aa("init",{appId:algolia.application_id,apiKey:algolia.search_api_key,useCookie:!0,cookieDuration:36e5}),window.sendConversion=function(t){var e,n=new URLSearchParams(window.location.search),i=omapi_data.object_id||n.get("objectID"),o=window.queryID;aa("getUserToken",null,function(t,n){if(t)return void console.error(t);e=n}),o&&i&&"undefined"!=typeof aa&&"undefined"!=typeof algolia&&aa("convertedObjectIDsAfterSearch",{eventType:"conversion",index:algolia.indices.searchable_posts.name,eventName:t,userToken:e,objectIDs:[i.toString()],queryID:o})},window.addEventListener("click",function(t){if(t.target.classList.contains("next-video")||t.target.classList.contains("previous-video")){var e=t.target,n=e.querySelector("a").href;sendConversion("Went to Another Video"),window.location=n}}),t("ul.main-menu li.dropdown").hover(function(){t(this).find(".dropdown-menu").stop(!0,!0).fadeIn(100)},function(){t(this).find(".dropdown-menu").stop(!0,!0).fadeOut(100)}),t('a[href="#all"]').click(function(e){e.preventDefault(),t('div[id^="column_"]').each(function(){t(this).fadeIn(1200,"linear")})}),t('a[id^="select_"]').click(function(e){e.preventDefault();var n=t(this).attr("id").replace("select_","");t('div[id^="column_"]').each(function(){t(this).attr("id")!="column_"+n&&t(this).css("display","none")}),t('div[id="column_'+n+'"]').fadeIn(1200,"linear")}),t(".collapse-accordion").on("show.bs.collapse",function(t){var e=t.currentTarget.id;document.querySelector('.plus-minus-accordion[data-target="#'+e+'"').innerText="-"}
6),t(".collapse-accordion").on("hide.bs.collapse",function(t){var e=t.currentTarget.id;document.querySelector('.plus-minus-accordion[data-target="#'+e+'"').innerText="+"}),document.addEventListener("click",function(t){if("A"===t.target.tagName){var e=t.target.getAttribute("href");if(!("#"===e.slice(0,1)))return;t.preventDefault();var n=e.slice(1),i=document.getElementById(n),o=i.getBoundingClientRect(),r=o.top,s=window.innerWidth>=992?120:60;window.scrollTo(0,r-s+window.pageYOffset)}});var e=new URLSearchParams(window.location.search),o=e.get("queryID");o&&(window.queryID=o,e.delete("queryID"),Array.from(e).length>0?window.history.replaceState({},"",location.pathname+"?"+e):window.history.replaceState({},"",location.pathname)),t(function(){setTimeout(function(){var t=document.getElementsByTagName("html")[0].getAttribute("lang"),e=n.i(i.a)(t);window._oneSignalInitOptions.promptOptions={slidedown:{prompts:[{type:"push",autoPrompt:!1,text:{actionMessage:e.actionMessage,acceptButton:e.acceptButton,cancelButton:e.cancelButton},delay:{timeDelay:1,pageViews:1}}]}},window._oneSignalInitOptions.welcomeNotification={disable:!1,title:e.welcomeTitle,message:e.welcomeMessage,url:""},window._oneSignalInitOptions.notifyButton={enable:!0,size:"medium",theme:"default",position:"bottom-left",offset:{bottom:"20px",left:"20px",right:"20px"},showCredit:!1,text:{"tip.state.unsubscribed":e.tipStateUnsubscribed,"tip.state.subscribed":e.tipStateSubscribed,"tip.state.blocked":e.tipStateBlocked,"message.prenotify":e.messagePrenotify,"message.action.subscribed":e.messageActionSubscribed,"message.action.resubscribed":e.messageActionResubscribed,"message.action.unsubscribed":e.messageActionUnsubscribed,"dialog.main.title":e.dialogMainTitle,"dialog.main.button.subscribe":e.dialogMainButtonSubscribe,"dialog.main.button.unsubscribe":e.dialogMainButtonUnsubscribe,"dialog.blocked.title":e.dialogBlockedTitle,"dialog.blocked.message":e.dialogBlockedMessage},colors:{"circle.background":"rgb(229,75,77)","circle.foreground":"white","badge.background":"black","badge.foreground":"white","badge.bordercolor":"white","pulse.color":"rgb(229,75,77)","dialog.button.background.hovering":"rgb(204, 50, 52)","dialog.button.background.active":"rgb(70, 92, 103)","dialog.button.background":"rgb(229,75,77)","dialog.button.foreground":"white"}},window.OneSignal=window.OneSignal||[],window.OneSignal.push(function(){window.OneSignal.init(window._oneSignalInitOptions)}),null==sessionStorage.getItem("arrived")&&sessionStorage.setItem("arrived",(new Date).getTime())},3e3);var t=n.i(i.b)();1==t.allowed&&"single-video"!=t.tag&&n.i(i.c)()})},finalize:function(){}}}).call(e,n(0))},function(t,e,n){"use strict";e.a={init:function(){},finalize:function(){}}},function(t,e,n){"use strict";e.a={init:function(){!function(){function t(){var t=document.querySelector(".language-selector-button"),e=document.querySelector(".language-list");t&&e&&(t.addEventListener("click",function(t){t.preventDefault(),e.classList.toggle("show");var n=e.classList.contains("show");this.setAttribute("aria-expanded",n),t.stopPropagation()}),document.addEventListener("click",function(n){e.classList.contains("show")&&(t.contains(n.target)||e.contains(n.target)||(e.classList.remove("show"),t.setAttribute("aria-expanded","false")))}))}function e(){var t=document.getElementById("show-more-button"),e=document.getElementById("hidden-languages");t&&e&&t.addEventListener("click",function(n){n.preventDefault(),"true"===t.getAttribute("data-expanded")?(e.style.display="none",t.setAttribute("data-expanded","false")):(e.style.display="block",t.setAttribute("data-expanded","true"))})}"loading"===document.readyState?(document.addEventListener("DOMContentLoaded",t),document.addEventListener("DOMContentLoaded",e)):(t(),e())}()},finalize:function(){}}},function(t,e,n){"use strict";e.a={init:function(){var t=document.getElementById("myModal");document.getElementsByClassName("close")[0].onclick=function(){t.style.display="none"},window.onclick=function(e){e.target==t&&(t.style.display="none")},document.addEventListener("click",function(e){if(e.target.classList.contains("profile")){var n=e.target,i=n.querySelector(".profile-pic"),o=i.style.borderColor,r=n.querySelector(".profile-head").innerHTML,s=n.querySelector(".bio");t.querySelector(".modal-content-inner").innerHTML='\n <div class="modal-profile-head">\n <div><img src="'+i.src+'" style="border-color: '+o+'" class="profile-pic" /></div>\n <div>'+r+"</div>\n </div>\n <hr>\n "+s.innerHTML+"\n ",t.querySelector(".modal-content").style.borderColor=o,t.style.display="block"}})},finalize:function(){}}},function(t,e,n){"use strict";function i(){var t=setInterval(function(){window.OneSignal.isPushNotificationsEnabled().then(function(e){e&&clearInterval(t)}).catch(function(t){return console.log("Handling promise error11")}),window.OneSignal=window.OneSignal||[],a()&&window.OneSignal.push(function(){window.OneSignal.showSlidedownPrompt(),window.OneSignal.sendTag("sub",r/1e3+" sec",function(t){console.log(t)}),clearInterval(t)})},o)}n.d(e,"c",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return l});var o=19e3,r=0==Math.floor(2*Math.random())?165e3:18e4,s=function(){for(var t=document.getElementsByTagName("BODY")[0],e=t.classList,n=["search","topics","archive","faq"],i={allowed:!1,tag:null},o=0;o<n.length;o++)e.contains(n[o])&&(i.tag=n[o],i.allowed=!0);return i},a=function(){var t=sessionStorage.getItem("arrived");return null==t&&(t=(new Date).getTime()-1e3),(new Date).getTime()-t>=r},l=function(t){return t.indexOf("ES")>-1?h:c},c={actionMessage:"Receive notifications when we release the latest research",acceptButton:"Keep me updated",cancelButton:"No, thanks",tipStateUnsubscribed:"Subscribe to re
6ceive the latest nutrition updates",tipStateSubscribed:"You're subscribed to notifications",tipStateBlocked:"You've blocked notifications",messagePrenotify:"Click to subscribe to notifications",messageActionSubscribed:"Thanks for subscribing!",messageActionResubscribed:"You're subscribed to notifications",messageActionUnsubscribed:"You won't receive notifications again",dialogMainTitle:"Manage Site Notifications",dialogMainButtonSubscribe:"SUBSCRIBE",dialogMainButtonUnsubscribe:"UNSUBSCRIBE",dialogBlockedTitle:"Unblock Notifications",dialogBlockedMessage:"Follow these instructions to allow notifications:",welcomeTitle:"Welcome to NutritionFacts!",welcomeMessage:"Thanks for subcribing!"},h={actionMessage:"Recibe notificaciones cuando publicamos nuevos análisis",acceptButton:"Me apunto",cancelButton:"No, gracias",tipStateUnsubscribed:"SuscrÃbete y recibe lo último en nutrición basada en evidencia",tipStateSubscribed:"Te has suscrito a las notificaciones",tipStateBlocked:"Has bloqueado las notificaciones",messagePrenotify:"Haz clic para recibir notificaciones",messageActionSubscribed:"¡Gracias por suscribirte!",messageActionResubscribed:"Te has suscrito a las notificaciones",messageActionUnsubscribed:"No volverás a recibir notificaciones",dialogMainTitle:"Cambiar notificaciones",dialogMainButtonSubscribe:"SUSCRIBIRSE",dialogMainButtonUnsubscribe:"DARSE DE BAJA",dialogBlockedTitle:"Desbloquear notificaciones",dialogBlockedMessage:"Sigue las instrucciones para permitir notificaciones:",welcomeTitle:"¡Bienvenido a NutritionFacts!",welcomeMessage:"¡Gracias por suscribirte!"}},function(t,e,n){"use strict";var i=n(12),o=function(t){this.routes=t};o.prototype.fire=function(t,e,n){void 0===e&&(e="init"),""!==t&&this.routes[t]&&"function"==typeof this.routes[t][e]&&this.routes[t][e](n)},o.prototype.loadEvents=function(){var t=this;this.fire("common"),document.body.className.toLowerCase().replace(/-/g,"_").split(/\s+/).map(i.a).forEach(function(e){t.fire(e),t.fire(e,"finalize")}),this.fire("common","finalize")},e.a=o},function(t,e,n){"use strict";e.a=function(t){return""+t.charAt(0).toLowerCase()+t.replace(/[\W_]/g,"|").split("|").map(function(t){return""+t.charAt(0).toUpperCase()+t.slice(1)}).join("").slice(1)}},function(t,e,n){var i,o,r;/*! tether 1.4.7 */ 7!function(n,s){o=[],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(0,function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){var n=t.getBoundingClientRect(),i={};for(var o in n)i[o]=n[o];try{if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=e(r);i.top+=s.top,i.bottom+=s.top,i.left+=s.left,i.right+=s.left}}}catch(t){}return i}function n(t){var e=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var r=void 0;try{r=getComputedStyle(o)}catch(t){}if(void 0===r||null===r)return i.push(o),i;var s=r,a=s.overflow,l=s.overflowX;/(auto|scroll|overlay)/.test(a+s.overflowY+l)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(o)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function i(){T&&document.body.removeChild(T),T=null}function o(t){var n=void 0;t===document?(n=document,t=document.documentElement):n=t.ownerDocument;var i=n.documentElement,o=e(t),r=A();return o.top-=r.top,o.left-=r.left,void 0===o.width&&(o.width=document.body.scrollWidth-o.left-o.right),void 0===o.height&&(o.height=document.body.scrollHeight-o.top-o.bottom),o.top=o.top-i.clientTop,o.left=o.left-i.clientLeft,o.right=n.body.clientWidth-o.width-o.left,o.bottom=n.body.clientHeight-o.height-o.top,o}function r(t){return t.offsetParent||document.documentElement}function s(){if(O)return O;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");a(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);var o=n-i;return O={width:o,height:o}}function a(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEac
7h(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function l(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=u(t).replace(n," ");d(t,i)}}function c(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{l(t,e);var n=u(t)+" "+e;d(t,n)}}function h(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=u(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function u(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function d(t,e){t.setAttribute("class",e)}function f(t,e,n){n.forEach(function(n){-1===e.indexOf(n)&&h(t,n)&&l(t,n)}),e.forEach(function(e){h(t,e)||c(t,e)})}function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function m(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}function v(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){var n=e.top,i=e.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=n,t.left+=i}),t}function _(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function b(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,n=o(e),i=n,r=getComputedStyle(e);if(e=[i.left,i.top,n.width+i.left,n.height+i.top],t.ownerDocument!==document){var s=t.ownerDocument.defaultView;e[0]+=s.pageXOffset,e[1]+=s.pageYOffset,e[2]+=s.pageXOffset,e[3]+=s.pageYOffset}Y.forEach(function(t,n){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[n]+=parseFloat(r["border"+t+"Width"]):e[n]-=parseFloat(r["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),y=void 0;void 0===y&&(y={modules:[]});var T=null,C=function(){var t=0;return function(){return++t}}(),w={},A=function(){var t=T;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",C()),a(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),T=t);var n=t.getAttribute("data-tether-id");return void 0===w[n]&&(w[n]=e(t),I(function(){delete w[n]})),w[n]},O=null,S=[],I=function(t){S.push(t)},D=function(){for(var t=void 0;t=S.pop();)t()},N=function(){function e(){t(this,e)}return E(e,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,l=r.once,c=a;void 0===c&&(c=this),s.apply(c,i),l?this.bindings[t].splice(e,1):++e}}}}]),e}();y.Utils={getActualBoundingClientRect:e,getScrollParents:n,getBounds:o,getOffsetParent:r,extend:a,addClass:c,removeClass:l,hasClass:h,updateClasses:f,defer:I,flush:D,uniqueId:C,Evented:N,getScrollBarSize:s,removeUtilElements:i};var L=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);
7throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),k=function(t,e,n){for(var i=!0;i;){var o=t,r=e,s=n;i=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return;t=c,e=r,n=s,i=!0,a=c=void 0}};if(void 0===y)throw new Error("You must include the utils.js file before tether.js");var P=y.Utils,n=P.getScrollParents,o=P.getBounds,r=P.getOffsetParent,a=P.extend,c=P.addClass,l=P.removeClass,f=P.updateClasses,I=P.defer,D=P.flush,s=P.getScrollBarSize,i=P.removeUtilElements,H=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var i=e[n];if(void 0!==t.style[i])return i}}(),R=[],W=function(){R.forEach(function(t){t.position(!1)}),D()};!function(){var t=null,e=null,n=null,i=function i(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(n=setTimeout(i,250));void 0!==t&&m()-t<10||(null!=n&&(clearTimeout(n),n=null),t=m(),W(),e=m()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var x={center:"center",left:"right",right:"left"},M={middle:"middle",top:"bottom",bottom:"top"},B={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var n=t.left,i=t.top;return"auto"===n&&(n=x[e.left]),"auto"===i&&(i=M[e.top]),{left:n,top:i}},V=function(t){var e=t.left,n=t.top;return void 0!==B[t.left]&&(e=B[t.left]),void 0!==B[t.top]&&(n=B[t.top]),{left:e,top:n}},F=function(t){var e=t.split(" "),n=L(e,2);return{top:n[0],left:n[1]}},j=F,K=function(e){function h(e){var n=this;t(this,h),k(Object.getPrototypeOf(h.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),y.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(n)}),this.position()}return p(h,e),E(h,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1],o={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=a(o,t);var r=this.options,s=r.element,l=r.target,h=r.targetModifier;if(this.element=s,this.target=l,this.targetModifier=h,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),c(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&c(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=j(this.options.targetAttachment),this.attachment=j(this.options.attachment),this.offset=F(this.options.offset),this.targetOffset=F(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=n(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return o(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=o(this.target),e={height:t.height,width:t.width,top:t.top,left
7:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,n=this.target;n===document.body?(n=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=o(n);var i=getComputedStyle(n),r=n.scrollWidth>n.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,s=0;r&&(s=15);var a=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-s,e={width:15,height:.975*a*(a/n.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;a<408&&this.target===document.body&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var c=this.target.scrollTop/(n.scrollHeight-a);return e.top=c*(a-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&c(this.target,this.getClass("enabled")),c(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;l(this.target,this.getClass("enabled")),l(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),R.forEach(function(e,n){e===t&&R.splice(n,1)}),0===R.length&&i()}},{key:"updateAttachClasses",value:function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(n.getClass("element-attached")+"-"+t),r.push(n.getClass("target-attached")+"-"+t)}),I(function(){void 0!==n._addAttachClasses&&(f(n.element,n._addAttachClasses,r),!1!==n.options.addTargetClasses&&f(n.target,n._addAttachClasses,r),delete n._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return o(t.element)}),a=i.width,l=i.height;if(0===a&&0===l&&void 0!==this.lastSize){var c=this.lastSize;a=c.width,l=c.height}else this.lastSize={width:a,height:l};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),u=h,d=_(V(this.attachment),{width:a,height:l}),f=_(V(n),u),p=_(this.offset,{width:a,height:l}),g=_(this.targetOffset,u);d=v(d,p),f=v(f,g);for(var m=h.left+f.left-d.left,b=h.top+f.top-d.top,E=0;E<y.modules.length;++E){var T=y.modules[E],C=T.position.call(this,{left:m,top:b,targetAttachment:n,targetPos:h,elementPos:i,offset:d,targetOffset:f,manualOffset:p,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===C)return!1;void 0!==C&&"object"==typeof C&&(b=C.top,m=C.left)}var w={page:{top:b,left:m},viewport:{top:b-pageYOffset,bottom:pageYOffset-b-l+innerHeight,left:m-pageXOffset,right:pageXOffset-m-a+innerWidth}},A=this.target.ownerDocument,O=A.defaultView,S=void 0;
7return O.innerHeight>A.documentElement.clientHeight&&(S=this.cache("scrollbar-size",s),w.viewport.bottom-=S.height),O.innerWidth>A.documentElement.clientWidth&&(S=this.cache("scrollbar-size",s),w.viewport.right-=S.width),-1!==["","static"].indexOf(A.body.style.position)&&-1!==["","static"].indexOf(A.body.parentElement.style.position)||(w.page.bottom=A.body.scrollHeight-b-l,w.page.right=A.body.scrollWidth-m-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return r(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return o(e)}),i=getComputedStyle(e),s=n,a={};if(["Top","Left","Bottom","Right"].forEach(function(t){a[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),n.right=A.body.scrollWidth-n.left-s.width+a.right,n.bottom=A.body.scrollHeight-n.top-s.height+a.bottom,w.page.top>=n.top+a.top&&w.page.bottom>=n.bottom&&w.page.left>=n.left+a.left&&w.page.right>=n.right){var l=e.scrollTop,c=e.scrollLeft;w.offset={top:w.page.top-n.top+l-a.top,left:w.page.left-n.left+c-a.left}}}(),this.move(w),this.history.unshift(w),this.history.length>3&&this.history.pop(),e&&D(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var n={};for(var i in t){n[i]={};for(var o in t[i]){for(var s=!1,l=0;l<this.history.length;++l){var c=this.history[l];if(void 0!==c[i]&&!g(c[i][o],t[i][o])){s=!0;break}}s||(n[i][o]=!0)}}var h={top:"",left:"",right:"",bottom:""},u=function(t,n){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var i=void 0,o=void 0;t.top?(h.top=0,i=n.top):(h.bottom=0,i=-n.bottom),t.left?(h.left=0,o=n.left):(h.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,i=Math.round(i*devicePixelRatio)/devicePixelRatio),h[H]="translateX("+o+"px) translateY("+i+"px)","msTransform"!==H&&(h[H]+=" translateZ(0)")}else t.top?h.top=n.top+"px":h.bottom=n.bottom+"px",t.left?h.left=n.left+"px":h.right=n.right+"px"},d=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(h.position="absolute",u(n.page,t.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(h.position="fixed",u(n.viewport,t.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){h.position="absolute";var i=e.cache("target-offsetparent",function(){return r(e.target)});r(e.element)!==i&&I(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),u(n.offset,t.offset),d=!0}():(h.position="absolute",u({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName&&!function(t){var e=t.ownerDocument;return(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)===t}(p);){if("static"!==getComputedStyle(p).position){f=!1;break}p=p.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},v=!1;for(var o in h){var _=h[o];this.element.style[o]!==_&&(v=!0,m[o]=_)}v&&I(function(){a(e.element.style,m),e.trigger("repositioned")})}}}]),h}(N);K.modules=[],y.position=W;var G=a(K,y),L=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=y.Utils,o=P.getBounds,a=P.extend,f=P.updateClasses,I=P.defer,Y=["left","top","right","bottom"];y.modules.push({position:function(t){var e=this,n=t.top,i=t.left,r=t.targetAttachment;if(!this.options.constraints)return!0;var s=this.cache("element-bounds",function(){return o(e.element)}),l=s.height,c=s.width;if(0===c&&0===l&&void 0!==this.lastSize){var h=this.lastSize;c=h.width,l=h.height}var u=this.cache("target-bounds",function(){return e.getTargetBounds()}
7),d=u.height,p=u.width,g=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&g.push(e),n&&g.push(n)}),g.forEach(function(t){["left","top","right","bottom"].forEach(function(e){g.push(t+"-"+e)})});var m=[],v=a({},r),_=a({},this.attachment);return this.options.constraints.forEach(function(t){var o=t.to,s=t.attachment,a=t.pin;void 0===s&&(s="");var h=void 0,u=void 0;if(s.indexOf(" ")>=0){var f=s.split(" "),g=L(f,2);u=g[0],h=g[1]}else h=u=s;var E=b(e,o);"target"!==u&&"both"!==u||(n<E[1]&&"top"===v.top&&(n+=d,v.top="bottom"),n+l>E[3]&&"bottom"===v.top&&(n-=d,v.top="top")),"together"===u&&("top"===v.top&&("bottom"===_.top&&n<E[1]?(n+=d,v.top="bottom",n+=l,_.top="top"):"top"===_.top&&n+l>E[3]&&n-(l-d)>=E[1]&&(n-=l-d,v.top="bottom",_.top="bottom")),"bottom"===v.top&&("top"===_.top&&n+l>E[3]?(n-=d,v.top="top",n-=l,_.top="bottom"):"bottom"===_.top&&n<E[1]&&n+(2*l-d)<=E[3]&&(n+=l-d,v.top="top",_.top="top")),"middle"===v.top&&(n+l>E[3]&&"top"===_.top?(n-=l,_.top="bottom"):n<E[1]&&"bottom"===_.top&&(n+=l,_.top="top"))),"target"!==h&&"both"!==h||(i<E[0]&&"left"===v.left&&(i+=p,v.left="right"),i+c>E[2]&&"right"===v.left&&(i-=p,v.left="left")),"together"===h&&(i<E[0]&&"left"===v.left?"right"===_.left?(i+=p,v.left="right",i+=c,_.left="left"):"left"===_.left&&(i+=p,v.left="right",i-=c,_.left="right"):i+c>E[2]&&"right"===v.left?"left"===_.left?(i-=p,v.left="left",i-=c,_.left="right"):"right"===_.left&&(i-=p,v.left="left",i+=c,_.left="left"):"center"===v.left&&(i+c>E[2]&&"left"===_.left?(i-=c,_.left="right"):i<E[0]&&"right"===_.left&&(i+=c,_.left="left"))),"element"!==u&&"both"!==u||(n<E[1]&&"bottom"===_.top&&(n+=l,_.top="top"),n+l>E[3]&&"top"===_.top&&(n-=l,_.top="bottom")),"element"!==h&&"both"!==h||(i<E[0]&&("right"===_.left?(i+=c,_.left="left"):"center"===_.left&&(i+=c/2,_.left="left")),i+c>E[2]&&("left"===_.left?(i-=c,_.left="right"):"center"===_.left&&(i-=c/2,_.left="right"))),"string"==typeof a?a=a.split(",").map(function(t){return t.trim()}):!0===a&&(a=["top","left","right","bottom"]),a=a||[];var y=[],T=[];n<E[1]&&(a.indexOf("top")>=0?(n=E[1],y.push("top")):T.push("top")),n+l>E[3]&&(a.indexOf("bottom")>=0?(n=E[3]-l,y.push("bottom")):T.push("bottom")),i<E[0]&&(a.indexOf("left")>=0?(i=E[0],y.push("left")):T.push("left")),i+c>E[2]&&(a.indexOf("right")>=0?(i=E[2]-c,y.push("right")):T.push("right")),y.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),y.forEac
7h(function(e){m.push(t+"-"+e)})}(),T.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),T.forEach(function(e){m.push(t+"-"+e)})}(),(y.indexOf("left")>=0||y.indexOf("right")>=0)&&(_.left=v.left=!1),(y.indexOf("top")>=0||y.indexOf("bottom")>=0)&&(_.top=v.top=!1),v.top===r.top&&v.left===r.left&&_.top===e.attachment.top&&_.left===e.attachment.left||(e.updateAttachClasses(_,v),e.trigger("update",{attachment:_,targetAttachment:v}))}),I(function(){!1!==e.options.addTargetClasses&&f(e.target,m,g),f(e.element,m,g)}),{top:n,left:i}}});var P=y.Utils,o=P.getBounds,f=P.updateClasses,I=P.defer;y.modules.push({position:function(t){var e=this,n=t.top,i=t.left,r=this.cache("element-bounds",function(){return o(e.element)}),s=r.height,a=r.width,l=this.getTargetBounds(),c=n+s,h=i+a,u=[];n<=l.bottom&&c>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==h||u.push(t)}),i<=l.right&&h>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==c||u.push(t)});var d=[],p=[],g=["left","top","right","bottom"];return d.push(this.getClass("abutted")),g.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),u.length&&p.push(this.getClass("abutted")),u.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),I(function(){!1!==e.options.addTargetClasses&&f(e.target,p,d),f(e.element,p,d)}),!0}});var L=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return y.modules.push({position:function(t){var e=t.top,n=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:n}));var o=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=L(s,2);o=a[0],r=a[1],o=parseFloat(o,10),r=parseFloat(r,10)}else o=i.top,r=i.left;return e+=o,n+=r,{top:e,left:n}}}}),G})},,function(t,e,n){n(2),t.exports=n(3)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.