1
0
academic.davidz.cn/js/academic.min.6893631fa3e8f3608a22790bec985882.js

8 lines
68 KiB
JavaScript

/* Source Themes Academic v4.8.0 | https://sourcethemes.com/academic/ */
;
/*!
* Bootstrap v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e=e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(a,e,p){"use strict";function eG(s,n){for(var e,t=0;t<n.length;t++)e=n[t],e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}function l(e,t,n){return t&&eG(e.prototype,t),n&&eG(e,n),e}function eY(t,s){var e,n=Object.keys(t);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(t),s&&(e=e.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,e)),n}function s(n){for(var e,t=1;t<arguments.length;t++)e=null!=arguments[t]?arguments[t]:{},t%2?eY(Object(e),!0).forEach(function(i){var t,s=n,o=e[t=i];t in s?Object.defineProperty(s,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):eY(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))});return n}e=e&&e.hasOwnProperty("default")?e.default:e,p=p&&p.hasOwnProperty("default")?p.default:p,L="transitionend";function nk(s){var o=this,n=!1;return e(this).one(t.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||t.triggerTransitionEnd(o)},s),this}t={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(n){var t,e=n.getAttribute("data-target");(!e||"#"===e)&&(t=n.getAttribute("href"),e=t&&"#"!==t?t.trim():"");try{return document.querySelector(e)?e:null}catch(e){return null}},getTransitionDurationFromElement:function(s){if(!s)return 0;var t=e(s).css("transition-duration"),n=e(s).css("transition-delay"),o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(L)},supportsTransitionEnd:function(){return Boolean(L)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(r,c,n){for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)){var e,i,a=n[e],s=c[e],o=s&&t.isElement(s)?"element":(i=s,{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(a).test(o))throw new Error(r.toUpperCase()+': Option "'+e+'" provided type "'+o+'" but expected type "'+a+'".')}},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?t.findShadowRoot(e.parentNode):null;var n=e.getRootNode();return n instanceof ShadowRoot?n:null},jQueryDetection:function(){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}},t.jQueryDetection(),e.fn.emulateTransitionEnd=nk,e.event.special[t.TRANSITION_END]={bindType:L,delegateType:L,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var B="alert",e4="bs.alert",e7="."+e4,nC=e.fn[B],e9={CLOSE:"close"+e7,CLOSED:"closed"+e7,CLICK_DATA_API:"click"+e7+".data-api"},nx="alert",nO="fade",n_="show",z=function(){function n(e){this._element=e}var s=n.prototype;return s.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},s.dispose=function(){e.removeData(this._element,e4),this._element=null},s._getRootElement=function(s){var o=t.getSelectorFromElement(s),n=!1;return o&&(n=document.querySelector(o)),n=n||e(s).closest("."+nx)[0]},s._triggerCloseEvent=function(n){var t=e.Event(e9.CLOSE);return e(n).trigger(t),t},s._removeElement=function(n){var s,o=this;e(n).removeClass(n_),e(n).hasClass(nO)?(s=t.getTransitionDurationFromElement(n),e(n).one(t.TRANSITION_END,function(e){return o._destroyElement(n,e)}).emulateTransitionEnd(s)):this._destroyElement(n)},s._destroyElement=function(t){e(t).detach().trigger(e9.CLOSED).remove()},n._jQueryInterface=function(t){return this.each(function(){var o=e(this),s=o.data(e4);s||(s=new n(this),o.data(e4,s)),"close"===t&&s[t](this)})},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},l(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();e(document).on(e9.CLICK_DATA_API,'[data-dismiss="alert"]',z._handleDismiss(new z)),e.fn[B]=z._jQueryInterface,e.fn[B].Constructor=z,e.fn[B].noConflict=function(){return e.fn[B]=nC,z._jQueryInterface};var X="button",ei="bs.button",es="."+ei,e8=".data-api",nj=e.fn[X],m="active",nb="btn",n9="focus",eZ='[data-toggle^="button"]',nv='[data-toggle="buttons"]',np='[data-toggle="button"]',n6='[data-toggle="buttons"] .btn',eb='input:not([type="hidden"])',nm=".active",eT=".btn",eO={CLICK_DATA_API:"click"+es+e8,FOCUS_BLUR_DATA_API:"focus"+es+e8+" blur"+es+e8,LOAD_DATA_API:"load"+es+e8},N=function(){function t(e){this._element=e}var n=t.prototype;return n.toggle=function(){var t,s,n=!0,o=!0,i=e(this._element).closest(nv)[0];i&&(t=this._element.querySelector(eb),t&&("radio"===t.type?t.checked&&this._element.classList.contains(m)?n=!1:(s=i.querySelector(nm),s&&e(s).removeClass(m)):"checkbox"===t.type?"LABEL"===this._element.tagName&&t.checked===this._element.classList.contains(m)&&(n=!1):n=!1,n&&(t.checked=!this._element.classList.contains(m),e(t).trigger("change")),t.focus(),o=!1)),this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(o&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(m)),n&&e(this._element).toggleClass(m))},n.dispose=function(){e.removeData(this._element,ei),this._element=null},t._jQueryInterface=function(n){return this.each(function(){var s=e(this).data(ei);s||(s=new t(this),e(this).data(ei,s)),"toggle"===n&&s[n]()})},l(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();e(document).on(eO.CLICK_DATA_API,eZ,function(s){var n,t=s.target;if(e(t).hasClass(nb)||(t=e(t).closest(eT)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))s.preventDefault();else{if(n=t.querySelector(eb),n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void s.preventDefault();N._jQueryInterface.call(e(t),"toggle")}}).on(eO.FOCUS_BLUR_DATA_API,eZ,function(t){var n=e(t.target).closest(eT)[0];e(n).toggleClass(n9,/^focus(in)?$/.test(t.type))}),e(window).on(eO.LOAD_DATA_API,function(){for(var t,n,s,o,a,e=[].slice.call(document.querySelectorAll(n6)),i=0,r=e.length;i<r;i++)n=e[i],o=n.querySelector(eb),o.checked||o.hasAttribute("checked")?n.classList.add(m):n.classList.remove(m);for(s=0,a=(e=[].slice.call(document.querySelectorAll(np))).length;s<a;s++)t=e[s],"true"===t.getAttribute("aria-pressed")?t.classList.add(m):t.classList.remove(m)}),e.fn[X]=N._jQueryInterface,e.fn[X].Constructor=N,e.fn[X].noConflict=function(){return e.fn[X]=nj,N._jQueryInterface};var t,L,T="carousel",en="bs.carousel",i="."+en,eA=".data-api",nh=e.fn[T],e6={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},n2={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},e0="next",ef="prev",n4="left",n1="right",o={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHSTART:"touchstart"+i,TOUCHMOVE:"touchmove"+i,TOUCHEND:"touchend"+i,POINTERDOWN:"pointerdown"+i,POINTERUP:"pointerup"+i,DRAG_START:"dragstart"+i,LOAD_DATA_API:"load"+i+eA,CLICK_DATA_API:"click"+i+eA},nu="carousel",y="active",nd="slide",nl="carousel-item-right",nc="carousel-item-left",ns="carousel-item-next",nt="carousel-item-prev",ne="pointer-event",tZ=".active",ej=".active.carousel-item",tX=".carousel-item",tY=".carousel-item img",tK=".carousel-item-next, .carousel-item-prev",tU=".carousel-indicators",tW="[data-slide], [data-slide-to]",t$='[data-ride="carousel"]',eI={TOUCH:"touch",PEN:"pen"},x=function(){function a(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(tU),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=a.prototype;return n.next=function(){this._isSliding||this._slide(e0)},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(ef)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(tK)&&(t.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(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))},n.to=function(t){var n,s,i=this;if(this._activeElement=this._element.querySelector(ej),n=this._getItemIndex(this._activeElement),!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one(o.SLID,function(){return i.to(t)});else{if(n===t)return this.pause(),void this.cycle();s=n<t?e0:ef,this._slide(s,this._items[t])}},n.dispose=function(){e(this._element).off(i),e.removeData(this._element,en),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},e6,{},e),t.typeCheckConfig(T,e,n2),e},n._handleSwipe=function(){var e,t=Math.abs(this.touchDeltaX);t<=40||(e=t/this.touchDeltaX,(this.touchDeltaX=0)<e&&this.prev(),e<0&&this.next())},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(o.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&e(this._element).on(o.MOUSEENTER,function(e){return t.pause(e)}).on(o.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){if(t=this,this._touchSupported){var t,n=function(e){t._pointerEvent&&eI[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},s=function(e){t._pointerEvent&&eI[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};e(this._element.querySelectorAll(tY)).on(o.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(e(this._element).on(o.POINTERDOWN,function(e){return n(e)}),e(this._element).on(o.POINTERUP,function(e){return s(e)}),this._element.classList.add(ne)):(e(this._element).on(o.TOUCHSTART,function(e){return n(e)}),e(this._element).on(o.TOUCHMOVE,function(e){return function(e){e.originalEvent.touches&&1<e.originalEvent.touches.length?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)}),e(this._element).on(o.TOUCHEND,function(e){return s(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(tX)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,s){var n,o=e===e0,i=e===ef,t=this._getItemIndex(s),a=this._items.length-1;return(i&&0===t||o&&t===a)&&!this._config.wrap?s:(n=(t+(e===ef?-1:1))%this._items.length,-1==n?this._items[this._items.length-1]:this._items[n])},n._triggerSlideEvent=function(t,s){var i=this._getItemIndex(t),a=this._getItemIndex(this._element.querySelector(ej)),n=e.Event(o.SLIDE,{relatedTarget:t,direction:s,from:a,to:i});return e(this._element).trigger(n),n},n._setActiveIndicatorElement=function(n){if(this._indicatorsElement){var t,s=[].slice.call(this._indicatorsElement.querySelectorAll(tZ));e(s).removeClass(y),t=this._indicatorsElement.children[this._getItemIndex(n)],t&&e(t).addClass(y)}},n._slide=function(d,p){var i,a,r,c,l,u=this,s=this._element.querySelector(ej),g=this._getItemIndex(s),n=p||s&&this._getItemByDirection(d,s),f=this._getItemIndex(n),m=Boolean(this._interval),h=d===e0?(i=nc,a=ns,n4):(i=nl,a=nt,n1);n&&e(n).hasClass(y)?this._isSliding=!1:!this._triggerSlideEvent(n,h).isDefaultPrevented()&&s&&n&&(this._isSliding=!0,m&&this.pause(),this._setActiveIndicatorElement(n),c=e.Event(o.SLID,{relatedTarget:n,direction:h,from:g,to:f}),e(this._element).hasClass(nd)?(e(n).addClass(a),t.reflow(n),e(s).addClass(i),e(n).addClass(i),r=parseInt(n.getAttribute("data-interval"),10),r?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=r):this._config.interval=this._config.defaultInterval||this._config.interval,l=t.getTransitionDurationFromElement(s),e(s).one(t.TRANSITION_END,function(){e(n).removeClass(i+" "+a).addClass(y),e(s).removeClass(y+" "+a+" "+i),u._isSliding=!1,setTimeout(function(){return e(u._element).trigger(c)},0)}).emulateTransitionEnd(l)):(e(s).removeClass(y),e(n).addClass(y),this._isSliding=!1,e(this._element).trigger(c)),m&&this.cycle())},a._jQueryInterface=function(t){return this.each(function(){var i,n=e(this).data(en),o=s({},e6,{},e(this).data());if("object"==typeof t&&(o=s({},o,{},t)),i="string"==typeof t?t:o.slide,n||(n=new a(this,o),e(this).data(en,n)),"number"==typeof t)n.to(t);else if("string"==typeof i){if("undefined"==typeof n[i])throw new TypeError('No method named "'+i+'"');n[i]()}else o.interval&&o.ride&&(n.pause(),n.cycle())})},a._dataApiClickHandler=function(c){if(o=t.getSelectorFromElement(this),o&&(n=e(o)[0],n&&e(n).hasClass(nu))){var n,o,r=s({},e(n).data(),{},e(this).data()),i=this.getAttribute("data-slide-to");i&&(r.interval=!1),a._jQueryInterface.call(e(n),r),i&&e(n).data(en).to(i),c.preventDefault()}},l(a,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return e6}}]),a}();e(document).on(o.CLICK_DATA_API,tW,x._dataApiClickHandler),e(window).on(o.LOAD_DATA_API,function(){for(var n,s=[].slice.call(document.querySelectorAll(t$)),t=0,o=s.length;t<o;t++)n=e(s[t]),x._jQueryInterface.call(n,n.data())}),e.fn[T]=x._jQueryInterface,e.fn[T].Constructor=x,e.fn[T].noConflict=function(){return e.fn[T]=nh,x._jQueryInterface};var A="collapse",v="bs.collapse",$="."+v,tD=e.fn[A],e5={toggle:!0,parent:""},tT={toggle:"boolean",parent:"(string|element)"},W={SHOW:"show"+$,SHOWN:"shown"+$,HIDE:"hide"+$,HIDDEN:"hidden"+$,CLICK_DATA_API:"click"+$+".data-api"},b="show",G="collapse",em="collapsing",ep="collapsed",eX="width",tF="height",tM=".show, .collapsing",eF='[data-toggle="collapse"]',et=function(){function o(e,a){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(a),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var o=[].slice.call(document.querySelectorAll(eF)),n=0,r=o.length;n<r;n++){var i=o[n],s=t.getSelectorFromElement(i),c=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<c.length&&(this._selector=s,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=o.prototype;return n.toggle=function(){e(this._element).hasClass(b)?this.hide():this.show()},n.show=function(){if(s=this,!this._isTransitioning&&!e(this._element).hasClass(b)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(tM)).filter(function(e){return"string"==typeof s._config.parent?e.getAttribute("data-parent")===s._config.parent:e.classList.contains(G)})).length&&(n=null),!(n&&(a=e(n).not(this._selector).data(v))&&a._isTransitioning))&&(r=e.Event(W.SHOW),e(this._element).trigger(r),!r.isDefaultPrevented())){n&&(o._jQueryInterface.call(e(n).not(this._selector),"hide"),a||e(n).data(v,null)),i=this._getDimension(),e(this._element).removeClass(G).addClass(em),this._element.style[i]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(ep).attr("aria-expanded",!0),this.setTransitioning(!0);var n,s,i,a,r,c="scroll"+(i[0].toUpperCase()+i.slice(1)),l=t.getTransitionDurationFromElement(this._element);e(this._element).one(t.TRANSITION_END,function(){e(s._element).removeClass(em).addClass(G).addClass(b),s._element.style[i]="",s.setTransitioning(!1),e(s._element).trigger(W.SHOWN)}).emulateTransitionEnd(l),this._element.style[i]=this._element[c]+"px"}},n.hide=function(){if(o=this,!this._isTransitioning&&e(this._element).hasClass(b)&&(i=e.Event(W.HIDE),e(this._element).trigger(i),!i.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",t.reflow(this._element),e(this._element).addClass(em).removeClass(G).removeClass(b),a=this._triggerArray.length,0<a)for(s=0;s<a;s++){var n,s,o,i,a,l,r=this._triggerArray[s],c=t.getSelectorFromElement(r);null!==c&&(e([].slice.call(document.querySelectorAll(c))).hasClass(b)||e(r).addClass(ep).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="",l=t.getTransitionDurationFromElement(this._element),e(this._element).one(t.TRANSITION_END,function(){o.setTransitioning(!1),e(o._element).removeClass(em).addClass(G).trigger(W.HIDDEN)}).emulateTransitionEnd(l)}},n.setTransitioning=function(e){this._isTransitioning=e},n.dispose=function(){e.removeData(this._element,v),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(e){return(e=s({},e5,{},e)).toggle=Boolean(e.toggle),t.typeCheckConfig(A,e,tT),e},n._getDimension=function(){return e(this._element).hasClass(eX)?eX:tF},n._getParent=function(){s=this,t.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var n,s,i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(n.querySelectorAll(i));return e(a).each(function(t,e){s._addAriaAndCollapsedClass(o._getTargetFromElement(e),[e])}),n},n._addAriaAndCollapsedClass=function(s,t){var n=e(s).hasClass(b);t.length&&e(t).toggleClass(ep,!n).attr("aria-expanded",n)},o._getTargetFromElement=function(n){var e=t.getSelectorFromElement(n);return e?document.querySelector(e):null},o._jQueryInterface=function(t){return this.each(function(){var i=e(this),n=i.data(v),a=s({},e5,{},i.data(),{},"object"==typeof t&&t?t:{});if(!n&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),n||(n=new o(this,a),i.data(v,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},l(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return e5}}]),o}();e(document).on(W.CLICK_DATA_API,eF,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var s=e(this),o=t.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(o));e(i).each(function(){var t=e(this),n=t.data(v)?"toggle":s.data();et._jQueryInterface.call(t,n)})}),e.fn[A]=et._jQueryInterface,e.fn[A].Constructor=et,e.fn[A].noConflict=function(){return e.fn[A]=tD,et._jQueryInterface};var C="dropdown",D="bs.dropdown",f="."+D,ex=".data-api",tS=e.fn[C],tE=new RegExp("38|40|27"),c={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,CLICK:"click"+f,CLICK_DATA_API:"click"+f+ex,KEYDOWN_DATA_API:"keydown"+f+ex,KEYUP_DATA_API:"keyup"+f+ex},eo="disabled",h="show",tC="dropup",tw="dropright",t_="dropleft",eM="dropdown-menu-right",tj="position-static",eh='[data-toggle="dropdown"]',tb=".dropdown form",ey=".dropdown-menu",tp=".navbar-nav",tf=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",t8="top-start",tm="top-end",th="bottom-start",t1="bottom-end",tu="right-start",td="left-start",ti={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},to={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},g=function(){function n(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var o=n.prototype;return o.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(eo)){var t=e(this._menu).hasClass(h);n._clearMenus(),t||this.show(!0)}},o.show=function(i){if(void 0===i&&(i=!1),!(this._element.disabled||e(this._element).hasClass(eo)||e(this._menu).hasClass(h))){var o,a={relatedTarget:this._element},r=e.Event(c.SHOW,a),s=n._getParentFromElement(this._element);if(e(s).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&i){if("undefined"==typeof p)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");o=this._element,"parent"===this._config.reference?o=s:t.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(s).addClass(tj),this._popper=new p(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(s).closest(tp).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(h),e(s).toggleClass(h).trigger(e.Event(c.SHOWN,a))}}},o.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass(eo)&&e(this._menu).hasClass(h)){var t={relatedTarget:this._element},s=e.Event(c.HIDE,t),o=n._getParentFromElement(this._element);e(o).trigger(s),s.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(h),e(o).toggleClass(h).trigger(e.Event(c.HIDDEN,t)))}},o.dispose=function(){e.removeData(this._element,D),e(this._element).off(f),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},o.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},o._addEventListeners=function(){var t=this;e(this._element).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},o._getConfig=function(n){return n=s({},this.constructor.Default,{},e(this._element).data(),{},n),t.typeCheckConfig(C,n,this.constructor.DefaultType),n},o._getMenuElement=function(){if(!this._menu){var e=n._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ey))}return this._menu},o._getPlacement=function(){var n=e(this._element.parentNode),t=th;return n.hasClass(tC)?(t=t8,e(this._menu).hasClass(eM)&&(t=tm)):n.hasClass(tw)?t=tu:n.hasClass(t_)?t=td:e(this._menu).hasClass(eM)&&(t=t1),t},o._detectNavbar=function(){return 0<e(this._element).closest(".navbar").length},o._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},o._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},n._jQueryInterface=function(t){return this.each(function(){var s=e(this).data(D);if(s||(s=new n(this,"object"==typeof t?t:null),e(this).data(D,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError('No method named "'+t+'"');s[t]()}})},n._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var l,d,o=[].slice.call(document.querySelectorAll(eh)),s=0,u=o.length;s<u;s++){var i=n._getParentFromElement(o[s]),a=e(o[s]).data(D),r={relatedTarget:o[s]};t&&"click"===t.type&&(r.clickEvent=t),a&&(d=a._menu,e(i).hasClass(h)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(i,t.target))&&(l=e.Event(c.HIDE,r),e(i).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),o[s].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),e(d).removeClass(h),e(i).removeClass(h).trigger(e.Event(c.HIDDEN,r)))))}},n._getParentFromElement=function(e){var n,s=t.getSelectorFromElement(e);return s&&(n=document.querySelector(s)),n||e.parentNode},n._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(ey).length)):tE.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!e(this).hasClass(eo))){var s,o,r,i=n._getParentFromElement(this),a=e(i).hasClass(h);(a||27!==t.which)&&(a&&(!a||27!==t.which&&32!==t.which)?(o=[].slice.call(i.querySelectorAll(tf)).filter(function(t){return e(t).is(":visible")}),0!==o.length&&(s=o.indexOf(t.target),38===t.which&&0<s&&s--,40===t.which&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus())):(27===t.which&&(r=i.querySelector(eh),e(r).trigger("focus")),e(this).trigger("click")))}},l(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ti}},{key:"DefaultType",get:function(){return to}}]),n}();e(document).on(c.KEYDOWN_DATA_API,eh,g._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,ey,g._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,g._clearMenus).on(c.CLICK_DATA_API,eh,function(t){t.preventDefault(),t.stopPropagation(),g._jQueryInterface.call(e(this),"toggle")}).on(c.CLICK_DATA_API,tb,function(e){e.stopPropagation()}),e.fn[C]=g._jQueryInterface,e.fn[C].Constructor=g,e.fn[C].noConflict=function(){return e.fn[C]=tS,g._jQueryInterface};var S="modal",P="bs.modal",r="."+P,ts=e.fn[S],eg={backdrop:!0,keyboard:!0,focus:!0,show:!0},tn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},n={HIDE:"hide"+r,HIDE_PREVENTED:"hidePrevented"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,FOCUSIN:"focusin"+r,RESIZE:"resize"+r,CLICK_DISMISS:"click.dismiss"+r,KEYDOWN_DISMISS:"keydown.dismiss"+r,MOUSEUP_DISMISS:"mouseup.dismiss"+r,MOUSEDOWN_DISMISS:"mousedown.dismiss"+r,CLICK_DATA_API:"click"+r+".data-api"},eJ="modal-dialog-scrollable",te="modal-scrollbar-measure",tt="modal-backdrop",eS="modal-open",F="fade",eu="show",e$="modal-static",ta=".modal-dialog",tr=".modal-body",tc='[data-toggle="modal"]',tl='[data-dismiss="modal"]',eV=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",eB=".sticky-top",q=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(ta),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var o=i.prototype;return o.toggle=function(e){return this._isShown?this.hide():this.show(e)},o.show=function(o){var s,t=this;!this._isShown&&!this._isTransitioning&&(e(this._element).hasClass(F)&&(this._isTransitioning=!0),s=e.Event(n.SHOW,{relatedTarget:o}),e(this._element).trigger(s),this._isShown||s.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(n.CLICK_DISMISS,tl,function(e){return t.hide(e)}),e(this._dialog).on(n.MOUSEDOWN_DISMISS,function(){e(t._element).one(n.MOUSEUP_DISMISS,function(n){e(n.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(o)})))},o.hide=function(i){var s,o,a,r=this;i&&i.preventDefault(),this._isShown&&!this._isTransitioning&&(s=e.Event(n.HIDE),(e(this._element).trigger(s),this._isShown&&!s.isDefaultPrevented())&&(this._isShown=!1,o=e(this._element).hasClass(F),o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(n.FOCUSIN),e(this._element).removeClass(eu),e(this._element).off(n.CLICK_DISMISS),e(this._dialog).off(n.MOUSEDOWN_DISMISS),o?(a=t.getTransitionDurationFromElement(this._element),e(this._element).one(t.TRANSITION_END,function(e){return r._hideModal(e)}).emulateTransitionEnd(a)):this._hideModal()))},o.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return e(t).off(r)}),e(document).off(n.FOCUSIN),e.removeData(this._element,P),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},o.handleUpdate=function(){this._adjustDialog()},o._getConfig=function(e){return e=s({},eg,{},e),t.typeCheckConfig(S,e,tn),e},o._triggerBackdropTransition=function(){var s,o,i=this;if("static"===this._config.backdrop){if(s=e.Event(n.HIDE_PREVENTED),e(this._element).trigger(s),s.defaultPrevented)return;this._element.classList.add(e$),o=t.getTransitionDurationFromElement(this._element),e(this._element).one(t.TRANSITION_END,function(){i._element.classList.remove(e$)}).emulateTransitionEnd(o),this._element.focus()}else this.hide()},o._showElement=function(l){var o,c,s=this,i=e(this._element).hasClass(F),a=this._dialog?this._dialog.querySelector(tr):null;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.setAttribute("aria-modal",!0),e(this._dialog).hasClass(eJ)&&a?a.scrollTop=0:this._element.scrollTop=0,i&&t.reflow(this._element),e(this._element).addClass(eu),this._config.focus&&this._enforceFocus();function r(){s._config.focus&&s._element.focus(),s._isTransitioning=!1,e(s._element).trigger(c)}c=e.Event(n.SHOWN,{relatedTarget:l}),i?(o=t.getTransitionDurationFromElement(this._dialog),e(this._dialog).one(t.TRANSITION_END,r).emulateTransitionEnd(o)):r()},o._enforceFocus=function(){var t=this;e(document).off(n.FOCUSIN).on(n.FOCUSIN,function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()})},o._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(n.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||e(this._element).off(n.KEYDOWN_DISMISS)},o._setResizeEvent=function(){var t=this;this._isShown?e(window).on(n.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(n.RESIZE)},o._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(eS),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(n.HIDDEN)})},o._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},o._showBackdrop=function(s){var a,r,c,o=this,i=e(this._element).hasClass(F)?F:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=tt,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(n.CLICK_DISMISS,function(e){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:e.target===e.currentTarget&&o._triggerBackdropTransition()}),i&&t.reflow(this._backdrop),e(this._backdrop).addClass(eu),!s)return;if(!i)return void s();r=t.getTransitionDurationFromElement(this._backdrop),e(this._backdrop).one(t.TRANSITION_END,s).emulateTransitionEnd(r)}else!this._isShown&&this._backdrop?(e(this._backdrop).removeClass(eu),a=function(){o._removeBackdrop(),s&&s()},e(this._element).hasClass(F)?(c=t.getTransitionDurationFromElement(this._backdrop),e(this._backdrop).one(t.TRANSITION_END,a).emulateTransitionEnd(c)):a()):s&&s()},o._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},o._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},o._setScrollbar=function(){if(t=this,this._isBodyOverflowing){var t,n,s,o=[].slice.call(document.querySelectorAll(eV)),i=[].slice.call(document.querySelectorAll(eB));e(o).each(function(i,n){var s=n.style.paddingRight,o=e(n).css("padding-right");e(n).data("padding-right",s).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),e(i).each(function(i,n){var s=n.style.marginRight,o=e(n).css("margin-right");e(n).data("margin-right",s).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}),n=document.body.style.paddingRight,s=e(document.body).css("padding-right"),e(document.body).data("padding-right",n).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}e(document.body).addClass(eS)},o._resetScrollbar=function(){var t,n,s=[].slice.call(document.querySelectorAll(eV));e(s).each(function(s,t){var n=e(t).data("padding-right");e(t).removeData("padding-right"),t.style.paddingRight=n||""}),t=[].slice.call(document.querySelectorAll(""+eB)),e(t).each(function(s,t){var n=e(t).data("margin-right");"undefined"!=typeof n&&e(t).css("margin-right",n).removeData("margin-right")}),n=e(document.body).data("padding-right"),e(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},o._getScrollbarWidth=function(){var t,e=document.createElement("div");return e.className=te,document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t},i._jQueryInterface=function(t,n){return this.each(function(){var o=e(this).data(P),a=s({},eg,{},e(this).data(),{},"object"==typeof t&&t?t:{});if(o||(o=new i(this,a),e(this).data(P,o)),"string"==typeof t){if("undefined"==typeof o[t])throw new TypeError('No method named "'+t+'"');o[t](n)}else a.show&&o.show(n)})},l(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return eg}}]),i}();e(document).on(n.CLICK_DATA_API,tc,function(l){var o,r,c,i=this,a=t.getSelectorFromElement(this);a&&(o=document.querySelector(a)),r=e(o).data(P)?"toggle":s({},e(o).data(),{},e(this).data()),"A"!==this.tagName&&"AREA"!==this.tagName||l.preventDefault(),c=e(o).one(n.SHOW,function(t){t.isDefaultPrevented()||c.one(n.HIDDEN,function(){e(i).is(":visible")&&i.focus()})}),q._jQueryInterface.call(e(o),r,this)}),e.fn[S]=q._jQueryInterface,e.fn[S].Constructor=q,e.fn[S].noConflict=function(){return e.fn[S]=ts,q._jQueryInterface};var t4=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t0={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},t2=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,t3=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function eH(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var o=(new window.DOMParser).parseFromString(e,"text/html"),a=Object.keys(t),i=[].slice.call(o.body.querySelectorAll("*")),r=function(o){var n,s,e=i[o],r=e.nodeName.toLowerCase();if(-1===a.indexOf(e.nodeName.toLowerCase()))return e.parentNode.removeChild(e),"continue";n=[].slice.call(e.attributes),s=[].concat(t["*"]||[],t[r]||[]),n.forEach(function(t){!function(t,s){if(e=t.nodeName.toLowerCase(),-1!==s.indexOf(e))return-1===t4.indexOf(e)||Boolean(t.nodeValue.match(t2)||t.nodeValue.match(t3));for(var e,o=s.filter(function(e){return e instanceof RegExp}),n=0,i=o.length;n<i;n++)if(e.match(o[n]))return!0;return!1}(t,s)&&e.removeAttribute(t.nodeName)})},s=0,c=i.length;s<c;s++)r(s);return o.body.innerHTML}var O="tooltip",e2="bs.tooltip",u="."+e2,t6=e.fn[O],eN="bs-tooltip",tg=new RegExp("(^|\\s)"+eN+"\\S+","g"),t5=["sanitize","whiteList","sanitizeFn"],t7={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},tv={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},t9={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:t0,popperConfig:null},R="show",e_="out",ty={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},ee="fade",H="show",tO=".tooltip-inner",tx=".arrow",I="hover",eC="focus",tk="click",tA="manual",w=function(){function o(e,t){if("undefined"==typeof p)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var n=o.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var s=this.constructor.DATA_KEY,t=e(n.currentTarget).data(s);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(s,t)),t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(e(this.getTipElement()).hasClass(H))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){if(n=this,"none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");if(o=e.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){e(this.element).trigger(o);var n,s,o,i,a,r,l,d,u,c=t.findShadowRoot(this.element),h=e.contains(null!==c?c:this.element.ownerDocument.documentElement,this.element);if(o.isDefaultPrevented()||!h)return;s=this.getTipElement(),a=t.getUID(this.constructor.NAME),s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(s).addClass(ee),l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,r=this._getAttachment(l),this.addAttachmentClass(r),d=this._getContainer(),e(s).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(s).appendTo(d),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new p(this.element,s,this._getPopperConfig(r)),e(s).addClass(H),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop),i=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null,e(n.element).trigger(n.constructor.Event.SHOWN),t===e_&&n._leave(null,n)},e(this.tip).hasClass(ee)?(u=t.getTransitionDurationFromElement(this.tip),e(this.tip).one(t.TRANSITION_END,i).emulateTransitionEnd(u)):i()}},n.hide=function(o){function i(){n._hoverState!==R&&s.parentNode&&s.parentNode.removeChild(s),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),o&&o()}var r,n=this,s=this.getTipElement(),a=e.Event(this.constructor.Event.HIDE);e(this.element).trigger(a),!a.isDefaultPrevented()&&(e(s).removeClass(H),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[tk]=!1,this._activeTrigger[eC]=!1,this._activeTrigger[I]=!1,e(this.tip).hasClass(ee)?(r=t.getTransitionDurationFromElement(s),e(s).one(t.TRANSITION_END,i).emulateTransitionEnd(r)):i(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){e(this.getTipElement()).addClass(eN+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(tO)),this.getTitle()),e(t).removeClass(ee+" "+H)},n.setElementContent=function(n,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=eH(t,this.config.whiteList,this.config.sanitizeFn)),n.html(t)):n.text(t):this.config.html?e(t).parent().is(n)||n.empty().append(t):n.text(e(t).text())},n.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getPopperConfig=function(t){var e=this;return s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:tx},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},n._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},n._getContainer=function(){return!1===this.config.container?document.body:t.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},n._getAttachment=function(e){return tv[e.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==tA){var s=n===I?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=n===I?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(s,t.config.selector,function(e){return t._enter(e)}).on(o,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,t){var s=this.constructor.DATA_KEY;(t=t||e(n.currentTarget).data(s))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(s,t)),n&&(t._activeTrigger["focusin"===n.type?eC:I]=!0),e(t.getTipElement()).hasClass(H)||t._hoverState===R?t._hoverState=R:(clearTimeout(t._timeout),t._hoverState=R,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===R&&t.show()},t.config.delay.show):t.show())},n._leave=function(n,t){var s=this.constructor.DATA_KEY;(t=t||e(n.currentTarget).data(s))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(s,t)),n&&(t._activeTrigger["focusout"===n.type?eC:I]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=e_,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===e_&&t.hide()},t.config.delay.hide):t.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(n){var o=e(this.element).data();return Object.keys(o).forEach(function(e){-1!==t5.indexOf(e)&&delete o[e]}),"number"==typeof(n=s({},this.constructor.Default,{},o,{},"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),t.typeCheckConfig(O,n,this.constructor.DefaultType),n.sanitize&&(n.template=eH(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var e,t={};if(this.config)for(e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var n=e(this.getTipElement()),t=n.attr("class").match(tg);null!==t&&t.length&&n.removeClass(t.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(ee),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},o._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(e2),s="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new o(this,s),e(this).data(e2,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},l(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return t9}},{key:"NAME",get:function(){return O}},{key:"DATA_KEY",get:function(){return e2}},{key:"Event",get:function(){return ty}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return t7}}]),o}();e.fn[O]=w._jQueryInterface,e.fn[O].Constructor=w,e.fn[O].noConflict=function(){return e.fn[O]=t6,w._jQueryInterface};var M="popover",e3="bs.popover",d="."+e3,tz=e.fn[M],eK="bs-popover",tN=new RegExp("(^|\\s)"+eK+"\\S+","g"),tL=s({},w.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),tR=s({},w.DefaultType,{content:"(string|element|function)"}),tP="fade",tH="show",tI=".popover-header",tB=".popover-body",tV={HIDE:"hide"+d,HIDDEN:"hidden"+d,SHOW:"show"+d,SHOWN:"shown"+d,INSERTED:"inserted"+d,CLICK:"click"+d,FOCUSIN:"focusin"+d,FOCUSOUT:"focusout"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d},el=function(s){function t(){return s.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,s);var n=t.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){e(this.getTipElement()).addClass(eK+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},n.setContent=function(){var t,n=e(this.getTipElement());this.setElementContent(n.find(tI),this.getTitle()),t=this._getContent(),"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(n.find(tB),t),n.removeClass(tP+" "+tH)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var n=e(this.getTipElement()),t=n.attr("class").match(tN);null!==t&&0<t.length&&n.removeClass(t.join(""))},t._jQueryInterface=function(n){return this.each(function(){var s=e(this).data(e3),o="object"==typeof n?n:null;if((s||!/dispose|hide/.test(n))&&(s||(s=new t(this,o),e(this).data(e3,s)),"string"==typeof n)){if("undefined"==typeof s[n])throw new TypeError('No method named "'+n+'"');s[n]()}})},l(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return tL}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return e3}},{key:"Event",get:function(){return tV}},{key:"EVENT_KEY",get:function(){return d}},{key:"DefaultType",get:function(){return tR}}]),t}(w);e.fn[M]=el._jQueryInterface,e.fn[M].Constructor=el,e.fn[M].noConflict=function(){return e.fn[M]=tz,el._jQueryInterface};var j="scrollspy",er="bs.scrollspy",ea="."+er,tq=e.fn[j],eL={offset:10,method:"auto",target:""},tG={offset:"number",method:"string",target:"(string|element)"},ev={ACTIVATE:"activate"+ea,SCROLL:"scroll"+ea,LOAD_DATA_API:"load"+ea+".data-api"},tQ="dropdown-item",_="active",tJ='[data-spy="scroll"]',eD=".nav, .list-group",ew=".nav-link",nn=".nav-item",eP=".list-group-item",no=".dropdown",ni=".dropdown-item",na=".dropdown-toggle",nr="offset",eQ="position",Q=function(){function o(t,n){var s=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+ew+","+this._config.target+" "+eP+","+this._config.target+" "+ni,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(ev.SCROLL,function(e){return s._process(e)}),this.refresh(),this._process()}var n=o.prototype;return n.refresh=function(){var n=this,o=this._scrollElement===this._scrollElement.window?nr:eQ,s="auto"===this._config.method?o:this._config.method,i=s===eQ?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(r){var n,a,o=t.getSelectorFromElement(r);return(o&&(n=document.querySelector(o)),n)&&(a=n.getBoundingClientRect(),a.width||a.height)?[e(n)[s]().top+i,o]:null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){n._offsets.push(e[0]),n._targets.push(e[1])})},n.dispose=function(){e.removeData(this._element,er),e(this._scrollElement).off(ea),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._getConfig=function(n){if("string"!=typeof(n=s({},eL,{},"object"==typeof n&&n?n:{})).target){var o=e(n.target).attr("id");o||(o=t.getUID(j),e(n.target).attr("id",o)),n.target="#"+o}return t.typeCheckConfig(j,n,tG),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e,n,t=this._getScrollTop()+this._config.offset,s=this._getScrollHeight(),o=this._config.offset+s-this._getOffsetHeight();if(this._scrollHeight!==s&&this.refresh(),o<=t)n=this._targets[this._targets.length-1],this._activeTarget!==n&&this._activate(n);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}},n._activate=function(n){this._activeTarget=n,this._clear();var s=this._selector.split(",").map(function(e){return e+'[data-target="'+n+'"],'+e+'[href="'+n+'"]'}),t=e([].slice.call(document.querySelectorAll(s.join(","))));t.hasClass(tQ)?(t.closest(no).find(na).addClass(_),t.addClass(_)):(t.addClass(_),t.parents(eD).prev(ew+", "+eP).addClass(_),t.parents(eD).prev(nn).children(ew).addClass(_)),e(this._scrollElement).trigger(ev.ACTIVATE,{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(_)}).forEach(function(e){return e.classList.remove(_)})},o._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(er);if(n||(n=new o(this,"object"==typeof t&&t),e(this).data(er,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},l(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return eL}}]),o}();e(window).on(ev.LOAD_DATA_API,function(){for(var t,n=[].slice.call(document.querySelectorAll(tJ)),s=n.length;s--;)t=e(n[s]),Q._jQueryInterface.call(t,t.data())}),e.fn[j]=Q._jQueryInterface,e.fn[j].Constructor=Q,e.fn[j].noConflict=function(){return e.fn[j]=tq,Q._jQueryInterface};var ec="bs.tab",Y="."+ec,nS=e.fn.tab,U={HIDE:"hide"+Y,HIDDEN:"hidden"+Y,SHOW:"show"+Y,SHOWN:"shown"+Y,CLICK_DATA_API:"click"+Y+".data-api"},n0="dropdown-menu",V="active",n3="disabled",ek="fade",ez="show",n8=".dropdown",nf=".nav, .list-group",eR=".active",eE="> li > .active",ng='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',n5=".dropdown-toggle",n7="> .dropdown-menu .active",Z=function(){function n(e){this._element=e}var s=n.prototype;return s.show=function(){if(i=this,!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(V)||e(this._element).hasClass(n3))){var n,o,i,a,r,c,d,s=e(this._element).closest(nf)[0],l=t.getSelectorFromElement(this._element);s&&(d="UL"===s.nodeName||"OL"===s.nodeName?eE:eR,n=(n=e.makeArray(e(s).find(d)))[n.length-1]),a=e.Event(U.HIDE,{relatedTarget:this._element}),r=e.Event(U.SHOW,{relatedTarget:n}),(n&&e(n).trigger(a),e(this._element).trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented())&&(l&&(o=document.querySelector(l)),this._activate(this._element,s),c=function(){var t=e.Event(U.HIDDEN,{relatedTarget:i._element}),s=e.Event(U.SHOWN,{relatedTarget:n});e(n).trigger(t),e(i._element).trigger(s)},o?this._activate(o,o.parentNode,c):c())}},s.dispose=function(){e.removeData(this._element,ec),this._element=null},s._activate=function(r,s,o){function i(){return c._transitionComplete(r,n,o)}var a,c=this,n=(!s||"UL"!==s.nodeName&&"OL"!==s.nodeName?e(s).children(eR):e(s).find(eE))[0],l=o&&n&&e(n).hasClass(ek);n&&l?(a=t.getTransitionDurationFromElement(n),e(n).removeClass(ez).one(t.TRANSITION_END,i).emulateTransitionEnd(a)):i()},s._transitionComplete=function(n,s,i){if(s){e(s).removeClass(V);var o,r,a=e(s.parentNode).find(n7)[0];a&&e(a).removeClass(V),"tab"===s.getAttribute("role")&&s.setAttribute("aria-selected",!1)}(e(n).addClass(V),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),t.reflow(n),n.classList.contains(ek)&&n.classList.add(ez),n.parentNode&&e(n.parentNode).hasClass(n0))&&(o=e(n).closest(n8)[0],o&&(r=[].slice.call(o.querySelectorAll(n5)),e(r).addClass(V)),n.setAttribute("aria-expanded",!0)),i&&i()},n._jQueryInterface=function(t){return this.each(function(){var o=e(this),s=o.data(ec);if(s||(s=new n(this),o.data(ec,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError('No method named "'+t+'"');s[t]()}})},l(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();e(document).on(U.CLICK_DATA_API,ng,function(t){t.preventDefault(),Z._jQueryInterface.call(e(this),"show")}),e.fn.tab=Z._jQueryInterface,e.fn.tab.Constructor=Z,e.fn.tab.noConflict=function(){return e.fn.tab=nS,Z._jQueryInterface};var E="toast",ed="bs.toast",J="."+ed,ny=e.fn[E],k={CLICK_DISMISS:"click.dismiss"+J,HIDE:"hide"+J,HIDDEN:"hidden"+J,SHOW:"show"+J,SHOWN:"shown"+J},nw="fade",eW="hide",K="show",eU="showing",nE={animation:"boolean",autohide:"boolean",delay:"number"},eq={animation:!0,autohide:!0,delay:500},nA='[data-dismiss="toast"]',e1=function(){function o(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var n=o.prototype;return n.show=function(){var s,i,n=this,o=e.Event(k.SHOW);e(this._element).trigger(o),!o.isDefaultPrevented()&&(this._config.animation&&this._element.classList.add(nw),s=function(){n._element.classList.remove(eU),n._element.classList.add(K),e(n._element).trigger(k.SHOWN),n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},this._element.classList.remove(eW),t.reflow(this._element),this._element.classList.add(eU),this._config.animation?(i=t.getTransitionDurationFromElement(this._element),e(this._element).one(t.TRANSITION_END,s).emulateTransitionEnd(i)):s())},n.hide=function(){if(this._element.classList.contains(K)){var t=e.Event(k.HIDE);e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(K)&&this._element.classList.remove(K),e(this._element).off(k.CLICK_DISMISS),e.removeData(this._element,ed),this._element=null,this._config=null},n._getConfig=function(n){return n=s({},eq,{},e(this._element).data(),{},"object"==typeof n&&n?n:{}),t.typeCheckConfig(E,n,this.constructor.DefaultType),n},n._setListeners=function(){var t=this;e(this._element).on(k.CLICK_DISMISS,nA,function(){return t.hide()})},n._close=function(){function n(){s._element.classList.add(eW),e(s._element).trigger(k.HIDDEN)}var o,s=this;this._element.classList.remove(K),this._config.animation?(o=t.getTransitionDurationFromElement(this._element),e(this._element).one(t.TRANSITION_END,n).emulateTransitionEnd(o)):n()},o._jQueryInterface=function(t){return this.each(function(){var s=e(this),n=s.data(ed);if(n||(n=new o(this,"object"==typeof t&&t),s.data(ed,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t](this)}})},l(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return nE}},{key:"Default",get:function(){return eq}}]),o}();e.fn[E]=e1._jQueryInterface,e.fn[E].Constructor=e1,e.fn[E].noConflict=function(){return e.fn[E]=ny,e1._jQueryInterface},a.Alert=z,a.Button=N,a.Carousel=x,a.Collapse=et,a.Dropdown=g,a.Modal=q,a.Popover=el,a.Scrollspy=Q,a.Tab=Z,a.Toast=e1,a.Tooltip=w,a.Util=t,Object.defineProperty(a,"__esModule",{value:!0})}),function(e){function u(){let n=e("#navbar-main"),t=n.outerHeight();return console.debug("Navbar height: "+t),t}function l(t){if(t=typeof t=="undefined"||typeof t=="object"?decodeURIComponent(window.location.hash):t,e(t).length){t="#"+e.escapeSelector(t.substring(1));let n=Math.ceil(e(t).offset().top-u());e("body").addClass("scrolling"),e("html, body").animate({scrollTop:n},600,function(){e("body").removeClass("scrolling")})}else console.debug("Cannot scroll to target `#"+t+"`. ID not found!")}function f(){let t=e("body"),n=t.data("bs.scrollspy");n&&(n._config.offset=u(),t.data("bs.scrollspy",n),t.scrollspy("refresh"))}function _(){if(window.history.replaceState){let e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.hash;window.history.replaceState({path:e},'',e)}}window.addEventListener("hashchange",l),e("#navbar-main li.nav-item a.nav-link").on("click",function(n){let t=this.hash;if(this.pathname===window.location.pathname&&t&&e(t).length&&e(".js-widget-page").length>0){n.preventDefault();let s=Math.ceil(e(t).offset().top-u());e("html, body").animate({scrollTop:s},800)}}),e(document).on("click",".navbar-collapse.show",function(t){let n=e(t.target).is("a")?e(t.target):e(t.target).parent();n.is("a")&&n.attr("class")!="dropdown-toggle"&&e(this).collapse("hide")});let n={},a,o,s=e("#container-publications");s.isotope({itemSelector:".isotope-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer"},filter:function(){let t=e(this),n=!a||t.text().match(a),s=!o||t.is(o);return n&&s}});let j=e(".filter-search").keyup(b(function(){a=new RegExp(j.val(),"gi"),s.isotope()}));function b(n,e){let t;return e=e||100,function(){clearTimeout(t);let s=arguments,o=this;function i(){n.apply(o,s)}t=setTimeout(i,e)}}function h(e){let t='';for(let n in e)t+=e[n];return t}e(".pub-filters").on("change",function(){let i=e(this),t=i[0].getAttribute("data-filter-group");if(n[t]=this.value,o=h(n),s.isotope(),t=="pubtype"){let t=e(this).val();t.substr(0,9)==".pubtype-"?window.location.hash=t.substr(9):window.location.hash=''}});function v(){let t=window.location.hash.replace("#",''),i="*";t!=''&&!isNaN(t)&&(i=".pubtype-"+t);let a="pubtype";n[a]=i,o=h(n),s.isotope(),e(".pubtype-select").val(i)}function p(){if(e("#map").length){let i=e("#map-provider").val(),t=e("#map-lat").val(),n=e("#map-lng").val(),s=parseInt(e("#map-zoom").val()),o=e("#map-dir").val(),a=e("#map-api-key").val();if(i==1){let e=new GMaps({div:"#map",lat:t,lng:n,zoom:s,zoomControl:!0,zoomControlOpt:{style:"SMALL",position:"TOP_LEFT"},panControl:!1,streetViewControl:!1,mapTypeControl:!1,overviewMapControl:!1,scrollwheel:!0,draggable:!0});e.addMarker({lat:t,lng:n,click:function(){let e="https://www.google.com/maps/place/"+encodeURIComponent(o)+"/@"+t+","+n+"/";window.open(e,"_blank")},title:o})}else{let e=new L.map("map").setView([t,n],s);i==3&&a.length?L.tileLayer("https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',maxZoom:18,id:"mapbox.streets",accessToken:a}).addTo(e):L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(e);let r=L.marker([t,n]).addTo(e),c=t+","+n+"#map="+s+"/"+t+"/"+n+"&layers=N";r.bindPopup(o+'<p><a href="https://www.openstreetmap.org/directions?engine=osrm_car&route='+c+'">Routing via OpenStreetMap</a></p>')}}}function g(t,n){e.getJSON("https://api.github.com/repos/"+n+"/tags").done(function(n){let s=n[0];e(t).append(" "+s.name)}).fail(function(s,e,t){let n=e+", "+t;console.log("Request Failed: "+n)})}function c(){e("body").hasClass("searching")?(e("[id=search-query]").blur(),e("body").removeClass("searching compensate-for-scrollbar"),_(),e("#fancybox-style-noscroll").remove()):(!e("#fancybox-style-noscroll").length&&document.body.scrollHeight>window.innerHeight&&(e("head").append('<style id="fancybox-style-noscroll">.compensate-for-scrollbar{margin-right:'+(window.innerWidth-document.documentElement.clientWidth)+"px;}</style>"),e("body").addClass("compensate-for-scrollbar")),e("body").addClass("searching"),e(".search-results").css({opacity:0,visibility:"visible"}).animate({opacity:1},200),e("#search-query").focus())}function i(){return e(".js-theme-selector").length}function m(){return parseInt(localStorage.getItem("dark_mode")||2)}function d(n){if(console.info("Request to set theme."),!i()){console.info("Cannot set theme - admin disabled theme selector.");return}let e;switch(n){case 0:localStorage.setItem("dark_mode","1"),e=!0,console.info("User changed theme variation to Dark."),t(0);break;case 1:localStorage.setItem("dark_mode","2"),window.matchMedia("(prefers-color-scheme: dark)").matches?e=!0:window.matchMedia("(prefers-color-scheme: light)").matches?e=!1:e=isSiteThemeDark,console.info("User changed theme variation to Auto."),t(1);break;default:localStorage.setItem("dark_mode","0"),e=!1,console.info("User changed theme variation to Light."),t(2);break}r(e)}function t(t){switch(t){case 0:e(".js-set-theme-light").removeClass("dropdown-item-active"),e(".js-set-theme-dark").addClass("dropdown-item-active"),e(".js-set-theme-auto").removeClass("dropdown-item-active");break;case 1:e(".js-set-theme-light").removeClass("dropdown-item-active"),e(".js-set-theme-dark").removeClass("dropdown-item-active"),e(".js-set-theme-auto").addClass("dropdown-item-active");break;default:e(".js-set-theme-light").addClass("dropdown-item-active"),e(".js-set-theme-dark").removeClass("dropdown-item-active"),e(".js-set-theme-auto").removeClass("dropdown-item-active");break}}function y(){if(!i())return isSiteThemeDark;let t=m(),e;switch(t){case 0:e=!1;break;case 1:e=!0;break;default:window.matchMedia("(prefers-color-scheme: dark)").matches?e=!0:window.matchMedia("(prefers-color-scheme: light)").matches?e=!1:e=isSiteThemeDark;break}return e}function r(n,t=!1){const s=e("link[title=hl-light]").length>0,o=e("link[title=hl-light]")[0],i=e("link[title=hl-dark]")[0],a=e("script[title=mermaid]").length>0;if(!t&&(n===!1&&!e("body").hasClass("dark")||n===!0&&e("body").hasClass("dark")))return;n===!1?(t||e("body").css({opacity:0,visibility:"visible"}).animate({opacity:1},500),e("body").removeClass("dark"),s&&(o.disabled=!1,i.disabled=!0),a&&(t?mermaid.initialize({theme:"default",securityLevel:"loose"}):location.reload())):n===!0&&(t||e("body").css({opacity:0,visibility:"visible"}).animate({opacity:1},500),e("body").addClass("dark"),s&&(o.disabled=!0,i.disabled=!1),a&&(t?mermaid.initialize({theme:"dark",securityLevel:"loose"}):location.reload()))}function w(){if(i){let e=m();switch(e){case 0:t(2),console.info("Initialize theme variation to Light.");break;case 1:t(0),console.info("Initialize theme variation to Dark.");break;default:t(1),console.info("Initialize theme variation to Auto.");break}}let e=y();r(e,!0)}function O(){e(".carousel").each(function(){let t=e(".carousel-item",this);t.css("min-height",0);let n=Math.max.apply(null,t.map(function(){return e(this).outerHeight()}).get());t.css("min-height",n+"px")})}function x(){e("#TableOfContents").addClass("nav flex-column"),e("#TableOfContents li").addClass("nav-item"),e("#TableOfContents li a").addClass("nav-link"),e("input[type='checkbox'][disabled]").parents("ul").addClass("task-list")}function C(){let t=[];[].push.apply(t,document.getElementsByClassName("language-mermaid"));for(let n=0;n<t.length;n++)e(t[n]).unwrap("pre"),e(t[n]).replaceWith(function(){return e("<div />").append(e(this).contents()).addClass("mermaid")})}e(document).ready(function(){x(),C(),code_highlighting&&hljs.initHighlighting(),w(),e(".js-set-theme-light").click(function(e){e.preventDefault(),d(2)}),e(".js-set-theme-dark").click(function(e){e.preventDefault(),d(0)}),e(".js-set-theme-auto").click(function(e){e.preventDefault(),d(1)});const t=window.matchMedia("(prefers-color-scheme: dark)");t.addListener(t=>{if(!i())return;const n=t.matches;console.log(`OS dark mode preference changed to ${n?"🌒 on":"☀️ off"}.`);let s=parseInt(localStorage.getItem("dark_mode")||2),e;s===2&&(window.matchMedia("(prefers-color-scheme: dark)").matches?e=!0:window.matchMedia("(prefers-color-scheme: light)").matches?e=!1:e=isSiteThemeDark,r(e))})}),e(window).on("load",function(){e(".projects-container").each(function(i,o){let t=e(o),n=t.closest("section"),s;n.find(".isotope").hasClass("js-layout-row")?s="fitRows":s="masonry",t.imagesLoaded(function(){t.isotope({itemSelector:".isotope-item",layoutMode:s,masonry:{gutter:20},filter:n.find(".default-project-filter").text()}),n.find(".project-filters a").click(function(){let n=e(this).attr("data-filter");return t.isotope({filter:n}),e(this).removeClass("active").addClass("active").siblings().removeClass("active all"),!1}),window.location.hash&&l()})}),e(".pub-filters-select")&&v(),e(".back-to-top").click(function(t){t.preventDefault(),e("html, body").animate({scrollTop:0},800,function(){window.location.hash=""})}),e(".js-cite-modal").click(function(s){s.preventDefault();let t=e(this).attr("data-filename"),n=e("#modal");n.find(".modal-body code").load(t,function(o,s,n){if(s=="error"){let t="Error: ";e("#modal-error").html(t+n.status+" "+n.statusText)}else e(".js-download-cite").attr("href",t)}),n.modal("show")}),e(".js-copy-cite").click(function(t){t.preventDefault();let e=document.createRange(),n=document.querySelector("#modal .modal-body");e.selectNode(n),window.getSelection().addRange(e);try{document.execCommand("copy")}catch(e){console.log("Error: citation copy failed.")}window.getSelection().removeRange(e)}),p();let t=".js-github-release";e(t).length>0&&g(t,e(t).data("repo")),e(".js-search").click(function(e){e.preventDefault(),c()}),e(document).on("keydown",function(t){t.which==27?e("body").hasClass("searching")&&c():t.which==191&&t.shiftKey==!1&&!e("input,textarea").is(":focus")&&(t.preventDefault(),c())})}),e(window).on("load resize orientationchange",O),e("body").on("mouseenter mouseleave",".dropdown",function(o){var t=e(o.target).closest(".dropdown"),n=e(".dropdown-menu",t);t.addClass("show"),n.addClass("show"),setTimeout(function(){t[t.is(":hover")?"addClass":"removeClass"]("show"),n[t.is(":hover")?"addClass":"removeClass"]("show")},300),f(),window.location.hash&&(window.location.hash=="#top"?window.location.hash="":e(".projects-container").length||l());let s;e(window).resize(function(){clearTimeout(s),s=setTimeout(f,200)})})}(jQuery)