epfl-elements 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +479 -0
- package/assets/config/bootstrap-variables.scss +3 -2
- package/dist/components/molecules/breadcrumb/breadcrumb-dropdown.twig +0 -1
- package/dist/components/molecules/breadcrumb/breadcrumb-tagged.twig +0 -1
- package/dist/components/molecules/form-group/form-group-valid.twig +13 -0
- package/dist/components/molecules/form-group/form-group.yml +2 -0
- package/dist/components/molecules/table-of-contents/table-of-contents-inline.twig +8 -0
- package/dist/components/molecules/table-of-contents/table-of-contents-multi-level.twig +14 -0
- package/dist/components/molecules/table-of-contents/table-of-contents.twig +9 -0
- package/dist/components/molecules/table-of-contents/table-of-contents.yml +13 -0
- package/dist/components/organisms/form/form.twig +1 -0
- package/dist/components/organisms/header/header-light-drawer.twig +7 -7
- package/dist/components/organisms/header/header-light-submenu.twig +39 -0
- package/dist/components/organisms/header/header-light.twig +3 -16
- package/dist/components/organisms/header/header.yml +13 -0
- package/dist/components/pages/event-detail/event-detail.twig +1 -1
- package/dist/components/pages/event-list/event-list.twig +16 -16
- package/dist/components/pages/facultes/facultes.twig +1 -1
- package/dist/components/pages/news-homepage/news-homepage.twig +2 -3
- package/dist/css/elements.css +75 -23
- package/dist/css/elements.min.css +1 -1
- package/dist/css/elements.min.css.map +1 -1
- package/dist/css/reader.css +2 -1
- package/dist/css/reader.min.css +1 -1
- package/dist/css/reader.min.css.map +1 -1
- package/dist/css/vendors.min.css +2 -2
- package/dist/js/elements.js +3275 -3255
- package/dist/js/elements.min.js +1 -1
- package/dist/js/elements.min.js.map +1 -1
- package/dist/js/reader.js +44616 -44431
- package/dist/js/reader.min.js +17 -17
- package/dist/js/reader.min.js.map +1 -1
- package/dist/js/spritemap.js +2 -2
- package/dist/js/vendors.min.js +1 -1
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/dist/js/vendors.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see vendors.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function o(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)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}var l="transitionend";var u={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");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger(l)},supportsTransitionEnd:function(){return Boolean(l)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=e[i],r=s&&u.isElement(s)?"element":null==(a=s)?""+a:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(r))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+r+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?u.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),i.default.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return i.default(this).one(u.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||u.triggerTransitionEnd(e)}),t),this},i.default.event.special[u.TRANSITION_END]={bindType:l,delegateType:l,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var c="alert",d="bs.alert",h="."+d,f=i.default.fn[c],p="close"+h,g="closed"+h,m="click"+h+".data-api",v=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,d),this._element=null},e._getRootElement=function(t){var e=u.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(p);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass("show"),i.default(t).hasClass("fade")){var n=u.getTransitionDurationFromElement(t);i.default(t).one(u.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(g).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(d);o||(o=new t(this),n.data(d,o)),"close"===e&&o[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(m,'[data-dismiss="alert"]',v._handleDismiss(new v)),i.default.fn[c]=v._jQueryInterface,i.default.fn[c].Constructor=v,i.default.fn[c].noConflict=function(){return i.default.fn[c]=f,v._jQueryInterface};var b="button",y="bs.button",w="."+y,_=".data-api",C=i.default.fn[b],E="active",k="click"+w+_,S="focus"+w+_+" blur"+w+_,x="load"+w+_,A='[data-toggle^="button"]',T='input:not([type="hidden"])',O=".btn",$=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector(T);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(E))t=!1;else{var s=n.querySelector(".active");s&&i.default(s).removeClass(E)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(E)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(E)),t&&i.default(this._element).toggleClass(E))},e.dispose=function(){i.default.removeData(this._element,y),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this),s=o.data(y);s||(s=new t(this),o.data(y,s)),s.shouldAvoidTriggerChange=n,"toggle"===e&&s[e]()}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(k,A,(function(t){var e=t.target,n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(O)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var o=e.querySelector(T);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||$._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on(S,A,(function(t){var e=i.default(t.target).closest(O)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on(x,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(T);o.checked||o.hasAttribute("checked")?i.classList.add(E):i.classList.remove(E)}for(var s=0,r=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<r;s++){var a=t[s];"true"===a.getAttribute("aria-pressed")?a.classList.add(E):a.classList.remove(E)}})),i.default.fn[b]=$._jQueryInterface,i.default.fn[b].Constructor=$,i.default.fn[b].noConflict=function(){return i.default.fn[b]=C,$._jQueryInterface};var D="carousel",F="bs.carousel",I="."+F,N=".data-api",j=i.default.fn[D],L="active",P="next",B="prev",M="slide"+I,R="slid"+I,H="keydown"+I,q="mouseenter"+I,z="mouseleave"+I,W="touchstart"+I,V="touchmove"+I,U="touchend"+I,Q="pointerdown"+I,K="pointerup"+I,Y="dragstart"+I,G="load"+I+N,X="click"+I+N,J=".active.carousel-item",Z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},tt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},et={TOUCH:"touch",PEN:"pen"},nt=function(){function t(t,e){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(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(P)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(B)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(J);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(R,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var o=t>n?P:B;this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(I),i.default.removeData(this._element,F),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},Z,t),u.typeCheckConfig(D,t,tt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(H,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on(q,(function(e){return t.pause(e)})).on(z,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&et[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&et[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))};i.default(this._element.querySelectorAll(".carousel-item img")).on(Y,(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(Q,(function(t){return e(t)})),i.default(this._element).on(K,(function(t){return n(t)})),this._element.classList.add("pointer-event")):(i.default(this._element).on(W,(function(t){return e(t)})),i.default(this._element).on(V,(function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),i.default(this._element).on(U,(function(t){return n(t)})))}},e._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()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===P,i=t===B,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+(t===B?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(J)),s=i.default.Event(M,{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(s),s},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(L);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(L)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(J);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,o,s,r=this,a=this._element.querySelector(J),l=this._getItemIndex(a),c=e||a&&this._getItemByDirection(t,a),d=this._getItemIndex(c),h=Boolean(this._interval);if(t===P?(n="carousel-item-left",o="carousel-item-next",s="left"):(n="carousel-item-right",o="carousel-item-prev",s="right"),c&&i.default(c).hasClass(L))this._isSliding=!1;else if(!this._triggerSlideEvent(c,s).isDefaultPrevented()&&a&&c){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var f=i.default.Event(R,{relatedTarget:c,direction:s,from:l,to:d});if(i.default(this._element).hasClass("slide")){i.default(c).addClass(o),u.reflow(c),i.default(a).addClass(n),i.default(c).addClass(n);var p=u.getTransitionDurationFromElement(a);i.default(a).one(u.TRANSITION_END,(function(){i.default(c).removeClass(n+" "+o).addClass(L),i.default(a).removeClass(L+" "+o+" "+n),r._isSliding=!1,setTimeout((function(){return i.default(r._element).trigger(f)}),0)})).emulateTransitionEnd(p)}else i.default(a).removeClass(L),i.default(c).addClass(L),this._isSliding=!1,i.default(this._element).trigger(f);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(F),o=r({},Z,i.default(this).data());"object"==typeof e&&(o=r({},o,e));var s="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data(F,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new TypeError('No method named "'+s+'"');n[s]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=u.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass("carousel")){var s=r({},i.default(o).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),t._jQueryInterface.call(i.default(o),s),a&&i.default(o).data(F).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Z}}]),t}();i.default(document).on(X,"[data-slide], [data-slide-to]",nt._dataApiClickHandler),i.default(window).on(G,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i.default(t[e]);nt._jQueryInterface.call(o,o.data())}})),i.default.fn[D]=nt._jQueryInterface,i.default.fn[D].Constructor=nt,i.default.fn[D].noConflict=function(){return i.default.fn[D]=j,nt._jQueryInterface};var it="collapse",ot="bs.collapse",st="."+ot,rt=i.default.fn[it],at="show",lt="collapse",ut="collapsing",ct="collapsed",dt="width",ht="show"+st,ft="shown"+st,pt="hide"+st,gt="hidden"+st,mt="click"+st+".data-api",vt='[data-toggle="collapse"]',bt={toggle:!0,parent:""},yt={toggle:"boolean",parent:"(string|element)"},wt=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(vt)),i=0,o=n.length;i<o;i++){var s=n[i],r=u.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter((function(e){return e===t}));null!==r&&a.length>0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(at)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i.default(this._element).hasClass(at)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(lt)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(ot))&&n._isTransitioning))){var s=i.default.Event(ht);if(i.default(this._element).trigger(s),!s.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(ot,null));var r=this._getDimension();i.default(this._element).removeClass(lt).addClass(ut),this._element.style[r]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(ct).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(){i.default(o._element).removeClass(ut).addClass(lt+" "+at),o._element.style[r]="",o.setTransitioning(!1),i.default(o._element).trigger(ft)})).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(at)){var e=i.default.Event(pt);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),i.default(this._element).addClass(ut).removeClass(lt+" "+at);var o=this._triggerArray.length;if(o>0)for(var s=0;s<o;s++){var r=this._triggerArray[s],a=u.getSelectorFromElement(r);null!==a&&(i.default([].slice.call(document.querySelectorAll(a))).hasClass(at)||i.default(r).addClass(ct).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var l=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(){t.setTransitioning(!1),i.default(t._element).removeClass(ut).addClass(lt).trigger(gt)})).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,ot),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},bt,t)).toggle=Boolean(t.toggle),u.typeCheckConfig(it,t,yt),t},e._getDimension=function(){return i.default(this._element).hasClass(dt)?dt:"height"},e._getParent=function(){var e,n=this;u.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(e.querySelectorAll(o));return i.default(s).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass(at);e.length&&i.default(e).toggleClass(ct,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=u.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(ot),s=r({},bt,n.data(),"object"==typeof e&&e?e:{});if(!o&&s.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(s.toggle=!1),o||(o=new t(this,s),n.data(ot,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return bt}}]),t}();i.default(document).on(mt,vt,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=u.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){var t=i.default(this),n=t.data(ot)?"toggle":e.data();wt._jQueryInterface.call(t,n)}))})),i.default.fn[it]=wt._jQueryInterface,i.default.fn[it].Constructor=wt,i.default.fn[it].noConflict=function(){return i.default.fn[it]=rt,wt._jQueryInterface};var _t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Ct=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(_t&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),Et=_t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Ct))}};function kt(t){return t&&"[object Function]"==={}.toString.call(t)}function St(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function xt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function At(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=St(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:At(xt(t))}function Tt(t){return t&&t.referenceNode?t.referenceNode:t}var Ot=_t&&!(!window.MSInputMethodContext||!document.documentMode),$t=_t&&/MSIE 10/.test(navigator.userAgent);function Dt(t){return 11===t?Ot:10===t?$t:Ot||$t}function Ft(t){if(!t)return document.documentElement;for(var e=Dt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===St(n,"position")?Ft(n):n:t?t.ownerDocument.documentElement:document.documentElement}function It(t){return null!==t.parentNode?It(t.parentNode):t}function Nt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);var r,a,l=s.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&Ft(r.firstElementChild)!==r?Ft(l):l;var u=It(t);return u.host?Nt(u.host,e):Nt(t,It(e).host)}function jt(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function Lt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function Pt(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Dt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Bt(t){var e=t.body,n=t.documentElement,i=Dt(10)&&getComputedStyle(n);return{height:Pt("Height",e,n,i),width:Pt("Width",e,n,i)}}var Mt=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}}(),Rt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Ht=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function qt(t){return Ht({},t,{right:t.left+t.width,bottom:t.top+t.height})}function zt(t){var e={};try{if(Dt(10)){e=t.getBoundingClientRect();var n=jt(t,"top"),i=jt(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?Bt(t.ownerDocument):{},r=s.width||t.clientWidth||o.width,a=s.height||t.clientHeight||o.height,l=t.offsetWidth-r,u=t.offsetHeight-a;if(l||u){var c=St(t);l-=Lt(c,"x"),u-=Lt(c,"y"),o.width-=l,o.height-=u}return qt(o)}function Wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Dt(10),o="HTML"===e.nodeName,s=zt(t),r=zt(e),a=At(t),l=St(e),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=qt({top:s.top-r.top-u,left:s.left-r.left-c,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=c-f,d.right-=c-f,d.marginTop=h,d.marginLeft=f}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=jt(e,"top"),o=jt(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=o*s,t.right+=o*s,t}(d,e)),d}function Vt(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===St(t,"position"))return!0;var n=xt(t);return!!n&&Vt(n)}function Ut(t){if(!t||!t.parentElement||Dt())return document.documentElement;for(var e=t.parentElement;e&&"none"===St(e,"transform");)e=e.parentElement;return e||document.documentElement}function Qt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},r=o?Ut(t):Nt(t,Tt(e));if("viewport"===i)s=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Wt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:jt(n),a=e?0:jt(n,"left");return qt({top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:s})}(r,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=At(xt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=Wt(a,r,o);if("HTML"!==a.nodeName||Vt(r))s=l;else{var u=Bt(t.ownerDocument),c=u.height,d=u.width;s.top+=l.top-l.marginTop,s.bottom=c+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(n=n||0);return s.left+=h?n:n.left||0,s.top+=h?n:n.top||0,s.right-=h?n:n.right||0,s.bottom-=h?n:n.bottom||0,s}function Kt(t,e,n,i,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=Qt(n,i,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((function(t){return Ht({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function Yt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Wt(n,i?Ut(e):Nt(e,Tt(n)),i)}function Gt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Xt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Jt(t,e,n){n=n.split("-")[0];var i=Gt(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",u=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[u]:e[Xt(a)],o}function Zt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function te(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Zt(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&kt(n)&&(e.offsets.popper=qt(e.offsets.popper),e.offsets.reference=qt(e.offsets.reference),e=n(e,t))})),e}function ee(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Yt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Kt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Jt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=te(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ne(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function ie(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],s=o?""+o+n:t;if(void 0!==document.body.style[s])return s}return null}function oe(){return this.state.isDestroyed=!0,ne(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ie("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function se(t){var e=t.ownerDocument;return e?e.defaultView:window}function re(t,e,n,i){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(e,n,{passive:!0}),o||re(At(s.parentNode),e,n,i),i.push(s)}function ae(t,e,n,i){n.updateBound=i,se(t).addEventListener("resize",n.updateBound,{passive:!0});var o=At(t);return re(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function le(){this.state.eventsEnabled||(this.state=ae(this.reference,this.options,this.state,this.scheduleUpdate))}function ue(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,se(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function ce(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function de(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ce(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var he=_t&&/Firefox/i.test(navigator.userAgent);function fe(t,e,n){var i=Zt(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var s="`"+e+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return o}var pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ge=pe.slice(3);function me(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ge.indexOf(t),i=ge.slice(n+1).concat(ge.slice(0,n));return e?i.reverse():i}var ve={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:Rt({},l,s[l]),end:Rt({},l,s[l]+s[u]-r[u])};t.offsets.popper=Ht({},r,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,i=e.offset,o=t.placement,s=t.offsets,r=s.popper,a=s.reference,l=o.split("-")[0];return n=ce(+i)?[+i,0]:function(t,e,n,i){var o=[0,0],s=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=r.indexOf(Zt(r,(function(t){return-1!==t.search(/,|\s/)})));r[a]&&-1===r[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(u=u.map((function(t,i){var o=(1===i?!s:s)?"height":"width",r=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];return s?0===r.indexOf("%")?qt("%p"===r?n:i)[e]/100*s:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:t}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){ce(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}(i,r,a,l),"left"===l?(r.top+=n[0],r.left-=n[1]):"right"===l?(r.top+=n[0],r.left+=n[1]):"top"===l?(r.left+=n[0],r.top-=n[1]):"bottom"===l&&(r.left+=n[0],r.top+=n[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Ft(t.instance.popper);t.instance.reference===n&&(n=Ft(n));var i=ie("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=Qt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,d={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),Rt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),Rt({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=Ht({},c,d[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",u=r?"width":"height";return n[a]<s(i[l])&&(t.offsets.popper[l]=s(i[l])-n[u]),n[l]>s(i[a])&&(t.offsets.popper[l]=s(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!fe(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Gt(i)[u];a[f]-p<r[d]&&(t.offsets.popper[d]-=r[d]-(a[f]-p)),a[d]+p>r[f]&&(t.offsets.popper[d]+=a[d]+p-r[f]),t.offsets.popper=qt(t.offsets.popper);var g=a[d]+a[u]/2-p/2,m=St(t.instance.popper),v=parseFloat(m["margin"+c]),b=parseFloat(m["border"+c+"Width"]),y=g-t.offsets.popper[d]-v-b;return y=Math.max(Math.min(r[u]-p,y),0),t.arrowElement=i,t.offsets.arrow=(Rt(n={},d,Math.round(y)),Rt(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ne(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Qt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Xt(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case"flip":r=[i,o];break;case"clockwise":r=me(i);break;case"counterclockwise":r=me(i,!0);break;default:r=e.behavior}return r.forEach((function(a,l){if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=Xt(i);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===s&&f||b&&"end"===s&&p||!b&&"start"===s&&g||!b&&"end"===s&&m),w=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&f||!b&&"start"===s&&m||!b&&"end"===s&&g),_=y||w;(h||v||_)&&(t.flipped=!0,(h||v)&&(i=r[l+1]),_&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper=Ht({},t.offsets.popper,Jt(t.instance.popper,t.offsets.reference,t.placement)),t=te(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,s=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=s[n]-(a?o[r?"width":"height"]:0),t.placement=Xt(e),t.offsets.popper=qt(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!fe(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Zt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,s=Zt(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,a,l=void 0!==s?s:e.gpuAcceleration,u=Ft(t.instance.popper),c=zt(u),d={position:o.position},h=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,s=Math.round,r=Math.floor,a=function(t){return t},l=s(o.width),u=s(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||l%2==u%2?s:r:a,f=e?s:a;return{left:h(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!he),f="bottom"===n?"top":"bottom",p="right"===i?"left":"right",g=ie("transform");if(a="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+h.bottom:-c.height+h.bottom:h.top,r="right"===p?"HTML"===u.nodeName?-u.clientWidth+h.right:-c.width+h.right:h.left,l&&g)d[g]="translate3d("+r+"px, "+a+"px, 0)",d[f]=0,d[p]=0,d.willChange="transform";else{var m="bottom"===f?-1:1,v="right"===p?-1:1;d[f]=a*m,d[p]=r*v,d.willChange=f+", "+p}var b={"x-placement":t.placement};return t.attributes=Ht({},b,t.attributes),t.styles=Ht({},d,t.styles),t.arrowStyles=Ht({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return de(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&de(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var s=Yt(o,e,t,n.positionFixed),r=Kt(n.placement,s,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),de(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},be=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Et(this.update.bind(this)),this.options=Ht({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ht({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=Ht({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Ht({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&kt(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Mt(t,[{key:"update",value:function(){return ee.call(this)}},{key:"destroy",value:function(){return oe.call(this)}},{key:"enableEventListeners",value:function(){return le.call(this)}},{key:"disableEventListeners",value:function(){return ue.call(this)}}]),t}();be.Utils=("undefined"!=typeof window?window:global).PopperUtils,be.placements=pe,be.Defaults=ve;var ye=be,we="dropdown",_e="bs.dropdown",Ce="."+_e,Ee=".data-api",ke=i.default.fn[we],Se=new RegExp("38|40|27"),xe="disabled",Ae="show",Te="dropdown-menu-right",Oe="hide"+Ce,$e="hidden"+Ce,De="show"+Ce,Fe="shown"+Ce,Ie="click"+Ce,Ne="click"+Ce+Ee,je="keydown"+Ce+Ee,Le="keyup"+Ce+Ee,Pe='[data-toggle="dropdown"]',Be=".dropdown-menu",Me={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Re={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},He=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(xe)){var e=i.default(this._menu).hasClass(Ae);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass(xe)||i.default(this._menu).hasClass(Ae))){var n={relatedTarget:this._element},o=i.default.Event(De,n),s=t._getParentFromElement(this._element);if(i.default(s).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===ye)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=s:u.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(s).addClass("position-static"),this._popper=new ye(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(s).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(Ae),i.default(s).toggleClass(Ae).trigger(i.default.Event(Fe,n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(xe)&&i.default(this._menu).hasClass(Ae)){var e={relatedTarget:this._element},n=i.default.Event(Oe,e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Ae),i.default(o).toggleClass(Ae).trigger(i.default.Event($e,e)))}},e.dispose=function(){i.default.removeData(this._element,_e),i.default(this._element).off(Ce),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on(Ie,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=r({},this.constructor.Default,i.default(this._element).data(),t),u.typeCheckConfig(we,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Be))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass(Te)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass(Te)&&(e="bottom-end"),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(_e);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(_e,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(Pe)),o=0,s=n.length;o<s;o++){var r=t._getParentFromElement(n[o]),a=i.default(n[o]).data(_e),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var u=a._menu;if(i.default(r).hasClass(Ae)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.default.contains(r,e.target))){var c=i.default.Event(Oe,l);i.default(r).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[o].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),i.default(u).removeClass(Ae),i.default(r).removeClass(Ae).trigger(i.default.Event($e,l)))}}}},t._getParentFromElement=function(t){var e,n=u.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i.default(e.target).closest(Be).length):!Se.test(e.which))&&!this.disabled&&!i.default(this).hasClass(xe)){var n=t._getParentFromElement(this),o=i.default(n).hasClass(Ae);if(o||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!o||27===e.which||32===e.which)return 27===e.which&&i.default(n.querySelector(Pe)).trigger("focus"),void i.default(this).trigger("click");var s=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return i.default(t).is(":visible")}));if(0!==s.length){var r=s.indexOf(e.target);38===e.which&&r>0&&r--,40===e.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Me}},{key:"DefaultType",get:function(){return Re}}]),t}();i.default(document).on(je,Pe,He._dataApiKeydownHandler).on(je,Be,He._dataApiKeydownHandler).on(Ne+" "+Le,He._clearMenus).on(Ne,Pe,(function(t){t.preventDefault(),t.stopPropagation(),He._jQueryInterface.call(i.default(this),"toggle")})).on(Ne,".dropdown form",(function(t){t.stopPropagation()})),i.default.fn[we]=He._jQueryInterface,i.default.fn[we].Constructor=He,i.default.fn[we].noConflict=function(){return i.default.fn[we]=ke,He._jQueryInterface};var qe="modal",ze="bs.modal",We="."+ze,Ve=i.default.fn[qe],Ue="modal-open",Qe="fade",Ke="show",Ye="modal-static",Ge="hide"+We,Xe="hidePrevented"+We,Je="hidden"+We,Ze="show"+We,tn="shown"+We,en="focusin"+We,nn="resize"+We,on="click.dismiss"+We,sn="keydown.dismiss"+We,rn="mouseup.dismiss"+We,an="mousedown.dismiss"+We,ln="click"+We+".data-api",un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cn=".sticky-top",dn={backdrop:!0,keyboard:!0,focus:!0,show:!0},hn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=i.default.Event(Ze,{relatedTarget:t});i.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,i.default(this._element).hasClass(Qe)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(on,'[data-dismiss="modal"]',(function(t){return e.hide(t)})),i.default(this._dialog).on(an,(function(){i.default(e._element).one(rn,(function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event(Ge);if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i.default(this._element).hasClass(Qe);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(en),i.default(this._element).removeClass(Ke),i.default(this._element).off(on),i.default(this._dialog).off(an),o){var s=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(s)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return i.default(t).off(We)})),i.default(document).off(en),i.default.removeData(this._element,ze),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},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},dn,t),u.typeCheckConfig(qe,t,hn),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event(Xe);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Ye);var o=u.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(u.TRANSITION_END),i.default(this._element).one(u.TRANSITION_END,(function(){t._element.classList.remove(Ye),n||i.default(t._element).one(u.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(Qe),o=this._dialog?this._dialog.querySelector(".modal-body"):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),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&u.reflow(this._element),i.default(this._element).addClass(Ke),this._config.focus&&this._enforceFocus();var s=i.default.Event(tn,{relatedTarget:t}),r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(s)};if(n){var a=u.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(u.TRANSITION_END,r).emulateTransitionEnd(a)}else r()},e._enforceFocus=function(){var t=this;i.default(document).off(en).on(en,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(sn,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(sn)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(nn,(function(e){return t.handleUpdate(e)})):i.default(window).off(nn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(Ue),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(Je)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(Qe)?Qe:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(on,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&u.reflow(this._backdrop),i.default(this._backdrop).addClass(Ke),!t)return;if(!n)return void t();var o=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Ke);var s=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Qe)){var r=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,s).emulateTransitionEnd(r)}else s()}else t&&t()},e._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")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(un)),n=[].slice.call(document.querySelectorAll(cn));i.default(e).each((function(e,n){var o=n.style.paddingRight,s=i.default(n).css("padding-right");i.default(n).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")})),i.default(n).each((function(e,n){var o=n.style.marginRight,s=i.default(n).css("margin-right");i.default(n).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,s=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",o).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}i.default(document.body).addClass(Ue)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(un));i.default(t).each((function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+cn));i.default(e).each((function(t,e){var n=i.default(e).data("margin-right");void 0!==n&&i.default(e).css("margin-right",n).removeData("margin-right")}));var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this).data(ze),s=r({},dn,i.default(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,s),i.default(this).data(ze,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else s.show&&o.show(n)}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return dn}}]),t}();i.default(document).on(ln,'[data-toggle="modal"]',(function(t){var e,n=this,o=u.getSelectorFromElement(this);o&&(e=document.querySelector(o));var s=i.default(e).data(ze)?"toggle":r({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i.default(e).one(Ze,(function(t){t.isDefaultPrevented()||a.one(Je,(function(){i.default(n).is(":visible")&&n.focus()}))}));fn._jQueryInterface.call(i.default(e),s,this)})),i.default.fn[qe]=fn._jQueryInterface,i.default.fn[qe].Constructor=fn,i.default.fn[qe].noConflict=function(){return i.default.fn[qe]=Ve,fn._jQueryInterface};var pn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],gn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,mn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function vn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=[].slice.call(i.body.querySelectorAll("*")),r=function(t,n){var i=s[t],r=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[r]||[]);a.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===pn.indexOf(n)||Boolean(gn.test(t.nodeValue)||mn.test(t.nodeValue));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,s=i.length;o<s;o++)if(i[o].test(n))return!0;return!1})(t,l)||i.removeAttribute(t.nodeName)}))},a=0,l=s.length;a<l;a++)r(a);return i.body.innerHTML}var bn="tooltip",yn="bs.tooltip",wn="."+yn,_n=i.default.fn[bn],Cn="bs-tooltip",En=new RegExp("(^|\\s)"+Cn+"\\S+","g"),kn=["sanitize","whiteList","sanitizeFn"],Sn="fade",xn="show",An="show",Tn="out",On="hover",$n="focus",Dn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Fn={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",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["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","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},In={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Nn={HIDE:"hide"+wn,HIDDEN:"hidden"+wn,SHOW:"show"+wn,SHOWN:"shown"+wn,INSERTED:"inserted"+wn,CLICK:"click"+wn,FOCUSIN:"focusin"+wn,FOCUSOUT:"focusout"+wn,MOUSEENTER:"mouseenter"+wn,MOUSELEAVE:"mouseleave"+wn},jn=function(){function t(t,e){if(void 0===ye)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(xn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(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},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=u.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var s=this.getTipElement(),r=u.getUID(this.constructor.NAME);s.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&i.default(s).addClass(Sn);var a="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var c=this._getContainer();i.default(s).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(s).appendTo(c),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ye(this.element,s,this._getPopperConfig(l)),i.default(s).addClass(xn),i.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===Tn&&t._leave(null,t)};if(i.default(this.tip).hasClass(Sn)){var h=u.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==An&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(xn),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger[$n]=!1,this._activeTrigger[On]=!1,i.default(this.tip).hasClass(Sn)){var r=u.getTransitionDurationFromElement(n);i.default(n).one(u.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Cn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass(Sn+" "+xn)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=vn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.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},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},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)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return Dn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===On?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===On?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,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()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof 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",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?$n:On]=!0),i.default(e.getTipElement()).hasClass(xn)||e._hoverState===An?e._hoverState=An:(clearTimeout(e._timeout),e._hoverState=An,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===An&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?$n:On]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Tn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===Tn&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==kn.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),u.typeCheckConfig(bn,t,this.constructor.DefaultType),t.sanitize&&(t.template=vn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(En);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Sn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(yn),s="object"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,s),n.data(yn,o)),"string"==typeof e)){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Fn}},{key:"NAME",get:function(){return bn}},{key:"DATA_KEY",get:function(){return yn}},{key:"Event",get:function(){return Nn}},{key:"EVENT_KEY",get:function(){return wn}},{key:"DefaultType",get:function(){return In}}]),t}();i.default.fn[bn]=jn._jQueryInterface,i.default.fn[bn].Constructor=jn,i.default.fn[bn].noConflict=function(){return i.default.fn[bn]=_n,jn._jQueryInterface};var Ln="popover",Pn="bs.popover",Bn="."+Pn,Mn=i.default.fn[Ln],Rn="bs-popover",Hn=new RegExp("(^|\\s)"+Rn+"\\S+","g"),qn=r({},jn.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>'}),zn=r({},jn.DefaultType,{content:"(string|element|function)"}),Wn={HIDE:"hide"+Bn,HIDDEN:"hidden"+Bn,SHOW:"show"+Bn,SHOWN:"shown"+Bn,INSERTED:"inserted"+Bn,CLICK:"click"+Bn,FOCUSIN:"focusin"+Bn,FOCUSOUT:"focusout"+Bn,MOUSEENTER:"mouseenter"+Bn,MOUSELEAVE:"mouseleave"+Bn},Vn=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n);var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Rn+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},r.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Hn);null!==e&&e.length>0&&t.removeClass(e.join(""))},o._jQueryInterface=function(t){return this.each((function(){var e=i.default(this).data(Pn),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),i.default(this).data(Pn,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},s(o,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return qn}},{key:"NAME",get:function(){return Ln}},{key:"DATA_KEY",get:function(){return Pn}},{key:"Event",get:function(){return Wn}},{key:"EVENT_KEY",get:function(){return Bn}},{key:"DefaultType",get:function(){return zn}}]),o}(jn);i.default.fn[Ln]=Vn._jQueryInterface,i.default.fn[Ln].Constructor=Vn,i.default.fn[Ln].noConflict=function(){return i.default.fn[Ln]=Mn,Vn._jQueryInterface};var Un="scrollspy",Qn="bs.scrollspy",Kn="."+Qn,Yn=i.default.fn[Un],Gn="active",Xn="activate"+Kn,Jn="scroll"+Kn,Zn="load"+Kn+".data-api",ti="position",ei=".nav, .list-group",ni=".nav-link",ii=".list-group-item",oi={offset:10,method:"auto",target:""},si={offset:"number",method:"string",target:"(string|element)"},ri=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ni+","+this._config.target+" "+ii+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(Jn,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":ti,n="auto"===this._config.method?e:this._config.method,o=n===ti?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,s=u.getSelectorFromElement(t);if(s&&(e=document.querySelector(s)),e){var r=e.getBoundingClientRect();if(r.width||r.height)return[i.default(e)[n]().top+o,s]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,Qn),i.default(this._scrollElement).off(Kn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},oi,"object"==typeof t&&t?t:{})).target&&u.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=u.getUID(Un),i.default(t.target).attr("id",e)),t.target="#"+e}return u.typeCheckConfig(Un,t,si),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(Gn),n.addClass(Gn)):(n.addClass(Gn),n.parents(ei).prev(ni+", "+ii).addClass(Gn),n.parents(ei).prev(".nav-item").children(ni).addClass(Gn)),i.default(this._scrollElement).trigger(Xn,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(Gn)})).forEach((function(t){return t.classList.remove(Gn)}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Qn);if(n||(n=new t(this,"object"==typeof e&&e),i.default(this).data(Qn,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return oi}}]),t}();i.default(window).on(Zn,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i.default(t[e]);ri._jQueryInterface.call(n,n.data())}})),i.default.fn[Un]=ri._jQueryInterface,i.default.fn[Un].Constructor=ri,i.default.fn[Un].noConflict=function(){return i.default.fn[Un]=Yn,ri._jQueryInterface};var ai="tab",li="bs.tab",ui="."+li,ci=i.default.fn[ai],di="active",hi="fade",fi="show",pi="hide"+ui,gi="hidden"+ui,mi="show"+ui,vi="shown"+ui,bi="click"+ui+".data-api",yi=".active",wi="> li > .active",_i=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(di)||i.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,o=i.default(this._element).closest(".nav, .list-group")[0],s=u.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?wi:yi;n=(n=i.default.makeArray(i.default(o).find(r)))[n.length-1]}var a=i.default.Event(pi,{relatedTarget:this._element}),l=i.default.Event(mi,{relatedTarget:n});if(n&&i.default(n).trigger(a),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(e=document.querySelector(s)),this._activate(this._element,o);var c=function(){var e=i.default.Event(gi,{relatedTarget:t._element}),o=i.default.Event(vi,{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,c):c()}}},e.dispose=function(){i.default.removeData(this._element,li),this._element=null},e._activate=function(t,e,n){var o=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(yi):i.default(e).find(wi))[0],r=n&&s&&i.default(s).hasClass(hi),a=function(){return o._transitionComplete(t,s,n)};if(s&&r){var l=u.getTransitionDurationFromElement(s);i.default(s).removeClass(fi).one(u.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(di);var o=i.default(e.parentNode).find("> .dropdown-menu .active")[0];o&&i.default(o).removeClass(di),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(di),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u.reflow(t),t.classList.contains(hi)&&t.classList.add(fi);var s=t.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&i.default(s).hasClass("dropdown-menu")){var r=i.default(t).closest(".dropdown")[0];if(r){var a=[].slice.call(r.querySelectorAll(".dropdown-toggle"));i.default(a).addClass(di)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(li);if(o||(o=new t(this),n.data(li,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(bi,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),_i._jQueryInterface.call(i.default(this),"show")})),i.default.fn[ai]=_i._jQueryInterface,i.default.fn[ai].Constructor=_i,i.default.fn[ai].noConflict=function(){return i.default.fn[ai]=ci,_i._jQueryInterface};var Ci="toast",Ei="bs.toast",ki="."+Ei,Si=i.default.fn[Ci],xi="hide",Ai="show",Ti="showing",Oi="click.dismiss"+ki,$i="hide"+ki,Di="hidden"+ki,Fi="show"+ki,Ii="shown"+ki,Ni={animation:!0,autohide:!0,delay:500},ji={animation:"boolean",autohide:"boolean",delay:"number"},Li=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event(Fi);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove(Ti),t._element.classList.add(Ai),i.default(t._element).trigger(Ii),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(xi),u.reflow(this._element),this._element.classList.add(Ti),this._config.animation){var o=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(Ai)){var t=i.default.Event($i);i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ai)&&this._element.classList.remove(Ai),i.default(this._element).off(Oi),i.default.removeData(this._element,Ei),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},Ni,i.default(this._element).data(),"object"==typeof t&&t?t:{}),u.typeCheckConfig(Ci,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(Oi,'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(xi),i.default(t._element).trigger(Di)};if(this._element.classList.remove(Ai),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Ei);if(o||(o=new t(this,"object"==typeof e&&e),n.data(Ei,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return ji}},{key:"Default",get:function(){return Ni}}]),t}();i.default.fn[Ci]=Li._jQueryInterface,i.default.fn[Ci].Constructor=Li,i.default.fn[Ci].noConflict=function(){return i.default.fn[Ci]=Si,Li._jQueryInterface},t.Alert=v,t.Button=$,t.Carousel=nt,t.Collapse=wt,t.Dropdown=He,t.Modal=fn,t.Popover=Vn,t.Scrollspy=ri,t.Tab=_i,t.Toast=Li,t.Tooltip=jn,t.Util=u,Object.defineProperty(t,"__esModule",{value:!0})})),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):"object"==typeof window?window.Picker=t(jQuery):this.Picker=t(jQuery)}((function(t){var e=t(window),n=t(document),i=t(document.documentElement),o=null!=document.documentElement.style.transition;function s(e,i,u,d){if(!e)return s;var h=!1,f={id:e.id||"P"+Math.abs(~~(Math.random()*new Date)),handlingOpen:!1},p=u?t.extend(!0,{},u.defaults,d):d||{},g=t.extend({},s.klasses(),p.klass),m=t(e),v=function(){return this.start()},b=v.prototype={constructor:v,$node:m,start:function(){return f&&f.start?b:(f.methods={},f.start=!0,f.open=!1,f.type=e.type,e.autofocus=e==c(),e.readOnly=!p.editable,e.id=e.id||f.id,"text"!=e.type&&(e.type="text"),b.component=new u(b,p),b.$root=t('<div class="'+g.picker+'" id="'+e.id+'_root" />'),l(b.$root[0],"hidden",!0),b.$holder=t(y()).appendTo(b.$root),w(),p.formatSubmit&&(!0===p.hiddenName?(r=e.name,e.name=""):r=(r=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"])[0]+e.name+r[1],b._hidden=t('<input type=hidden name="'+r+'"'+(m.data("value")||e.value?' value="'+b.get("select",p.formatSubmit)+'"':"")+">")[0],m.on("change."+f.id,(function(){b._hidden.value=e.value?b.get("select",p.formatSubmit):""}))),m.data(i,b).addClass(g.input).val(m.data("value")?b.get("select",p.format):e.value).on("focus."+f.id+" click."+f.id,(function(t){t.preventDefault(),b.open()})).on("mousedown",(function(){f.handlingOpen=!0;var e=function(){setTimeout((function(){t(document).off("mouseup",e),f.handlingOpen=!1}),0)};t(document).on("mouseup",e)})),p.editable||m.on("keydown."+f.id,C),l(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"}),p.containerHidden?t(p.containerHidden).append(b._hidden):m.after(b._hidden),p.container?t(p.container).append(b.$root):m.after(b.$root),b.on({start:b.component.onStart,render:b.component.onRender,stop:b.component.onStop,open:b.component.onOpen,close:b.component.onClose,set:b.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet}),n=b.$holder[0],s="position",n.currentStyle?o=n.currentStyle[s]:window.getComputedStyle&&(o=getComputedStyle(n)[s]),h="fixed"==o,e.autofocus&&b.open(),b.trigger("start").trigger("render"));var n,o,s,r},render:function(e){return e?(b.$holder=t(y()),w(),b.$root.html(b.$holder)):b.$root.find("."+g.box).html(b.component.nodes(f.open)),b.trigger("render")},stop:function(){return f.start?(b.close(),b._hidden&&b._hidden.parentNode.removeChild(b._hidden),b.$root.remove(),m.removeClass(g.input).removeData(i),setTimeout((function(){m.off("."+f.id)}),0),e.type=f.type,e.readOnly=!1,b.trigger("stop"),f.methods={},f.start=!1,b):b},open:function(i){return f.open?b:(m.addClass(g.active),l(e,"expanded",!0),setTimeout((function(){b.$root.addClass(g.opened),l(b.$root[0],"hidden",!1)}),0),!1!==i&&(f.open=!0,h&&t("body").css("overflow","hidden").css("padding-right","+="+r()),h&&o?b.$holder.find("."+g.frame).one("transitionend",(function(){b.$holder.eq(0).focus()})):setTimeout((function(){b.$holder.eq(0).focus()}),0),n.on("click."+f.id+" focusin."+f.id,(function(t){if(!f.handlingOpen){var n=a(t,e);t.isSimulated||n==e||n==document||3==t.which||b.close(n===b.$holder[0])}})).on("keydown."+f.id,(function(n){var i=n.keyCode,o=b.component.key[i],r=a(n,e);27==i?b.close(!0):r!=b.$holder[0]||!o&&13!=i?t.contains(b.$root[0],r)&&13==i&&(n.preventDefault(),r.click()):(n.preventDefault(),o?s._.trigger(b.component.key.go,b,[s._.trigger(o)]):b.$root.find("."+g.highlighted).hasClass(g.disabled)||(b.set("select",b.component.item.highlight),p.closeOnSelect&&b.close(!0)))}))),b.trigger("open"))},close:function(i){return i&&(p.editable?e.focus():(b.$holder.off("focus.toOpen").focus(),setTimeout((function(){b.$holder.on("focus.toOpen",_)}),0))),m.removeClass(g.active),l(e,"expanded",!1),setTimeout((function(){b.$root.removeClass(g.opened+" "+g.focused),l(b.$root[0],"hidden",!0)}),0),f.open?(f.open=!1,h&&t("body").css("overflow","").css("padding-right","-="+r()),n.off("."+f.id),b.trigger("close")):b},clear:function(t){return b.set("clear",null,t)},set:function(e,n,i){var o,s,r=t.isPlainObject(e),a=r?e:{};if(i=r&&t.isPlainObject(n)?n:i||{},e){for(o in r||(a[e]=n),a)s=a[o],o in b.component.item&&(void 0===s&&(s=null),b.component.set(o,s,i)),"select"!=o&&"clear"!=o||!p.updateInput||m.val("clear"==o?"":b.get(o,p.format)).trigger("change");b.render()}return i.muted?b:b.trigger("set",a)},get:function(t,n){if(null!=f[t=t||"value"])return f[t];if("valueSubmit"==t){if(b._hidden)return b._hidden.value;t="value"}if("value"==t)return e.value;if(t in b.component.item){if("string"==typeof n){var i=b.component.get(t);return i?s._.trigger(b.component.formats.toString,b.component,[n,i]):""}return b.component.get(t)}},on:function(e,n,i){var o,s,r=t.isPlainObject(e),a=r?e:{};if(e)for(o in r||(a[e]=n),a)s=a[o],i&&(o="_"+o),f.methods[o]=f.methods[o]||[],f.methods[o].push(s);return b},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in f.methods&&delete f.methods[e];return b},trigger:function(t,e){var n=function(t){var n=f.methods[t];n&&n.map((function(t){s._.trigger(t,b,[e])}))};return n("_"+t),n(t),b}};function y(){return s._.node("div",s._.node("div",s._.node("div",s._.node("div",b.component.nodes(f.open),g.box),g.wrap),g.frame),g.holder,'tabindex="-1"')}function w(){b.$holder.on({keydown:C,"focus.toOpen":_,blur:function(){m.removeClass(g.target)},focusin:function(t){b.$root.removeClass(g.focused),t.stopPropagation()},"mousedown click":function(n){var i=a(n,e);i!=b.$holder[0]&&(n.stopPropagation(),"mousedown"!=n.type||t(i).is("input, select, textarea, button, option")||(n.preventDefault(),b.$holder.eq(0).focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",(function(){var e=t(this),n=e.data(),i=e.hasClass(g.navDisabled)||e.hasClass(g.disabled),o=c();o=o&&(o.type||o.href?o:null),(i||o&&!t.contains(b.$root[0],o))&&b.$holder.eq(0).focus(),!i&&n.nav?b.set("highlight",b.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(b.set("select",n.pick),p.closeOnSelect&&b.close(!0)):n.clear?(b.clear(),p.closeOnClear&&b.close(!0)):n.close&&b.close(!0)}))}function _(t){t.stopPropagation(),m.addClass(g.target),b.$root.addClass(g.focused),b.open()}function C(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return b.close(!0),!1;(32==e||n||!f.open&&b.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?b.clear().close():b.open())}return new v}function r(){if(i.height()<=e.height())return 0;var n=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var s=t('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),o-s}function a(t,e){var n=[];return t.path&&(n=t.path),t.originalEvent&&t.originalEvent.path&&(n=t.originalEvent.path),n&&n.length>0?e&&n.indexOf(e)>=0?e:n[0]:t.target}function l(e,n,i){if(t.isPlainObject(n))for(var o in n)u(e,o,n[o]);else u(e,n,i)}function u(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function c(){try{return document.activeElement}catch(t){}}return s.klasses=function(t){return{picker:t=t||"picker",opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},s._={group:function(t){for(var e,n="",i=s._.trigger(t.min,t);i<=s._.trigger(t.max,t,[i]);i+=t.i)e=s._.trigger(t.item,t,[i]),n+=s._.node(t.node,e[0],e[1],e[2]);return n},node:function(e,n,i,o){return n?"<"+e+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+(n=t.isArray(n)?n.join(""):n)+"</"+e+">":""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:function(e,n){for(var i in t.isPlainObject(e)||(e={attribute:n}),n="",e){var o=("role"==i?"":"aria-")+i;n+=null==e[i]?"":o+'="'+e[i]+'"'}return n}},s.extend=function(e,n){t.fn[e]=function(i,o){var r=this.data(e);return"picker"==i?r:r&&"string"==typeof i?s._.trigger(r[i],r,[o]):this.each((function(){t(this).data(e)||new s(this,e,n,i)}))},t.fn[e].defaults=n.defaults},s})),function(t){"function"==typeof define&&define.amd?define(["./picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}((function(t,e){var n,i=t._;function o(t,e){var n,i=this,o=t.$node[0],s=o.value,r=t.$node.data("value"),a=r||s,l=r?e.formatSubmit:e.format,u=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=e,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(e.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",e.min).set("max",e.max).set("now"),a?i.set("select",a,{format:l,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return u()?-1:1},37:function(){return u()?1:-1},go:function(t){var e=i.item.highlight,n=new Date(e.year,e.month,e.date+t);i.set("highlight",n,{interval:t}),this.render()}},t.on("render",(function(){t.$root.find("."+e.klass.selectMonth).on("change",(function(){var n=this.value;n&&(t.set("highlight",[t.get("view").year,n,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))})),t.$root.find("."+e.klass.selectYear).on("change",(function(){var n=this.value;n&&(t.set("highlight",[n,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))}))}),1).on("open",(function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+n+", select").attr("disabled",!1)}),1).on("close",(function(){t.$root.find("button, select").attr("disabled",!0)}),1)}o.prototype.set=function(t,e,n){var i=this,o=i.item;return null===e?("clear"==t&&(t="select"),o[t]=e,i):(o["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map((function(o){return e=i[o](t,e,n)})).pop(),"select"==t?i.set("highlight",o.select,n):"highlight"==t?i.set("view",o.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(t){return this.item[t]},o.prototype.create=function(t,n,o){var s,r=this;return(n=void 0===n?t:n)==-1/0||n==1/0?s=n:e.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:e.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:r.create().obj):n=i.isInteger(n)||i.isDate(n)?r.normalize(new Date(n),o):r.now(t,n,o),{year:s||n.getFullYear(),month:s||n.getMonth(),date:s||n.getDate(),day:s||n.getDay(),obj:s||n,pick:s||n.getTime()}},o.prototype.createRange=function(t,n){var o=this,s=function(t){return!0===t||e.isArray(t)||i.isDate(t)?o.create(t):t};return i.isInteger(t)||(t=s(t)),i.isInteger(n)||(n=s(n)),i.isInteger(t)&&e.isPlainObject(n)?t=[n.year,n.month,n.date+t]:i.isInteger(n)&&e.isPlainObject(t)&&(n=[t.year,t.month,t.date+n]),{from:s(t),to:s(n)}},o.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},o.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},o.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},o.prototype.navigate=function(t,n,i){var o,s,r,a,l=e.isArray(n),u=e.isPlainObject(n),c=this.item.view;if(l||u){for(u?(s=n.year,r=n.month,a=n.date):(s=+n[0],r=+n[1],a=+n[2]),i&&i.nav&&c&&c.month!==r&&(s=c.year,r=c.month),s=(o=new Date(s,r+(i&&i.nav?i.nav:0),1)).getFullYear(),r=o.getMonth();new Date(s,r,a).getMonth()!==r;)a-=1;n=[s,r,a]}return n},o.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},o.prototype.measure=function(t,e){return i.isInteger(e)?e=this.now(t,e,{rel:e}):e?"string"==typeof e&&(e=this.parse(t,e)):e="min"==t?-1/0:1/0,e},o.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},o.prototype.validate=function(t,n,o){var s,r,a,l,u=this,c=n,d=o&&o.interval?o.interval:1,h=-1===u.item.enable,f=u.item.min,p=u.item.max,g=h&&u.item.disable.filter((function(t){if(e.isArray(t)){var o=u.create(t).pick;o<n.pick?s=!0:o>n.pick&&(r=!0)}return i.isInteger(t)})).length;if((!o||!o.nav&&!o.defaultValue)&&(!h&&u.disabled(n)||h&&u.disabled(n)&&(g||s||r)||!h&&(n.pick<=f.pick||n.pick>=p.pick)))for(h&&!g&&(!r&&d>0||!s&&d<0)&&(d*=-1);u.disabled(n)&&(Math.abs(d)>1&&(n.month<c.month||n.month>c.month)&&(n=c,d=d>0?1:-1),n.pick<=f.pick?(a=!0,d=1,n=u.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=p.pick&&(l=!0,d=-1,n=u.create([p.year,p.month,p.date+(n.pick===p.pick?0:1)])),!a||!l);)n=u.create([n.year,n.month,n.date+d]);return n},o.prototype.disabled=function(t){var n=this,o=n.item.disable.filter((function(o){return i.isInteger(o)?t.day===(n.settings.firstDay?o:o-1)%7:e.isArray(o)||i.isDate(o)?t.pick===n.create(o).pick:e.isPlainObject(o)?n.withinRange(o,t):void 0}));return o=o.length&&!o.filter((function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted})).length,-1===n.item.enable?!o:o||t.pick<n.item.min.pick||t.pick>n.item.max.pick},o.prototype.parse=function(t,e,n){var o=this,s={};return e&&"string"==typeof e?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map((function(t){var n=o.formats[t],r=n?i.trigger(n,o,[e,s]):t.replace(/^!/,"").length;n&&(s[t]=e.substr(0,r)),e=e.substr(r)})),[s.yyyy||s.yy,+(s.mm||s.m)-1,s.dd||s.d]):e},o.prototype.formats=function(){function t(t,e,n){var i=t.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?i.digits(t):e.date},dd:function(t,e){return t?2:i.lead(e.date)},ddd:function(t,n){return t?e(t):this.settings.weekdaysShort[n.day]},dddd:function(t,n){return t?e(t):this.settings.weekdaysFull[n.day]},m:function(t,e){return t?i.digits(t):e.month+1},mm:function(t,e){return t?2:i.lead(e.month+1)},mmm:function(e,n){var i=this.settings.monthsShort;return e?t(e,i,n):i[n.month]},mmmm:function(e,n){var i=this.settings.monthsFull;return e?t(e,i,n):i[n.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var n=this;return n.formats.toArray(t).map((function(t){return i.trigger(n.formats[t],n,[0,e])||t.replace(/^!/,"")})).join("")}}}(),o.prototype.isDateExact=function(t,n){var o=this;return i.isInteger(t)&&i.isInteger(n)||"boolean"==typeof t&&"boolean"==typeof n?t===n:(i.isDate(t)||e.isArray(t))&&(i.isDate(n)||e.isArray(n))?o.create(t).pick===o.create(n).pick:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&o.isDateExact(t.from,n.from)&&o.isDateExact(t.to,n.to)},o.prototype.isDateOverlap=function(t,n){var o=this,s=o.settings.firstDay?1:0;return i.isInteger(t)&&(i.isDate(n)||e.isArray(n))?(t=t%7+s)===o.create(n).day+1:i.isInteger(n)&&(i.isDate(t)||e.isArray(t))?(n=n%7+s)===o.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&o.overlapRanges(t,n)},o.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},o.prototype.deactivate=function(t,n){var o=this,s=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),s=[]):!0===n?(o.flipEnable(-1),s=[]):n.map((function(t){for(var n,r=0;r<s.length;r+=1)if(o.isDateExact(t,s[r])){n=!0;break}n||(i.isInteger(t)||i.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&s.push(t)})),s},o.prototype.activate=function(t,n){var o=this,s=o.item.disable,r=s.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),s=[]):!1===n?(o.flipEnable(-1),s=[]):n.map((function(t){var n,a,l,u;for(l=0;l<r;l+=1){if(a=s[l],o.isDateExact(a,t)){n=s[l]=null,u=!0;break}if(o.isDateOverlap(a,t)){e.isPlainObject(t)?(t.inverted=!0,n=t):e.isArray(t)?(n=t)[3]||n.push("inverted"):i.isDate(t)&&(n=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(n)for(l=0;l<r;l+=1)if(o.isDateExact(s[l],t)){s[l]=null;break}if(u)for(l=0;l<r;l+=1)if(o.isDateOverlap(s[l],t)){s[l]=null;break}n&&s.push(n)})),s.filter((function(t){return null!=t}))},o.prototype.nodes=function(t){var e,n,o=this,s=o.settings,r=o.item,a=r.now,l=r.select,u=r.highlight,c=r.view,d=r.disable,h=r.min,f=r.max,p=(e=(s.showWeekdaysFull?s.weekdaysFull:s.weekdaysShort).slice(0),n=s.weekdaysFull.slice(0),s.firstDay&&(e.push(e.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(t){return[e[t],s.klass.weekdays,'scope=col title="'+n[t]+'"']}})))),g=function(t){return i.node("div"," ",s.klass["nav"+(t?"Next":"Prev")]+(t&&c.year>=f.year&&c.month>=f.month||!t&&c.year<=h.year&&c.month<=h.month?" "+s.klass.navDisabled:""),"data-nav="+(t||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(t?s.labelMonthNext:s.labelMonthPrev)+'"')},m=function(){var e=s.showMonthsShort?s.monthsShort:s.monthsFull;return s.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(t){return[e[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==h.year&&t<h.month||c.year==f.year&&t>f.month?" disabled":"")]}}),s.klass.selectMonth,(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+s.labelMonthSelect+'"'):i.node("div",e[c.month],s.klass.month)},v=function(){var e=c.year,n=!0===s.selectYears?5:~~(s.selectYears/2);if(n){var r=h.year,a=f.year,l=e-n,u=e+n;if(r>l&&(u+=r-l,l=r),a<u){var d=l-r,p=u-a;l-=d>p?p:d,u=a}return i.node("select",i.group({min:l,max:u,i:1,node:"option",item:function(t){return[t,0,"value="+t+(e==t?" selected":"")]}}),s.klass.selectYear,(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+s.labelYearSelect+'"')}return i.node("div",e,s.klass.year)};return i.node("div",(s.selectYears?v()+m():m()+v())+g()+g(1),s.klass.header)+i.node("table",p+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=s.firstDay&&0===o.create([c.year,c.month,1]).day?-7:0;return[i.group({min:7*t-c.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=o.create([c.year,c.month,t+(s.firstDay?1:0)]);var e,n=l&&l.pick==t.pick,r=u&&u.pick==t.pick,p=d&&o.disabled(t)||t.pick<h.pick||t.pick>f.pick,g=i.trigger(o.formats.toString,o,[s.format,t]);return[i.node("div",t.date,(e=[s.klass.day],e.push(c.month==t.month?s.klass.infocus:s.klass.outfocus),a.pick==t.pick&&e.push(s.klass.now),n&&e.push(s.klass.selected),r&&e.push(s.klass.highlighted),p&&e.push(s.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+i.ariaAttr({role:"gridcell",label:g,selected:!(!n||o.$node.val()!==g)||null,activedescendant:!!r||null,disabled:!!p||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),s.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+i.node("div",i.node("button",s.today,s.klass.buttonToday,"type=button data-pick="+a.pick+(t&&!o.disabled(a)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",s.clear,s.klass.buttonClear,"type=button data-clear=1"+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",s.close,s.klass.buttonClose,"type=button data-close=true "+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),s.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(n=t.klasses().picker+"__")+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},t.extend("pickadate",o)})),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],(function(n){return t.Tablesaw=e(n,t)})):"object"==typeof exports?module.exports=e("document"in t?require("jquery"):require("jquery")(t),t):t.Tablesaw=e(jQuery,t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=e.document,i=/complete|loaded/.test(n.readyState);n.addEventListener("DOMContentLoaded",(function(){i=!0}));var o,s,r,a,l,u,c,d,h,f,p,g,m,v,b,y,w={i18n:{modeStack:"Stack",modeSwipe:"Swipe",modeToggle:"Toggle",modeSwitchColumnsAbbreviated:"Cols",modeSwitchColumns:"Columns",columnToggleButton:"Columns",columnToggleError:"No eligible columns.",sort:"Sort",swipePreviousColumn:"Previous column",swipeNextColumn:"Next column"},mustard:"head"in n&&(!e.blackberry||e.WebKitPoint)&&!e.operamini,$:t,_init:function(t){w.$(t||n).trigger("enhance.tablesaw")},init:function(t){(i=i||/complete|loaded/.test(n.readyState))?w._init(t):"addEventListener"in n&&n.addEventListener("DOMContentLoaded",(function(){w._init(t)}))}};return t(n).on("enhance.tablesaw",(function(){"undefined"!=typeof TablesawConfig&&TablesawConfig.i18n&&(w.i18n=t.extend(w.i18n,TablesawConfig.i18n||{})),w.i18n.modes=[w.i18n.modeStack,w.i18n.modeSwipe,w.i18n.modeToggle]})),w.mustard&&t(n.documentElement).addClass("tablesaw-enhanced"),function(){var i="tablesaw",o="tablesaw-bar",s={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh",resize:"tablesawresize"},r={};w.events=s;var a=function(e){if(!e)throw new Error("Tablesaw requires an element.");this.table=e,this.$table=t(e),this.$thead=this.$table.children().filter("thead").eq(0),this.$tbody=this.$table.children().filter("tbody"),this.mode=this.$table.attr("data-tablesaw-mode")||"stack",this.$toolbar=null,this.attributes={subrow:"data-tablesaw-subrow",ignorerow:"data-tablesaw-ignorerow"},this.init()};a.prototype.init=function(){if(!this.$thead.length)throw new Error("tablesaw: a <thead> is required, but none was found.");if(!this.$thead.find("th").length)throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");this.$table.attr("id")||this.$table.attr("id",i+"-"+Math.round(1e4*Math.random())),this.createToolbar(),this._initCells(),this.$table.data(i,this),this.$table.trigger(s.create,[this])},a.prototype.getConfig=function(e){var n=t.extend(r,e||{});return t.extend(n,"undefined"!=typeof TablesawConfig?TablesawConfig:{})},a.prototype._getPrimaryHeaderRow=function(){return this._getHeaderRows().eq(0)},a.prototype._getHeaderRows=function(){return this.$thead.children().filter("tr").filter((function(){return!t(this).is("[data-tablesaw-ignorerow]")}))},a.prototype._getRowIndex=function(t){return t.prevAll().length},a.prototype._getHeaderRowIndeces=function(){var e=this,n=[];return this._getHeaderRows().each((function(){n.push(e._getRowIndex(t(this)))})),n},a.prototype._getPrimaryHeaderCells=function(t){return(t||this._getPrimaryHeaderRow()).find("th")},a.prototype._$getCells=function(e){var n=this;return t(e).add(e.cells).filter((function(){var e=t(this),i=e.parent(),o=e.is("[colspan]");return!(i.is("["+n.attributes.subrow+"]")||i.is("["+n.attributes.ignorerow+"]")&&o)}))},a.prototype._getVisibleColspan=function(){var e=0;return this._getPrimaryHeaderCells().each((function(){var n=t(this);"none"!==n.css("display")&&(e+=parseInt(n.attr("colspan"),10)||1)})),e},a.prototype.getColspanForCell=function(e){var n=this._getVisibleColspan(),i=0;return e.closest("tr").data("tablesaw-rowspanned")&&i++,e.siblings().each((function(){var e=t(this),n=parseInt(e.attr("colspan"),10)||1;"none"!==e.css("display")&&(i+=n)})),n-i},a.prototype.isCellInColumn=function(e,n){return t(e).add(e.cells).filter((function(){return this===n})).length},a.prototype.updateColspanCells=function(e,n,i){var o=this,s=o._getPrimaryHeaderRow();this.$table.find("[rowspan][data-tablesaw-priority]").each((function(){var e=t(this);if("persist"===e.attr("data-tablesaw-priority")){var n=e.closest("tr"),i=parseInt(e.attr("rowspan"),10);i>1&&((n=n.next()).data("tablesaw-rowspanned",!0),i--)}})),this.$table.find("[colspan],[data-tablesaw-maxcolspan]").filter((function(){return t(this).closest("tr")[0]!==s[0]})).each((function(){var s=t(this);if(void 0===i||o.isCellInColumn(n,this)){var r=o.getColspanForCell(s);e&&void 0!==i&&s[0===r?"addClass":"removeClass"](e);var a=parseInt(s.attr("data-tablesaw-maxcolspan"),10);a?r>a&&(r=a):s.attr("data-tablesaw-maxcolspan",s.attr("colspan")),s.attr("colspan",r)}}))},a.prototype._findPrimaryHeadersForCell=function(t){for(var e=this._getPrimaryHeaderRow(),n=this._getRowIndex(e),i=[],o=0;o<this.headerMapping.length;o++)if(o!==n)for(var s=0;s<this.headerMapping[o].length;s++)this.headerMapping[o][s]===t&&i.push(this.headerMapping[n][s]);return i},a.prototype.getRows=function(){var e=this;return this.$table.find("tr").filter((function(){return t(this).closest("table").is(e.$table)}))},a.prototype.getBodyRows=function(e){return(e?t(e):this.$tbody).children().filter("tr")},a.prototype.getHeaderCellIndex=function(t){for(var e=this.headerMapping[0],n=0;n<e.length;n++)if(e[n]===t)return n;return-1},a.prototype._initCells=function(){this.$table.find("[data-tablesaw-maxcolspan]").each((function(){var e=t(this);e.attr("colspan",e.attr("data-tablesaw-maxcolspan"))}));var e=this.getRows(),n=[];e.each((function(t){n[t]=[]})),e.each((function(e){var i=0;t(this).children().each((function(){for(var t=parseInt(this.getAttribute("data-tablesaw-maxcolspan")||this.getAttribute("colspan"),10),o=parseInt(this.getAttribute("rowspan"),10);n[e][i];)i++;if(n[e][i]=this,t)for(var s=0;s<t-1;s++)i++,n[e][i]=this;if(o)for(var r=1;r<o;r++)n[e+r][i]=this;i++}))}));for(var i=this._getHeaderRowIndeces(),o=0;o<n[0].length;o++)for(var s=0,r=i.length;s<r;s++){var a,l=n[i[s]][o],u=i[s];for(l.cells||(l.cells=[]);u<n.length;)l!==(a=n[u][o])&&l.cells.push(a),u++}this.headerMapping=n},a.prototype.refresh=function(){this._initCells(),this.$table.trigger(s.refresh,[this])},a.prototype._getToolbarAnchor=function(){var t=this.$table.parent();return t.is(".tablesaw-overflow")?t:this.$table},a.prototype._getToolbar=function(t){return t||(t=this._getToolbarAnchor()),t.prev().filter("."+o)},a.prototype.createToolbar=function(){var e=this._getToolbarAnchor(),n=this._getToolbar(e);n.length||(n=t("<div>").addClass(o).insertBefore(e)),this.$toolbar=n,this.mode&&this.$toolbar.addClass("tablesaw-mode-"+this.mode)},a.prototype.destroy=function(){this._getToolbar().each((function(){this.className=this.className.replace(/\btablesaw-mode\-\w*\b/gi,"")}));var o=this.$table.attr("id");t(n).off("."+o),t(e).off("."+o),this.$table.trigger(s.destroy,[this]),this.$table.removeData(i)},t.fn[i]=function(){return this.each((function(){t(this).data(i)||new a(this)}))};var l=t(n);l.on("enhance.tablesaw",(function(e){if(w.mustard){var n=t(e.target);n.parent().length&&(n=n.parent()),n.find("table").filter("[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]")[i]()}}));var u,c,d=!1;l.on("scroll.tablesaw",(function(){d=!0,e.clearTimeout(u),u=e.setTimeout((function(){d=!1}),300)})),t(e).on("resize",(function(){d||(e.clearTimeout(c),c=e.setTimeout((function(){l.trigger(s.resize)}),150))})),w.Table=a}(),o="tablesaw-stack",s="tablesaw-cell-label",r="tablesaw-cell-content",a="tablesaw-stack",l="data-tablesaw-no-labels",(u=function(e,n){this.tablesaw=n,this.$table=t(e),this.labelless=this.$table.is("["+l+"]"),this.hideempty=this.$table.is("[data-tablesaw-hide-empty]"),this.$table.data(a,this)}).prototype.init=function(){if(this.$table.addClass(o),!this.labelless){var e=this;this.$table.find("th, td").filter((function(){return!t(this).closest("thead").length})).filter((function(){return!(t(this).is("["+l+"]")||t(this).closest("tr").is("["+l+"]")||e.hideempty&&!t(this).html())})).each((function(){var i=t(n.createElement("b")).addClass(s),o=t(this);t(e.tablesaw._findPrimaryHeadersForCell(this)).each((function(e){var o=t(this.cloneNode(!0)),s=o.find(".tablesaw-sortable-btn");o.find(".tablesaw-sortable-arrow").remove();var r=o.find("[data-tablesaw-checkall]");if(r.closest("label").remove(),r.length)i=t([]);else{e>0&&i.append(n.createTextNode(", "));for(var a,l=s.length?s[0]:o[0];a=l.firstChild;)i[0].appendChild(a)}})),i.length&&!o.find("."+r).length&&o.wrapInner("<span class='"+r+"'></span>");var a=o.find("."+s);a.length?a.replaceWith(i):(o.prepend(n.createTextNode(" ")),o.prepend(i))}))}},u.prototype.destroy=function(){this.$table.removeClass(o),this.$table.find("."+s).remove(),this.$table.find("."+r).each((function(){t(this).replaceWith(t(this.childNodes))}))},t(n).on(w.events.create,(function(t,e){"stack"===e.mode&&new u(e.table,e).init()})).on(w.events.refresh,(function(e,n){"stack"===n.mode&&t(n.table).data(a).init()})).on(w.events.destroy,(function(e,n){"stack"===n.mode&&t(n.table).data(a).destroy()})),w.Stack=u,c="tablesawbtn",d={_create:function(){return t(this).each((function(){t(this).trigger("beforecreate."+c)[c]("_init").trigger("create."+c)}))},_init:function(){var e=t(this),n=this.getElementsByTagName("select")[0];return n&&t(this).addClass("btn-select tablesaw-btn-select")[c]("_select",n),e},_select:function(e){var i=function(e,i){var o,s,r=t(i).find("option"),a=n.createElement("span"),l=!1;if(a.setAttribute("aria-hidden","true"),a.innerHTML=" ",r.each((function(){this.selected&&(a.innerHTML=this.text)})),s=e.childNodes,r.length>0){for(var u=0,c=s.length;u<c;u++)(o=s[u])&&"SPAN"===o.nodeName.toUpperCase()&&(e.replaceChild(a,o),l=!0);l||e.insertBefore(a,e.firstChild)}};i(this,e),t(this).on("change refresh",(function(){i(this,e)}))}},t.fn[c]=function(e,n,i,o){return this.each((function(){return e&&"string"==typeof e?t.fn[c].prototype[e].call(this,n,i,o):t(this).data(c+"active")?t(this):(t(this).data(c+"active",!0),void t.fn[c].prototype._create.call(this))}))},t.extend(t.fn[c].prototype,d),h="tablesaw-coltoggle",(f=function(e){this.$table=t(e),this.$table.length&&(this.tablesaw=this.$table.data("tablesaw"),this.attributes={btnTarget:"data-tablesaw-columntoggle-btn-target",set:"data-tablesaw-columntoggle-set"},this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-"},this.set=[],this.$headers=this.tablesaw._getPrimaryHeaderCells(),this.$table.data(h,this))}).prototype.initSet=function(){var e=this.$table.attr(this.attributes.set);if(e){var n=this.$table[0];this.set=t("table["+this.attributes.set+"='"+e+"']").filter((function(){return this!==n})).get()}},f.prototype.init=function(){if(this.$table.length){var i,o,s,r,a,l,u=this,c=this.tablesaw.getConfig({getColumnToggleLabelTemplate:function(t){return"<label><input type='checkbox' checked>"+t+"</label>"}});this.$table.addClass(this.classes.columnToggleTable),o=(i=this.$table.attr("id"))+"-popup",l=t("<div class='"+this.classes.columnBtnContain+"'></div>"),s=t("<a href='#"+o+"' class='btn tablesaw-btn btn-micro "+this.classes.columnBtn+"' data-popup-link><span>"+w.i18n.columnToggleButton+"</span></a>"),r=t("<div class='"+this.classes.popup+"' id='"+o+"'></div>"),a=t("<div class='tablesaw-btn-group'></div>"),this.$popup=r;var d=!1;this.$headers.each((function(){var e=t(this),n=e.attr("data-tablesaw-priority"),i=u.tablesaw._$getCells(this);n&&"persist"!==n&&(i.addClass(u.classes.priorityPrefix+n),t(c.getColumnToggleLabelTemplate(e.text())).appendTo(a).find('input[type="checkbox"]').data("tablesaw-header",this),d=!0)})),d||a.append("<label>"+w.i18n.columnToggleError+"</label>"),a.appendTo(r),a.find('input[type="checkbox"]').on("change",(function(e){var n;v(e.target),u.set.length&&(t(u.$popup).find("input[type='checkbox']").each((function(t){if(this===e.target)return n=t,!1})),t(u.set).each((function(){var i=t(this).data(h).$popup.find("input[type='checkbox']").get(n);i&&(i.checked=e.target.checked,v(i))})))})),s.appendTo(l);var f,p=t(this.$table.attr(this.attributes.btnTarget));l.appendTo(p.length?p:this.tablesaw.$toolbar),s.on("click.tablesaw",(function(o){o.preventDefault(),l.is(".visible")?b():(l.addClass("visible"),s.removeClass("down").addClass("up"),t(n).off("click."+i,b),e.clearTimeout(f),f=e.setTimeout((function(){t(n).on("click."+i,b)}),15))})),r.appendTo(l),this.$menu=a;var g,m=this.$table.closest(".tablesaw-overflow");m.css("-webkit-overflow-scrolling")&&m.on("scroll",(function(){var n=t(this);e.clearTimeout(g),g=e.setTimeout((function(){n.css("-webkit-overflow-scrolling","auto"),e.setTimeout((function(){n.css("-webkit-overflow-scrolling","touch")}),0)}),100)})),t(e).on(w.events.resize+"."+i,(function(){u.refreshToggle()})),this.initSet(),this.refreshToggle()}function v(t){var e=t.checked,n=u.getHeaderFromCheckbox(t),i=u.tablesaw._$getCells(n);i[e?"removeClass":"addClass"]("tablesaw-toggle-cellhidden"),i[e?"addClass":"removeClass"]("tablesaw-toggle-cellvisible"),u.updateColspanCells(n,e),u.$table.trigger("tablesawcolumns")}function b(e){e&&t(e.target).closest("."+u.classes.popup).length||(t(n).off("click."+i),s.removeClass("up").addClass("down"),l.removeClass("visible"))}},f.prototype.getHeaderFromCheckbox=function(e){return t(e).data("tablesaw-header")},f.prototype.refreshToggle=function(){var t=this;this.$menu.find("input").each((function(){var e=t.getHeaderFromCheckbox(this);this.checked="table-cell"===t.tablesaw._$getCells(e).eq(0).css("display")})),this.updateColspanCells()},f.prototype.updateColspanCells=function(t,e){this.tablesaw.updateColspanCells("tablesaw-toggle-cellhidden",t,e)},f.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable),this.$table.find("th, td").each((function(){t(this).removeClass("tablesaw-toggle-cellhidden").removeClass("tablesaw-toggle-cellvisible"),this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"")}))},t(n).on(w.events.create,(function(t,e){"columntoggle"===e.mode&&new f(e.table).init()})),t(n).on(w.events.destroy,(function(e,n){"columntoggle"===n.mode&&t(n.table).data(h).destroy()})),t(n).on(w.events.refresh,(function(e,n){"columntoggle"===n.mode&&t(n.table).data(h).refreshToggle()})),w.ColumnToggle=f,function(){function e(e){var n=[];return t(e.childNodes).each((function(){var e=t(this);e.is("input, select")?n.push(e.val()):e.is(".tablesaw-cell-label")||n.push((e.text()||"").replace(/^\s+|\s+$/g,""))})),n.join("")}var i="tablesaw-sortable",o="table[data-"+i+"]",s="[data-"+i+"-switch]",r="data-tablesaw-sortable-col",a="data-tablesaw-sortable-default-col",l="data-tablesaw-sortable-numeric",u="data-tablesaw-subrow",c={head:i+"-head",ascend:i+"-ascending",descend:i+"-descending",switcher:i+"-switch",tableToolbar:"tablesaw-bar-section",sortButton:i+"-btn"},d={_create:function(e){return t(this).each((function(){if(t(this).data(i+"-init"))return!1;t(this).data(i+"-init",!0).trigger("beforecreate."+i)[i]("_init",e).trigger("create."+i)}))},_init:function(){var n,o,u,d=t(this),h=d.data("tablesaw");function f(e){t.each(e,(function(e,n){var i=t(n);i.removeAttr(a),i.removeClass(c.ascend),i.removeClass(c.descend)}))}d.addClass(i),u=n=d.children().filter("thead").find("th["+r+"]"),t.each(u,(function(e,n){t(n).addClass(c.head)})),function(e,n){t.each(e,(function(e,i){var o=t("<button class='"+c.sortButton+"'/>");o.on("click",{col:i},n),t(i).wrapInner(o).find("button").append("<span class='tablesaw-sortable-arrow'>")}))}(n,(function(e){if(!t(e.target).is("a[href]")){e.stopPropagation();var s=t(e.target).closest("["+r+"]"),a=e.data.col,l=n.index(s[0]);f(s.closest("thead").find("th").filter((function(){return this!==s[0]}))),s.is("."+c.descend)||!s.is("."+c.ascend)?(d[i]("sortBy",a,!0),l+="_asc"):(d[i]("sortBy",a),l+="_desc"),o&&o.find("select").val(l).trigger("refresh"),e.preventDefault()}})),function(e){t.each(e,(function(e,n){var i=t(n);i.is("["+a+"]")&&(i.is("."+c.descend)||i.addClass(c.ascend))}))}(n),d.is(s)&&function(n){o=t("<div>").addClass(c.switcher).addClass(c.tableToolbar);var s=["<label>"+w.i18n.sort+":"];s.push('<span class="btn tablesaw-btn"><select>'),n.each((function(n){var i=t(this),o=i.is("["+a+"]"),r=i.is("."+c.descend),u=i.is("["+l+"]"),d=0;t(this.cells.slice(0,5)).each((function(){isNaN(parseInt(e(this),10))||d++}));var h=5===d;u||i.attr(l,h?"":"false"),s.push("<option"+(o&&!r?" selected":"")+' value="'+n+'_asc">'+i.text()+" "+(h?"↑":"(A-Z)")+"</option>"),s.push("<option"+(o&&r?" selected":"")+' value="'+n+'_desc">'+i.text()+" "+(h?"↓":"(Z-A)")+"</option>")})),s.push("</select></span></label>"),o.html(s.join(""));var r=h.$toolbar.children().eq(0);r.length?o.insertBefore(r):o.appendTo(h.$toolbar),o.find(".tablesaw-btn").tablesawbtn(),o.find("select").on("change",(function(){var e=t(this).val().split("_"),o=n.eq(e[0]);f(o.siblings()),d[i]("sortBy",o.get(0),"asc"===e[1])}))}(n)},sortRows:function(n,i,o,s,r){var a,c=function(n,i){var o=[];return t.each(n,(function(n,s){for(var r=s.parentNode,a=t(r),l=[],c=a.next();c.is("["+u+"]");)l.push(c[0]),c=c.next();var d=r.parentNode;a.is("["+u+"]")||d===i&&o.push({element:s,cell:e(s),row:r,subrows:l.length?l:null,ignored:a.is("[data-tablesaw-ignorerow]")})})),o}(s.cells,r),d=t(s).data("tablesaw-sort");return a=!(!d||"function"!=typeof d)&&d(o)||function(t,e){var n=/[^\-\+\d\.]/g;return t?function(t,i){return t.ignored||i.ignored?0:e?parseFloat(t.cell.replace(n,""))-parseFloat(i.cell.replace(n,"")):t.cell.toLowerCase()>i.cell.toLowerCase()?1:-1}:function(t,i){return t.ignored||i.ignored?0:e?parseFloat(i.cell.replace(n,""))-parseFloat(t.cell.replace(n,"")):t.cell.toLowerCase()<i.cell.toLowerCase()?1:-1}}(o,t(s).is("["+l+"]")&&!t(s).is("["+l+'="false"]')),function(t){var e,n,i=[];for(e=0,n=t.length;e<n;e++)i.push(t[e].row),t[e].subrows&&i.push(t[e].subrows);return i}(c.sort(a))},makeColDefault:function(e,n){var i=t(e);i.attr(a,"true"),n?(i.removeClass(c.descend),i.addClass(c.ascend)):(i.removeClass(c.ascend),i.addClass(c.descend))},sortBy:function(e,n){var o,s=t(this),r=s.data("tablesaw");r.$tbody.each((function(){var a,l,u,c=t(this),d=r.getBodyRows(this),h=r.headerMapping[0];for(l=0,u=h.length;l<u;l++)if(h[l]===e){o=l;break}for(l=0,u=(a=s[i]("sortRows",d,o,n,e,this)).length;l<u;l++)c.append(a[l])})),s[i]("makeColDefault",e,n),s.trigger("tablesaw-sorted")}};t.fn[i]=function(e){var n,o=Array.prototype.slice.call(arguments,1);return e&&"string"==typeof e?void 0!==(n=t.fn[i].prototype[e].apply(this[0],o))?n:t(this):(t(this).data(i+"-active")||(t(this).data(i+"-active",!0),t.fn[i].prototype._create.call(this,e)),t(this))},t.extend(t.fn[i].prototype,d),t(n).on(w.events.create,(function(t,e){e.$table.is(o)&&e.$table[i]()}))}(),m="disabled",v="tablesaw-fix-persist",b="tablesaw-swipe-cellhidden",y="tablesaw-swipe-cellpersist",t(n).on(w.events.create,(function(i,o){"swipe"===o.mode&&function(i,o){var s=o.data("tablesaw"),r=t("<div class='tablesaw-advance'></div>"),a=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro left'>"+w.i18n.swipePreviousColumn+"</a>").appendTo(r),l=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro right'>"+w.i18n.swipeNextColumn+"</a>").appendTo(r),u=i._getPrimaryHeaderCells(),c=u.not('[data-tablesaw-priority="persist"]'),d=[],h=[],f=t(n.head||"head"),p=o.attr("id");if(!u.length)throw new Error("tablesaw swipe: no header cells found.");function g(){o.css({width:"1px"}),o.find("."+b).removeClass(b),d=[],h=[],u.each((function(){var t=this.offsetWidth;d.push(t),E(this)||h.push(t)})),o.css({width:""})}function _(t){s._$getCells(t).removeClass(b)}function C(t){s._$getCells(t).addClass(b)}function E(e){return t(e).is('[data-tablesaw-priority="persist"]')}function k(){o.removeClass(v),t("#"+p+"-persist").remove()}function S(){var e,n=[];return c.each((function(i){var o=t(this),s="none"===o.css("display")||o.is("."+b);if(s||e){if(s&&e)return n[1]=i,!1}else e=!0,n[0]=i})),n}function x(){var t=S();return[t[1]-1,t[0]-1]}function A(t){return t[1]>-1&&t[1]<c.length}function T(){if(!(n=o.attr("data-tablesaw-swipe-media"))||"matchMedia"in e&&e.matchMedia(n).matches){var n,i=o.parent().width(),r=[],a=0,l=[],c=u.length;u.each((function(e){var n=t(this).is('[data-tablesaw-priority="persist"]');r.push(n),a+=d[e],l.push(a),(n||a>i)&&c--}));var h=0===c;u.each((function(t){l[t]>i&&C(this)}));var f=!0;u.each((function(t){if(r[t])return s._$getCells(this).addClass(y),void(f&&(s._$getCells(this).css("width",l[t]+"px"),f=!1));(l[t]<=i||h)&&(h=!1,_(this),s.updateColspanCells(b,this,!0))})),k(),o.trigger("tablesawcolumns")}}function O(){D(!0)}function $(){D(!1)}function D(e){var n;if(A(n=e?S():x())){isNaN(n[0])&&(n[0]=e?0:c.length-1);var i,r=function(){var e,n="#"+p+".tablesaw-swipe ",i=[],s=o.width(),r=s,a=[];if(u.each((function(t){var e;E(this)&&(e=this.offsetWidth,r-=e,e<.75*s&&(a.push(t+"-"+e),i.push(n+" ."+y+":nth-child("+(t+1)+") { width: "+e+"px; }")))})),e=a.join("_"),i.length){o.addClass(v);var l=t("#"+p+"-persist");l.length&&l.data("tablesaw-hash")===e||(l.remove(),t("<style>"+i.join("\n")+"</style>").attr("id",p+"-persist").data("tablesaw-hash",e).appendTo(f))}return r}(),a=n[0],l=n[1],d=c.get(a),g=!1,m=!1;C(d),s.updateColspanCells(b,d,!0);for(var w=a+(e?1:-1);w>=0&&w<h.length;){r-=h[w];var k=c.eq(w);k.is(".tablesaw-swipe-cellhidden")?r>0&&(g=!0,m=!0,_(i=k.get(0)),s.updateColspanCells(b,i,!1)):m=!0,e?w++:w--}m?!g&&A(e?S():x())&&D(e):(_(i=c.get(l)),s.updateColspanCells(b,i,!1)),o.trigger("tablesawcolumns")}}function F(t,e){return(t.touches||t.originalEvent.touches)[0][e]}o.addClass("tablesaw-swipe"),g(),r.appendTo(s.$toolbar),p||(p="tableswipe-"+Math.round(1e4*Math.random()),o.attr("id",p)),a.add(l).on("click",(function(e){t(e.target).closest(l).length?O():$(),e.preventDefault()})),o.is("[data-tablesaw-no-touch]")||o.on("touchstart.swipetoggle",(function(n){var o,s,r=F(n,"pageX"),a=F(n,"pageY"),l=e.pageYOffset;t(e).off(w.events.resize,T),t(this).on("touchmove.swipetoggle",(function(t){o=F(t,"pageX"),s=F(t,"pageY")})).on("touchend.swipetoggle",(function(){var n=i.getConfig({swipeHorizontalThreshold:30,swipeVerticalThreshold:30}),u=n.swipe?n.swipe.verticalThreshold:n.swipeVerticalThreshold,c=n.swipe?n.swipe.horizontalThreshold:n.swipeHorizontalThreshold,d=Math.abs(e.pageYOffset-l)>=u;Math.abs(s-a)>=u||d||(o-r<-1*c&&O(),o-r>c&&$()),e.setTimeout((function(){t(e).on(w.events.resize,T)}),300),t(this).off("touchmove.swipetoggle touchend.swipetoggle")}))})),o.on("tablesawcolumns.swipetoggle",(function(){var t=A(x()),e=A(S());a[t?"removeClass":"addClass"](m),l[e?"removeClass":"addClass"](m),s.$toolbar[t||e?"removeClass":"addClass"]("tablesaw-all-cols-visible")})).on("tablesawnext.swipetoggle",(function(){O()})).on("tablesawprev.swipetoggle",(function(){$()})).on(w.events.destroy+".swipetoggle",(function(){var n=t(this);n.removeClass("tablesaw-swipe"),s.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,T),n.off(".swipetoggle")})).on(w.events.refresh,(function(){k(),g(),T()})),T(),t(e).on(w.events.resize,T)}(o,o.$table)})),p={attr:{init:"data-tablesaw-minimap"},show:function(t){var n=t.getAttribute(p.attr.init);return""===n||!(!n||!("matchMedia"in e))&&e.matchMedia(n).matches}},t(n).on(w.events.create,(function(n,i){"swipe"!==i.mode&&"columntoggle"!==i.mode||!i.$table.is("[ "+p.attr.init+"]")||function(n){var i=n.data("tablesaw"),o=t('<div class="tablesaw-advance minimap">'),s=t('<ul class="tablesaw-advance-dots">').appendTo(o),r="tablesaw-advance-dots-hide";function a(){if(p.show(n[0])){o.css("display","block");var e=s.find("li").removeClass(r);n.find("thead th").each((function(n){"none"===t(this).css("display")&&e.eq(n).addClass(r)}))}else o.css("display","none")}n.data("tablesaw")._getPrimaryHeaderCells().each((function(){s.append("<li><i></i></li>")})),o.appendTo(i.$toolbar),a(),t(e).on(w.events.resize,a),n.on("tablesawcolumns.minimap",(function(){a()})).on(w.events.destroy+".minimap",(function(){var n=t(this);i.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,a),n.off(".minimap")}))}(i.$table)})),w.MiniMap=p,g={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-bar-section"},modes:["stack","swipe","columntoggle"],init:function(e){var n,i=t(e),o=i.data("tablesaw"),s=i.attr(g.attributes.excludeMode),r=o.$toolbar,a=t("<div>").addClass(g.classes.main+" "+g.classes.toolbar),l=['<label><span class="abbreviated">'+w.i18n.modeSwitchColumnsAbbreviated+'</span><span class="longform">'+w.i18n.modeSwitchColumns+"</span>:"],u=i.attr("data-tablesaw-mode");l.push('<span class="btn tablesaw-btn"><select>');for(var c=0,d=g.modes.length;c<d;c++)s&&s.toLowerCase()===g.modes[c]||(n=u===g.modes[c],l.push("<option"+(n?" selected":"")+' value="'+g.modes[c]+'">'+w.i18n.modes[c]+"</option>"));l.push("</select></span></label>"),a.html(l.join(""));var h=r.find(".tablesaw-advance").eq(0);h.length?a.insertBefore(h):a.appendTo(r),a.find(".tablesaw-btn").tablesawbtn(),a.find("select").on("change",(function(n){return g.onModeChange.call(e,n,t(this).val())}))},onModeChange:function(e,n){var i=t(this),o=i.data("tablesaw");o.$toolbar.find("."+g.classes.main).remove(),o.destroy(),i.attr("data-tablesaw-mode",n),i.tablesaw()}},t(n).on(w.events.create,(function(t,e){e.$table.is(g.selectors.init)&&g.init(e.table)})),function(){var e="tablesawCheckAll";function i(t){this.tablesaw=t,this.$table=t.$table,this.attr="data-tablesaw-checkall",this.checkAllSelector="["+this.attr+"]",this.forceCheckedSelector="["+this.attr+"-checked]",this.forceUncheckedSelector="["+this.attr+"-unchecked]",this.checkboxSelector='input[type="checkbox"]',this.$triggers=null,this.$checkboxes=null,this.$table.data(e)||(this.$table.data(e,this),this.init())}i.prototype._filterCells=function(e){return e.filter((function(){return!t(this).closest("tr").is("[data-tablesaw-subrow],[data-tablesaw-ignorerow]")})).find(this.checkboxSelector).not(this.checkAllSelector)},i.prototype.getCheckboxesForButton=function(e){return this._filterCells(t(t(e).attr(this.attr)))},i.prototype.getCheckboxesForCheckbox=function(e){return this._filterCells(t(t(e).closest("th")[0].cells))},i.prototype.init=function(){var e=this;this.$table.find(this.checkAllSelector).each((function(){t(this).is(e.checkboxSelector)?e.addCheckboxEvents(this):e.addButtonEvents(this)}))},i.prototype.addButtonEvents=function(n){var i=this;t(n).on("click",(function(n){n.preventDefault();var o,s=i.getCheckboxesForButton(this),r=!0;s.each((function(){this.checked||(r=!1)})),o=!!t(this).is(i.forceCheckedSelector)||!t(this).is(i.forceUncheckedSelector)&&!r,s.each((function(){this.checked=o,t(this).trigger("change."+e)}))}))},i.prototype.addCheckboxEvents=function(n){var i=this;t(n).on("change",(function(){var t=this.checked;i.getCheckboxesForCheckbox(this).each((function(){this.checked=t}))}));var o=i.getCheckboxesForCheckbox(n);o.on("change."+e,(function(){var t=0;o.each((function(){this.checked&&t++}));var e=t===o.length;n.checked=e,n.indeterminate=0!==t&&!e}))},t(n).on(w.events.create,(function(t,e){new i(e)})),w.CheckAll=i}(),w})),function(t){"use strict";if(!("Tablesaw"in t))throw new Error("Tablesaw library not found.");if(!("init"in Tablesaw))throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");Tablesaw.init()}("undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return w}});var i=n(279),o=n.n(i),s=n(370),r=n.n(s),a=n(817),l=n.n(a);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},d=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var i=l()(n);return u("copy"),n.remove(),i},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=d(t.value,e):(n=l()(t),u("copy")),n};function f(t){return f="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},f(t)}function p(t){return p="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},p(t)}function g(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)}}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function b(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(l,t);var e,n,i,o,s,a=(o=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=v(o);if(s){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,t)});function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this)).resolveOptions(e),n.listenClick(t),n}return e=l,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,i=t.container,o=t.target,s=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==f(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?h(s,{container:i}):o?"cut"===n?c(o):h(o,{container:i}):void 0}({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(i?"success":"error",{action:n,text:i,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&g(e.prototype,n),i&&g(e,i),l}(o()),w=y},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function o(t,e,n,i,o){var r=s.apply(this,arguments);return t.addEventListener(n,r,o),{destroy:function(){t.removeEventListener(n,r,o)}}}function s(t,e,n,o){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,i,s){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,i,s)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),o=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(i.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(i.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(t),i.removeAllRanges(),i.addRange(o),e=i.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function o(){i.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(var s=0,r=i.length;s<r;s++)i[s].fn!==e&&i[s].fn._!==e&&o.push(i[s]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";const e={name:"",placeholder:"",classes:"",classPrefix:"",classInput:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,filterSelectAll:!0,customFilter({text:t,label:e,search:n}){return(e||t).includes(n)},showClear:!1,animate:void 0,styler(){return!1},textTemplate(t){return t[0].innerHTML.trim()},labelTemplate(t){return t[0].getAttribute("label")},onOpen(){return!1},onClose(){return!1},onCheckAll(){return!1},onUncheckAll(){return!1},onFocus(){return!1},onBlur(){return!1},onOptgroupClick(){return!1},onBeforeClick(){return!0},onClick(){return!1},onFilter(){return!1},onClear(){return!1},onAfterCreate(){return!1}},n={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(t,e){return`${t} of ${e} selected`},formatNoMatchesFound(){return"No matches found"}};Object.assign(e,n);const i={BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:e,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","resetFilter","destroy"],LOCALES:{en:n,"en-US":n}};class o{constructor(t){this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;const e=()=>{this.lastCluster!==(this.lastCluster=this.getNum())&&(this.initDOM(this.rows),this.callback())};this.scrollEl.addEventListener("scroll",e,!1),this.destroy=()=>{this.contentEl.innerHtml="",this.scrollEl.removeEventListener("scroll",e,!1)}}initDOM(t){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=t[0]+t[0]+t[0],this.getRowsHeight(t));const e=this.initData(t,this.getNum()),n=e.rows.join(""),i=this.checkChanges("data",n),o=this.checkChanges("top",e.topOffset),s=this.checkChanges("bottom",e.bottomOffset),r=[];i&&o?(e.topOffset&&r.push(this.getExtra("top",e.topOffset)),r.push(n),e.bottomOffset&&r.push(this.getExtra("bottom",e.bottomOffset)),this.contentEl.innerHTML=r.join("")):s&&(this.contentEl.lastChild.style.height=`${e.bottomOffset}px`)}getRowsHeight(){if(void 0===this.itemHeight){const t=this.contentEl.children,e=t[Math.floor(t.length/2)];this.itemHeight=e.offsetHeight}this.blockHeight=this.itemHeight*i.BLOCK_ROWS,this.clusterRows=i.BLOCK_ROWS*i.CLUSTER_BLOCKS,this.clusterHeight=this.blockHeight*i.CLUSTER_BLOCKS}getNum(){return this.scrollTop=this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}initData(t,e){if(t.length<i.BLOCK_ROWS)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};const n=Math.max((this.clusterRows-i.BLOCK_ROWS)*e,0),o=n+this.clusterRows,s=Math.max(n*this.itemHeight,0),r=Math.max((t.length-o)*this.itemHeight,0),a=[];let l=n;s<1&&l++;for(let e=n;e<o;e++)t[e]&&a.push(t[e]);return this.dataStart=n,this.dataEnd=o,{topOffset:s,bottomOffset:r,rowsAbove:l,rows:a}}checkChanges(t,e){const n=e!==this.cache[t];return this.cache[t]=e,n}getExtra(t,e){const n=document.createElement("li");return n.className=`virtual-scroll-${t}`,e&&(n.style.height=`${e}px`),n.outerHTML}}const s=(t,e,n)=>{for(const i of t){if(i[e]===n||i[e]===""+ +i[e]&&+i[e]===n)return i;if("optgroup"===i.type)for(const t of i.children)if(t[e]===n||t[e]===""+ +t[e]&&+t[e]===n)return t}},r=t=>t.normalize?t.normalize("NFD").replace(/[\u0300-\u036F]/g,""):[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce(((t,{letters:e,base:n})=>t.replace(e,n)),t),a=t=>(Object.keys(t).forEach((e=>void 0===t[e]?delete t[e]:"")),t),l=t=>t&&"object"==typeof t&&t.__v_raw?t.__v_raw:t;class u{constructor(e,n){this.$el=e,this.options=t.extend({},i.DEFAULTS,n)}init(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}initLocale(){if(this.options.locale){const{locales:e}=t.fn.multipleSelect,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase());let o={};e[this.options.locale]?o=e[this.options.locale]:e[n.join("-")]?o=e[n.join("-")]:e[n[0]]&&(o=e[n[0]]),this._defaultLocales=this._defaultLocales||{};for(const[t,e]of Object.entries(o)){const n=Object.prototype.hasOwnProperty.call(this._defaultLocales,t)?this._defaultLocales[t]:i.DEFAULTS[t];this.options[t]===n&&(this.options[t]=e,this._defaultLocales[t]=e)}}}initContainer(){const e=this.$el[0],n=e.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass(`${this.options.classPrefix}-${this.options.size}`)),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=t(`label[for="${this.$el.attr("id")}"]`)),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===e.getAttribute("multiple")),this.$parent=t(`\n <div class="ms-parent ${e.getAttribute("class")||""} ${this.options.classes}"\n title="${e.getAttribute("title")||""}" />\n `),this.options.placeholder=this.options.placeholder||e.getAttribute("placeholder")||"",this.tabIndex=e.getAttribute("tabindex");let i="";if(null!==this.tabIndex&&(i=this.tabIndex&&`tabindex="${this.tabIndex}"`),this.$el.attr("tabindex",-1),this.$choice=t(`\n <button type="button" class="ms-choice"${i}>\n <span class="ms-placeholder">${this.options.placeholder}</span>\n ${this.options.showClear?'<div class="icon-close"></div>':""}\n <div class="icon-caret"></div>\n </button>\n `),this.$drop=t(`<div class="ms-drop ${this.options.position}" />`),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),e.disabled&&this.$choice.addClass("disabled"),this.selectAllName=`data-name="selectAll${n}"`,this.selectGroupName=`data-name="selectGroup${n}"`,this.selectItemName=`data-name="selectItem${n}"`,!this.options.keepOpen){const n=((t="")=>`click.multiple-select-${t=t||`${+new Date}${~~(1e6*Math.random())}`}`)(this.$el.attr("id"));t(document).off(n).on(n,(n=>{t(n.target)[0]!==this.$choice[0]&&t(n.target).parents(".ms-choice")[0]!==this.$choice[0]&&(t(n.target)[0]===this.$drop[0]||t(n.target).parents(".ms-drop")[0]!==this.$drop[0]&&n.target!==e)&&this.options.isOpen&&this.close()}))}}initData(){const e=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((t=>"string"==typeof t||"number"==typeof t?{text:t,value:t}:t.children?.length?{...t,children:t.children.map((t=>({...t})))}:{...t}));else if("object"==typeof this.options.data){for(const[t,n]of Object.entries(this.options.data))e.push({value:t,text:n});this.data=e}}else t.each(this.$el.children(),((t,n)=>{this.initRow(t,n)&&e.push(this.initRow(t,n))})),this.options.data=e,this.data=e,this.fromHtml=!0;this.dataTotal=(t=>{let e=0;return t.forEach(((t,n)=>{"optgroup"===t.type?(t._key=`group_${n}`,t.visible=void 0===t.visible||t.visible,t.children.forEach(((t,i)=>{t.visible=void 0===t.visible||t.visible,t.divider||(t._key=`option_${n}_${i}`,e+=1)}))):(t.visible=void 0===t.visible||t.visible,t.divider||(t._key=`option_${n}`,e+=1))})),e})(this.data)}initRow(e,n,i){const o={},s=t(n);return s.is("option")?(o.type="option",o.text=this.options.textTemplate(s),o.value=n.value,o.visible=!0,o.selected=!!n.selected,o.disabled=i||n.disabled,o.classes=n.getAttribute("class")||"",o.title=n.getAttribute("title")||"",(n._value||s.data("value"))&&(o._value=n._value||s.data("value")),Object.keys(s.data()).length&&(o._data=s.data(),o._data.divider&&(o.divider=o._data.divider)),o):s.is("optgroup")?(o.type="optgroup",o.label=this.options.labelTemplate(s),o.visible=!0,o.selected=!!n.selected,o.disabled=n.disabled,o.children=[],Object.keys(s.data()).length&&(o._data=s.data()),t.each(s.children(),((t,e)=>{o.children.push(this.initRow(t,e,o.disabled))})),o):null}initSelected(t){let e=0;for(const t of this.data)if("optgroup"===t.type){const n=t.children.filter((t=>t.selected&&!t.disabled&&t.visible)).length;t.children.length&&(t.selected=!this.options.single&&n&&n===t.children.filter((t=>!t.disabled&&t.visible&&!t.divider)).length),e+=n}else e+=t.selected&&!t.disabled&&t.visible?1:0;this.allSelected=this.data.filter((t=>t.selected&&!t.disabled&&t.visible)).length===this.data.filter((t=>!t.disabled&&t.visible&&!t.divider)).length,t||(this.allSelected?this.options.onCheckAll():0===e&&this.options.onUncheckAll())}initFilter(){if(this.filterText="",this.options.filter||!this.options.filterByDataLength)return;let t=0;for(const e of this.data)"optgroup"===e.type?t+=e.children.length:t+=1;this.options.filter=t>this.options.filterByDataLength}initDrop(){this.initList(),this.update(!0),this.options.isOpen&&setTimeout((()=>{this.open()}),50),this.options.openOnHover&&this.$parent.hover((()=>{this.open()}),(()=>{this.close()}))}initList(){const t=[];this.options.filter&&t.push(`\n <div class="ms-search">\n <input type="text" autocomplete="off" autocorrect="off"\n autocapitalize="off" spellcheck="false"\n placeholder="${this.options.filterPlaceholder}">\n </div>\n `),t.push("<ul></ul>"),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}initListItems(){const t=this.getListRows();let e=0;if(this.options.selectAll&&!this.options.single&&(e=-1),t.length>i.BLOCK_ROWS*i.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();const n=this.$drop.is(":visible");n||this.$drop.css("left",-1e4).show();const i=()=>{this.updateDataStart=this.virtualScroll.dataStart+e,this.updateDataEnd=this.virtualScroll.dataEnd+e,this.updateDataStart<0&&(this.updateDataStart=0),this.updateDataEnd>this.data.length&&(this.updateDataEnd=this.data.length)};this.virtualScroll=new o({rows:t,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:()=>{i(),this.events()}}),i(),n||this.$drop.css("left",0).hide()}else this.$ul.html(t.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}getListRows(){const t=[];return!this.options.selectAll||this.options.single||!this.options.filterSelectAll&&this.filterText||t.push(`\n <li class="ms-select-all" tabindex="0">\n <label>\n <input\n type="checkbox" ${this.selectAllName}\n ${this.allSelected?' checked="checked"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n />\n <span>${this.options.formatSelectAll()}</span>\n </label>\n </li>\n `),this.updateData=[],this.data.forEach((e=>{t.push(...this.initListItem(e))})),t.push(`<li class="ms-no-results">${this.options.formatNoMatchesFound()}</li>`),t}initListItem(t,e=0){const n=t.title?`title="${t.title}"`:"",i=this.options.multiple?"multiple":"",o=this.options.single?"radio":"checkbox";let s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){const e=this.options.styler(t),n=e?`style="${e}"`:"",i=[],o=this.options.hideOptgroupCheckboxes||this.options.single?`<span ${this.selectGroupName} data-key="${t._key}"></span>`:`<input type="checkbox"\n ${this.selectGroupName}\n data-key="${t._key}"\n ${t.selected?' checked="checked"':""}\n ${t.disabled?' disabled="disabled"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n >`;return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),i.push(`\n <li class="group ${s}" ${n} tabindex="${s.includes("hide-radio")||t.disabled?-1:0}">\n <label class="optgroup${this.options.single||t.disabled?" disabled":""}">\n ${o}${t.label}\n </label>\n </li>\n `),t.children.forEach((t=>{i.push(...this.initListItem(t,1))})),i}const r=this.options.styler(t),a=r?`style="${r}"`:"";return s+=`${t.classes||""} option-level-${e} `,t.divider?'<li class="option-divider"/>':[`\n <li class="${i} ${s}" ${n} ${a} tabindex="${t.disabled?-1:0}">\n <label class="${t.disabled?"disabled":""}">\n <input type="${o}"\n value="${t.value}"\n data-key="${t._key}"\n ${this.selectItemName}\n ${t.selected?' checked="checked"':""}\n ${t.disabled?' disabled="disabled"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n >\n <span>${t.text}</span>\n </label>\n </li>\n `]}events(){this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find(`input[${this.selectAllName}]`),this.$selectGroups=this.$drop.find(`input[${this.selectGroupName}],span[${this.selectGroupName}]`),this.$selectItems=this.$drop.find(`input[${this.selectItemName}]:enabled`),this.$disableItems=this.$drop.find(`input[${this.selectItemName}]:disabled`),this.$noResults=this.$drop.find(".ms-no-results");const e=e=>{e.preventDefault(),t(e.target).hasClass("icon-close")||this[this.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",(t=>{"label"===t.target.nodeName.toLowerCase()&&(e(t),this.options.filter&&this.options.isOpen||this.focus(),t.stopPropagation())})),this.$choice.off("click").on("click",e).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(t=>{27!==t.which||this.options.keepOpen||(this.close(),this.$choice.focus())})),this.$close.off("click").on("click",(t=>{t.preventDefault(),this._checkAll(!1,!0),this.initSelected(!1),this.updateSelected(),this.update(),this.options.onClear()})),this.$searchInput.off("keydown").on("keydown",(t=>{9===t.keyCode&&t.shiftKey&&this.close()})).off("keyup").on("keyup",(t=>{if(this.options.filterAcceptOnEnter&&[13,32].includes(t.which)&&this.$searchInput.val()){if(this.options.single){const t=this.$selectItems.closest("li").filter(":visible");t.length&&this.setSelects([t.first().find(`input[${this.selectItemName}]`).val()])}else this.$selectAll.click();return this.close(),void this.focus()}this.filter()})),this.$selectAll.off("click").on("click",(e=>{this._checkAll(t(e.currentTarget).prop("checked"))})),this.$selectGroups.off("click").on("click",(e=>{const n=t(e.currentTarget),i=n.prop("checked"),o=s(this.data,"_key",n.data("key"));this._checkGroup(o,i),this.options.onOptgroupClick(a({label:o.label,selected:o.selected,data:o._data,children:o.children.map((t=>a({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})))}))})),this.$selectItems.off("click").on("click",(e=>{const n=t(e.currentTarget),i=n.prop("checked"),o=s(this.data,"_key",n.data("key")),r=()=>{this.options.single&&this.options.isOpen&&!this.options.keepOpen&&this.close()};!1!==this.options.onBeforeClick(o)?(this._check(o,i),this.options.onClick(a({text:o.text,value:o.value,selected:o.selected,data:o._data})),r()):r()})),this.$ul.find("li").off("keydown").on("keydown",(e=>{const n=t(e.currentTarget);let i,o;switch(e.key){case"ArrowUp":e.preventDefault(),i=n.prev("li.option-divider"),o=i.length?i:n,o.prev().trigger("focus");break;case"ArrowDown":e.preventDefault(),i=n.next("li.option-divider"),o=i.length?i:n,o.next().trigger("focus");break;case"Enter":e.preventDefault(),n.find("input").trigger("click"),this.options.single&&this.$choice.trigger("focus")}}))}initView(){let t;window.getComputedStyle?(t=window.getComputedStyle(this.$el[0]).width,"auto"===t&&(t=this.$drop.outerWidth()+20)):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}open(){if(this.$choice.hasClass("disabled"))return;if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){const e=this.$drop.offset();this.$drop.appendTo(t(this.options.container)),this.$drop.offset({top:e.top,left:e.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}let e=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(e=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height",`${e}px`),this.$drop.find(".multiple").css("width",`${this.options.multipleWidth}px`),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}close(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}animateMethod(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}update(t){const e=this.getSelects();let n=this.getSelects("text");this.options.displayValues&&(n=e);const i=this.$choice.find(">span"),o=e.length;let s="";0===o?i.addClass("ms-placeholder").html(this.options.placeholder):s=o<this.options.minimumCountSelected?n.join(this.options.displayDelimiter):this.options.formatAllSelected()&&o===this.dataTotal?this.options.formatAllSelected():this.options.ellipsis&&o>this.options.minimumCountSelected?`${n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter)}...`:this.options.formatCountSelected()&&o>this.options.minimumCountSelected?this.options.formatCountSelected(o,this.dataTotal):n.join(this.options.displayDelimiter),s&&i.removeClass("ms-placeholder").html(s),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}updateSelected(){const e={};this.$drop.find("input[data-key]").each(((n,i)=>{const o=t(i);e[o.data("key")]=o}));for(let t=this.updateDataStart;t<this.updateDataEnd;t++){const n=this.updateData[t],i=e[n._key];i&&(i.prop("checked",n.selected),i.closest("li").toggleClass("selected",n.selected))}const n=!this.data.some((t=>t.visible));this.$selectAll.length&&this.$selectAll.prop("checked",this.allSelected).closest("li").toggleClass("selected",this.allSelected).toggle(!n),this.$noResults.toggle(n),this.virtualScroll&&(this.virtualScroll.rows=this.getListRows())}getData(){return this.options.data}getOptions(){const e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}refreshOptions(e){((t,e)=>{const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const o of n)if(i.includes(o)&&t[o]!==e[o])return!1;return!0})(this.options,e)||(this.options=t.extend(this.options,e),this.destroy(),this.init())}getSelects(t="value"){const e=[];for(const n of this.data)if("optgroup"===n.type){const i=n.children.filter((t=>t.selected));if(!i.length)continue;if("value"===t||this.options.single)e.push(...i.map((e=>"value"===t&&e._value||e[t])));else{const o=[];o.push("["),o.push(n.label),o.push(`: ${i.map((e=>e[t])).join(", ")}`),o.push("]"),e.push(o.join(""))}}else n.selected&&e.push("value"===t&&n._value||n[t]);return e}setSelects(e,n="value",i=!1){let o=!1;const s=i=>{for(const s of i){let i=!1;if("text"===n)i=e.includes(t("<div>").html(s.text).text().trim());else{const t=l(s._value||s.value);i=e.some((e=>l(e)===t)),i||s.value!==""+ +s.value||(i=e.includes(+s.value))}s.selected!==i&&(o=!0),s.selected=i}};for(const t of this.data)"optgroup"===t.type?s(t.children):s([t]);o&&(this.initSelected(i),this.updateSelected(),this.update(i))}enable(){this.$choice.removeClass("disabled")}disable(){this.$choice.addClass("disabled")}check(t){const e=s(this.data,"value",t);e&&this._check(e,!0)}uncheck(t){const e=s(this.data,"value",t);e&&this._check(e,!1)}_check(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}checkAll(){this._checkAll(!0)}uncheckAll(){this._checkAll(!1)}_checkAll(t,e){for(const n of this.data)"optgroup"===n.type?this._checkGroup(n,t,!0):n.disabled||n.divider||!e&&!n.visible||(n.selected=t);e||(this.initSelected(),this.updateSelected(),this.update())}_checkGroup(t,e,n){t.selected=e,t.children.forEach((t=>{t.disabled||t.divider||!n&&!t.visible||(t.selected=e)})),n||(this.initSelected(),this.updateSelected(),this.update())}checkInvert(){if(!this.options.single){for(const t of this.data)if("optgroup"===t.type)for(const e of t.children)e.divider||(e.selected=!e.selected);else t.divider||(t.selected=!t.selected);this.initSelected(),this.updateSelected(),this.update()}}focus(){this.$choice.focus(),this.options.onFocus()}blur(){this.$choice.blur(),this.options.onBlur()}refresh(){this.destroy(),this.init()}resetFilter(){this.options.filter&&(this.$searchInput.val(""),this.filter(!0))}filter(t){const e=this.$searchInput.val().trim(),n=e.toLowerCase();if(this.filterText!==n){this.filterText=n;for(const t of this.data)if("optgroup"===t.type)if(this.options.filterGroup){const i=this.options.customFilter({label:r(t.label.toString().toLowerCase()),search:r(n),originalLabel:t.label,originalSearch:e,row:t});t.visible=i;for(const e of t.children)e.visible=i}else{for(const i of t.children)i.visible=this.options.customFilter({text:r(i.text.toString().toLowerCase()),search:r(n),originalText:i.text,originalSearch:e,row:i,parent:t});t.visible=t.children.filter((t=>t.visible)).length>0}else t.visible=this.options.customFilter({text:r(t.text.toString().toLowerCase()),search:r(n),originalText:t.text,originalSearch:e,row:t});this.initListItems(),this.initSelected(t),this.updateSelected(),t||this.options.onFilter(e)}}destroy(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}t.fn.multipleSelect=function(e,...n){let o;return this.each(((s,r)=>{const a=t(r);let l=a.data("multipleSelect");const c=t.extend({},a.data(),"object"==typeof e&&e);if(l||(l=new u(a,c),a.data("multipleSelect",l)),"string"==typeof e){if(t.inArray(e,i.METHODS)<0)throw new Error(`Unknown method: ${e}`);o=l[e](...n),"destroy"===e&&a.removeData("multipleSelect")}else l.init()})),void 0!==o?o:this},t.fn.multipleSelect.Constructor=u,t.fn.multipleSelect.defaults=i.DEFAULTS,t.fn.multipleSelect.locales=i.LOCALES,t.fn.multipleSelect.methods=i.METHODS})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";t.fn.multipleSelect.locales["de-DE"]=t.fn.multipleSelect.locales.de={formatSelectAll(){return"[Alle auswählen]"},formatAllSelected(){return"Alle ausgewählt"},formatCountSelected(t,e){return`${t} von ${e} ausgewählt`},formatNoMatchesFound(){return"Keine Treffer"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["de-DE"])})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";t.fn.multipleSelect.locales["it-IT"]=t.fn.multipleSelect.locales.it={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(t,e){return`${t} di ${e} selezionati`},formatNoMatchesFound(){return"Nessun risultato"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["it-IT"])})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";t.fn.multipleSelect.locales["fr-FR"]=t.fn.multipleSelect.locales.fr={formatSelectAll(){return"[Tout sélectionner]"},formatAllSelected(){return"Tous sélectionnés"},formatCountSelected(t,e){return`${t} de ${e} sélectionnés`},formatNoMatchesFound(){return"Aucun résultat"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["fr-FR"])})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";t.fn.multipleSelect.locales["en-US"]=t.fn.multipleSelect.locales.en={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(t,e){return`${t} of ${e} selected`},formatNoMatchesFound(){return"No matches found"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["en-US"])})),function(t,e){"function"==typeof define&&define.amd?define("sifter",e):"object"==typeof exports?module.exports=e():t.Sifter=e()}(this,(function(){var t=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};t.prototype.tokenize=function(t,e){if(!(t=o(String(t||"").toLowerCase()))||!t.length)return[];var n,i,r,l,u=[],c=t.split(/ +/);for(n=0,i=c.length;n<i;n++){if(r=s(c[n]),this.settings.diacritics)for(l in a)a.hasOwnProperty(l)&&(r=r.replace(new RegExp(l,"g"),a[l]));e&&(r="\\b"+r),u.push({string:c[n],regex:new RegExp(r,"i")})}return u},t.prototype.iterator=function(t,e){var n;n=r(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;e<n;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)},n.apply(t,[e])},t.prototype.getScoreFunction=function(t,e){var n,o,s,r;t=this.prepareSearch(t,e),o=t.tokens,n=t.options.fields,s=o.length,r=t.options.nesting;var a,l=function(t,e){var n,i;return t?-1===(i=(t=String(t||"")).search(e.regex))?0:(n=e.string.length/t.length,0===i&&(n+=.5),n):0},u=(a=n.length)?1===a?function(t,e){return l(i(e,n[0],r),t)}:function(t,e){for(var o=0,s=0;o<a;o++)s+=l(i(e,n[o],r),t);return s/a}:function(){return 0};return s?1===s?function(t){return u(o[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,i=0;n<s;n++){if((e=u(o[n],t))<=0)return 0;i+=e}return i/s}:function(t){for(var e=0,n=0;e<s;e++)n+=u(o[e],t);return n/s}:function(){return 0}},t.prototype.getSortFunction=function(t,n){var o,s,r,a,l,u,c,d,h,f,p;if(p=!(t=(r=this).prepareSearch(t,n)).query&&n.sort_empty||n.sort,h=function(t,e){return"$score"===t?e.score:i(r.items[e.id],t,n.nesting)},l=[],p)for(o=0,s=p.length;o<s;o++)(t.query||"$score"!==p[o].field)&&l.push(p[o]);if(t.query){for(f=!0,o=0,s=l.length;o<s;o++)if("$score"===l[o].field){f=!1;break}f&&l.unshift({field:"$score",direction:"desc"})}else for(o=0,s=l.length;o<s;o++)if("$score"===l[o].field){l.splice(o,1);break}for(d=[],o=0,s=l.length;o<s;o++)d.push("desc"===l[o].direction?-1:1);return(u=l.length)?1===u?(a=l[0].field,c=d[0],function(t,n){return c*e(h(a,t),h(a,n))}):function(t,n){var i,o,s;for(i=0;i<u;i++)if(s=l[i].field,o=d[i]*e(h(s,t),h(s,n)))return o;return 0}:null},t.prototype.prepareSearch=function(t,e){if("object"==typeof t)return t;var i=(e=n({},e)).fields,o=e.sort,s=e.sort_empty;return i&&!r(i)&&(e.fields=[i]),o&&!r(o)&&(e.sort=[o]),s&&!r(s)&&(e.sort_empty=[s]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t,e.respect_word_boundaries),total:0,items:[]}},t.prototype.search=function(t,e){var n,i,o,s,r=this;return i=this.prepareSearch(t,e),e=i.options,t=i.query,s=e.score||r.getScoreFunction(i),t.length?r.iterator(r.items,(function(t,o){n=s(t),(!1===e.filter||n>0)&&i.items.push({score:n,id:o})})):r.iterator(r.items,(function(t,e){i.items.push({score:1,id:e})})),(o=r.getSortFunction(i,e))&&i.items.sort(o),i.total=i.items.length,"number"==typeof e.limit&&(i.items=i.items.slice(0,e.limit)),i};var e=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=l(String(t||"")))>(e=l(String(e||"")))?1:e>t?-1:0},n=function(t,e){var n,i,o,s;for(n=1,i=arguments.length;n<i;n++)if(s=arguments[n])for(o in s)s.hasOwnProperty(o)&&(t[o]=s[o]);return t},i=function(t,e,n){if(t&&e){if(!n)return t[e];for(var i=e.split(".");i.length&&(t=t[i.shift()]););return t}},o=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},s=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},r=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},a={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},l=function(){var t,e,n,i,o="",s={};for(n in a)if(a.hasOwnProperty(n))for(o+=i=a[n].substring(2,a[n].length-1),t=0,e=i.length;t<e;t++)s[i.charAt(t)]=n;var r=new RegExp("["+o+"]","g");return function(t){return t.replace(r,(function(t){return s[t]})).toLowerCase()}}();return t})),function(t,e){"function"==typeof define&&define.amd?define("microplugin",e):"object"==typeof exports?module.exports=e():t.MicroPlugin=e()}(this,(function(){var t={mixin:function(t){t.plugins={},t.prototype.initializePlugins=function(t){var n,i,o,s=this,r=[];if(s.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(n=0,i=t.length;n<i;n++)"string"==typeof t[n]?r.push(t[n]):(s.plugins.settings[t[n].name]=t[n].options,r.push(t[n].name));else if(t)for(o in t)t.hasOwnProperty(o)&&(s.plugins.settings[o]=t[o],r.push(o));for(;r.length;)s.require(r.shift())},t.prototype.loadPlugin=function(e){var n=this,i=n.plugins,o=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');i.requested[e]=!0,i.loaded[e]=o.fn.apply(n,[n.plugins.settings[e]||{}]),i.names.push(e)},t.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},t.define=function(e,n){t.plugins[e]={name:e,fn:n}}}},e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t})),function(t,e){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery"),require("sifter"),require("microplugin")):t.Selectize=e(t.jQuery,t.Sifter,t.MicroPlugin)}(this,(function(t,e,n){"use strict";var i=function(t,e){if("string"!=typeof e||e.length){var n="string"==typeof e?new RegExp(e,"i"):e,i=function(t){var e=0;if(3===t.nodeType){var o=t.data.search(n);if(o>=0&&t.data.length>0){var s=t.data.match(n),r=document.createElement("span");r.className="highlight";var a=t.splitText(o),l=(a.splitText(s[0].length),a.cloneNode(!0));r.appendChild(l),a.parentNode.replaceChild(r,a),e=1}}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var u=0;u<t.childNodes.length;++u)u+=i(t.childNodes[u]);return e};return t.each((function(){i(this)}))}};t.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()})).end()};var o=function(){};function s(t,e){return navigator.userAgentData?t===navigator.userAgentData.platform:e.test(navigator.userAgent)}o.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},o.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=o.prototype[e[n]]};var r,a=s("macOS",/Mac/),l=a?91:17,u=a?18:17,c=!s("Android",/android/i)&&!!document.createElement("input").validity,d=function(t){return void 0!==t},h=function(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""},f=function(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},p=function(t,e,n){var i=t[e];t[e]=function(){var e=i.apply(t,arguments);return n.apply(t,arguments),e}},g=function(t,e,n){var i,o=t.trigger,s={};for(i in t.trigger=function(){var n=arguments[0];if(-1===e.indexOf(n))return o.apply(t,arguments);s[n]=arguments},n.apply(t,[]),t.trigger=o,s)s.hasOwnProperty(i)&&o.apply(t,s[i])},m=function(t){var e={};if(void 0===t)return console.warn("WARN getSelection cannot locate input control"),e;if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-t.value.length),e.start=n.text.length-i,e.length=i}return e},v=function(e,n){return e?(b.$testInput||(b.$testInput=t("<span />").css({position:"absolute",width:"auto",padding:0,whiteSpace:"pre"}),t("<div />").css({position:"absolute",width:0,height:0,overflow:"hidden"}).append(b.$testInput).appendTo("body")),b.$testInput.text(e),function(t,e,n){var i,o,s={};if(n)for(i=0,o=n.length;i<o;i++)s[n[i]]=t.css(n[i]);else s=t.css();e.css(s)}(n,b.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),b.$testInput.width()):0},b=function(n,i){var o,s,r,a,l=this;(a=n[0]).selectize=l;var u,c,d,h=window.getComputedStyle&&window.getComputedStyle(a,null);if(r=(r=h?h.getPropertyValue("direction"):a.currentStyle&&a.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",t.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===a.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(r),eventNS:".selectize"+ ++b.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",lastValidValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:(u=l.onSearchChange,c=i.loadThrottle,function(){var t=this,e=arguments;window.clearTimeout(d),d=window.setTimeout((function(){u.apply(t,e)}),c)})}),l.sifter=new e(this.options,{diacritics:i.diacritics}),l.settings.options){for(o=0,s=l.settings.options.length;o<s;o++)l.registerOption(l.settings.options[o]);delete l.settings.options}if(l.settings.optgroups){for(o=0,s=l.settings.optgroups.length;o<s;o++)l.registerOptionGroup(l.settings.optgroups[o]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return o.mixin(b),void 0!==n?n.mixin(b):((r={explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'})||(r={}),console.error("Selectize: Dependency MicroPlugin is missing"),r.explanation&&(console.group&&console.group(),console.error(r.explanation),console.group&&console.groupEnd())),t.extend(b.prototype,{setup:function(){var e,n,i,o,s,r,d,h,f,p,g,b,y=this,w=y.settings,_=y.eventNS,C=t(window),E=t(document),k=y.$input;if(d=y.settings.mode,h=k.attr("class")||"",e=t("<div>").addClass(w.wrapperClass).addClass(h).addClass(d),n=t("<div>").addClass(w.inputClass).addClass("items").appendTo(e),i=t('<input type="text" autocomplete="new-password" autofill="no" />').appendTo(n).attr("tabindex",k.is(":disabled")?"-1":y.tabIndex),r=t(w.dropdownParent||e),o=t("<div>").addClass(w.dropdownClass).addClass(d).hide().appendTo(r),s=t("<div>").addClass(w.dropdownContentClass).attr("tabindex","-1").appendTo(o),(p=k.attr("id"))&&(i.attr("id",p+"-selectized"),t("label[for='"+p+"']").attr("for",p+"-selectized")),y.settings.copyClassesToDropdown&&o.addClass(h),e.css({width:k[0].style.width}),y.plugins.names.length&&(f="plugin-"+y.plugins.names.join(" plugin-"),e.addClass(f),o.addClass(f)),(null===w.maxItems||w.maxItems>1)&&1===y.tagType&&k.attr("multiple","multiple"),y.settings.placeholder&&i.attr("placeholder",w.placeholder),!y.settings.splitOn&&y.settings.delimiter){var S=y.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");y.settings.splitOn=new RegExp("\\s*"+S+"+\\s*")}k.attr("autocorrect")&&i.attr("autocorrect",k.attr("autocorrect")),k.attr("autocapitalize")&&i.attr("autocapitalize",k.attr("autocapitalize")),k.is("input")&&(i[0].type=k[0].type),y.$wrapper=e,y.$control=n,y.$control_input=i,y.$dropdown=o,y.$dropdown_content=s,o.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(t){t.stopImmediatePropagation()})),o.on("mouseenter","[data-selectable]",(function(){return y.onOptionHover.apply(y,arguments)})),o.on("mousedown click","[data-selectable]",(function(){return y.onOptionSelect.apply(y,arguments)})),b=function(){return y.onItemSelect.apply(y,arguments)},(g=n).on("mousedown","*:not(input)",(function(t){for(var e=t.target;e&&e.parentNode!==g[0];)e=e.parentNode;return t.currentTarget=e,b.apply(this,[t])})),function(t){var e=null,n=function(n,i){var o,s,r,a,l,u,c,d,h;i=i||{},(n=n||window.event||{}).metaKey||n.altKey||(i.force||!1!==t.data("grow"))&&(o=t.val(),n.type&&"keydown"===n.type.toLowerCase()&&(r=(s=n.keyCode)>=48&&s<=57||s>=65&&s<=90||s>=96&&s<=111||s>=186&&s<=222||32===s,46===s||8===s?(h=m(t[0])).length?o=o.substring(0,h.start)+o.substring(h.start+h.length):8===s&&h.start?o=o.substring(0,h.start-1)+o.substring(h.start+1):46===s&&void 0!==h.start&&(o=o.substring(0,h.start)+o.substring(h.start+1)):r&&(c=n.shiftKey,d=String.fromCharCode(n.keyCode),o+=d=c?d.toUpperCase():d.toLowerCase())),u=(l=t.attr("placeholder"))?v(l,t)+4:0,(a=Math.max(v(o,t),u)+4)!==e&&(e=a,t.width(a),t.triggerHandler("resize")))};t.on("keydown keyup update blur",n),n()}(i),n.on({mousedown:function(){return y.onMouseDown.apply(y,arguments)},click:function(){return y.onClick.apply(y,arguments)}}),i.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return y.onKeyDown.apply(y,arguments)},keypress:function(){return y.onKeyPress.apply(y,arguments)},input:function(){return y.onInput.apply(y,arguments)},resize:function(){y.positionDropdown.apply(y,[])},blur:function(){return y.onBlur.apply(y,arguments)},focus:function(){return y.ignoreBlur=!1,y.onFocus.apply(y,arguments)},paste:function(){return y.onPaste.apply(y,arguments)}}),E.on("keydown"+_,(function(t){y.isCmdDown=t[a?"metaKey":"ctrlKey"],y.isCtrlDown=t[a?"altKey":"ctrlKey"],y.isShiftDown=t.shiftKey})),E.on("keyup"+_,(function(t){t.keyCode===u&&(y.isCtrlDown=!1),16===t.keyCode&&(y.isShiftDown=!1),t.keyCode===l&&(y.isCmdDown=!1)})),E.on("mousedown"+_,(function(t){if(y.isFocused){if(t.target===y.$dropdown[0]||t.target.parentNode===y.$dropdown[0])return!1;y.$control.has(t.target).length||t.target===y.$control[0]||y.blur(t.target)}})),C.on(["scroll"+_,"resize"+_].join(" "),(function(){y.isOpen&&y.positionDropdown.apply(y,arguments)})),C.on("mousemove"+_,(function(){y.ignoreHover=!1})),this.revertSettings={$children:k.children().detach(),tabindex:k.attr("tabindex")},k.attr("tabindex",-1).hide().after(y.$wrapper),Array.isArray(w.items)&&(y.lastValidValue=w.items,y.setValue(w.items),delete w.items),c&&k.on("invalid"+_,(function(t){t.preventDefault(),y.isInvalid=!0,y.refreshState()})),y.updateOriginalInput(),y.refreshItems(),y.refreshState(),y.updatePlaceholder(),y.isSetup=!0,k.is(":disabled")&&y.disable(),y.on("change",this.onChange),k.data("selectize",y),k.addClass("selectized"),y.trigger("initialize"),!0===w.preload&&y.onSearchChange("")},setupTemplates:function(){var e=this,n=e.settings.labelField,i=e.settings.valueField,o=e.settings.optgroupLabelField,s={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[o])+"</div>"},option:function(t,e){return'<div class="option '+(""===t[i]?"selectize-dropdown-emptyoptionlabel":"")+'">'+e(t[n])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[n])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>"}};e.settings.render=t.extend({},s,e.settings.render)},setupCallbacks:function(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur",dropdown_item_activate:"onDropdownItemActivate",dropdown_item_deactivate:"onDropdownItemDeactivate"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]])&&this.on(t,e)},onClick:function(t){var e=this;e.isFocused&&e.isOpen||(e.focus(),t.preventDefault())},onMouseDown:function(e){var n=this,i=e.isDefaultPrevented();if(t(e.target),n.isFocused){if(e.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1}else i||window.setTimeout((function(){n.focus()}),0)},onChange:function(){var t=this;""!==t.getValue()&&(t.lastValidValue=t.getValue()),this.$input.trigger("input"),this.$input.trigger("change")},onPaste:function(t){var e=this;e.isFull()||e.isInputHidden||e.isLocked?t.preventDefault():e.settings.splitOn&&setTimeout((function(){var t=e.$control_input.val();if(t.match(e.settings.splitOn))for(var n=t.trim().split(e.settings.splitOn),i=0,o=n.length;i<o;i++)e.createItem(n[i])}),0)},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){t.target,this.$control_input[0];var e=this;if(e.isLocked)9!==t.keyCode&&t.preventDefault();else{switch(t.keyCode){case 65:if(e.isCmdDown)return void e.selectAll();break;case 27:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case 78:if(!t.ctrlKey||t.altKey)break;case 40:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case 80:if(!t.ctrlKey||t.altKey)break;case 38:if(e.$activeOption){e.ignoreHover=!0;var i=e.getAdjacentOption(e.$activeOption,-1);i.length&&e.setActiveOption(i,!0,!0)}return void t.preventDefault();case 13:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case 37:return void e.advanceSelection(-1,t);case 39:return void e.advanceSelection(1,t);case 9:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&e.settings.showAddOptionOnCreate&&t.preventDefault());case 8:case 46:return void e.deleteSelection(t)}!e.isFull()&&!e.isInputHidden||(a?t.metaKey:t.ctrlKey)||t.preventDefault()}},onInput:function(t){var e=this,n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(t){var e=this,n=e.settings.load;n&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0,e.load((function(i){n.apply(e,[t,i])}))))},onFocus:function(t){var e=this,n=e.isFocused;if(e.isDisabled)return e.blur(),t&&t.preventDefault(),!1;e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())},onBlur:function(t,e){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(t);var i=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),e&&e.focus&&e.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,i):i()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(e){var n,i,o=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),(i=t(e.currentTarget)).hasClass("create")?o.createItem(null,(function(){o.settings.closeAfterSelect&&o.close()})):void 0!==(n=i.attr("data-value"))&&(o.lastQuery=null,o.setTextboxValue(""),o.addItem(n),o.settings.closeAfterSelect?o.close():!o.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&o.setActiveOption(o.getOption(n)))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},getTextboxValue:function(){return this.$control_input.val()},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){g(this,e?[]:["change"],(function(){this.clear(e),this.addItems(t,e)}))},setMaxItems:function(t){0===t&&(t=null),this.settings.maxItems=t,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),this.refreshState()},setActiveItem:function(e,n){var i,o,s,r,a,l,u,c,d=this;if("single"!==d.settings.mode){if(!(e=t(e)).length)return t(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(i=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(c=d.$control.children(".active:last"),(r=Array.prototype.indexOf.apply(d.$control[0].childNodes,[c[0]]))>(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[e[0]]))&&(u=r,r=a,a=u),o=r;o<=a;o++)l=d.$control[0].childNodes[o],-1===d.$activeItems.indexOf(l)&&(t(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()}else"mousedown"===i&&d.isCtrlDown||"keydown"===i&&this.isShiftDown?e.hasClass("active")?(s=d.$activeItems.indexOf(e[0]),d.$activeItems.splice(s,1),e.removeClass("active")):d.$activeItems.push(e.addClass("active")[0]):(t(d.$activeItems).removeClass("active"),d.$activeItems=[e.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(e,n,i){var o,s,r,a,l,u=this;u.$activeOption&&(u.$activeOption.removeClass("active"),u.trigger("dropdown_item_deactivate",u.$activeOption.attr("data-value"))),u.$activeOption=null,(e=t(e)).length&&(u.$activeOption=e.addClass("active"),u.isOpen&&u.trigger("dropdown_item_activate",u.$activeOption.attr("data-value")),!n&&d(n)||(o=u.$dropdown_content.height(),s=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,a=r=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,l=r-o+s,r+s>o+n?u.$dropdown_content.stop().animate({scrollTop:l},i?u.settings.scrollDuration:0):r<n&&u.$dropdown_content.stop().animate({scrollTop:a},i?u.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;return t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout((function(){t.ignoreFocus=!1,t.onFocus()}),0)),t},blur:function(t){return this.$control_input[0].blur(),this.onBlur(null,t),this},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}},search:function(e){var n,i,o,s=this,r=s.settings,a=this.getSearchOptions();if(r.score&&"function"!=typeof(o=s.settings.score.apply(this,[e])))throw new Error('Selectize "score" setting must be a function that returns a function');if(e!==s.lastQuery?(s.lastQuery=e,i=s.sifter.search(e,t.extend(a,{score:o})),s.currentResults=i):i=t.extend(!0,{},s.currentResults),r.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==s.items.indexOf(h(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(e){var n,o,s,r,a,l,u,c,d,f,p,g,m,v,b,y;void 0===e&&(e=!0);var w,_,C=this,E=C.$control_input.val().trim(),k=C.search(E),S=C.$dropdown_content,x=C.$activeOption&&h(C.$activeOption.attr("data-value"));for(r=k.items.length,"number"==typeof C.settings.maxOptions&&(r=Math.min(r,C.settings.maxOptions)),a={},l=[],n=0;n<r;n++)for(u=C.options[k.items[n].id],c=C.render("option",u),d=u[C.settings.optgroupField]||"",o=0,s=(f=Array.isArray(d)?d:[d])&&f.length;o<s;o++)d=f[o],C.optgroups.hasOwnProperty(d)||(d=""),a.hasOwnProperty(d)||(a[d]=document.createDocumentFragment(),l.push(d)),a[d].appendChild(c);for(this.settings.lockOptgroupOrder&&l.sort((function(t,e){return(C.optgroups[t]&&C.optgroups[t].$order||0)-(C.optgroups[e]&&C.optgroups[e].$order||0)})),p=document.createDocumentFragment(),n=0,r=l.length;n<r;n++)d=l[n],C.optgroups.hasOwnProperty(d)&&a[d].childNodes.length?((g=document.createDocumentFragment()).appendChild(C.render("optgroup_header",C.optgroups[d])),g.appendChild(a[d]),p.appendChild(C.render("optgroup",t.extend({},C.optgroups[d],{html:(w=g,_=void 0,_=document.createElement("div"),_.appendChild(w.cloneNode(!0)),_.innerHTML),dom:g})))):p.appendChild(a[d]);if(S.html(p),C.settings.highlight&&(S.removeHighlight(),k.query.length&&k.tokens.length))for(n=0,r=k.tokens.length;n<r;n++)i(S,k.tokens[n].regex);if(!C.settings.hideSelected)for(C.$dropdown.find(".selected").removeClass("selected"),n=0,r=C.items.length;n<r;n++)C.getOption(C.items[n]).addClass("selected");(m=C.canCreate(E))&&C.settings.showAddOptionOnCreate&&(S.prepend(C.render("option_create",{input:E})),y=t(S[0].childNodes[0])),C.hasOptions=k.items.length>0||m&&C.settings.showAddOptionOnCreate,C.hasOptions?(k.items.length>0?(b=x&&C.getOption(x),""!==k.query&&b&&b.length?v=b:"single"===C.settings.mode&&C.items.length&&(v=C.getOption(C.items[0])),v&&v.length||(v=y&&!C.settings.addPrecedence?C.getAdjacentOption(y,1):S.find("[data-selectable]:first"))):v=y,C.setActiveOption(v),e&&!C.isOpen&&C.open()):(C.setActiveOption(null),e&&C.isOpen&&C.close())},addOption:function(t){var e,n,i,o=this;if(Array.isArray(t))for(e=0,n=t.length;e<n;e++)o.addOption(t[e]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(t){var e=h(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=h(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(e,n){var i,o,s,r,a,l,u,c=this;if(e=h(e),s=h(n[c.settings.valueField]),null!==e&&c.options.hasOwnProperty(e)){if("string"!=typeof s)throw new Error("Value must be set in option data");u=c.options[e].$order,s!==e&&(delete c.options[e],-1!==(r=c.items.indexOf(e))&&c.items.splice(r,1,s)),n.$order=n.$order||u,c.options[s]=n,a=c.renderCache.item,l=c.renderCache.option,a&&(delete a[e],delete a[s]),l&&(delete l[e],delete l[s]),-1!==c.items.indexOf(s)&&(i=c.getItem(e),o=t(c.render("item",n)),i.hasClass("active")&&o.addClass("active"),i.replaceWith(o)),c.lastQuery=null,c.isOpen&&c.refreshOptions(!1)}},removeOption:function(t,e){var n=this;t=h(t);var i=n.renderCache.item,o=n.renderCache.option;i&&delete i[t],o&&delete o[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(e){var n=this;n.loadedSearches={},n.userOptions={},n.renderCache={};var i=n.options;t.each(n.options,(function(t,e){-1==n.items.indexOf(t)&&delete i[t]})),n.options=n.sifter.items=i,n.lastQuery=null,n.trigger("option_clear"),n.clear(e)},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getFirstOption:function(){var e=this.$dropdown.find("[data-selectable]");return e.length>0?e.eq(0):t()},getAdjacentOption:function(e,n){var i=this.$dropdown.find("[data-selectable]"),o=i.index(e)+n;return o>=0&&o<i.length?i.eq(o):t()},getElementWithValue:function(e,n){if(null!=(e=h(e)))for(var i=0,o=n.length;i<o;i++)if(n[i].getAttribute("data-value")===e)return t(n[i]);return t()},getElementWithTextContent:function(e,n,i){if(null!=(e=h(e)))for(var o=0,s=i.length;o<s;o++){var r=i[o].textContent;if(1==n&&(r=null!==r?r.toLowerCase():null,e=e.toLowerCase()),r===e)return t(i[o])}return t()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},getFirstItemMatchedByTextContent:function(t,e){return e=null!==e&&!0===e,this.getElementWithTextContent(t,e,this.$dropdown_content.find("[data-selectable]"))},addItems:function(t,e){this.buffer=document.createDocumentFragment();for(var n=this.$control[0].childNodes,i=0;i<n.length;i++)this.buffer.appendChild(n[i]);for(var o=Array.isArray(t)?t:[t],s=(i=0,o.length);i<s;i++)this.isPending=i<s-1,this.addItem(o[i],e);var r=this.$control[0];r.insertBefore(this.buffer,r.firstChild),this.buffer=null},addItem:function(e,n){g(this,n?[]:["change"],(function(){var i,o,s,r,a,l=this,u=l.settings.mode;e=h(e),-1===l.items.indexOf(e)?l.options.hasOwnProperty(e)&&("single"===u&&l.clear(n),"multi"===u&&l.isFull()||(i=t(l.render("item",l.options[e])),a=l.isFull(),l.items.splice(l.caretPos,0,e),l.insertAtCaret(i),(!l.isPending||!a&&l.isFull())&&l.refreshState(),l.isSetup&&(s=l.$dropdown_content.find("[data-selectable]"),l.isPending||(o=l.getOption(e),r=l.getAdjacentOption(o,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==u),r&&l.setActiveOption(l.getOption(r))),!s.length||l.isFull()?l.close():l.isPending||l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",e,i),l.isPending||l.updateOriginalInput({silent:n})))):"single"===u&&l.close()}))},removeItem:function(e,n){var i,o,s,r=this;i=e instanceof t?e:r.getItem(e),e=h(i.attr("data-value")),-1!==(o=r.items.indexOf(e))&&(r.trigger("item_before_remove",e,i),i.remove(),i.hasClass("active")&&(s=r.$activeItems.indexOf(i[0]),r.$activeItems.splice(s,1)),r.items.splice(o,1),r.lastQuery=null,!r.settings.persist&&r.userOptions.hasOwnProperty(e)&&r.removeOption(e,n),o<r.caretPos&&r.setCaret(r.caretPos-1),r.refreshState(),r.updatePlaceholder(),r.updateOriginalInput({silent:n}),r.positionDropdown(),r.trigger("item_remove",e,i))},createItem:function(t,e){var n=this,i=n.caretPos;t=t||(n.$control_input.val()||"").trim();var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof e&&(e=!0),!n.canCreate(t))return o(),!1;n.lock();var s,r,a="function"==typeof n.settings.create?this.settings.create:function(t){var e={};e[n.settings.labelField]=t;var i=t;if(n.settings.formatValueToKey&&"function"==typeof n.settings.formatValueToKey&&(null==(i=n.settings.formatValueToKey.apply(this,[i]))||"object"==typeof i||"function"==typeof i))throw new Error('Selectize "formatValueToKey" setting must be a function that returns a value other than object or function.');return e[n.settings.valueField]=i,e},l=(s=function(t){if(n.unlock(),!t||"object"!=typeof t)return o();var s=h(t[n.settings.valueField]);if("string"!=typeof s)return o();n.setTextboxValue(""),n.addOption(t),n.setCaret(i),n.addItem(s),n.refreshOptions(e&&"single"!==n.settings.mode),o(t)},r=!1,function(){r||(r=!0,s.apply(this,arguments))}),u=a.apply(this,[t,l]);return void 0!==u&&l(u),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var e=this,n=e.isFull(),i=e.isLocked;e.$wrapper.toggleClass("rtl",e.rtl),e.$control.toggleClass("focus",e.isFocused).toggleClass("disabled",e.isDisabled).toggleClass("required",e.isRequired).toggleClass("invalid",e.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",e.isFocused&&!e.isInputHidden).toggleClass("dropdown-active",e.isOpen).toggleClass("has-options",!t.isEmptyObject(e.options)).toggleClass("has-items",e.items.length>0),e.$control_input.data("grow",!n&&!i)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,i,o,s=this;if(t=t||{},1===s.tagType){for(i=[],e=0,n=s.items.length;e<n;e++)o=s.options[s.items[e]][s.settings.labelField]||"",i.push('<option value="'+f(s.items[e])+'" selected="selected">'+f(o)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),s.$input.html(i.join(""))}else s.$input.val(s.getValue()),s.$input.attr("value",s.$input.val());s.isSetup&&(t.silent||s.trigger("change",s.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring&&t.$control_input.blur()),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),n=t[0],i=this.buffer||this.$control[0];0===e?i.insertBefore(n,i.firstChild):i.insertBefore(n,i.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(e){var n,i,o,s,r,a,l,u,c,d=this;if(o=e&&8===e.keyCode?-1:1,s=m(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(l="string"==typeof d.settings.deselectBehavior&&"top"===d.settings.deselectBehavior?d.getFirstOption().attr("data-value"):d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),r=[],d.$activeItems.length){for(c=d.$control.children(".active:"+(o>0?"last":"first")),a=d.$control.children(":not(input)").index(c),o>0&&a++,n=0,i=d.$activeItems.length;n<i;n++)r.push(t(d.$activeItems[n]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(o<0&&0===s.start&&0===s.length?r.push(d.items[d.caretPos-1]):o>0&&s.start===d.$control_input.val().length&&r.push(d.items[d.caretPos]));if(!r.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[r]))return!1;for(void 0!==a&&d.setCaret(a);r.length;)d.removeItem(r.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),l&&(u=d.getOption(l)).length&&d.setActiveOption(u),!0},advanceSelection:function(t,e){var n,i,o,s,r,a=this;0!==t&&(a.rtl&&(t*=-1),n=t>0?"last":"first",i=m(a.$control_input[0]),a.isFocused&&!a.isInputHidden?(s=a.$control_input.val().length,(t<0?0===i.start&&0===i.length:i.start===s)&&!s&&a.advanceCaret(t,e)):(r=a.$control.children(".active:"+n)).length&&(o=a.$control.children(":not(input)").index(r),a.setActiveItem(null),a.setCaret(t>0?o+1:o)))},advanceCaret:function(t,e){var n,i,o=this;0!==t&&(n=t>0?"next":"prev",o.isShiftDown?(i=o.$control_input[n]()).length&&(o.hideInput(),o.setActiveItem(i),e&&e.preventDefault()):o.setCaret(o.caretPos+t))},setCaret:function(e){var n,i,o,s,r=this;if(e="single"===r.settings.mode?r.items.length:Math.max(0,Math.min(r.items.length,e)),!r.isPending)for(n=0,i=(o=r.$control.children(":not(input)")).length;n<i;n++)s=t(o[n]).detach(),n<e?r.$control_input.before(s):r.$control.append(s);r.caretPos=e},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var e=this,n=e.eventNS,i=e.revertSettings;e.trigger("destroy"),e.off(),e.$wrapper.remove(),e.$dropdown.remove(),e.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),e.$control_input.removeData("grow"),e.$input.removeData("selectize"),0==--b.count&&b.$testInput&&(b.$testInput.remove(),b.$testInput=void 0),t(window).off(n),t(document).off(n),t(document.body).off(n),delete e.$input[0].selectize},render:function(e,n){var i,o,s="",r=!1,a=this;return"option"!==e&&"item"!==e||(r=!!(i=h(n[a.settings.valueField]))),r&&(d(a.renderCache[e])||(a.renderCache[e]={}),a.renderCache[e].hasOwnProperty(i))?a.renderCache[e][i]:(s=t(a.settings.render[e].apply(this,[n,f])),"option"===e||"option_create"===e?n[a.settings.disabledField]||s.attr("data-selectable",""):"optgroup"===e&&(o=n[a.settings.optgroupValueField]||"",s.attr("data-group",o),n[a.settings.disabledField]&&s.attr("data-disabled","")),"option"!==e&&"item"!==e||s.attr("data-value",i||""),r&&(a.renderCache[e][i]=s[0]),s[0])},clearCache:function(t){void 0===t?this.renderCache={}:delete this.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var n=e.settings.createFilter;return t.length&&("function"!=typeof n||n.apply(e,[t]))&&("string"!=typeof n||new RegExp(n).test(t))&&(!(n instanceof RegExp)||n.test(t))}}),b.count=0,b.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,showAddOptionOnCreate:!0,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!0,preload:!1,allowEmptyOption:!1,showEmptyOptionInDropdown:!1,emptyOptionLabel:"--",closeAfterSelect:!1,scrollDuration:60,deselectBehavior:"previous",loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(e){var n=t.fn.selectize.defaults,i=t.extend({},n,e),o=i.dataAttr,s=i.labelField,r=i.valueField,a=i.disabledField,l=i.optgroupField,u=i.optgroupLabelField,c=i.optgroupValueField;return this.each((function(){if(!this.selectize){var d=t(this),f=this.tagName.toLowerCase(),p=d.attr("placeholder")||d.attr("data-placeholder");if(p||i.allowEmptyOption||(p=d.children('option[value=""]').text()),i.allowEmptyOption&&i.showEmptyOptionInDropdown&&!d.children('option[value=""]').length){var g=d.html();d.html('<option value="">'+i.emptyOptionLabel+"</option>"+g)}var m={placeholder:p,options:[],optgroups:[],items:[]};"select"===f?function(e,n){var d,f,p,g,m=n.options,v={},b=function(t){var e=o&&t.attr(o);return"string"==typeof e&&e.length?JSON.parse(e):null},y=function(e,o){e=t(e);var u=h(e.val());if(u||i.allowEmptyOption)if(v.hasOwnProperty(u)){if(o){var c=v[u][l];c?t.isArray(c)?c.push(o):v[u][l]=[c,o]:v[u][l]=o}}else{var d=b(e)||{};d[s]=d[s]||e.text(),d[r]=d[r]||u,d[a]=d[a]||e.prop("disabled"),d[l]=d[l]||o,v[u]=d,m.push(d),e.is(":selected")&&n.items.push(u)}},w=function(e){var i,o,s,r,l;for((s=(e=t(e)).attr("label"))&&((r=b(e)||{})[u]=s,r[c]=s,r[a]=e.prop("disabled"),n.optgroups.push(r)),i=0,o=(l=t("option",e)).length;i<o;i++)y(l[i],s)};for(n.maxItems=e.attr("multiple")?null:1,d=0,f=(g=e.children()).length;d<f;d++)"optgroup"===(p=g[d].tagName.toLowerCase())?w(g[d]):"option"===p&&y(g[d])}(d,m):function(e,n){var a,l,u,c,d=e.attr(o);if(d)for(n.options=JSON.parse(d),a=0,l=n.options.length;a<l;a++)n.items.push(n.options[a][r]);else{var h=t.trim(e.val()||"");if(!i.allowEmptyOption&&!h.length)return;for(a=0,l=(u=h.split(i.delimiter)).length;a<l;a++)(c={})[s]=u[a],c[r]=u[a],n.options.push(c);n.items=u}}(d,m),new b(d,t.extend(!0,{},n,m,e)).settings_user=e}}))},t.fn.selectize.defaults=b.defaults,t.fn.selectize.support={validity:c},b.define("auto_position",(function(){this.positionDropdown=function(){const t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0);const n=this.$dropdown.prop("scrollHeight")+5,i=this.$control.get(0).getBoundingClientRect().top+n+this.$wrapper.height()>window.innerHeight?"top":"bottom",o={width:t.outerWidth(),left:e.left};"top"===i?(Object.assign(o,{bottom:e.top,top:"unset",margin:"0 0 5px 0"}),this.$dropdown.addClass("selectize-position-top")):(Object.assign(o,{top:e.top,bottom:"unset",margin:"5px 0 0 0"}),this.$dropdown.removeClass("selectize-position-top")),this.$dropdown.css(o)}})),b.define("auto_select_on_type",(function(t){var e,n=this;n.onBlur=(e=n.onBlur,function(t){var i=n.getFirstItemMatchedByTextContent(n.lastValue,!0);return void 0!==i.attr("data-value")&&n.getValue()!==i.attr("data-value")&&n.setValue(i.attr("data-value")),e.apply(this,arguments)})})),b.define("autofill_disable",(function(t){var e,n=this;n.setup=(e=n.setup,function(){e.apply(n,arguments),n.$control_input.attr({autocomplete:"new-password",autofill:"no"})})})),b.define("drag_drop",(function(e){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n,i=this;i.lock=(n=i.lock,function(){var t=i.$control.data("sortable");return t&&t.disable(),n.apply(i,arguments)}),i.unlock=function(){var t=i.unlock;return function(){var e=i.$control.data("sortable");return e&&e.enable(),t.apply(i,arguments)}}(),i.setup=function(){var e=i.setup;return function(){e.apply(this,arguments);var n=i.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:i.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),n.addClass("dragging")},stop:function(){n.removeClass("dragging");var e=i.$activeItems?i.$activeItems.slice():null,o=[];n.children("[data-value]").each((function(){o.push(t(this).attr("data-value"))})),i.isFocused=!1,i.setValue(o),i.isFocused=!0,i.setActiveItem(e),i.positionDropdown()}})}}()}})),b.define("dropdown_header",(function(e){var n,i=this;e=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">×</a></div></div>'}},e),i.setup=(n=i.setup,function(){n.apply(i,arguments),i.$dropdown_header=t(e.html(e)),i.$dropdown.prepend(i.$dropdown_header)})})),b.define("optgroup_columns",(function(e){var n,i=this;e=t.extend({equalizeWidth:!0,equalizeHeight:!0},e),this.getAdjacentOption=function(e,n){var i=e.closest("[data-group]").find("[data-selectable]"),o=i.index(e)+n;return o>=0&&o<i.length?i.eq(o):t()},this.onKeyDown=(n=i.onKeyDown,function(t){var e,o,s,r;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?n.apply(this,arguments):(i.ignoreHover=!0,e=(r=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((o=(s=(r=37===t.keyCode?r.prev("[data-group]"):r.next("[data-group]")).find("[data-selectable]")).eq(Math.min(s.length-1,e))).length&&this.setActiveOption(o)))});var o=function(){var t,e=o.width,n=document;return void 0===e&&((t=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,n.body.appendChild(t),e=o.width=t.offsetWidth-t.clientWidth,n.body.removeChild(t)),e},s=function(){var n,s,r,a,l,u,c;if((s=(c=t("[data-group]",i.$dropdown_content)).length)&&i.$dropdown_content.width()){if(e.equalizeHeight){for(r=0,n=0;n<s;n++)r=Math.max(r,c.eq(n).height());c.css({height:r})}e.equalizeWidth&&(u=i.$dropdown_content.innerWidth()-o(),a=Math.round(u/s),c.css({width:a}),s>1&&(l=u-a*(s-1),c.eq(s-1).css({width:l})))}};(e.equalizeHeight||e.equalizeWidth)&&(p(this,"positionDropdown",s),p(this,"refreshOptions",s))})),b.define("remove_button",(function(e){e=t.extend({label:"×",title:"Remove",className:"remove",append:!0},e),"single"!==this.settings.mode?function(e,n){var i,o=e,s='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>";e.setup=(i=o.setup,function(){if(n.append){var r=o.settings.render.item;o.settings.render.item=function(t){return n=r.apply(e,arguments),i=s,o=n.search(/(<\/[^>]+>\s*)$/),n.substring(0,o)+i+n.substring(o);var n,i,o}}i.apply(e,arguments),e.$control.on("click","."+n.className,(function(e){if(e.preventDefault(),!o.isLocked){var n=t(e.currentTarget).parent();return o.setActiveItem(n),o.deleteSelection()&&o.setCaret(o.items.length),!1}}))})}(this,e):function(e,n){n.className="remove-single";var i,o=e,s='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>";e.setup=(i=o.setup,function(){if(n.append){var r=t(o.$input.context).attr("id"),a=(t("#"+r),o.settings.render.item);o.settings.render.item=function(n){return i=a.apply(e,arguments),o=s,t("<span>").append(i).append(o);var i,o}}i.apply(e,arguments),e.$control.on("click","."+n.className,(function(t){t.preventDefault(),o.isLocked||o.clear()}))})}(this,e)})),b.define("restore_on_backspace",(function(t){var e;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=(e=this.onKeyDown,function(n){var i,o;return 8===n.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(o=this.options[this.items[i]],this.deleteSelection(n)&&(this.setTextboxValue(t.text.apply(this,[o])),this.refreshOptions(!0)),void n.preventDefault()):e.apply(this,arguments)})})),b.define("select_on_focus",(function(t){var e,n,i=this;i.on("focus",(e=i.onFocus,function(t){var n=i.getItem(i.getValue()).text();return i.clear(),i.setTextboxValue(n),i.$control_input.select(),setTimeout((function(){i.settings.selectOnTab&&i.setActiveOption(i.getFirstItemMatchedByTextContent(n)),i.settings.score=null}),0),e.apply(this,arguments)})),i.onBlur=(n=i.onBlur,function(t){return""===i.getValue()&&i.lastValidValue!==i.getValue()&&i.setValue(i.lastValidValue),setTimeout((function(){i.settings.score=function(){return function(){return 1}}}),0),n.apply(this,arguments)}),i.settings.score=function(){return function(){return 1}}})),b.define("tag_limit",(function(e){const n=this;e.tagLimit=e.tagLimit,this.onBlur=function(){const i=n.onBlur;return function(n){if(i.apply(this,n),!n)return;const o=this.$control,s=o.find(".item"),r=e.tagLimit;void 0===r||s.length<=r||(s.toArray().forEach((function(e,n){n<r||t(e).hide()})),o.append("<span><b>"+(s.length-r)+"</b></span>"))}}(),this.onFocus=function(){const t=n.onFocus;return function(e){if(t.apply(this,e),!e)return;const n=this.$control;n.find(".item").show(),n.find("span").remove()}}()})),b})),function(t){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=t(),module.exports.introJs=function(){return console.warn('Deprecated: please use require("intro.js") directly, instead of the introJs method of the function'),t().apply(this,arguments)}):"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).introJs=t()}((function(){function t(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function e(t,e){var s=t.querySelectorAll("*[data-intro]"),r=[];if(this._options.steps)C(this._options.steps,function(t){var e=o(t);if(e.step=r.length+1,"string"==typeof e.element&&(e.element=document.querySelector(e.element)),void 0===e.element||null===e.element){var n=document.querySelector(".introjsFloatingElement");null===n&&((n=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(n)),e.element=n,e.position="floating"}e.scrollTo=e.scrollTo||this._options.scrollTo,void 0===e.disableInteraction&&(e.disableInteraction=this._options.disableInteraction),null!==e.element&&r.push(e)}.bind(this));else{var l;if(s.length<1)return!1;C(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&"none"!==t.style.display){var n=parseInt(t.getAttribute("data-step"),10);l=void 0!==t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,n>0&&(r[n-1]={element:t,intro:t.getAttribute("data-intro"),step:parseInt(t.getAttribute("data-step"),10),tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l})}}.bind(this));var u=0;C(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&null===t.getAttribute("data-step")){for(;void 0!==r[u];)u++;l=void 0!==t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,r[u]={element:t,intro:t.getAttribute("data-intro"),step:u+1,tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l}}}.bind(this))}for(var c=[],d=0;d<r.length;d++)r[d]&&c.push(r[d]);return(r=c).sort((function(t,e){return t.step-e.step})),this._introItems=r,D.call(this,t)&&(a.call(this),this._options.keyboardNavigation&&S.on(window,"keydown",i,this,!0),S.on(window,"resize",n,this,!0)),!1}function n(){this.refresh.call(this)}function i(t){var e=null===t.code?t.which:t.code;if(null===e&&(e=null===t.charCode?t.keyCode:t.charCode),"Escape"!==e&&27!==e||!0!==this._options.exitOnEsc){if("ArrowLeft"===e||37===e)l.call(this);else if("ArrowRight"===e||39===e)a.call(this);else if("Enter"===e||13===e){var n=t.target||t.srcElement;n&&n.className.match("introjs-prevbutton")?l.call(this):n&&n.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),c.call(this,this._targetElement)):n&&n.getAttribute("data-stepnumber")?n.click():a.call(this),t.preventDefault?t.preventDefault():t.returnValue=!1}}else c.call(this,this._targetElement)}function o(t){if(null===t||"object"!=typeof t||void 0!==t.nodeType)return t;var e={};for(var n in t)void 0!==window.jQuery&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=o(t[n]);return e}function s(t){this._currentStep=t-2,void 0!==this._introItems&&a.call(this)}function r(t){this._currentStepNumber=t,void 0!==this._introItems&&a.call(this)}function a(){this._direction="forward",void 0!==this._currentStepNumber&&C(this._introItems,function(t,e){t.step===this._currentStepNumber&&(this._currentStep=e-1,this._currentStepNumber=void 0)}.bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var t=this._introItems[this._currentStep],e=!0;return void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void c.call(this,this._targetElement)):void y.call(this,t)}function l(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var t=this._introItems[this._currentStep],e=!0;if(void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e)return++this._currentStep,!1;y.call(this,t)}function u(){if(m.call(this,document.querySelector(".introjs-helperLayer")),m.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),m.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var t=document.querySelector(".introjs-helperNumberLayer"),e=document.querySelector(".introjs-arrow"),n=document.querySelector(".introjs-tooltip");d.call(this,this._introItems[this._currentStep].element,n,e,t)}return N.call(this),this}function c(t,e){var o=!0;if(void 0!==this._introBeforeExitCallback&&(o=this._introBeforeExitCallback.call(this)),e||!1!==o){var s=t.querySelectorAll(".introjs-overlay");s&&s.length&&C(s,function(t){t.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(t),500)}.bind(this));var r=t.querySelector(".introjs-helperLayer");r&&r.parentNode.removeChild(r);var a=t.querySelector(".introjs-tooltipReferenceLayer");a&&a.parentNode.removeChild(a);var l=t.querySelector(".introjs-disableInteraction");l&&l.parentNode.removeChild(l);var u=document.querySelector(".introjsFloatingElement");u&&u.parentNode.removeChild(u),_(),C(document.querySelectorAll(".introjs-fixParent"),(function(t){A(t,/introjs-fixParent/g)})),S.off(window,"keydown",i,this,!0),S.off(window,"resize",n,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function d(t,e,n,i,o){var s,r,a,l,u,c="";if(o=o||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit",null!=i&&(i.style.top=null,i.style.left=null),this._introItems[this._currentStep])switch(c="string"==typeof(s=this._introItems[this._currentStep]).tooltipClass?s.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+c).replace(/^\s+|\s+$/g,""),e.setAttribute("role","dialog"),"floating"!==(u=this._introItems[this._currentStep].position)&&(u=p.call(this,t,e,u)),a=V(t),r=V(e),l=$(),x(e,"introjs-"+u),u){case"top-right-aligned":n.className="introjs-arrow bottom-right";var d=0;f(a,d,r,e),e.style.bottom=a.height+20+"px";break;case"top-middle-aligned":n.className="introjs-arrow bottom-middle";var g=a.width/2-r.width/2;o&&(g+=5),f(a,g,r,e)&&(e.style.right=null,h(a,g,r,l,e)),e.style.bottom=a.height+20+"px";break;case"top-left-aligned":case"top":n.className="introjs-arrow bottom",h(a,o?0:15,r,l,e),e.style.bottom=a.height+20+"px";break;case"right":e.style.left=a.width+20+"px",a.top+r.height>l.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(r.height-a.height-20)+"px"):n.className="introjs-arrow left";break;case"left":o||!0!==this._options.showStepNumbers||(e.style.top="15px"),a.top+r.height>l.height?(e.style.top="-"+(r.height-a.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=a.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+r.width/2+"px",e.style.marginTop="-"+r.height/2+"px",null!=i&&(i.style.left="-"+(r.width/2+18)+"px",i.style.top="-"+(r.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",f(a,d=0,r,e),e.style.top=a.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",g=a.width/2-r.width/2,o&&(g+=5),f(a,g,r,e)&&(e.style.right=null,h(a,g,r,l,e)),e.style.top=a.height+20+"px";break;default:n.className="introjs-arrow top",h(a,0,r,l,e),e.style.top=a.height+20+"px"}}function h(t,e,n,i,o){return t.left+e+n.width>i.width?(o.style.left=i.width-n.width-t.left+"px",!1):(o.style.left=e+"px",!0)}function f(t,e,n,i){return t.left+t.width-e-n.width<0?(i.style.left=-t.left+"px",!1):(i.style.right=e+"px",!0)}function p(t,e,n){var i=this._options.positionPrecedence.slice(),o=$(),s=V(e).height+10,r=V(e).width+20,a=t.getBoundingClientRect(),l="floating";a.bottom+s+s>o.height&&g(i,"bottom"),a.top-s<0&&g(i,"top"),a.right+r>o.width&&g(i,"right"),a.left-r<0&&g(i,"left");var u,c,d=-1!==(c=(u=n||"").indexOf("-"))?u.substr(c):"";return n&&(n=n.split("-")[0]),i.length&&(l="auto"!==n&&i.indexOf(n)>-1?n:i[0]),-1!==["top","bottom"].indexOf(l)&&(l+=function(t,e,n,i){var o=e/2,s=Math.min(n.width,window.screen.width),r=["-left-aligned","-middle-aligned","-right-aligned"];return s-t<e&&g(r,"-left-aligned"),(t<o||s-t<o)&&g(r,"-middle-aligned"),t<e&&g(r,"-right-aligned"),r.length?-1!==r.indexOf(i)?i:r[0]:"-middle-aligned"}(a.left,r,o,d)),l}function g(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function m(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=V(e.element),i=this._options.helperElementPadding;O(e.element)?x(t,"introjs-fixedTooltip"):A(t,"introjs-fixedTooltip"),"floating"===e.position&&(i=0),t.style.cssText="width: "+(n.width+i)+"px; height:"+(n.height+i)+"px; top:"+(n.top-i/2)+"px;left: "+(n.left-i/2)+"px;"}}function v(){var t=document.querySelector(".introjs-disableInteraction");null===t&&((t=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(t)),m.call(this,t)}function b(t){t.setAttribute("role","button"),t.tabIndex=0}function y(t){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e,n,i,o,s=this,r=document.querySelector(".introjs-helperLayer"),u=document.querySelector(".introjs-tooltipReferenceLayer"),h="introjs-helperLayer";if("string"==typeof t.highlightClass&&(h+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(h+=" "+this._options.highlightClass),null!==r){var f=u.querySelector(".introjs-helperNumberLayer"),p=u.querySelector(".introjs-tooltiptext"),g=u.querySelector(".introjs-arrow"),y=u.querySelector(".introjs-tooltip");if(i=u.querySelector(".introjs-skipbutton"),n=u.querySelector(".introjs-prevbutton"),e=u.querySelector(".introjs-nextbutton"),r.className=h,y.style.opacity=0,y.style.display="none",null!==f){var E=this._introItems[t.step-2>=0?t.step-2:0];(null!==E&&"forward"===this._direction&&"floating"===E.position||"backward"===this._direction&&"floating"===t.position)&&(f.style.opacity=0)}(o=U(t.element))!==document.body&&Q(o,t.element),m.call(s,r),m.call(s,u),C(document.querySelectorAll(".introjs-fixParent"),(function(t){A(t,/introjs-fixParent/g)})),_(),s._lastShowElementTimer&&window.clearTimeout(s._lastShowElementTimer),s._lastShowElementTimer=window.setTimeout((function(){null!==f&&(f.innerHTML=t.step),p.innerHTML=t.intro,y.style.display="block",d.call(s,t.element,y,g,f),s._options.showBullets&&(u.querySelector(".introjs-bullets li > a.active").className="",u.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active"),u.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+K.call(s)+"%;",u.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",K.call(s)),y.style.opacity=1,f&&(f.style.opacity=1),null!=i&&/introjs-donebutton/gi.test(i.className)?i.focus():null!=e&&e.focus(),w.call(s,t.scrollTo,t,p)}),350)}else{var k=document.createElement("div"),S=document.createElement("div"),O=document.createElement("div"),$=document.createElement("div"),D=document.createElement("div"),F=document.createElement("div"),I=document.createElement("div"),N=document.createElement("div");k.className=h,S.className="introjs-tooltipReferenceLayer",(o=U(t.element))!==document.body&&Q(o,t.element),m.call(s,k),m.call(s,S),this._targetElement.appendChild(k),this._targetElement.appendChild(S),O.className="introjs-arrow",D.className="introjs-tooltiptext",D.innerHTML=t.intro,F.className="introjs-bullets",!1===this._options.showBullets&&(F.style.display="none");var j=document.createElement("ul");j.setAttribute("role","tablist");var L=function(){s.goToStep(this.getAttribute("data-stepnumber"))};C(this._introItems,(function(e,n){var i=document.createElement("li"),o=document.createElement("a");i.setAttribute("role","presentation"),o.setAttribute("role","tab"),o.onclick=L,n===t.step-1&&(o.className="active"),b(o),o.innerHTML=" ",o.setAttribute("data-stepnumber",e.step),i.appendChild(o),j.appendChild(i)})),F.appendChild(j),I.className="introjs-progress",!1===this._options.showProgress&&(I.style.display="none");var P=document.createElement("div");P.className="introjs-progressbar",P.setAttribute("role","progress"),P.setAttribute("aria-valuemin",0),P.setAttribute("aria-valuemax",100),P.setAttribute("aria-valuenow",K.call(this)),P.style.cssText="width:"+K.call(this)+"%;",I.appendChild(P),N.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(N.style.display="none"),$.className="introjs-tooltip",$.appendChild(D),$.appendChild(F),$.appendChild(I);var B=document.createElement("span");!0===this._options.showStepNumbers&&(B.className="introjs-helperNumberLayer",B.innerHTML=t.step,S.appendChild(B)),$.appendChild(O),S.appendChild($),(e=document.createElement("a")).onclick=function(){s._introItems.length-1!==s._currentStep&&a.call(s)},b(e),e.innerHTML=this._options.nextLabel,(n=document.createElement("a")).onclick=function(){0!==s._currentStep&&l.call(s)},b(n),n.innerHTML=this._options.prevLabel,(i=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",b(i),i.innerHTML=this._options.skipLabel,i.onclick=function(){s._introItems.length-1===s._currentStep&&"function"==typeof s._introCompleteCallback&&s._introCompleteCallback.call(s),s._introItems.length-1!==s._currentStep&&"function"==typeof s._introExitCallback&&s._introExitCallback.call(s),"function"==typeof s._introSkipCallback&&s._introSkipCallback.call(s),c.call(s,s._targetElement)},N.appendChild(i),this._introItems.length>1&&(N.appendChild(n),N.appendChild(e)),$.appendChild(N),d.call(s,t.element,$,O,B),w.call(this,t.scrollTo,t,$)}var M=s._targetElement.querySelector(".introjs-disableInteraction");M&&M.parentNode.removeChild(M),t.disableInteraction&&v.call(s),0===this._currentStep&&this._introItems.length>1?(null!=i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),null!=e&&x(e,"introjs-fullbutton")):null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),null!=i&&(i.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=i&&(i.innerHTML=this._options.doneLabel,x(i,"introjs-donebutton")),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),null!=n&&x(n,"introjs-fullbutton")):null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(null!=i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),null!=i&&(i.innerHTML=this._options.skipLabel)),n.setAttribute("role","button"),e.setAttribute("role","button"),i.setAttribute("role","button"),null!=e&&e.focus(),function(t){var e;if(t.element instanceof SVGElement)for(e=t.element.parentNode;null!==t.element.parentNode&&e.tagName&&"body"!==e.tagName.toLowerCase();)"svg"===e.tagName.toLowerCase()&&x(e,"introjs-showElement introjs-relativePosition"),e=e.parentNode;x(t.element,"introjs-showElement");var n=T(t.element,"position");for("absolute"!==n&&"relative"!==n&&"fixed"!==n&&x(t.element,"introjs-relativePosition"),e=t.element.parentNode;null!==e&&e.tagName&&"body"!==e.tagName.toLowerCase();){var i=T(e,"z-index"),o=parseFloat(T(e,"opacity")),s=T(e,"transform")||T(e,"-webkit-transform")||T(e,"-moz-transform")||T(e,"-ms-transform")||T(e,"-o-transform");(/[0-9]+/.test(i)||o<1||"none"!==s&&void 0!==s)&&x(e,"introjs-fixParent"),e=e.parentNode}}(t),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function w(t,e,n){var i;if("off"!==t&&this._options.scrollToElement&&(i="tooltip"===t?n.getBoundingClientRect():e.element.getBoundingClientRect(),!function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}(e.element))){var o=$().height;i.bottom-(i.bottom-i.top)<0||e.element.clientHeight>o?window.scrollBy(0,i.top-(o/2-i.height/2)-this._options.scrollPadding):window.scrollBy(0,i.top-(o/2-i.height/2)+this._options.scrollPadding)}}function _(){C(document.querySelectorAll(".introjs-showElement"),(function(t){A(t,/introjs-[a-zA-Z]+/g)}))}function C(t,e,n){if(t)for(var i=0,o=t.length;i<o;i++)e(t[i],i);"function"==typeof n&&n()}var E,k=(E={},function(t,e){return E[e=e||"introjs-stamp"]=E[e]||0,void 0===t[e]&&(t[e]=E[e]++),t[e]}),S=new function(){var t="introjs_event";this._id=function(t,e,n,i){return e+k(n)+(i?"_"+k(i):"")},this.on=function(e,n,i,o,s){var r=this._id.apply(this,arguments),a=function(t){return i.call(o||e,t||window.event)};"addEventListener"in e?e.addEventListener(n,a,s):"attachEvent"in e&&e.attachEvent("on"+n,a),e[t]=e[t]||{},e[t][r]=a},this.off=function(e,n,i,o,s){var r=this._id.apply(this,arguments),a=e[t]&&e[t][r];a&&("removeEventListener"in e?e.removeEventListener(n,a,s):"detachEvent"in e&&e.detachEvent("on"+n,a),e[t][r]=null)}};function x(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n+" "+e)}else void 0!==t.classList?C(e.split(" "),(function(e){t.classList.add(e)})):t.className.match(e)||(t.className+=" "+e)}function A(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function T(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function O(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===T(t,"position")||O(e))}function $(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function D(t){var e=document.createElement("div"),n="",i=this;if(e.className="introjs-overlay",t.tagName&&"body"!==t.tagName.toLowerCase()){var o=V(t);o&&(n+="width: "+o.width+"px; height:"+o.height+"px; top:"+o.top+"px;left: "+o.left+"px;",e.style.cssText=n)}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.style.cssText=n;return t.appendChild(e),e.onclick=function(){!0===i._options.exitOnOverlayClick&&c.call(i,t)},window.setTimeout((function(){n+="opacity: "+i._options.overlayOpacity.toString()+";",e.style.cssText=n}),10),!0}function F(){var t=document.querySelector(".introjs-hintReference");if(t){var e=t.getAttribute("data-step");return t.parentNode.removeChild(t),e}}function I(t){if(this._introItems=[],this._options.hints)C(this._options.hints,function(t){var e=o(t);"string"==typeof e.element&&(e.element=document.querySelector(e.element)),e.hintPosition=e.hintPosition||this._options.hintPosition,e.hintAnimation=e.hintAnimation||this._options.hintAnimation,null!==e.element&&this._introItems.push(e)}.bind(this));else{var e=t.querySelectorAll("*[data-hint]");if(!e||!e.length)return!1;C(e,function(t){var e=t.getAttribute("data-hintanimation");e=e?"true"===e:this._options.hintAnimation,this._introItems.push({element:t,hint:t.getAttribute("data-hint"),hintPosition:t.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:e,tooltipClass:t.getAttribute("data-tooltipclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}q.call(this),S.on(document,"click",F,this,!1),S.on(window,"resize",N,this,!0)}function N(){C(this._introItems,function(t){void 0!==t.targetElement&&z.call(this,t.hintPosition,t.element,t.targetElement)}.bind(this))}function j(t){var e=document.querySelector(".introjs-hints");return e?e.querySelectorAll(t):[]}function L(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];F.call(this),e&&x(e,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,t)}function P(){C(j(".introjs-hint"),function(t){L.call(this,t.getAttribute("data-step"))}.bind(this))}function B(){var t=j(".introjs-hint");t&&t.length?C(t,function(t){M.call(this,t.getAttribute("data-step"))}.bind(this)):I.call(this,this._targetElement)}function M(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];e&&A(e,/introjs-hidehint/g)}function R(){C(j(".introjs-hint"),function(t){H.call(this,t.getAttribute("data-step"))}.bind(this))}function H(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];e&&e.parentNode.removeChild(e)}function q(){var t=this,e=document.querySelector(".introjs-hints");null===e&&((e=document.createElement("div")).className="introjs-hints"),C(this._introItems,function(n,i){if(!document.querySelector('.introjs-hint[data-step="'+i+'"]')){var o=document.createElement("a");b(o),o.onclick=function(e){return function(n){var i=n||window.event;i.stopPropagation&&i.stopPropagation(),null!==i.cancelBubble&&(i.cancelBubble=!0),W.call(t,e)}}(i),o.className="introjs-hint",n.hintAnimation||x(o,"introjs-hint-no-anim"),O(n.element)&&x(o,"introjs-fixedhint");var s=document.createElement("div");s.className="introjs-hint-dot";var r=document.createElement("div");r.className="introjs-hint-pulse",o.appendChild(s),o.appendChild(r),o.setAttribute("data-step",i),n.targetElement=n.element,n.element=o,z.call(this,n.hintPosition,o,n.targetElement),e.appendChild(o)}}.bind(this)),document.body.appendChild(e),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function z(t,e,n){var i=V.call(this,n),o=20,s=20;switch(t){default:case"top-left":e.style.left=i.left+"px",e.style.top=i.top+"px";break;case"top-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+"px";break;case"bottom-left":e.style.left=i.left+"px",e.style.top=i.top+i.height-s+"px";break;case"bottom-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+i.height-s+"px";break;case"middle-left":e.style.left=i.left+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"middle-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"middle-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"bottom-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+i.height-s+"px";break;case"top-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+"px"}}function W(t){var e=document.querySelector('.introjs-hint[data-step="'+t+'"]'),n=this._introItems[t];void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,e,n,t);var i=F.call(this);if(parseInt(i,10)!==t){var o=document.createElement("div"),s=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div");o.className="introjs-tooltip",o.onclick=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},s.className="introjs-tooltiptext";var l=document.createElement("p");l.innerHTML=n.hint;var u=document.createElement("a");u.className=this._options.buttonClass,u.setAttribute("role","button"),u.innerHTML=this._options.hintButtonLabel,u.onclick=L.bind(this,t),s.appendChild(l),s.appendChild(u),r.className="introjs-arrow",o.appendChild(r),o.appendChild(s),this._currentStep=e.getAttribute("data-step"),a.className="introjs-tooltipReferenceLayer introjs-hintReference",a.setAttribute("data-step",e.getAttribute("data-step")),m.call(this,a),a.appendChild(o),document.body.appendChild(a),d.call(this,e,o,r,null,!0)}}function V(t){var e=document.body,n=document.documentElement,i=window.pageYOffset||n.scrollTop||e.scrollTop,o=window.pageXOffset||n.scrollLeft||e.scrollLeft,s=t.getBoundingClientRect();return{top:s.top+i,width:s.width,height:s.height,left:s.left+o}}function U(t){var e=window.getComputedStyle(t),n="absolute"===e.position,i=/(auto|scroll)/;if("fixed"===e.position)return document.body;for(var o=t;o=o.parentElement;)if(e=window.getComputedStyle(o),(!n||"static"!==e.position)&&i.test(e.overflow+e.overflowY+e.overflowX))return o;return document.body}function Q(t,e){t.scrollTop=e.offsetTop-t.offsetTop}function K(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}var Y=function(e){var n;if("object"==typeof e)n=new t(e);else if("string"==typeof e){var i=document.querySelector(e);if(!i)throw new Error("There is no element with given selector.");n=new t(i)}else n=new t(document.body);return Y.instances[k(n,"introjs-instance")]=n,n};return Y.version="2.9.3",Y.instances={},Y.fn=t.prototype={clone:function(){return new t(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=function(t,e){var n,i={};for(n in t)i[n]=t[n];for(n in e)i[n]=e[n];return i}(this._options,t),this},start:function(t){return e.call(this,this._targetElement,t),this},goToStep:function(t){return s.call(this,t),this},addStep:function(t){return this._options.steps||(this._options.steps=[]),this._options.steps.push(t),this},addSteps:function(t){if(t.length){for(var e=0;e<t.length;e++)this.addStep(t[e]);return this}},goToStepNumber:function(t){return r.call(this,t),this},nextStep:function(){return a.call(this),this},previousStep:function(){return l.call(this),this},exit:function(t){return c.call(this,this._targetElement,t),this},refresh:function(){return u.call(this),this},onbeforechange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onhintsadded:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=t,this},onhintclick:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=t,this},onhintclose:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=t,this},onexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this},onskip:function(t){if("function"!=typeof t)throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=t,this},onbeforeexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=t,this},addHints:function(){return I.call(this,this._targetElement),this},hideHint:function(t){return L.call(this,t),this},hideHints:function(){return P.call(this),this},showHint:function(t){return M.call(this,t),this},showHints:function(){return B.call(this),this},removeHints:function(){return R.call(this),this},removeHint:function(t){return H.call(this,t),this},showHintDialog:function(t){return W.call(this,t),this}},Y})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}((function(t){var e,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(t.event.fixHooks)for(var r=i.length;r;)t.event.fixHooks[i[--r]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,r=i||window.event,l=s.call(arguments,1),d=0,h=0,f=0,p=0,g=0;if((i=t.event.fix(r)).type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(h=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(h=-1*f,f=0),d=0===f?h:f,"deltaY"in r&&(d=f=-1*r.deltaY),"deltaX"in r&&(h=r.deltaX,0===f&&(d=-1*h)),0!==f||0!==h){if(1===r.deltaMode){var m=t.data(this,"mousewheel-line-height");d*=m,f*=m,h*=m}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");d*=v,f*=v,h*=v}if(o=Math.max(Math.abs(f),Math.abs(h)),(!n||o<n)&&(n=o,c(r,o)&&(n/=40)),c(r,o)&&(d/=40,h/=40,f/=40),d=Math[d>=1?"floor":"ceil"](d/n),h=Math[h>=1?"floor":"ceil"](h/n),f=Math[f>=1?"floor":"ceil"](f/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var b=this.getBoundingClientRect();p=i.clientX-b.left,g=i.clientY-b.top}return i.deltaX=h,i.deltaY=f,i.deltaFactor=n,i.offsetX=p,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,h,f),e&&clearTimeout(e),e=setTimeout(u,200),(t.event.dispatch||t.event.handle).apply(this,l)}}function u(){n=null}function c(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})),function(t){if(!t.hasInitialised){var e={escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(t,e){var n=" ";return 1===t.nodeType&&(n+t.className+n).replace(/[\n\t]/g,n).indexOf(n+e+n)>=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var n=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(n,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,(function(t){return e(arguments[1])||""}))},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return e.length<2?void 0:e.pop().split(";").shift()},setCookie:function(t,e,n,i,o,s){var r=new Date;r.setHours(r.getHours()+24*(n||365));var a=[t+"="+e,"expires="+r.toUTCString(),"path="+(o||"/")];i&&a.push("domain="+i),s&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(n in t&&this.isPlainObject(t[n])&&this.isPlainObject(e[n])?this.deepExtend(t[n],e[n]):t[n]=e[n]);return t},throttle:function(t,e){var n=!1;return function(){n||(t.apply(this,arguments),n=!0,setTimeout((function(){n=!1}),e))}},hash:function(t){var e,n,i=0;if(0===t.length)return i;for(e=0,n=t.length;e<n;++e)i=(i<<5)-i+t.charCodeAt(e),i|=0;return i},normaliseHex:function(t){return"#"==t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t},getContrast:function(t){return t=this.normaliseHex(t),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),n=38+(e>>16),i=38+(e>>8&255),o=38+(255&e);return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(i<255?i<1?0:i:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object},traverseDOMPath:function(t,n){return t&&t.parentNode?e.hasClass(t,n)?t:this.traverseDOMPath(t.parentNode,n):null}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n+"ransition"])return e[n];return""}(),t.hasTransition=!!t.transitionEnd;var n=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){var i={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},onNoCookieLaw:function(t,e){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function o(){this.initialise.apply(this,arguments)}function s(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function r(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var t=this.options.position.split("-"),e=[];return t.forEach((function(t){e.push("cc-"+t)})),e}function l(i){var o=this.options,s=document.createElement("div"),r=o.container&&1===o.container.nodeType?o.container:document.body;s.innerHTML=i;var a=s.children[0];return a.style.display="none",e.hasClass(a,"cc-window")&&t.hasTransition&&e.addClass(a,"cc-invisible"),this.onButtonClick=function(i){var o=e.traverseDOMPath(i.target,"cc-btn")||i.target;if(e.hasClass(o,"cc-btn")){var s=o.className.match(new RegExp("\\bcc-("+n.join("|")+")\\b")),r=s&&s[1]||!1;r&&(this.setStatus(r),this.close(!0))}e.hasClass(o,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(o,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),o.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function u(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}function c(t,e){for(var n=0,i=t.length;n<i;++n){var o=t[n];if(o instanceof RegExp&&o.test(e)||"string"==typeof o&&o.length&&o===e)return!0}return!1}return o.prototype.initialise=function(n){this.options&&this.destroy(),e.deepExtend(this.options={},i),e.isPlainObject(n)&&e.deepExtend(this.options,n),function(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(t.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(t.status.allow),!0;var n=Object.keys(t.status),i=this.getStatus(),o=n.indexOf(i)>=0;return o&&e(i),o}.call(this)&&(this.options.enabled=!1),c(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),c(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var o=this.options.window.replace("{{classes}}",function(){var n=this.options,i="top"==n.position||"bottom"==n.position?"banner":"floating";e.isMobile()&&(i="floating");var o=["cc-"+i,"cc-type-"+n.type,"cc-theme-"+n.theme];return n.static&&o.push("cc-static"),o.push.apply(o,a.call(this)),function(n){var i=e.hash(JSON.stringify(n)),o="cc-color-override-"+i,s=e.isPlainObject(n);return this.customStyleSelector=s?o:null,s&&function(n,i,o){if(t.customStyles[n])++t.customStyles[n].references;else{var s={},r=i.popup,a=i.button,l=i.highlight;r&&(r.text=r.text?r.text:e.getContrast(r.background),r.link=r.link?r.link:r.text,s[o+".cc-window"]=["color: "+r.text,"background-color: "+r.background],s[o+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],s[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:e.getContrast(a.background),a.border=a.border?a.border:"transparent",s[o+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&s[o+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(s[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["background-color: "+(a.hover||u(a.background))]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var c=document.createElement("style");document.head.appendChild(c),t.customStyles[n]={references:1,element:c.sheet};var d=-1;for(var h in s)s.hasOwnProperty(h)&&c.sheet.insertRule(h+"{"+s[h].join(";")+"}",++d)}}(i,n,"."+o),s}.call(this,this.options.palette),this.customStyleSelector&&o.push(this.customStyleSelector),o}.call(this).join(" ")).replace("{{children}}",function(){var t={},n=this.options;n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach((function(i){t[i]=e.interpolateString(n.elements[i],(function(t){var e=n.content[t];return t&&"string"==typeof e&&e.length?e:""}))}));var i=n.compliance[n.type];i||(i=n.compliance.info),t.compliance=e.interpolateString(i,(function(e){return t[e]}));var o=n.layouts[n.layout];return o||(o=n.layouts.basic),e.interpolateString(o,(function(e){return t[e]}))}.call(this)),s=this.options.overrideHTML;if("string"==typeof s&&s.length&&(o=s),this.options.static){var r=l.call(this,'<div class="cc-grower">'+o+"</div>");r.style.display="",this.element=r.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=l.call(this,o);(function(){var n=this.setStatus.bind(this),i=this.close.bind(this),o=this.options.dismissOnTimeout;"number"==typeof o&&o>=0&&(this.dismissTimeout=window.setTimeout((function(){n(t.status.dismiss),i(!0)}),Math.floor(o)));var s=this.options.dismissOnScroll;if("number"==typeof s&&s>=0){var r=function(e){window.pageYOffset>Math.floor(s)&&(n(t.status.dismiss),i(!0),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r))}var a=this.options.dismissOnWindowClick,l=this.options.ignoreClicksFrom;if(a){var u=function(o){for(var s=!1,r=o.path.length,a=l.length,c=0;c<r;c++)if(!s)for(var d=0;d<a;d++)s||(s=e.hasClass(o.path[c],l[d]));s||(n(t.status.dismiss),i(!0),window.removeEventListener("click",u),window.removeEventListener("touchend",u),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=u,window.addEventListener("click",u),window.addEventListener("touchend",u))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),e.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var t=a.call(this);this.options.animateRevokable&&t.push("cc-animate"),this.customStyleSelector&&t.push(this.customStyleSelector);var n=this.options.revokeBtn.replace("{{classes}}",t.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=l.call(this,n);var i=this.revokeBtn;if(this.options.animateRevokable){var o=e.throttle((function(t){var n=!1,o=window.innerHeight-20;e.hasClass(i,"cc-top")&&t.clientY<20&&(n=!0),e.hasClass(i,"cc-bottom")&&t.clientY>o&&(n=!0),n?e.hasClass(i,"cc-active")||e.addClass(i,"cc-active"):e.hasClass(i,"cc-active")&&e.removeClass(i,"cc-active")}),200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}.call(this),this.options.autoOpen&&this.autoOpen()},o.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(n){if(e.isPlainObject(n)){var i=e.hash(JSON.stringify(n)),o=t.customStyles[i];if(o&&! --o.references){var s=o.element.ownerNode;s&&s.parentNode&&s.parentNode.removeChild(s),t.customStyles[i]=null}}}(this.options.palette),this.options=null},o.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},o.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},o.prototype.fadeIn=function(){var n=this.element;if(t.hasTransition&&n&&(this.afterTransition&&r.call(this,n),e.hasClass(n,"cc-invisible"))){if(n.style.display="",this.options.static){var i=this.element.clientHeight;this.element.parentNode.style.maxHeight=i+"px"}this.openingTimeout=setTimeout(s.bind(this,n),20)}},o.prototype.fadeOut=function(){var n=this.element;t.hasTransition&&n&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),s.bind(this,n)),e.hasClass(n,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,n),n.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(n,"cc-invisible")))},o.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},o.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},o.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},o.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},o.prototype.hasConsented=function(e){var n=this.getStatus();return n==t.status.allow||n==t.status.dismiss},o.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},o.prototype.setStatus=function(n){var i=this.options.cookie,o=e.getCookie(i.name),s=Object.keys(t.status).indexOf(o)>=0;Object.keys(t.status).indexOf(n)>=0?(e.setCookie(i.name,n,i.expiryDays,i.domain,i.path,i.secure),this.options.onStatusChange.call(this,n,s)):this.clearStatus()},o.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},o.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},o}(),t.Location=function(){var t={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var n=JSON.parse(e);return n.error?s(n):{code:n.country}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var n=JSON.parse(e);return"ERROR"==n.statusCode?s({error:n.statusMessage}):{code:n.countryCode}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){window.geoip2?geoip2.country((function(e){try{t({code:e.country.iso_code})}catch(e){t(s(e))}}),(function(e){t(s(e))})):t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function n(n){e.deepExtend(this.options={},t),e.isPlainObject(n)&&e.deepExtend(this.options,n),this.currentServiceIndex=-1}function i(t,e,n){var i,o=document.createElement("script");o.type="text/"+(t.type||"javascript"),o.src=t.src||t,o.async=!1,o.onreadystatechange=o.onload=function(){var t=o.readyState;clearTimeout(i),e.done||t&&!/loaded|complete/.test(t)||(e.done=!0,e(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),i=setTimeout((function(){e.done=!0,e(),o.onreadystatechange=o.onload=null}),n)}function o(t,e,n,i,o){var s=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(s.open(i?"POST":"GET",t,1),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var r=0,a=o.length;r<a;++r){var l=o[r].split(":",2);s.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof e&&(s.onreadystatechange=function(){s.readyState>3&&e(s)}),s.send(i)}function s(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}return n.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!t);return t},n.prototype.getServiceByIdx=function(t){var n=this.options.services[t];if("function"==typeof n){var i=n();return i.name&&e.deepExtend(i,this.options.serviceDefinitions[i.name](i)),i}return"string"==typeof n?this.options.serviceDefinitions[n]():e.isPlainObject(n)?this.options.serviceDefinitions[n.name](n):null},n.prototype.locate=function(t,e){var n=this.getNextService();n?(this.callbackComplete=t,this.callbackError=e,this.runService(n,this.runNextServiceOnError.bind(this))):e(new Error("No services to run"))},n.prototype.setupUrl=function(t){var e=this.getCurrentServiceOpts();return t.url.replace(/\{(.*?)\}/g,(function(n,i){if("callback"===i){var o="callback"+Date.now();return window[o]=function(e){t.__JSONP_DATA=JSON.stringify(e)},o}if(i in e.interpolateUrl)return e.interpolateUrl[i]}))},n.prototype.runService=function(t,e){var n=this;t&&t.url&&t.callback&&(t.isScript?i:o)(this.setupUrl(t),(function(i){var o=i?i.responseText:"";t.__JSONP_DATA&&(o=t.__JSONP_DATA,delete t.__JSONP_DATA),n.runServiceCallback.call(n,e,t,o)}),this.options.timeout,t.data,t.headers)},n.prototype.runServiceCallback=function(t,e,n){var i=this,o=e.callback((function(e){o||i.onServiceResult.call(i,t,e)}),n);o&&this.onServiceResult.call(this,t,o)},n.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},n.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var n=this.getNextService();n?this.runService(n,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},n.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},n.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},n.prototype.logError=function(t){var e=this.currentServiceIndex,n=this.getServiceByIdx(e);console.warn("The service["+e+"] ("+n.url+") responded with the following error",t)},n}(),t.Law=function(){var t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function n(t){this.initialise.apply(this,arguments)}return n.prototype.initialise=function(n){e.deepExtend(this.options={},t),e.isPlainObject(n)&&e.deepExtend(this.options,n)},n.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},n.prototype.applyLaw=function(t,e){var n=this.get(e);return n.hasLaw||(t.enabled=!1,"function"==typeof t.onNoCookieLaw&&t.onNoCookieLaw(e,n)),this.options.regionalLaw&&(n.revokable&&(t.revokable=!0),n.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},n}(),t.initialise=function(n,i,o){var s=new t.Law(n.law);i||(i=function(){}),o||(o=function(){});var r=Object.keys(t.status),a=e.getCookie("cookieconsent_status");r.indexOf(a)>=0?i(new t.Popup(n)):t.getCountryCode(n,(function(e){delete n.law,delete n.location,e.code&&(n=s.applyLaw(n,e.code)),i(new t.Popup(n))}),(function(e){delete n.law,delete n.location,o(e,new t.Popup(n))}))},t.getCountryCode=function(e,n,i){e.law&&e.law.countryCode?n({code:e.law.countryCode}):e.location?new t.Location(e.location).locate((function(t){n(t||{})}),i):n({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{});
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function o(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)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}var l="transitionend";function u(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}var c={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");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger(l)},supportsTransitionEnd:function(){return Boolean(l)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=e[i],r=s&&c.isElement(s)?"element":u(s);if(!new RegExp(o).test(r))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+r+'" but expected type "'+o+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),i.default.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return i.default(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(e)},t),this},i.default.event.special[c.TRANSITION_END]={bindType:l,delegateType:l,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var d="alert",h="bs.alert",f="."+h,p=i.default.fn[d],g="close"+f,m="closed"+f,v="click"+f+".data-api",b=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,h),this._element=null},e._getRootElement=function(t){var e=c.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(g);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass("show"),i.default(t).hasClass("fade")){var n=c.getTransitionDurationFromElement(t);i.default(t).one(c.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(m).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this),o=n.data(h);o||(o=new t(this),n.data(h,o)),"close"===e&&o[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(v,'[data-dismiss="alert"]',b._handleDismiss(new b)),i.default.fn[d]=b._jQueryInterface,i.default.fn[d].Constructor=b,i.default.fn[d].noConflict=function(){return i.default.fn[d]=p,b._jQueryInterface};var y="button",w="bs.button",_="."+w,C=".data-api",E=i.default.fn[y],k="active",S="click"+_+C,x="focus"+_+C+" blur"+_+C,A="load"+_+C,T='[data-toggle^="button"]',O='input:not([type="hidden"])',$=".btn",D=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector(O);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(k))t=!1;else{var s=n.querySelector(".active");s&&i.default(s).removeClass(k)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(k)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(k)),t&&i.default(this._element).toggleClass(k))},e.dispose=function(){i.default.removeData(this._element,w),this._element=null},t._jQueryInterface=function(e,n){return this.each(function(){var o=i.default(this),s=o.data(w);s||(s=new t(this),o.data(w,s)),s.shouldAvoidTriggerChange=n,"toggle"===e&&s[e]()})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(S,T,function(t){var e=t.target,n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest($)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var o=e.querySelector(O);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||D._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}}).on(x,T,function(t){var e=i.default(t.target).closest($)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),i.default(window).on(A,function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(O);o.checked||o.hasAttribute("checked")?i.classList.add(k):i.classList.remove(k)}for(var s=0,r=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<r;s++){var a=t[s];"true"===a.getAttribute("aria-pressed")?a.classList.add(k):a.classList.remove(k)}}),i.default.fn[y]=D._jQueryInterface,i.default.fn[y].Constructor=D,i.default.fn[y].noConflict=function(){return i.default.fn[y]=E,D._jQueryInterface};var F="carousel",I="bs.carousel",N="."+I,j=".data-api",L=i.default.fn[F],P="active",B="next",M="prev",R="slide"+N,H="slid"+N,q="keydown"+N,z="mouseenter"+N,W="mouseleave"+N,V="touchstart"+N,U="touchmove"+N,Q="touchend"+N,K="pointerdown"+N,Y="pointerup"+N,G="dragstart"+N,X="load"+N+j,J="click"+N+j,Z=".active.carousel-item",tt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},et={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},nt={TOUCH:"touch",PEN:"pen"},it=function(){function t(t,e){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(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(B)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(M)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Z);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(H,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var o=t>n?B:M;this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(N),i.default.removeData(this._element,I),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},tt,t),c.typeCheckConfig(F,t,et),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(q,function(e){return t._keydown(e)}),"hover"===this._config.pause&&i.default(this._element).on(z,function(e){return t.pause(e)}).on(W,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&nt[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&nt[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))};i.default(this._element.querySelectorAll(".carousel-item img")).on(G,function(t){return t.preventDefault()}),this._pointerEvent?(i.default(this._element).on(K,function(t){return e(t)}),i.default(this._element).on(Y,function(t){return n(t)}),this._element.classList.add("pointer-event")):(i.default(this._element).on(V,function(t){return e(t)}),i.default(this._element).on(U,function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)}),i.default(this._element).on(Q,function(t){return n(t)}))}},e._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()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===B,i=t===M,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+(t===M?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(Z)),s=i.default.Event(R,{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(s),s},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(P);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(P)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Z);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,o,s,r=this,a=this._element.querySelector(Z),l=this._getItemIndex(a),u=e||a&&this._getItemByDirection(t,a),d=this._getItemIndex(u),h=Boolean(this._interval);if(t===B?(n="carousel-item-left",o="carousel-item-next",s="left"):(n="carousel-item-right",o="carousel-item-prev",s="right"),u&&i.default(u).hasClass(P))this._isSliding=!1;else if(!this._triggerSlideEvent(u,s).isDefaultPrevented()&&a&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var f=i.default.Event(H,{relatedTarget:u,direction:s,from:l,to:d});if(i.default(this._element).hasClass("slide")){i.default(u).addClass(o),c.reflow(u),i.default(a).addClass(n),i.default(u).addClass(n);var p=c.getTransitionDurationFromElement(a);i.default(a).one(c.TRANSITION_END,function(){i.default(u).removeClass(n+" "+o).addClass(P),i.default(a).removeClass(P+" "+o+" "+n),r._isSliding=!1,setTimeout(function(){return i.default(r._element).trigger(f)},0)}).emulateTransitionEnd(p)}else i.default(a).removeClass(P),i.default(u).addClass(P),this._isSliding=!1,i.default(this._element).trigger(f);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this).data(I),o=r({},tt,i.default(this).data());"object"==typeof e&&(o=r({},o,e));var s="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data(I,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new TypeError('No method named "'+s+'"');n[s]()}else o.interval&&o.ride&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=c.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass("carousel")){var s=r({},i.default(o).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),t._jQueryInterface.call(i.default(o),s),a&&i.default(o).data(I).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return tt}}]),t}();i.default(document).on(J,"[data-slide], [data-slide-to]",it._dataApiClickHandler),i.default(window).on(X,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i.default(t[e]);it._jQueryInterface.call(o,o.data())}}),i.default.fn[F]=it._jQueryInterface,i.default.fn[F].Constructor=it,i.default.fn[F].noConflict=function(){return i.default.fn[F]=L,it._jQueryInterface};var ot="collapse",st="bs.collapse",rt="."+st,at=i.default.fn[ot],lt="show",ut="collapse",ct="collapsing",dt="collapsed",ht="width",ft="show"+rt,pt="shown"+rt,gt="hide"+rt,mt="hidden"+rt,vt="click"+rt+".data-api",bt='[data-toggle="collapse"]',yt={toggle:!0,parent:""},wt={toggle:"boolean",parent:"(string|element)"},_t=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(bt)),i=0,o=n.length;i<o;i++){var s=n[i],r=c.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(e){return e===t});null!==r&&a.length>0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(lt)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i.default(this._element).hasClass(lt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(ut)})).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(st))&&n._isTransitioning))){var s=i.default.Event(ft);if(i.default(this._element).trigger(s),!s.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(st,null));var r=this._getDimension();i.default(this._element).removeClass(ut).addClass(ct),this._element.style[r]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(dt).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,function(){i.default(o._element).removeClass(ct).addClass(ut+" "+lt),o._element.style[r]="",o.setTransitioning(!1),i.default(o._element).trigger(pt)}).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(lt)){var e=i.default.Event(gt);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",c.reflow(this._element),i.default(this._element).addClass(ct).removeClass(ut+" "+lt);var o=this._triggerArray.length;if(o>0)for(var s=0;s<o;s++){var r=this._triggerArray[s],a=c.getSelectorFromElement(r);null!==a&&(i.default([].slice.call(document.querySelectorAll(a))).hasClass(lt)||i.default(r).addClass(dt).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var l=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,function(){t.setTransitioning(!1),i.default(t._element).removeClass(ct).addClass(ut).trigger(mt)}).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,st),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},yt,t)).toggle=Boolean(t.toggle),c.typeCheckConfig(ot,t,wt),t},e._getDimension=function(){return i.default(this._element).hasClass(ht)?ht:"height"},e._getParent=function(){var e,n=this;c.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(e.querySelectorAll(o));return i.default(s).each(function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass(lt);e.length&&i.default(e).toggleClass(dt,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=c.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this),o=n.data(st),s=r({},yt,n.data(),"object"==typeof e&&e?e:{});if(!o&&s.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(s.toggle=!1),o||(o=new t(this,s),n.data(st,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return yt}}]),t}();i.default(document).on(vt,bt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=c.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each(function(){var t=i.default(this),n=t.data(st)?"toggle":e.data();_t._jQueryInterface.call(t,n)})}),i.default.fn[ot]=_t._jQueryInterface,i.default.fn[ot].Constructor=_t,i.default.fn[ot].noConflict=function(){return i.default.fn[ot]=at,_t._jQueryInterface};var Ct="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Et=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Ct&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),kt=Ct&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Et))}};function St(t){return t&&"[object Function]"==={}.toString.call(t)}function xt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function At(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Tt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=xt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:Tt(At(t))}function Ot(t){return t&&t.referenceNode?t.referenceNode:t}var $t=Ct&&!(!window.MSInputMethodContext||!document.documentMode),Dt=Ct&&/MSIE 10/.test(navigator.userAgent);function Ft(t){return 11===t?$t:10===t?Dt:$t||Dt}function It(t){if(!t)return document.documentElement;for(var e=Ft(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===xt(n,"position")?It(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Nt(t){return null!==t.parentNode?Nt(t.parentNode):t}function jt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);var r,a,l=s.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&It(r.firstElementChild)!==r?It(l):l;var u=Nt(t);return u.host?jt(u.host,e):jt(t,Nt(e).host)}function Lt(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function Pt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function Bt(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Ft(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Mt(t){var e=t.body,n=t.documentElement,i=Ft(10)&&getComputedStyle(n);return{height:Bt("Height",e,n,i),width:Bt("Width",e,n,i)}}var Rt=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}}(),Ht=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},qt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function zt(t){return qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Wt(t){var e={};try{if(Ft(10)){e=t.getBoundingClientRect();var n=Lt(t,"top"),i=Lt(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?Mt(t.ownerDocument):{},r=s.width||t.clientWidth||o.width,a=s.height||t.clientHeight||o.height,l=t.offsetWidth-r,u=t.offsetHeight-a;if(l||u){var c=xt(t);l-=Pt(c,"x"),u-=Pt(c,"y"),o.width-=l,o.height-=u}return zt(o)}function Vt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ft(10),o="HTML"===e.nodeName,s=Wt(t),r=Wt(e),a=Tt(t),l=xt(e),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=zt({top:s.top-r.top-u,left:s.left-r.left-c,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=c-f,d.right-=c-f,d.marginTop=h,d.marginLeft=f}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Lt(e,"top"),o=Lt(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=o*s,t.right+=o*s,t}(d,e)),d}function Ut(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===xt(t,"position"))return!0;var n=At(t);return!!n&&Ut(n)}function Qt(t){if(!t||!t.parentElement||Ft())return document.documentElement;for(var e=t.parentElement;e&&"none"===xt(e,"transform");)e=e.parentElement;return e||document.documentElement}function Kt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},r=o?Qt(t):jt(t,Ot(e));if("viewport"===i)s=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Vt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:Lt(n),a=e?0:Lt(n,"left");return zt({top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:s})}(r,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Tt(At(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=Vt(a,r,o);if("HTML"!==a.nodeName||Ut(r))s=l;else{var u=Mt(t.ownerDocument),c=u.height,d=u.width;s.top+=l.top-l.marginTop,s.bottom=c+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(n=n||0);return s.left+=h?n:n.left||0,s.top+=h?n:n.top||0,s.right-=h?n:n.right||0,s.bottom-=h?n:n.bottom||0,s}function Yt(t,e,n,i,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=Kt(n,i,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map(function(t){return qt({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function Gt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Vt(n,i?Qt(e):jt(e,Ot(n)),i)}function Xt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Jt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function Zt(t,e,n){n=n.split("-")[0];var i=Xt(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",u=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[u]:e[Jt(a)],o}function te(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ee(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=te(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&St(n)&&(e.offsets.popper=zt(e.offsets.popper),e.offsets.reference=zt(e.offsets.reference),e=n(e,t))}),e}function ne(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Gt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Yt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Zt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ee(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ie(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function oe(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],s=o?""+o+n:t;if(void 0!==document.body.style[s])return s}return null}function se(){return this.state.isDestroyed=!0,ie(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[oe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function re(t){var e=t.ownerDocument;return e?e.defaultView:window}function ae(t,e,n,i){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(e,n,{passive:!0}),o||ae(Tt(s.parentNode),e,n,i),i.push(s)}function le(t,e,n,i){n.updateBound=i,re(t).addEventListener("resize",n.updateBound,{passive:!0});var o=Tt(t);return ae(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ue(){this.state.eventsEnabled||(this.state=le(this.reference,this.options,this.state,this.scheduleUpdate))}function ce(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,re(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function de(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function he(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&de(e[n])&&(i="px"),t.style[n]=e[n]+i})}var fe=Ct&&/Firefox/i.test(navigator.userAgent);function pe(t,e,n){var i=te(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o){var s="`"+e+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return o}var ge=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],me=ge.slice(3);function ve(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=me.indexOf(t),i=me.slice(n+1).concat(me.slice(0,n));return e?i.reverse():i}var be={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:Ht({},l,s[l]),end:Ht({},l,s[l]+s[u]-r[u])};t.offsets.popper=qt({},r,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,i=e.offset,o=t.placement,s=t.offsets,r=s.popper,a=s.reference,l=o.split("-")[0];return n=de(+i)?[+i,0]:function(t,e,n,i){var o=[0,0],s=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=r.indexOf(te(r,function(t){return-1!==t.search(/,|\s/)}));r[a]&&-1===r[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(u=u.map(function(t,i){var o=(1===i?!s:s)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];return s?0===r.indexOf("%")?zt("%p"===r?n:i)[e]/100*s:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:t}(t,o,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){de(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))})}),o}(i,r,a,l),"left"===l?(r.top+=n[0],r.left-=n[1]):"right"===l?(r.top+=n[0],r.left+=n[1]):"top"===l?(r.left+=n[0],r.top-=n[1]):"bottom"===l&&(r.left+=n[0],r.top+=n[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||It(t.instance.popper);t.instance.reference===n&&(n=It(n));var i=oe("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=Kt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,d={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),Ht({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),Ht({},n,i)}};return u.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=qt({},c,d[e](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",u=r?"width":"height";return n[a]<s(i[l])&&(t.offsets.popper[l]=s(i[l])-n[u]),n[l]>s(i[a])&&(t.offsets.popper[l]=s(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!pe(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Xt(i)[u];a[f]-p<r[d]&&(t.offsets.popper[d]-=r[d]-(a[f]-p)),a[d]+p>r[f]&&(t.offsets.popper[d]+=a[d]+p-r[f]),t.offsets.popper=zt(t.offsets.popper);var g=a[d]+a[u]/2-p/2,m=xt(t.instance.popper),v=parseFloat(m["margin"+c]),b=parseFloat(m["border"+c+"Width"]),y=g-t.offsets.popper[d]-v-b;return y=Math.max(Math.min(r[u]-p,y),0),t.arrowElement=i,t.offsets.arrow=(Ht(n={},d,Math.round(y)),Ht(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ie(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Kt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Jt(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case"flip":r=[i,o];break;case"clockwise":r=ve(i);break;case"counterclockwise":r=ve(i,!0);break;default:r=e.behavior}return r.forEach(function(a,l){if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=Jt(i);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===s&&f||b&&"end"===s&&p||!b&&"start"===s&&g||!b&&"end"===s&&m),w=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&f||!b&&"start"===s&&m||!b&&"end"===s&&g),_=y||w;(h||v||_)&&(t.flipped=!0,(h||v)&&(i=r[l+1]),_&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper=qt({},t.offsets.popper,Zt(t.instance.popper,t.offsets.reference,t.placement)),t=ee(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,s=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=s[n]-(a?o[r?"width":"height"]:0),t.placement=Jt(e),t.offsets.popper=zt(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!pe(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=te(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,s=te(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,a,l=void 0!==s?s:e.gpuAcceleration,u=It(t.instance.popper),c=Wt(u),d={position:o.position},h=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,s=Math.round,r=Math.floor,a=function(t){return t},l=s(o.width),u=s(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||l%2==u%2?s:r:a,f=e?s:a;return{left:h(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!fe),f="bottom"===n?"top":"bottom",p="right"===i?"left":"right",g=oe("transform");if(a="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+h.bottom:-c.height+h.bottom:h.top,r="right"===p?"HTML"===u.nodeName?-u.clientWidth+h.right:-c.width+h.right:h.left,l&&g)d[g]="translate3d("+r+"px, "+a+"px, 0)",d[f]=0,d[p]=0,d.willChange="transform";else{var m="bottom"===f?-1:1,v="right"===p?-1:1;d[f]=a*m,d[p]=r*v,d.willChange=f+", "+p}var b={"x-placement":t.placement};return t.attributes=qt({},b,t.attributes),t.styles=qt({},d,t.styles),t.arrowStyles=qt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return he(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&he(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var s=Gt(o,e,t,n.positionFixed),r=Yt(n.placement,s,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),he(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ye=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=kt(this.update.bind(this)),this.options=qt({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(qt({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=qt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return qt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&St(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Rt(t,[{key:"update",value:function(){return ne.call(this)}},{key:"destroy",value:function(){return se.call(this)}},{key:"enableEventListeners",value:function(){return ue.call(this)}},{key:"disableEventListeners",value:function(){return ce.call(this)}}]),t}();ye.Utils=("undefined"!=typeof window?window:global).PopperUtils,ye.placements=ge,ye.Defaults=be;var we=ye,_e="dropdown",Ce="bs.dropdown",Ee="."+Ce,ke=".data-api",Se=i.default.fn[_e],xe=new RegExp("38|40|27"),Ae="disabled",Te="show",Oe="dropdown-menu-right",$e="hide"+Ee,De="hidden"+Ee,Fe="show"+Ee,Ie="shown"+Ee,Ne="click"+Ee,je="click"+Ee+ke,Le="keydown"+Ee+ke,Pe="keyup"+Ee+ke,Be='[data-toggle="dropdown"]',Me=".dropdown-menu",Re={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},He={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},qe=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Ae)){var e=i.default(this._menu).hasClass(Te);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass(Ae)||i.default(this._menu).hasClass(Te))){var n={relatedTarget:this._element},o=i.default.Event(Fe,n),s=t._getParentFromElement(this._element);if(i.default(s).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===we)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=s:c.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(s).addClass("position-static"),this._popper=new we(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(s).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(Te),i.default(s).toggleClass(Te).trigger(i.default.Event(Ie,n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Ae)&&i.default(this._menu).hasClass(Te)){var e={relatedTarget:this._element},n=i.default.Event($e,e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Te),i.default(o).toggleClass(Te).trigger(i.default.Event(De,e)))}},e.dispose=function(){i.default.removeData(this._element,Ce),i.default(this._element).off(Ee),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on(Ne,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=r({},this.constructor.Default,i.default(this._element).data(),t),c.typeCheckConfig(_e,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Me))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass(Oe)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass(Oe)&&(e="bottom-end"),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this).data(Ce);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(Ce,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(Be)),o=0,s=n.length;o<s;o++){var r=t._getParentFromElement(n[o]),a=i.default(n[o]).data(Ce),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var u=a._menu;if(i.default(r).hasClass(Te)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.default.contains(r,e.target))){var c=i.default.Event($e,l);i.default(r).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[o].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),i.default(u).removeClass(Te),i.default(r).removeClass(Te).trigger(i.default.Event(De,l)))}}}},t._getParentFromElement=function(t){var e,n=c.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i.default(e.target).closest(Me).length):!xe.test(e.which))&&!this.disabled&&!i.default(this).hasClass(Ae)){var n=t._getParentFromElement(this),o=i.default(n).hasClass(Te);if(o||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!o||27===e.which||32===e.which)return 27===e.which&&i.default(n.querySelector(Be)).trigger("focus"),void i.default(this).trigger("click");var s=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(t){return i.default(t).is(":visible")});if(0!==s.length){var r=s.indexOf(e.target);38===e.which&&r>0&&r--,40===e.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Re}},{key:"DefaultType",get:function(){return He}}]),t}();i.default(document).on(Le,Be,qe._dataApiKeydownHandler).on(Le,Me,qe._dataApiKeydownHandler).on(je+" "+Pe,qe._clearMenus).on(je,Be,function(t){t.preventDefault(),t.stopPropagation(),qe._jQueryInterface.call(i.default(this),"toggle")}).on(je,".dropdown form",function(t){t.stopPropagation()}),i.default.fn[_e]=qe._jQueryInterface,i.default.fn[_e].Constructor=qe,i.default.fn[_e].noConflict=function(){return i.default.fn[_e]=Se,qe._jQueryInterface};var ze="modal",We="bs.modal",Ve="."+We,Ue=i.default.fn[ze],Qe="modal-open",Ke="fade",Ye="show",Ge="modal-static",Xe="hide"+Ve,Je="hidePrevented"+Ve,Ze="hidden"+Ve,tn="show"+Ve,en="shown"+Ve,nn="focusin"+Ve,on="resize"+Ve,sn="click.dismiss"+Ve,rn="keydown.dismiss"+Ve,an="mouseup.dismiss"+Ve,ln="mousedown.dismiss"+Ve,un="click"+Ve+".data-api",cn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dn=".sticky-top",hn={backdrop:!0,keyboard:!0,focus:!0,show:!0},fn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},pn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=i.default.Event(tn,{relatedTarget:t});i.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,i.default(this._element).hasClass(Ke)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(sn,'[data-dismiss="modal"]',function(t){return e.hide(t)}),i.default(this._dialog).on(ln,function(){i.default(e._element).one(an,function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event(Xe);if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i.default(this._element).hasClass(Ke);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(nn),i.default(this._element).removeClass(Ye),i.default(this._element).off(sn),i.default(this._dialog).off(ln),o){var s=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return i.default(t).off(Ve)}),i.default(document).off(nn),i.default.removeData(this._element,We),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},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},hn,t),c.typeCheckConfig(ze,t,fn),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event(Je);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Ge);var o=c.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(c.TRANSITION_END),i.default(this._element).one(c.TRANSITION_END,function(){t._element.classList.remove(Ge),n||i.default(t._element).one(c.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,o)}).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(Ke),o=this._dialog?this._dialog.querySelector(".modal-body"):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),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&c.reflow(this._element),i.default(this._element).addClass(Ye),this._config.focus&&this._enforceFocus();var s=i.default.Event(en,{relatedTarget:t}),r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(s)};if(n){var a=c.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(c.TRANSITION_END,r).emulateTransitionEnd(a)}else r()},e._enforceFocus=function(){var t=this;i.default(document).off(nn).on(nn,function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(rn,function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()}):this._isShown||i.default(this._element).off(rn)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(on,function(e){return t.handleUpdate(e)}):i.default(window).off(on)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){i.default(document.body).removeClass(Qe),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(Ze)})},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(Ke)?Ke:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(sn,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())}),n&&c.reflow(this._backdrop),i.default(this._backdrop).addClass(Ye),!t)return;if(!n)return void t();var o=c.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(c.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Ye);var s=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Ke)){var r=c.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(c.TRANSITION_END,s).emulateTransitionEnd(r)}else s()}else t&&t()},e._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")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(cn)),n=[].slice.call(document.querySelectorAll(dn));i.default(e).each(function(e,n){var o=n.style.paddingRight,s=i.default(n).css("padding-right");i.default(n).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")}),i.default(n).each(function(e,n){var o=n.style.marginRight,s=i.default(n).css("margin-right");i.default(n).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")});var o=document.body.style.paddingRight,s=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",o).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}i.default(document.body).addClass(Qe)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(cn));i.default(t).each(function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+dn));i.default(e).each(function(t,e){var n=i.default(e).data("margin-right");void 0!==n&&i.default(e).css("margin-right",n).removeData("margin-right")});var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each(function(){var o=i.default(this).data(We),s=r({},hn,i.default(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,s),i.default(this).data(We,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else s.show&&o.show(n)})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return hn}}]),t}();i.default(document).on(un,'[data-toggle="modal"]',function(t){var e,n=this,o=c.getSelectorFromElement(this);o&&(e=document.querySelector(o));var s=i.default(e).data(We)?"toggle":r({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i.default(e).one(tn,function(t){t.isDefaultPrevented()||a.one(Ze,function(){i.default(n).is(":visible")&&n.focus()})});pn._jQueryInterface.call(i.default(e),s,this)}),i.default.fn[ze]=pn._jQueryInterface,i.default.fn[ze].Constructor=pn,i.default.fn[ze].noConflict=function(){return i.default.fn[ze]=Ue,pn._jQueryInterface};var gn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],mn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,vn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function bn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=[].slice.call(i.body.querySelectorAll("*")),r=function(t,n){var i=s[t],r=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[r]||[]);a.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===gn.indexOf(n)||Boolean(mn.test(t.nodeValue)||vn.test(t.nodeValue));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,s=i.length;o<s;o++)if(i[o].test(n))return!0;return!1})(t,l)||i.removeAttribute(t.nodeName)})},a=0,l=s.length;a<l;a++)r(a);return i.body.innerHTML}var yn="tooltip",wn="bs.tooltip",_n="."+wn,Cn=i.default.fn[yn],En="bs-tooltip",kn=new RegExp("(^|\\s)"+En+"\\S+","g"),Sn=["sanitize","whiteList","sanitizeFn"],xn="fade",An="show",Tn="show",On="out",$n="hover",Dn="focus",Fn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},In={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",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["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","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Nn={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},jn={HIDE:"hide"+_n,HIDDEN:"hidden"+_n,SHOW:"show"+_n,SHOWN:"shown"+_n,INSERTED:"inserted"+_n,CLICK:"click"+_n,FOCUSIN:"focusin"+_n,FOCUSOUT:"focusout"+_n,MOUSEENTER:"mouseenter"+_n,MOUSELEAVE:"mouseleave"+_n},Ln=function(){function t(t,e){if(void 0===we)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(An))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(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},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=c.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var s=this.getTipElement(),r=c.getUID(this.constructor.NAME);s.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&i.default(s).addClass(xn);var a="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var u=this._getContainer();i.default(s).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(s).appendTo(u),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new we(this.element,s,this._getPopperConfig(l)),i.default(s).addClass(An),i.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===On&&t._leave(null,t)};if(i.default(this.tip).hasClass(xn)){var h=c.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==Tn&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(An),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger[Dn]=!1,this._activeTrigger[$n]=!1,i.default(this.tip).hasClass(xn)){var r=c.getTransitionDurationFromElement(n);i.default(n).one(c.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(En+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass(xn+" "+An)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=bn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.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},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},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)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return Fn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n=e===$n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===$n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,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()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof 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",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Dn:$n]=!0),i.default(e.getTipElement()).hasClass(An)||e._hoverState===Tn?e._hoverState=Tn:(clearTimeout(e._timeout),e._hoverState=Tn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Tn&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Dn:$n]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=On,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===On&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach(function(t){-1!==Sn.indexOf(t)&&delete e[t]}),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(yn,t,this.constructor.DefaultType),t.sanitize&&(t.template=bn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(kn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(xn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this),o=n.data(wn),s="object"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,s),n.data(wn,o)),"string"==typeof e)){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return In}},{key:"NAME",get:function(){return yn}},{key:"DATA_KEY",get:function(){return wn}},{key:"Event",get:function(){return jn}},{key:"EVENT_KEY",get:function(){return _n}},{key:"DefaultType",get:function(){return Nn}}]),t}();i.default.fn[yn]=Ln._jQueryInterface,i.default.fn[yn].Constructor=Ln,i.default.fn[yn].noConflict=function(){return i.default.fn[yn]=Cn,Ln._jQueryInterface};var Pn="popover",Bn="bs.popover",Mn="."+Bn,Rn=i.default.fn[Pn],Hn="bs-popover",qn=new RegExp("(^|\\s)"+Hn+"\\S+","g"),zn=r({},Ln.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>'}),Wn=r({},Ln.DefaultType,{content:"(string|element|function)"}),Vn={HIDE:"hide"+Mn,HIDDEN:"hidden"+Mn,SHOW:"show"+Mn,SHOWN:"shown"+Mn,INSERTED:"inserted"+Mn,CLICK:"click"+Mn,FOCUSIN:"focusin"+Mn,FOCUSOUT:"focusout"+Mn,MOUSEENTER:"mouseenter"+Mn,MOUSELEAVE:"mouseleave"+Mn},Un=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n);var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Hn+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},r.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(qn);null!==e&&e.length>0&&t.removeClass(e.join(""))},o._jQueryInterface=function(t){return this.each(function(){var e=i.default(this).data(Bn),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),i.default(this).data(Bn,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},s(o,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return zn}},{key:"NAME",get:function(){return Pn}},{key:"DATA_KEY",get:function(){return Bn}},{key:"Event",get:function(){return Vn}},{key:"EVENT_KEY",get:function(){return Mn}},{key:"DefaultType",get:function(){return Wn}}]),o}(Ln);i.default.fn[Pn]=Un._jQueryInterface,i.default.fn[Pn].Constructor=Un,i.default.fn[Pn].noConflict=function(){return i.default.fn[Pn]=Rn,Un._jQueryInterface};var Qn="scrollspy",Kn="bs.scrollspy",Yn="."+Kn,Gn=i.default.fn[Qn],Xn="active",Jn="activate"+Yn,Zn="scroll"+Yn,ti="load"+Yn+".data-api",ei="position",ni=".nav, .list-group",ii=".nav-link",oi=".list-group-item",si={offset:10,method:"auto",target:""},ri={offset:"number",method:"string",target:"(string|element)"},ai=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ii+","+this._config.target+" "+oi+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(Zn,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":ei,n="auto"===this._config.method?e:this._config.method,o=n===ei?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,s=c.getSelectorFromElement(t);if(s&&(e=document.querySelector(s)),e){var r=e.getBoundingClientRect();if(r.width||r.height)return[i.default(e)[n]().top+o,s]}return null}).filter(Boolean).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){i.default.removeData(this._element,Kn),i.default(this._scrollElement).off(Yn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},si,"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=c.getUID(Qn),i.default(t.target).attr("id",e)),t.target="#"+e}return c.typeCheckConfig(Qn,t,ri),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(Xn),n.addClass(Xn)):(n.addClass(Xn),n.parents(ni).prev(ii+", "+oi).addClass(Xn),n.parents(ni).prev(".nav-item").children(ii).addClass(Xn)),i.default(this._scrollElement).trigger(Jn,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(Xn)}).forEach(function(t){return t.classList.remove(Xn)})},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this).data(Kn);if(n||(n=new t(this,"object"==typeof e&&e),i.default(this).data(Kn,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return si}}]),t}();i.default(window).on(ti,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i.default(t[e]);ai._jQueryInterface.call(n,n.data())}}),i.default.fn[Qn]=ai._jQueryInterface,i.default.fn[Qn].Constructor=ai,i.default.fn[Qn].noConflict=function(){return i.default.fn[Qn]=Gn,ai._jQueryInterface};var li="tab",ui="bs.tab",ci="."+ui,di=i.default.fn[li],hi="active",fi="fade",pi="show",gi="hide"+ci,mi="hidden"+ci,vi="show"+ci,bi="shown"+ci,yi="click"+ci+".data-api",wi=".active",_i="> li > .active",Ci=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(hi)||i.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,o=i.default(this._element).closest(".nav, .list-group")[0],s=c.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?_i:wi;n=(n=i.default.makeArray(i.default(o).find(r)))[n.length-1]}var a=i.default.Event(gi,{relatedTarget:this._element}),l=i.default.Event(vi,{relatedTarget:n});if(n&&i.default(n).trigger(a),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(e=document.querySelector(s)),this._activate(this._element,o);var u=function(){var e=i.default.Event(mi,{relatedTarget:t._element}),o=i.default.Event(bi,{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){i.default.removeData(this._element,ui),this._element=null},e._activate=function(t,e,n){var o=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(wi):i.default(e).find(_i))[0],r=n&&s&&i.default(s).hasClass(fi),a=function(){return o._transitionComplete(t,s,n)};if(s&&r){var l=c.getTransitionDurationFromElement(s);i.default(s).removeClass(pi).one(c.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(hi);var o=i.default(e.parentNode).find("> .dropdown-menu .active")[0];o&&i.default(o).removeClass(hi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(hi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains(fi)&&t.classList.add(pi);var s=t.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&i.default(s).hasClass("dropdown-menu")){var r=i.default(t).closest(".dropdown")[0];if(r){var a=[].slice.call(r.querySelectorAll(".dropdown-toggle"));i.default(a).addClass(hi)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this),o=n.data(ui);if(o||(o=new t(this),n.data(ui,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(yi,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Ci._jQueryInterface.call(i.default(this),"show")}),i.default.fn[li]=Ci._jQueryInterface,i.default.fn[li].Constructor=Ci,i.default.fn[li].noConflict=function(){return i.default.fn[li]=di,Ci._jQueryInterface};var Ei="toast",ki="bs.toast",Si="."+ki,xi=i.default.fn[Ei],Ai="hide",Ti="show",Oi="showing",$i="click.dismiss"+Si,Di="hide"+Si,Fi="hidden"+Si,Ii="show"+Si,Ni="shown"+Si,ji={animation:!0,autohide:!0,delay:500},Li={animation:"boolean",autohide:"boolean",delay:"number"},Pi=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event(Ii);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove(Oi),t._element.classList.add(Ti),i.default(t._element).trigger(Ni),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove(Ai),c.reflow(this._element),this._element.classList.add(Oi),this._config.animation){var o=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(Ti)){var t=i.default.Event(Di);i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ti)&&this._element.classList.remove(Ti),i.default(this._element).off($i),i.default.removeData(this._element,ki),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},ji,i.default(this._element).data(),"object"==typeof t&&t?t:{}),c.typeCheckConfig(Ei,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on($i,'[data-dismiss="toast"]',function(){return t.hide()})},e._close=function(){var t=this,e=function(){t._element.classList.add(Ai),i.default(t._element).trigger(Fi)};if(this._element.classList.remove(Ti),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);i.default(this._element).one(c.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each(function(){var n=i.default(this),o=n.data(ki);if(o||(o=new t(this,"object"==typeof e&&e),n.data(ki,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}})},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return Li}},{key:"Default",get:function(){return ji}}]),t}();i.default.fn[Ei]=Pi._jQueryInterface,i.default.fn[Ei].Constructor=Pi,i.default.fn[Ei].noConflict=function(){return i.default.fn[Ei]=xi,Pi._jQueryInterface},t.Alert=b,t.Button=D,t.Carousel=it,t.Collapse=_t,t.Dropdown=qe,t.Modal=pn,t.Popover=Un,t.Scrollspy=ai,t.Tab=Ci,t.Toast=Pi,t.Tooltip=Ln,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):"object"==typeof window?window.Picker=t(jQuery):this.Picker=t(jQuery)}(function(t){var e=t(window),n=t(document),i=t(document.documentElement),o=null!=document.documentElement.style.transition;function s(e,i,u,d){if(!e)return s;var h=!1,f={id:e.id||"P"+Math.abs(~~(Math.random()*new Date)),handlingOpen:!1},p=u?t.extend(!0,{},u.defaults,d):d||{},g=t.extend({},s.klasses(),p.klass),m=t(e),v=function(){return this.start()},b=v.prototype={constructor:v,$node:m,start:function(){return f&&f.start?b:(f.methods={},f.start=!0,f.open=!1,f.type=e.type,e.autofocus=e==c(),e.readOnly=!p.editable,e.id=e.id||f.id,"text"!=e.type&&(e.type="text"),b.component=new u(b,p),b.$root=t('<div class="'+g.picker+'" id="'+e.id+'_root" />'),l(b.$root[0],"hidden",!0),b.$holder=t(y()).appendTo(b.$root),w(),p.formatSubmit&&(!0===p.hiddenName?(r=e.name,e.name=""):r=(r=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"])[0]+e.name+r[1],b._hidden=t('<input type=hidden name="'+r+'"'+(m.data("value")||e.value?' value="'+b.get("select",p.formatSubmit)+'"':"")+">")[0],m.on("change."+f.id,function(){b._hidden.value=e.value?b.get("select",p.formatSubmit):""})),m.data(i,b).addClass(g.input).val(m.data("value")?b.get("select",p.format):e.value).on("focus."+f.id+" click."+f.id,function(t){t.preventDefault(),b.open()}).on("mousedown",function(){f.handlingOpen=!0;var e=function(){setTimeout(function(){t(document).off("mouseup",e),f.handlingOpen=!1},0)};t(document).on("mouseup",e)}),p.editable||m.on("keydown."+f.id,C),l(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"}),p.containerHidden?t(p.containerHidden).append(b._hidden):m.after(b._hidden),p.container?t(p.container).append(b.$root):m.after(b.$root),b.on({start:b.component.onStart,render:b.component.onRender,stop:b.component.onStop,open:b.component.onOpen,close:b.component.onClose,set:b.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet}),n=b.$holder[0],s="position",n.currentStyle?o=n.currentStyle[s]:window.getComputedStyle&&(o=getComputedStyle(n)[s]),h="fixed"==o,e.autofocus&&b.open(),b.trigger("start").trigger("render"));var n,o,s,r},render:function(e){return e?(b.$holder=t(y()),w(),b.$root.html(b.$holder)):b.$root.find("."+g.box).html(b.component.nodes(f.open)),b.trigger("render")},stop:function(){return f.start?(b.close(),b._hidden&&b._hidden.parentNode.removeChild(b._hidden),b.$root.remove(),m.removeClass(g.input).removeData(i),setTimeout(function(){m.off("."+f.id)},0),e.type=f.type,e.readOnly=!1,b.trigger("stop"),f.methods={},f.start=!1,b):b},open:function(i){return f.open?b:(m.addClass(g.active),l(e,"expanded",!0),setTimeout(function(){b.$root.addClass(g.opened),l(b.$root[0],"hidden",!1)},0),!1!==i&&(f.open=!0,h&&t("body").css("overflow","hidden").css("padding-right","+="+r()),h&&o?b.$holder.find("."+g.frame).one("transitionend",function(){b.$holder.eq(0).focus()}):setTimeout(function(){b.$holder.eq(0).focus()},0),n.on("click."+f.id+" focusin."+f.id,function(t){if(!f.handlingOpen){var n=a(t,e);t.isSimulated||n==e||n==document||3==t.which||b.close(n===b.$holder[0])}}).on("keydown."+f.id,function(n){var i=n.keyCode,o=b.component.key[i],r=a(n,e);27==i?b.close(!0):r!=b.$holder[0]||!o&&13!=i?t.contains(b.$root[0],r)&&13==i&&(n.preventDefault(),r.click()):(n.preventDefault(),o?s._.trigger(b.component.key.go,b,[s._.trigger(o)]):b.$root.find("."+g.highlighted).hasClass(g.disabled)||(b.set("select",b.component.item.highlight),p.closeOnSelect&&b.close(!0)))})),b.trigger("open"))},close:function(i){return i&&(p.editable?e.focus():(b.$holder.off("focus.toOpen").focus(),setTimeout(function(){b.$holder.on("focus.toOpen",_)},0))),m.removeClass(g.active),l(e,"expanded",!1),setTimeout(function(){b.$root.removeClass(g.opened+" "+g.focused),l(b.$root[0],"hidden",!0)},0),f.open?(f.open=!1,h&&t("body").css("overflow","").css("padding-right","-="+r()),n.off("."+f.id),b.trigger("close")):b},clear:function(t){return b.set("clear",null,t)},set:function(e,n,i){var o,s,r=t.isPlainObject(e),a=r?e:{};if(i=r&&t.isPlainObject(n)?n:i||{},e){for(o in r||(a[e]=n),a)s=a[o],o in b.component.item&&(void 0===s&&(s=null),b.component.set(o,s,i)),"select"!=o&&"clear"!=o||!p.updateInput||m.val("clear"==o?"":b.get(o,p.format)).trigger("change");b.render()}return i.muted?b:b.trigger("set",a)},get:function(t,n){if(null!=f[t=t||"value"])return f[t];if("valueSubmit"==t){if(b._hidden)return b._hidden.value;t="value"}if("value"==t)return e.value;if(t in b.component.item){if("string"==typeof n){var i=b.component.get(t);return i?s._.trigger(b.component.formats.toString,b.component,[n,i]):""}return b.component.get(t)}},on:function(e,n,i){var o,s,r=t.isPlainObject(e),a=r?e:{};if(e)for(o in r||(a[e]=n),a)s=a[o],i&&(o="_"+o),f.methods[o]=f.methods[o]||[],f.methods[o].push(s);return b},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in f.methods&&delete f.methods[e];return b},trigger:function(t,e){var n=function(t){var n=f.methods[t];n&&n.map(function(t){s._.trigger(t,b,[e])})};return n("_"+t),n(t),b}};function y(){return s._.node("div",s._.node("div",s._.node("div",s._.node("div",b.component.nodes(f.open),g.box),g.wrap),g.frame),g.holder,'tabindex="-1"')}function w(){b.$holder.on({keydown:C,"focus.toOpen":_,blur:function(){m.removeClass(g.target)},focusin:function(t){b.$root.removeClass(g.focused),t.stopPropagation()},"mousedown click":function(n){var i=a(n,e);i!=b.$holder[0]&&(n.stopPropagation(),"mousedown"!=n.type||t(i).is("input, select, textarea, button, option")||(n.preventDefault(),b.$holder.eq(0).focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),n=e.data(),i=e.hasClass(g.navDisabled)||e.hasClass(g.disabled),o=c();o=o&&(o.type||o.href?o:null),(i||o&&!t.contains(b.$root[0],o))&&b.$holder.eq(0).focus(),!i&&n.nav?b.set("highlight",b.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(b.set("select",n.pick),p.closeOnSelect&&b.close(!0)):n.clear?(b.clear(),p.closeOnClear&&b.close(!0)):n.close&&b.close(!0)})}function _(t){t.stopPropagation(),m.addClass(g.target),b.$root.addClass(g.focused),b.open()}function C(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return b.close(!0),!1;(32==e||n||!f.open&&b.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?b.clear().close():b.open())}return new v}function r(){if(i.height()<=e.height())return 0;var n=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var s=t('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),o-s}function a(t,e){var n=[];return t.path&&(n=t.path),t.originalEvent&&t.originalEvent.path&&(n=t.originalEvent.path),n&&n.length>0?e&&n.indexOf(e)>=0?e:n[0]:t.target}function l(e,n,i){if(t.isPlainObject(n))for(var o in n)u(e,o,n[o]);else u(e,n,i)}function u(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function c(){try{return document.activeElement}catch(t){}}return s.klasses=function(t){return{picker:t=t||"picker",opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},s._={group:function(t){for(var e,n="",i=s._.trigger(t.min,t);i<=s._.trigger(t.max,t,[i]);i+=t.i)e=s._.trigger(t.item,t,[i]),n+=s._.node(t.node,e[0],e[1],e[2]);return n},node:function(e,n,i,o){return n?"<"+e+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+(n=t.isArray(n)?n.join(""):n)+"</"+e+">":""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:function(e,n){for(var i in t.isPlainObject(e)||(e={attribute:n}),n="",e){var o=("role"==i?"":"aria-")+i;n+=null==e[i]?"":o+'="'+e[i]+'"'}return n}},s.extend=function(e,n){t.fn[e]=function(i,o){var r=this.data(e);return"picker"==i?r:r&&"string"==typeof i?s._.trigger(r[i],r,[o]):this.each(function(){t(this).data(e)||new s(this,e,n,i)})},t.fn[e].defaults=n.defaults},s}),function(t){"function"==typeof define&&define.amd?define(["./picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,e){var n,i=t._;function o(t,e){var n,i=this,o=t.$node[0],s=o.value,r=t.$node.data("value"),a=r||s,l=r?e.formatSubmit:e.format,u=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=e,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(e.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",e.min).set("max",e.max).set("now"),a?i.set("select",a,{format:l,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return u()?-1:1},37:function(){return u()?1:-1},go:function(t){var e=i.item.highlight,n=new Date(e.year,e.month,e.date+t);i.set("highlight",n,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var n=this.value;n&&(t.set("highlight",[t.get("view").year,n,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var n=this.value;n&&(t.set("highlight",[n,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(t,e,n){var i=this,o=i.item;return null===e?("clear"==t&&(t="select"),o[t]=e,i):(o["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(o){return e=i[o](t,e,n)}).pop(),"select"==t?i.set("highlight",o.select,n):"highlight"==t?i.set("view",o.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(t){return this.item[t]},o.prototype.create=function(t,n,o){var s,r=this;return(n=void 0===n?t:n)==-1/0||n==1/0?s=n:e.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:e.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:r.create().obj):n=i.isInteger(n)||i.isDate(n)?r.normalize(new Date(n),o):r.now(t,n,o),{year:s||n.getFullYear(),month:s||n.getMonth(),date:s||n.getDate(),day:s||n.getDay(),obj:s||n,pick:s||n.getTime()}},o.prototype.createRange=function(t,n){var o=this,s=function(t){return!0===t||e.isArray(t)||i.isDate(t)?o.create(t):t};return i.isInteger(t)||(t=s(t)),i.isInteger(n)||(n=s(n)),i.isInteger(t)&&e.isPlainObject(n)?t=[n.year,n.month,n.date+t]:i.isInteger(n)&&e.isPlainObject(t)&&(n=[t.year,t.month,t.date+n]),{from:s(t),to:s(n)}},o.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},o.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},o.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},o.prototype.navigate=function(t,n,i){var o,s,r,a,l=e.isArray(n),u=e.isPlainObject(n),c=this.item.view;if(l||u){for(u?(s=n.year,r=n.month,a=n.date):(s=+n[0],r=+n[1],a=+n[2]),i&&i.nav&&c&&c.month!==r&&(s=c.year,r=c.month),s=(o=new Date(s,r+(i&&i.nav?i.nav:0),1)).getFullYear(),r=o.getMonth();new Date(s,r,a).getMonth()!==r;)a-=1;n=[s,r,a]}return n},o.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},o.prototype.measure=function(t,e){return i.isInteger(e)?e=this.now(t,e,{rel:e}):e?"string"==typeof e&&(e=this.parse(t,e)):e="min"==t?-1/0:1/0,e},o.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},o.prototype.validate=function(t,n,o){var s,r,a,l,u=this,c=n,d=o&&o.interval?o.interval:1,h=-1===u.item.enable,f=u.item.min,p=u.item.max,g=h&&u.item.disable.filter(function(t){if(e.isArray(t)){var o=u.create(t).pick;o<n.pick?s=!0:o>n.pick&&(r=!0)}return i.isInteger(t)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!h&&u.disabled(n)||h&&u.disabled(n)&&(g||s||r)||!h&&(n.pick<=f.pick||n.pick>=p.pick)))for(h&&!g&&(!r&&d>0||!s&&d<0)&&(d*=-1);u.disabled(n)&&(Math.abs(d)>1&&(n.month<c.month||n.month>c.month)&&(n=c,d=d>0?1:-1),n.pick<=f.pick?(a=!0,d=1,n=u.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=p.pick&&(l=!0,d=-1,n=u.create([p.year,p.month,p.date+(n.pick===p.pick?0:1)])),!a||!l);)n=u.create([n.year,n.month,n.date+d]);return n},o.prototype.disabled=function(t){var n=this,o=n.item.disable.filter(function(o){return i.isInteger(o)?t.day===(n.settings.firstDay?o:o-1)%7:e.isArray(o)||i.isDate(o)?t.pick===n.create(o).pick:e.isPlainObject(o)?n.withinRange(o,t):void 0});return o=o.length&&!o.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===n.item.enable?!o:o||t.pick<n.item.min.pick||t.pick>n.item.max.pick},o.prototype.parse=function(t,e,n){var o=this,s={};return e&&"string"==typeof e?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map(function(t){var n=o.formats[t],r=n?i.trigger(n,o,[e,s]):t.replace(/^!/,"").length;n&&(s[t]=e.substr(0,r)),e=e.substr(r)}),[s.yyyy||s.yy,+(s.mm||s.m)-1,s.dd||s.d]):e},o.prototype.formats=function(){function t(t,e,n){var i=t.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?i.digits(t):e.date},dd:function(t,e){return t?2:i.lead(e.date)},ddd:function(t,n){return t?e(t):this.settings.weekdaysShort[n.day]},dddd:function(t,n){return t?e(t):this.settings.weekdaysFull[n.day]},m:function(t,e){return t?i.digits(t):e.month+1},mm:function(t,e){return t?2:i.lead(e.month+1)},mmm:function(e,n){var i=this.settings.monthsShort;return e?t(e,i,n):i[n.month]},mmmm:function(e,n){var i=this.settings.monthsFull;return e?t(e,i,n):i[n.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var n=this;return n.formats.toArray(t).map(function(t){return i.trigger(n.formats[t],n,[0,e])||t.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(t,n){var o=this;return i.isInteger(t)&&i.isInteger(n)||"boolean"==typeof t&&"boolean"==typeof n?t===n:(i.isDate(t)||e.isArray(t))&&(i.isDate(n)||e.isArray(n))?o.create(t).pick===o.create(n).pick:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&o.isDateExact(t.from,n.from)&&o.isDateExact(t.to,n.to)},o.prototype.isDateOverlap=function(t,n){var o=this,s=o.settings.firstDay?1:0;return i.isInteger(t)&&(i.isDate(n)||e.isArray(n))?(t=t%7+s)===o.create(n).day+1:i.isInteger(n)&&(i.isDate(t)||e.isArray(t))?(n=n%7+s)===o.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&o.overlapRanges(t,n)},o.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},o.prototype.deactivate=function(t,n){var o=this,s=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),s=[]):!0===n?(o.flipEnable(-1),s=[]):n.map(function(t){for(var n,r=0;r<s.length;r+=1)if(o.isDateExact(t,s[r])){n=!0;break}n||(i.isInteger(t)||i.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&s.push(t)}),s},o.prototype.activate=function(t,n){var o=this,s=o.item.disable,r=s.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),s=[]):!1===n?(o.flipEnable(-1),s=[]):n.map(function(t){var n,a,l,u;for(l=0;l<r;l+=1){if(a=s[l],o.isDateExact(a,t)){n=s[l]=null,u=!0;break}if(o.isDateOverlap(a,t)){e.isPlainObject(t)?(t.inverted=!0,n=t):e.isArray(t)?(n=t)[3]||n.push("inverted"):i.isDate(t)&&(n=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(n)for(l=0;l<r;l+=1)if(o.isDateExact(s[l],t)){s[l]=null;break}if(u)for(l=0;l<r;l+=1)if(o.isDateOverlap(s[l],t)){s[l]=null;break}n&&s.push(n)}),s.filter(function(t){return null!=t})},o.prototype.nodes=function(t){var e,n,o=this,s=o.settings,r=o.item,a=r.now,l=r.select,u=r.highlight,c=r.view,d=r.disable,h=r.min,f=r.max,p=(e=(s.showWeekdaysFull?s.weekdaysFull:s.weekdaysShort).slice(0),n=s.weekdaysFull.slice(0),s.firstDay&&(e.push(e.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(t){return[e[t],s.klass.weekdays,'scope=col title="'+n[t]+'"']}})))),g=function(t){return i.node("div"," ",s.klass["nav"+(t?"Next":"Prev")]+(t&&c.year>=f.year&&c.month>=f.month||!t&&c.year<=h.year&&c.month<=h.month?" "+s.klass.navDisabled:""),"data-nav="+(t||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(t?s.labelMonthNext:s.labelMonthPrev)+'"')},m=function(){var e=s.showMonthsShort?s.monthsShort:s.monthsFull;return s.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(t){return[e[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==h.year&&t<h.month||c.year==f.year&&t>f.month?" disabled":"")]}}),s.klass.selectMonth,(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+s.labelMonthSelect+'"'):i.node("div",e[c.month],s.klass.month)},v=function(){var e=c.year,n=!0===s.selectYears?5:~~(s.selectYears/2);if(n){var r=h.year,a=f.year,l=e-n,u=e+n;if(r>l&&(u+=r-l,l=r),a<u){var d=l-r,p=u-a;l-=d>p?p:d,u=a}return i.node("select",i.group({min:l,max:u,i:1,node:"option",item:function(t){return[t,0,"value="+t+(e==t?" selected":"")]}}),s.klass.selectYear,(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+s.labelYearSelect+'"')}return i.node("div",e,s.klass.year)};return i.node("div",(s.selectYears?v()+m():m()+v())+g()+g(1),s.klass.header)+i.node("table",p+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=s.firstDay&&0===o.create([c.year,c.month,1]).day?-7:0;return[i.group({min:7*t-c.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=o.create([c.year,c.month,t+(s.firstDay?1:0)]);var e,n=l&&l.pick==t.pick,r=u&&u.pick==t.pick,p=d&&o.disabled(t)||t.pick<h.pick||t.pick>f.pick,g=i.trigger(o.formats.toString,o,[s.format,t]);return[i.node("div",t.date,(e=[s.klass.day],e.push(c.month==t.month?s.klass.infocus:s.klass.outfocus),a.pick==t.pick&&e.push(s.klass.now),n&&e.push(s.klass.selected),r&&e.push(s.klass.highlighted),p&&e.push(s.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+i.ariaAttr({role:"gridcell",label:g,selected:!(!n||o.$node.val()!==g)||null,activedescendant:!!r||null,disabled:!!p||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),s.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+i.node("div",i.node("button",s.today,s.klass.buttonToday,"type=button data-pick="+a.pick+(t&&!o.disabled(a)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",s.clear,s.klass.buttonClear,"type=button data-clear=1"+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",s.close,s.klass.buttonClose,"type=button data-close=true "+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),s.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(n=t.klasses().picker+"__")+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},t.extend("pickadate",o)}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t.Tablesaw=e(n,t)}):"object"==typeof exports?module.exports=e("document"in t?require("jquery"):require("jquery")(t),t):t.Tablesaw=e(jQuery,t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var n=e.document,i=/complete|loaded/.test(n.readyState);n.addEventListener("DOMContentLoaded",function(){i=!0});var o,s,r,a,l,u,c,d,h,f,p,g,m,v,b,y,w={i18n:{modeStack:"Stack",modeSwipe:"Swipe",modeToggle:"Toggle",modeSwitchColumnsAbbreviated:"Cols",modeSwitchColumns:"Columns",columnToggleButton:"Columns",columnToggleError:"No eligible columns.",sort:"Sort",swipePreviousColumn:"Previous column",swipeNextColumn:"Next column"},mustard:"head"in n&&(!e.blackberry||e.WebKitPoint)&&!e.operamini,$:t,_init:function(t){w.$(t||n).trigger("enhance.tablesaw")},init:function(t){(i=i||/complete|loaded/.test(n.readyState))?w._init(t):"addEventListener"in n&&n.addEventListener("DOMContentLoaded",function(){w._init(t)})}};return t(n).on("enhance.tablesaw",function(){"undefined"!=typeof TablesawConfig&&TablesawConfig.i18n&&(w.i18n=t.extend(w.i18n,TablesawConfig.i18n||{})),w.i18n.modes=[w.i18n.modeStack,w.i18n.modeSwipe,w.i18n.modeToggle]}),w.mustard&&t(n.documentElement).addClass("tablesaw-enhanced"),function(){var i="tablesaw",o="tablesaw-bar",s={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh",resize:"tablesawresize"},r={};w.events=s;var a=function(e){if(!e)throw new Error("Tablesaw requires an element.");this.table=e,this.$table=t(e),this.$thead=this.$table.children().filter("thead").eq(0),this.$tbody=this.$table.children().filter("tbody"),this.mode=this.$table.attr("data-tablesaw-mode")||"stack",this.$toolbar=null,this.attributes={subrow:"data-tablesaw-subrow",ignorerow:"data-tablesaw-ignorerow"},this.init()};a.prototype.init=function(){if(!this.$thead.length)throw new Error("tablesaw: a <thead> is required, but none was found.");if(!this.$thead.find("th").length)throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");this.$table.attr("id")||this.$table.attr("id",i+"-"+Math.round(1e4*Math.random())),this.createToolbar(),this._initCells(),this.$table.data(i,this),this.$table.trigger(s.create,[this])},a.prototype.getConfig=function(e){var n=t.extend(r,e||{});return t.extend(n,"undefined"!=typeof TablesawConfig?TablesawConfig:{})},a.prototype._getPrimaryHeaderRow=function(){return this._getHeaderRows().eq(0)},a.prototype._getHeaderRows=function(){return this.$thead.children().filter("tr").filter(function(){return!t(this).is("[data-tablesaw-ignorerow]")})},a.prototype._getRowIndex=function(t){return t.prevAll().length},a.prototype._getHeaderRowIndeces=function(){var e=this,n=[];return this._getHeaderRows().each(function(){n.push(e._getRowIndex(t(this)))}),n},a.prototype._getPrimaryHeaderCells=function(t){return(t||this._getPrimaryHeaderRow()).find("th")},a.prototype._$getCells=function(e){var n=this;return t(e).add(e.cells).filter(function(){var e=t(this),i=e.parent(),o=e.is("[colspan]");return!(i.is("["+n.attributes.subrow+"]")||i.is("["+n.attributes.ignorerow+"]")&&o)})},a.prototype._getVisibleColspan=function(){var e=0;return this._getPrimaryHeaderCells().each(function(){var n=t(this);"none"!==n.css("display")&&(e+=parseInt(n.attr("colspan"),10)||1)}),e},a.prototype.getColspanForCell=function(e){var n=this._getVisibleColspan(),i=0;return e.closest("tr").data("tablesaw-rowspanned")&&i++,e.siblings().each(function(){var e=t(this),n=parseInt(e.attr("colspan"),10)||1;"none"!==e.css("display")&&(i+=n)}),n-i},a.prototype.isCellInColumn=function(e,n){return t(e).add(e.cells).filter(function(){return this===n}).length},a.prototype.updateColspanCells=function(e,n,i){var o=this,s=o._getPrimaryHeaderRow();this.$table.find("[rowspan][data-tablesaw-priority]").each(function(){var e=t(this);if("persist"===e.attr("data-tablesaw-priority")){var n=e.closest("tr"),i=parseInt(e.attr("rowspan"),10);i>1&&((n=n.next()).data("tablesaw-rowspanned",!0),i--)}}),this.$table.find("[colspan],[data-tablesaw-maxcolspan]").filter(function(){return t(this).closest("tr")[0]!==s[0]}).each(function(){var s=t(this);if(void 0===i||o.isCellInColumn(n,this)){var r=o.getColspanForCell(s);e&&void 0!==i&&s[0===r?"addClass":"removeClass"](e);var a=parseInt(s.attr("data-tablesaw-maxcolspan"),10);a?r>a&&(r=a):s.attr("data-tablesaw-maxcolspan",s.attr("colspan")),s.attr("colspan",r)}})},a.prototype._findPrimaryHeadersForCell=function(t){for(var e=this._getPrimaryHeaderRow(),n=this._getRowIndex(e),i=[],o=0;o<this.headerMapping.length;o++)if(o!==n)for(var s=0;s<this.headerMapping[o].length;s++)this.headerMapping[o][s]===t&&i.push(this.headerMapping[n][s]);return i},a.prototype.getRows=function(){var e=this;return this.$table.find("tr").filter(function(){return t(this).closest("table").is(e.$table)})},a.prototype.getBodyRows=function(e){return(e?t(e):this.$tbody).children().filter("tr")},a.prototype.getHeaderCellIndex=function(t){for(var e=this.headerMapping[0],n=0;n<e.length;n++)if(e[n]===t)return n;return-1},a.prototype._initCells=function(){this.$table.find("[data-tablesaw-maxcolspan]").each(function(){var e=t(this);e.attr("colspan",e.attr("data-tablesaw-maxcolspan"))});var e=this.getRows(),n=[];e.each(function(t){n[t]=[]}),e.each(function(e){var i=0;t(this).children().each(function(){for(var t=parseInt(this.getAttribute("data-tablesaw-maxcolspan")||this.getAttribute("colspan"),10),o=parseInt(this.getAttribute("rowspan"),10);n[e][i];)i++;if(n[e][i]=this,t)for(var s=0;s<t-1;s++)i++,n[e][i]=this;if(o)for(var r=1;r<o;r++)n[e+r][i]=this;i++})});for(var i=this._getHeaderRowIndeces(),o=0;o<n[0].length;o++)for(var s=0,r=i.length;s<r;s++){var a,l=n[i[s]][o],u=i[s];for(l.cells||(l.cells=[]);u<n.length;)l!==(a=n[u][o])&&l.cells.push(a),u++}this.headerMapping=n},a.prototype.refresh=function(){this._initCells(),this.$table.trigger(s.refresh,[this])},a.prototype._getToolbarAnchor=function(){var t=this.$table.parent();return t.is(".tablesaw-overflow")?t:this.$table},a.prototype._getToolbar=function(t){return t||(t=this._getToolbarAnchor()),t.prev().filter("."+o)},a.prototype.createToolbar=function(){var e=this._getToolbarAnchor(),n=this._getToolbar(e);n.length||(n=t("<div>").addClass(o).insertBefore(e)),this.$toolbar=n,this.mode&&this.$toolbar.addClass("tablesaw-mode-"+this.mode)},a.prototype.destroy=function(){this._getToolbar().each(function(){this.className=this.className.replace(/\btablesaw-mode\-\w*\b/gi,"")});var o=this.$table.attr("id");t(n).off("."+o),t(e).off("."+o),this.$table.trigger(s.destroy,[this]),this.$table.removeData(i)},t.fn[i]=function(){return this.each(function(){t(this).data(i)||new a(this)})};var l=t(n);l.on("enhance.tablesaw",function(e){if(w.mustard){var n=t(e.target);n.parent().length&&(n=n.parent()),n.find("table").filter("[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]")[i]()}});var u,c,d=!1;l.on("scroll.tablesaw",function(){d=!0,e.clearTimeout(u),u=e.setTimeout(function(){d=!1},300)}),t(e).on("resize",function(){d||(e.clearTimeout(c),c=e.setTimeout(function(){l.trigger(s.resize)},150))}),w.Table=a}(),o="tablesaw-stack",s="tablesaw-cell-label",r="tablesaw-cell-content",a="tablesaw-stack",l="data-tablesaw-no-labels",(u=function(e,n){this.tablesaw=n,this.$table=t(e),this.labelless=this.$table.is("["+l+"]"),this.hideempty=this.$table.is("[data-tablesaw-hide-empty]"),this.$table.data(a,this)}).prototype.init=function(){if(this.$table.addClass(o),!this.labelless){var e=this;this.$table.find("th, td").filter(function(){return!t(this).closest("thead").length}).filter(function(){return!(t(this).is("["+l+"]")||t(this).closest("tr").is("["+l+"]")||e.hideempty&&!t(this).html())}).each(function(){var i=t(n.createElement("b")).addClass(s),o=t(this);t(e.tablesaw._findPrimaryHeadersForCell(this)).each(function(e){var o=t(this.cloneNode(!0)),s=o.find(".tablesaw-sortable-btn");o.find(".tablesaw-sortable-arrow").remove();var r=o.find("[data-tablesaw-checkall]");if(r.closest("label").remove(),r.length)i=t([]);else{e>0&&i.append(n.createTextNode(", "));for(var a,l=s.length?s[0]:o[0];a=l.firstChild;)i[0].appendChild(a)}}),i.length&&!o.find("."+r).length&&o.wrapInner("<span class='"+r+"'></span>");var a=o.find("."+s);a.length?a.replaceWith(i):(o.prepend(n.createTextNode(" ")),o.prepend(i))})}},u.prototype.destroy=function(){this.$table.removeClass(o),this.$table.find("."+s).remove(),this.$table.find("."+r).each(function(){t(this).replaceWith(t(this.childNodes))})},t(n).on(w.events.create,function(t,e){"stack"===e.mode&&new u(e.table,e).init()}).on(w.events.refresh,function(e,n){"stack"===n.mode&&t(n.table).data(a).init()}).on(w.events.destroy,function(e,n){"stack"===n.mode&&t(n.table).data(a).destroy()}),w.Stack=u,c="tablesawbtn",d={_create:function(){return t(this).each(function(){t(this).trigger("beforecreate."+c)[c]("_init").trigger("create."+c)})},_init:function(){var e=t(this),n=this.getElementsByTagName("select")[0];return n&&t(this).addClass("btn-select tablesaw-btn-select")[c]("_select",n),e},_select:function(e){var i=function(e,i){var o,s,r=t(i).find("option"),a=n.createElement("span"),l=!1;if(a.setAttribute("aria-hidden","true"),a.innerHTML=" ",r.each(function(){this.selected&&(a.innerHTML=this.text)}),s=e.childNodes,r.length>0){for(var u=0,c=s.length;u<c;u++)(o=s[u])&&"SPAN"===o.nodeName.toUpperCase()&&(e.replaceChild(a,o),l=!0);l||e.insertBefore(a,e.firstChild)}};i(this,e),t(this).on("change refresh",function(){i(this,e)})}},t.fn[c]=function(e,n,i,o){return this.each(function(){return e&&"string"==typeof e?t.fn[c].prototype[e].call(this,n,i,o):t(this).data(c+"active")?t(this):(t(this).data(c+"active",!0),void t.fn[c].prototype._create.call(this))})},t.extend(t.fn[c].prototype,d),h="tablesaw-coltoggle",(f=function(e){this.$table=t(e),this.$table.length&&(this.tablesaw=this.$table.data("tablesaw"),this.attributes={btnTarget:"data-tablesaw-columntoggle-btn-target",set:"data-tablesaw-columntoggle-set"},this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-"},this.set=[],this.$headers=this.tablesaw._getPrimaryHeaderCells(),this.$table.data(h,this))}).prototype.initSet=function(){var e=this.$table.attr(this.attributes.set);if(e){var n=this.$table[0];this.set=t("table["+this.attributes.set+"='"+e+"']").filter(function(){return this!==n}).get()}},f.prototype.init=function(){if(this.$table.length){var i,o,s,r,a,l,u=this,c=this.tablesaw.getConfig({getColumnToggleLabelTemplate:function(t){return"<label><input type='checkbox' checked>"+t+"</label>"}});this.$table.addClass(this.classes.columnToggleTable),o=(i=this.$table.attr("id"))+"-popup",l=t("<div class='"+this.classes.columnBtnContain+"'></div>"),s=t("<a href='#"+o+"' class='btn tablesaw-btn btn-micro "+this.classes.columnBtn+"' data-popup-link><span>"+w.i18n.columnToggleButton+"</span></a>"),r=t("<div class='"+this.classes.popup+"' id='"+o+"'></div>"),a=t("<div class='tablesaw-btn-group'></div>"),this.$popup=r;var d=!1;this.$headers.each(function(){var e=t(this),n=e.attr("data-tablesaw-priority"),i=u.tablesaw._$getCells(this);n&&"persist"!==n&&(i.addClass(u.classes.priorityPrefix+n),t(c.getColumnToggleLabelTemplate(e.text())).appendTo(a).find('input[type="checkbox"]').data("tablesaw-header",this),d=!0)}),d||a.append("<label>"+w.i18n.columnToggleError+"</label>"),a.appendTo(r),a.find('input[type="checkbox"]').on("change",function(e){var n;v(e.target),u.set.length&&(t(u.$popup).find("input[type='checkbox']").each(function(t){if(this===e.target)return n=t,!1}),t(u.set).each(function(){var i=t(this).data(h).$popup.find("input[type='checkbox']").get(n);i&&(i.checked=e.target.checked,v(i))}))}),s.appendTo(l);var f,p=t(this.$table.attr(this.attributes.btnTarget));l.appendTo(p.length?p:this.tablesaw.$toolbar),s.on("click.tablesaw",function(o){o.preventDefault(),l.is(".visible")?b():(l.addClass("visible"),s.removeClass("down").addClass("up"),t(n).off("click."+i,b),e.clearTimeout(f),f=e.setTimeout(function(){t(n).on("click."+i,b)},15))}),r.appendTo(l),this.$menu=a;var g,m=this.$table.closest(".tablesaw-overflow");m.css("-webkit-overflow-scrolling")&&m.on("scroll",function(){var n=t(this);e.clearTimeout(g),g=e.setTimeout(function(){n.css("-webkit-overflow-scrolling","auto"),e.setTimeout(function(){n.css("-webkit-overflow-scrolling","touch")},0)},100)}),t(e).on(w.events.resize+"."+i,function(){u.refreshToggle()}),this.initSet(),this.refreshToggle()}function v(t){var e=t.checked,n=u.getHeaderFromCheckbox(t),i=u.tablesaw._$getCells(n);i[e?"removeClass":"addClass"]("tablesaw-toggle-cellhidden"),i[e?"addClass":"removeClass"]("tablesaw-toggle-cellvisible"),u.updateColspanCells(n,e),u.$table.trigger("tablesawcolumns")}function b(e){e&&t(e.target).closest("."+u.classes.popup).length||(t(n).off("click."+i),s.removeClass("up").addClass("down"),l.removeClass("visible"))}},f.prototype.getHeaderFromCheckbox=function(e){return t(e).data("tablesaw-header")},f.prototype.refreshToggle=function(){var t=this;this.$menu.find("input").each(function(){var e=t.getHeaderFromCheckbox(this);this.checked="table-cell"===t.tablesaw._$getCells(e).eq(0).css("display")}),this.updateColspanCells()},f.prototype.updateColspanCells=function(t,e){this.tablesaw.updateColspanCells("tablesaw-toggle-cellhidden",t,e)},f.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable),this.$table.find("th, td").each(function(){t(this).removeClass("tablesaw-toggle-cellhidden").removeClass("tablesaw-toggle-cellvisible"),this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"")})},t(n).on(w.events.create,function(t,e){"columntoggle"===e.mode&&new f(e.table).init()}),t(n).on(w.events.destroy,function(e,n){"columntoggle"===n.mode&&t(n.table).data(h).destroy()}),t(n).on(w.events.refresh,function(e,n){"columntoggle"===n.mode&&t(n.table).data(h).refreshToggle()}),w.ColumnToggle=f,function(){function e(e){var n=[];return t(e.childNodes).each(function(){var e=t(this);e.is("input, select")?n.push(e.val()):e.is(".tablesaw-cell-label")||n.push((e.text()||"").replace(/^\s+|\s+$/g,""))}),n.join("")}var i="tablesaw-sortable",o="table[data-"+i+"]",s="[data-"+i+"-switch]",r="data-tablesaw-sortable-col",a="data-tablesaw-sortable-default-col",l="data-tablesaw-sortable-numeric",u="data-tablesaw-subrow",c={head:i+"-head",ascend:i+"-ascending",descend:i+"-descending",switcher:i+"-switch",tableToolbar:"tablesaw-bar-section",sortButton:i+"-btn"},d={_create:function(e){return t(this).each(function(){if(t(this).data(i+"-init"))return!1;t(this).data(i+"-init",!0).trigger("beforecreate."+i)[i]("_init",e).trigger("create."+i)})},_init:function(){var n,o,u,d=t(this),h=d.data("tablesaw");function f(e){t.each(e,function(e,n){var i=t(n);i.removeAttr(a),i.removeClass(c.ascend),i.removeClass(c.descend)})}d.addClass(i),u=n=d.children().filter("thead").find("th["+r+"]"),t.each(u,function(e,n){t(n).addClass(c.head)}),function(e,n){t.each(e,function(e,i){var o=t("<button class='"+c.sortButton+"'/>");o.on("click",{col:i},n),t(i).wrapInner(o).find("button").append("<span class='tablesaw-sortable-arrow'>")})}(n,function(e){if(!t(e.target).is("a[href]")){e.stopPropagation();var s=t(e.target).closest("["+r+"]"),a=e.data.col,l=n.index(s[0]);f(s.closest("thead").find("th").filter(function(){return this!==s[0]})),s.is("."+c.descend)||!s.is("."+c.ascend)?(d[i]("sortBy",a,!0),l+="_asc"):(d[i]("sortBy",a),l+="_desc"),o&&o.find("select").val(l).trigger("refresh"),e.preventDefault()}}),function(e){t.each(e,function(e,n){var i=t(n);i.is("["+a+"]")&&(i.is("."+c.descend)||i.addClass(c.ascend))})}(n),d.is(s)&&function(n){o=t("<div>").addClass(c.switcher).addClass(c.tableToolbar);var s=["<label>"+w.i18n.sort+":"];s.push('<span class="btn tablesaw-btn"><select>'),n.each(function(n){var i=t(this),o=i.is("["+a+"]"),r=i.is("."+c.descend),u=i.is("["+l+"]"),d=0;t(this.cells.slice(0,5)).each(function(){isNaN(parseInt(e(this),10))||d++});var h=5===d;u||i.attr(l,h?"":"false"),s.push("<option"+(o&&!r?" selected":"")+' value="'+n+'_asc">'+i.text()+" "+(h?"↑":"(A-Z)")+"</option>"),s.push("<option"+(o&&r?" selected":"")+' value="'+n+'_desc">'+i.text()+" "+(h?"↓":"(Z-A)")+"</option>")}),s.push("</select></span></label>"),o.html(s.join(""));var r=h.$toolbar.children().eq(0);r.length?o.insertBefore(r):o.appendTo(h.$toolbar),o.find(".tablesaw-btn").tablesawbtn(),o.find("select").on("change",function(){var e=t(this).val().split("_"),o=n.eq(e[0]);f(o.siblings()),d[i]("sortBy",o.get(0),"asc"===e[1])})}(n)},sortRows:function(n,i,o,s,r){var a,c=function(n,i){var o=[];return t.each(n,function(n,s){for(var r=s.parentNode,a=t(r),l=[],c=a.next();c.is("["+u+"]");)l.push(c[0]),c=c.next();var d=r.parentNode;a.is("["+u+"]")||d===i&&o.push({element:s,cell:e(s),row:r,subrows:l.length?l:null,ignored:a.is("[data-tablesaw-ignorerow]")})}),o}(s.cells,r),d=t(s).data("tablesaw-sort");return a=!(!d||"function"!=typeof d)&&d(o)||function(t,e){var n=/[^\-\+\d\.]/g;return t?function(t,i){return t.ignored||i.ignored?0:e?parseFloat(t.cell.replace(n,""))-parseFloat(i.cell.replace(n,"")):t.cell.toLowerCase()>i.cell.toLowerCase()?1:-1}:function(t,i){return t.ignored||i.ignored?0:e?parseFloat(i.cell.replace(n,""))-parseFloat(t.cell.replace(n,"")):t.cell.toLowerCase()<i.cell.toLowerCase()?1:-1}}(o,t(s).is("["+l+"]")&&!t(s).is("["+l+'="false"]')),function(t){var e,n,i=[];for(e=0,n=t.length;e<n;e++)i.push(t[e].row),t[e].subrows&&i.push(t[e].subrows);return i}(c.sort(a))},makeColDefault:function(e,n){var i=t(e);i.attr(a,"true"),n?(i.removeClass(c.descend),i.addClass(c.ascend)):(i.removeClass(c.ascend),i.addClass(c.descend))},sortBy:function(e,n){var o,s=t(this),r=s.data("tablesaw");r.$tbody.each(function(){var a,l,u,c=t(this),d=r.getBodyRows(this),h=r.headerMapping[0];for(l=0,u=h.length;l<u;l++)if(h[l]===e){o=l;break}for(l=0,u=(a=s[i]("sortRows",d,o,n,e,this)).length;l<u;l++)c.append(a[l])}),s[i]("makeColDefault",e,n),s.trigger("tablesaw-sorted")}};t.fn[i]=function(e){var n,o=Array.prototype.slice.call(arguments,1);return e&&"string"==typeof e?void 0!==(n=t.fn[i].prototype[e].apply(this[0],o))?n:t(this):(t(this).data(i+"-active")||(t(this).data(i+"-active",!0),t.fn[i].prototype._create.call(this,e)),t(this))},t.extend(t.fn[i].prototype,d),t(n).on(w.events.create,function(t,e){e.$table.is(o)&&e.$table[i]()})}(),m="disabled",v="tablesaw-fix-persist",b="tablesaw-swipe-cellhidden",y="tablesaw-swipe-cellpersist",t(n).on(w.events.create,function(i,o){"swipe"===o.mode&&function(i,o){var s=o.data("tablesaw"),r=t("<div class='tablesaw-advance'></div>"),a=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro left'>"+w.i18n.swipePreviousColumn+"</a>").appendTo(r),l=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro right'>"+w.i18n.swipeNextColumn+"</a>").appendTo(r),u=i._getPrimaryHeaderCells(),c=u.not('[data-tablesaw-priority="persist"]'),d=[],h=[],f=t(n.head||"head"),p=o.attr("id");if(!u.length)throw new Error("tablesaw swipe: no header cells found.");function g(){o.css({width:"1px"}),o.find("."+b).removeClass(b),d=[],h=[],u.each(function(){var t=this.offsetWidth;d.push(t),E(this)||h.push(t)}),o.css({width:""})}function _(t){s._$getCells(t).removeClass(b)}function C(t){s._$getCells(t).addClass(b)}function E(e){return t(e).is('[data-tablesaw-priority="persist"]')}function k(){o.removeClass(v),t("#"+p+"-persist").remove()}function S(){var e,n=[];return c.each(function(i){var o=t(this),s="none"===o.css("display")||o.is("."+b);if(s||e){if(s&&e)return n[1]=i,!1}else e=!0,n[0]=i}),n}function x(){var t=S();return[t[1]-1,t[0]-1]}function A(t){return t[1]>-1&&t[1]<c.length}function T(){if(!(n=o.attr("data-tablesaw-swipe-media"))||"matchMedia"in e&&e.matchMedia(n).matches){var n,i=o.parent().width(),r=[],a=0,l=[],c=u.length;u.each(function(e){var n=t(this).is('[data-tablesaw-priority="persist"]');r.push(n),a+=d[e],l.push(a),(n||a>i)&&c--});var h=0===c;u.each(function(t){l[t]>i&&C(this)});var f=!0;u.each(function(t){if(r[t])return s._$getCells(this).addClass(y),void(f&&(s._$getCells(this).css("width",l[t]+"px"),f=!1));(l[t]<=i||h)&&(h=!1,_(this),s.updateColspanCells(b,this,!0))}),k(),o.trigger("tablesawcolumns")}}function O(){D(!0)}function $(){D(!1)}function D(e){var n;if(A(n=e?S():x())){isNaN(n[0])&&(n[0]=e?0:c.length-1);var i,r=function(){var e,n="#"+p+".tablesaw-swipe ",i=[],s=o.width(),r=s,a=[];if(u.each(function(t){var e;E(this)&&(e=this.offsetWidth,r-=e,e<.75*s&&(a.push(t+"-"+e),i.push(n+" ."+y+":nth-child("+(t+1)+") { width: "+e+"px; }")))}),e=a.join("_"),i.length){o.addClass(v);var l=t("#"+p+"-persist");l.length&&l.data("tablesaw-hash")===e||(l.remove(),t("<style>"+i.join("\n")+"</style>").attr("id",p+"-persist").data("tablesaw-hash",e).appendTo(f))}return r}(),a=n[0],l=n[1],d=c.get(a),g=!1,m=!1;C(d),s.updateColspanCells(b,d,!0);for(var w=a+(e?1:-1);w>=0&&w<h.length;){r-=h[w];var k=c.eq(w);k.is(".tablesaw-swipe-cellhidden")?r>0&&(g=!0,m=!0,_(i=k.get(0)),s.updateColspanCells(b,i,!1)):m=!0,e?w++:w--}m?!g&&A(e?S():x())&&D(e):(_(i=c.get(l)),s.updateColspanCells(b,i,!1)),o.trigger("tablesawcolumns")}}function F(t,e){return(t.touches||t.originalEvent.touches)[0][e]}o.addClass("tablesaw-swipe"),g(),r.appendTo(s.$toolbar),p||(p="tableswipe-"+Math.round(1e4*Math.random()),o.attr("id",p)),a.add(l).on("click",function(e){t(e.target).closest(l).length?O():$(),e.preventDefault()}),o.is("[data-tablesaw-no-touch]")||o.on("touchstart.swipetoggle",function(n){var o,s,r=F(n,"pageX"),a=F(n,"pageY"),l=e.pageYOffset;t(e).off(w.events.resize,T),t(this).on("touchmove.swipetoggle",function(t){o=F(t,"pageX"),s=F(t,"pageY")}).on("touchend.swipetoggle",function(){var n=i.getConfig({swipeHorizontalThreshold:30,swipeVerticalThreshold:30}),u=n.swipe?n.swipe.verticalThreshold:n.swipeVerticalThreshold,c=n.swipe?n.swipe.horizontalThreshold:n.swipeHorizontalThreshold,d=Math.abs(e.pageYOffset-l)>=u;Math.abs(s-a)>=u||d||(o-r<-1*c&&O(),o-r>c&&$()),e.setTimeout(function(){t(e).on(w.events.resize,T)},300),t(this).off("touchmove.swipetoggle touchend.swipetoggle")})}),o.on("tablesawcolumns.swipetoggle",function(){var t=A(x()),e=A(S());a[t?"removeClass":"addClass"](m),l[e?"removeClass":"addClass"](m),s.$toolbar[t||e?"removeClass":"addClass"]("tablesaw-all-cols-visible")}).on("tablesawnext.swipetoggle",function(){O()}).on("tablesawprev.swipetoggle",function(){$()}).on(w.events.destroy+".swipetoggle",function(){var n=t(this);n.removeClass("tablesaw-swipe"),s.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,T),n.off(".swipetoggle")}).on(w.events.refresh,function(){k(),g(),T()}),T(),t(e).on(w.events.resize,T)}(o,o.$table)}),p={attr:{init:"data-tablesaw-minimap"},show:function(t){var n=t.getAttribute(p.attr.init);return""===n||!(!n||!("matchMedia"in e))&&e.matchMedia(n).matches}},t(n).on(w.events.create,function(n,i){"swipe"!==i.mode&&"columntoggle"!==i.mode||!i.$table.is("[ "+p.attr.init+"]")||function(n){var i=n.data("tablesaw"),o=t('<div class="tablesaw-advance minimap">'),s=t('<ul class="tablesaw-advance-dots">').appendTo(o),r="tablesaw-advance-dots-hide";function a(){if(p.show(n[0])){o.css("display","block");var e=s.find("li").removeClass(r);n.find("thead th").each(function(n){"none"===t(this).css("display")&&e.eq(n).addClass(r)})}else o.css("display","none")}n.data("tablesaw")._getPrimaryHeaderCells().each(function(){s.append("<li><i></i></li>")}),o.appendTo(i.$toolbar),a(),t(e).on(w.events.resize,a),n.on("tablesawcolumns.minimap",function(){a()}).on(w.events.destroy+".minimap",function(){var n=t(this);i.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,a),n.off(".minimap")})}(i.$table)}),w.MiniMap=p,g={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-bar-section"},modes:["stack","swipe","columntoggle"],init:function(e){var n,i=t(e),o=i.data("tablesaw"),s=i.attr(g.attributes.excludeMode),r=o.$toolbar,a=t("<div>").addClass(g.classes.main+" "+g.classes.toolbar),l=['<label><span class="abbreviated">'+w.i18n.modeSwitchColumnsAbbreviated+'</span><span class="longform">'+w.i18n.modeSwitchColumns+"</span>:"],u=i.attr("data-tablesaw-mode");l.push('<span class="btn tablesaw-btn"><select>');for(var c=0,d=g.modes.length;c<d;c++)s&&s.toLowerCase()===g.modes[c]||(n=u===g.modes[c],l.push("<option"+(n?" selected":"")+' value="'+g.modes[c]+'">'+w.i18n.modes[c]+"</option>"));l.push("</select></span></label>"),a.html(l.join(""));var h=r.find(".tablesaw-advance").eq(0);h.length?a.insertBefore(h):a.appendTo(r),a.find(".tablesaw-btn").tablesawbtn(),a.find("select").on("change",function(n){return g.onModeChange.call(e,n,t(this).val())})},onModeChange:function(e,n){var i=t(this),o=i.data("tablesaw");o.$toolbar.find("."+g.classes.main).remove(),o.destroy(),i.attr("data-tablesaw-mode",n),i.tablesaw()}},t(n).on(w.events.create,function(t,e){e.$table.is(g.selectors.init)&&g.init(e.table)}),function(){var e="tablesawCheckAll";function i(t){this.tablesaw=t,this.$table=t.$table,this.attr="data-tablesaw-checkall",this.checkAllSelector="["+this.attr+"]",this.forceCheckedSelector="["+this.attr+"-checked]",this.forceUncheckedSelector="["+this.attr+"-unchecked]",this.checkboxSelector='input[type="checkbox"]',this.$triggers=null,this.$checkboxes=null,this.$table.data(e)||(this.$table.data(e,this),this.init())}i.prototype._filterCells=function(e){return e.filter(function(){return!t(this).closest("tr").is("[data-tablesaw-subrow],[data-tablesaw-ignorerow]")}).find(this.checkboxSelector).not(this.checkAllSelector)},i.prototype.getCheckboxesForButton=function(e){return this._filterCells(t(t(e).attr(this.attr)))},i.prototype.getCheckboxesForCheckbox=function(e){return this._filterCells(t(t(e).closest("th")[0].cells))},i.prototype.init=function(){var e=this;this.$table.find(this.checkAllSelector).each(function(){t(this).is(e.checkboxSelector)?e.addCheckboxEvents(this):e.addButtonEvents(this)})},i.prototype.addButtonEvents=function(n){var i=this;t(n).on("click",function(n){n.preventDefault();var o,s=i.getCheckboxesForButton(this),r=!0;s.each(function(){this.checked||(r=!1)}),o=!!t(this).is(i.forceCheckedSelector)||!t(this).is(i.forceUncheckedSelector)&&!r,s.each(function(){this.checked=o,t(this).trigger("change."+e)})})},i.prototype.addCheckboxEvents=function(n){var i=this;t(n).on("change",function(){var t=this.checked;i.getCheckboxesForCheckbox(this).each(function(){this.checked=t})});var o=i.getCheckboxesForCheckbox(n);o.on("change."+e,function(){var t=0;o.each(function(){this.checked&&t++});var e=t===o.length;n.checked=e,n.indeterminate=0!==t&&!e})},t(n).on(w.events.create,function(t,e){new i(e)}),w.CheckAll=i}(),w}),function(t){"use strict";if(!("Tablesaw"in t))throw new Error("Tablesaw library not found.");if(!("init"in Tablesaw))throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");Tablesaw.init()}("undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return w}});var i=n(279),o=n.n(i),s=n(370),r=n.n(s),a=n(817),l=n.n(a);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},d=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var i=l()(n);return u("copy"),n.remove(),i},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=d(t.value,e):(n=l()(t),u("copy")),n};function f(t){return f="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},f(t)}function p(t){return p="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},p(t)}function g(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)}}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function b(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(l,t);var e,n,i,o,s,a=(o=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=v(o);if(s){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,t)});function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this)).resolveOptions(e),n.listenClick(t),n}return e=l,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,i=t.container,o=t.target,s=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==f(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?h(s,{container:i}):o?"cut"===n?c(o):h(o,{container:i}):void 0}({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(i?"success":"error",{action:n,text:i,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}],n&&g(e.prototype,n),i&&g(e,i),l}(o()),w=y},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function o(t,e,n,i,o){var r=s.apply(this,arguments);return t.addEventListener(n,r,o),{destroy:function(){t.removeEventListener(n,r,o)}}}function s(t,e,n,o){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,i,s){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,i,s)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),o=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(i.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(i.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(t),i.removeAllRanges(),i.addRange(o),e=i.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function o(){i.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(var s=0,r=i.length;s<r;s++)i[s].fn!==e&&i[s].fn._!==e&&o.push(i[s]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,function(t){"use strict";const e={name:"",placeholder:"",classes:"",classPrefix:"",classInput:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,filterSelectAll:!0,customFilter({text:t,label:e,search:n}){return(e||t).includes(n)},showClear:!1,animate:void 0,styler(){return!1},textTemplate(t){return t[0].innerHTML.trim()},labelTemplate(t){return t[0].getAttribute("label")},onOpen(){return!1},onClose(){return!1},onCheckAll(){return!1},onUncheckAll(){return!1},onFocus(){return!1},onBlur(){return!1},onOptgroupClick(){return!1},onBeforeClick(){return!0},onClick(){return!1},onFilter(){return!1},onClear(){return!1},onAfterCreate(){return!1}},n={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(t,e){return`${t} of ${e} selected`},formatNoMatchesFound(){return"No matches found"}};Object.assign(e,n);const i={BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:e,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","resetFilter","destroy"],LOCALES:{en:n,"en-US":n}};class o{constructor(t){this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;const e=()=>{this.lastCluster!==(this.lastCluster=this.getNum())&&(this.initDOM(this.rows),this.callback())};this.scrollEl.addEventListener("scroll",e,!1),this.destroy=()=>{this.contentEl.innerHtml="",this.scrollEl.removeEventListener("scroll",e,!1)}}initDOM(t){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=t[0]+t[0]+t[0],this.getRowsHeight(t));const e=this.initData(t,this.getNum()),n=e.rows.join(""),i=this.checkChanges("data",n),o=this.checkChanges("top",e.topOffset),s=this.checkChanges("bottom",e.bottomOffset),r=[];i&&o?(e.topOffset&&r.push(this.getExtra("top",e.topOffset)),r.push(n),e.bottomOffset&&r.push(this.getExtra("bottom",e.bottomOffset)),this.contentEl.innerHTML=r.join("")):s&&(this.contentEl.lastChild.style.height=`${e.bottomOffset}px`)}getRowsHeight(){if(void 0===this.itemHeight){const t=this.contentEl.children,e=t[Math.floor(t.length/2)];this.itemHeight=e.offsetHeight}this.blockHeight=this.itemHeight*i.BLOCK_ROWS,this.clusterRows=i.BLOCK_ROWS*i.CLUSTER_BLOCKS,this.clusterHeight=this.blockHeight*i.CLUSTER_BLOCKS}getNum(){return this.scrollTop=this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}initData(t,e){if(t.length<i.BLOCK_ROWS)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};const n=Math.max((this.clusterRows-i.BLOCK_ROWS)*e,0),o=n+this.clusterRows,s=Math.max(n*this.itemHeight,0),r=Math.max((t.length-o)*this.itemHeight,0),a=[];let l=n;s<1&&l++;for(let e=n;e<o;e++)t[e]&&a.push(t[e]);return this.dataStart=n,this.dataEnd=o,{topOffset:s,bottomOffset:r,rowsAbove:l,rows:a}}checkChanges(t,e){const n=e!==this.cache[t];return this.cache[t]=e,n}getExtra(t,e){const n=document.createElement("li");return n.className=`virtual-scroll-${t}`,e&&(n.style.height=`${e}px`),n.outerHTML}}const s=(t,e,n)=>{for(const i of t){if(i[e]===n||i[e]===""+ +i[e]&&+i[e]===n)return i;if("optgroup"===i.type)for(const t of i.children)if(t[e]===n||t[e]===""+ +t[e]&&+t[e]===n)return t}},r=t=>t.normalize?t.normalize("NFD").replace(/[\u0300-\u036F]/g,""):[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((t,{letters:e,base:n})=>t.replace(e,n),t),a=t=>(Object.keys(t).forEach(e=>void 0===t[e]?delete t[e]:""),t),l=t=>t&&"object"==typeof t&&t.__v_raw?t.__v_raw:t;class u{constructor(e,n){this.$el=e,this.options=t.extend({},i.DEFAULTS,n)}init(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}initLocale(){if(this.options.locale){const{locales:e}=t.fn.multipleSelect,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase());let o={};e[this.options.locale]?o=e[this.options.locale]:e[n.join("-")]?o=e[n.join("-")]:e[n[0]]&&(o=e[n[0]]),this._defaultLocales=this._defaultLocales||{};for(const[t,e]of Object.entries(o)){const n=Object.prototype.hasOwnProperty.call(this._defaultLocales,t)?this._defaultLocales[t]:i.DEFAULTS[t];this.options[t]===n&&(this.options[t]=e,this._defaultLocales[t]=e)}}}initContainer(){const e=this.$el[0],n=e.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass(`${this.options.classPrefix}-${this.options.size}`)),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=t(`label[for="${this.$el.attr("id")}"]`)),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===e.getAttribute("multiple")),this.$parent=t(`\n <div class="ms-parent ${e.getAttribute("class")||""} ${this.options.classes}"\n title="${e.getAttribute("title")||""}" />\n `),this.options.placeholder=this.options.placeholder||e.getAttribute("placeholder")||"",this.tabIndex=e.getAttribute("tabindex");let i="";if(null!==this.tabIndex&&(i=this.tabIndex&&`tabindex="${this.tabIndex}"`),this.$el.attr("tabindex",-1),this.$choice=t(`\n <button type="button" class="ms-choice"${i}>\n <span class="ms-placeholder">${this.options.placeholder}</span>\n ${this.options.showClear?'<div class="icon-close"></div>':""}\n <div class="icon-caret"></div>\n </button>\n `),this.$drop=t(`<div class="ms-drop ${this.options.position}" />`),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),e.disabled&&this.$choice.addClass("disabled"),this.selectAllName=`data-name="selectAll${n}"`,this.selectGroupName=`data-name="selectGroup${n}"`,this.selectItemName=`data-name="selectItem${n}"`,!this.options.keepOpen){const n=((t="")=>`click.multiple-select-${t=t||`${+new Date}${~~(1e6*Math.random())}`}`)(this.$el.attr("id"));t(document).off(n).on(n,n=>{t(n.target)[0]!==this.$choice[0]&&t(n.target).parents(".ms-choice")[0]!==this.$choice[0]&&(t(n.target)[0]===this.$drop[0]||t(n.target).parents(".ms-drop")[0]!==this.$drop[0]&&n.target!==e)&&this.options.isOpen&&this.close()})}}initData(){const e=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map(t=>"string"==typeof t||"number"==typeof t?{text:t,value:t}:t.children?.length?{...t,children:t.children.map(t=>({...t}))}:{...t});else if("object"==typeof this.options.data){for(const[t,n]of Object.entries(this.options.data))e.push({value:t,text:n});this.data=e}}else t.each(this.$el.children(),(t,n)=>{this.initRow(t,n)&&e.push(this.initRow(t,n))}),this.options.data=e,this.data=e,this.fromHtml=!0;this.dataTotal=(t=>{let e=0;return t.forEach((t,n)=>{"optgroup"===t.type?(t._key=`group_${n}`,t.visible=void 0===t.visible||t.visible,t.children.forEach((t,i)=>{t.visible=void 0===t.visible||t.visible,t.divider||(t._key=`option_${n}_${i}`,e+=1)})):(t.visible=void 0===t.visible||t.visible,t.divider||(t._key=`option_${n}`,e+=1))}),e})(this.data)}initRow(e,n,i){const o={},s=t(n);return s.is("option")?(o.type="option",o.text=this.options.textTemplate(s),o.value=n.value,o.visible=!0,o.selected=!!n.selected,o.disabled=i||n.disabled,o.classes=n.getAttribute("class")||"",o.title=n.getAttribute("title")||"",(n._value||s.data("value"))&&(o._value=n._value||s.data("value")),Object.keys(s.data()).length&&(o._data=s.data(),o._data.divider&&(o.divider=o._data.divider)),o):s.is("optgroup")?(o.type="optgroup",o.label=this.options.labelTemplate(s),o.visible=!0,o.selected=!!n.selected,o.disabled=n.disabled,o.children=[],Object.keys(s.data()).length&&(o._data=s.data()),t.each(s.children(),(t,e)=>{o.children.push(this.initRow(t,e,o.disabled))}),o):null}initSelected(t){let e=0;for(const t of this.data)if("optgroup"===t.type){const n=t.children.filter(t=>t.selected&&!t.disabled&&t.visible).length;t.children.length&&(t.selected=!this.options.single&&n&&n===t.children.filter(t=>!t.disabled&&t.visible&&!t.divider).length),e+=n}else e+=t.selected&&!t.disabled&&t.visible?1:0;this.allSelected=this.data.filter(t=>t.selected&&!t.disabled&&t.visible).length===this.data.filter(t=>!t.disabled&&t.visible&&!t.divider).length,t||(this.allSelected?this.options.onCheckAll():0===e&&this.options.onUncheckAll())}initFilter(){if(this.filterText="",this.options.filter||!this.options.filterByDataLength)return;let t=0;for(const e of this.data)"optgroup"===e.type?t+=e.children.length:t+=1;this.options.filter=t>this.options.filterByDataLength}initDrop(){this.initList(),this.update(!0),this.options.isOpen&&setTimeout(()=>{this.open()},50),this.options.openOnHover&&this.$parent.hover(()=>{this.open()},()=>{this.close()})}initList(){const t=[];this.options.filter&&t.push(`\n <div class="ms-search">\n <input type="text" autocomplete="off" autocorrect="off"\n autocapitalize="off" spellcheck="false"\n placeholder="${this.options.filterPlaceholder}">\n </div>\n `),t.push("<ul></ul>"),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}initListItems(){const t=this.getListRows();let e=0;if(this.options.selectAll&&!this.options.single&&(e=-1),t.length>i.BLOCK_ROWS*i.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();const n=this.$drop.is(":visible");n||this.$drop.css("left",-1e4).show();const i=()=>{this.updateDataStart=this.virtualScroll.dataStart+e,this.updateDataEnd=this.virtualScroll.dataEnd+e,this.updateDataStart<0&&(this.updateDataStart=0),this.updateDataEnd>this.data.length&&(this.updateDataEnd=this.data.length)};this.virtualScroll=new o({rows:t,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:()=>{i(),this.events()}}),i(),n||this.$drop.css("left",0).hide()}else this.$ul.html(t.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}getListRows(){const t=[];return!this.options.selectAll||this.options.single||!this.options.filterSelectAll&&this.filterText||t.push(`\n <li class="ms-select-all" tabindex="0">\n <label>\n <input\n type="checkbox" ${this.selectAllName}\n ${this.allSelected?' checked="checked"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n />\n <span>${this.options.formatSelectAll()}</span>\n </label>\n </li>\n `),this.updateData=[],this.data.forEach(e=>{t.push(...this.initListItem(e))}),t.push(`<li class="ms-no-results">${this.options.formatNoMatchesFound()}</li>`),t}initListItem(t,e=0){const n=t.title?`title="${t.title}"`:"",i=this.options.multiple?"multiple":"",o=this.options.single?"radio":"checkbox";let s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){const e=this.options.styler(t),n=e?`style="${e}"`:"",i=[],o=this.options.hideOptgroupCheckboxes||this.options.single?`<span ${this.selectGroupName} data-key="${t._key}"></span>`:`<input type="checkbox"\n ${this.selectGroupName}\n data-key="${t._key}"\n ${t.selected?' checked="checked"':""}\n ${t.disabled?' disabled="disabled"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n >`;return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),i.push(`\n <li class="group ${s}" ${n} tabindex="${s.includes("hide-radio")||t.disabled?-1:0}">\n <label class="optgroup${this.options.single||t.disabled?" disabled":""}">\n ${o}${t.label}\n </label>\n </li>\n `),t.children.forEach(t=>{i.push(...this.initListItem(t,1))}),i}const r=this.options.styler(t),a=r?`style="${r}"`:"";return s+=`${t.classes||""} option-level-${e} `,t.divider?'<li class="option-divider"/>':[`\n <li class="${i} ${s}" ${n} ${a} tabindex="${t.disabled?-1:0}">\n <label class="${t.disabled?"disabled":""}">\n <input type="${o}"\n value="${t.value}"\n data-key="${t._key}"\n ${this.selectItemName}\n ${t.selected?' checked="checked"':""}\n ${t.disabled?' disabled="disabled"':""}\n ${this.options.classInput?`class="${this.options.classInput}"`:""}\n tabindex="-1"\n >\n <span>${t.text}</span>\n </label>\n </li>\n `]}events(){this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find(`input[${this.selectAllName}]`),this.$selectGroups=this.$drop.find(`input[${this.selectGroupName}],span[${this.selectGroupName}]`),this.$selectItems=this.$drop.find(`input[${this.selectItemName}]:enabled`),this.$disableItems=this.$drop.find(`input[${this.selectItemName}]:disabled`),this.$noResults=this.$drop.find(".ms-no-results");const e=e=>{e.preventDefault(),t(e.target).hasClass("icon-close")||this[this.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",t=>{"label"===t.target.nodeName.toLowerCase()&&(e(t),this.options.filter&&this.options.isOpen||this.focus(),t.stopPropagation())}),this.$choice.off("click").on("click",e).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",t=>{27!==t.which||this.options.keepOpen||(this.close(),this.$choice.focus())}),this.$close.off("click").on("click",t=>{t.preventDefault(),this._checkAll(!1,!0),this.initSelected(!1),this.updateSelected(),this.update(),this.options.onClear()}),this.$searchInput.off("keydown").on("keydown",t=>{9===t.keyCode&&t.shiftKey&&this.close()}).off("keyup").on("keyup",t=>{if(this.options.filterAcceptOnEnter&&[13,32].includes(t.which)&&this.$searchInput.val()){if(this.options.single){const t=this.$selectItems.closest("li").filter(":visible");t.length&&this.setSelects([t.first().find(`input[${this.selectItemName}]`).val()])}else this.$selectAll.click();return this.close(),void this.focus()}this.filter()}),this.$selectAll.off("click").on("click",e=>{this._checkAll(t(e.currentTarget).prop("checked"))}),this.$selectGroups.off("click").on("click",e=>{const n=t(e.currentTarget),i=n.prop("checked"),o=s(this.data,"_key",n.data("key"));this._checkGroup(o,i),this.options.onOptgroupClick(a({label:o.label,selected:o.selected,data:o._data,children:o.children.map(t=>a({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data}))}))}),this.$selectItems.off("click").on("click",e=>{const n=t(e.currentTarget),i=n.prop("checked"),o=s(this.data,"_key",n.data("key")),r=()=>{this.options.single&&this.options.isOpen&&!this.options.keepOpen&&this.close()};!1!==this.options.onBeforeClick(o)?(this._check(o,i),this.options.onClick(a({text:o.text,value:o.value,selected:o.selected,data:o._data})),r()):r()}),this.$ul.find("li").off("keydown").on("keydown",e=>{const n=t(e.currentTarget);let i,o;switch(e.key){case"ArrowUp":e.preventDefault(),i=n.prev("li.option-divider"),o=i.length?i:n,o.prev().trigger("focus");break;case"ArrowDown":e.preventDefault(),i=n.next("li.option-divider"),o=i.length?i:n,o.next().trigger("focus");break;case"Enter":e.preventDefault(),n.find("input").trigger("click"),this.options.single&&this.$choice.trigger("focus")}})}initView(){let t;window.getComputedStyle?(t=window.getComputedStyle(this.$el[0]).width,"auto"===t&&(t=this.$drop.outerWidth()+20)):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}open(){if(this.$choice.hasClass("disabled"))return;if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){const e=this.$drop.offset();this.$drop.appendTo(t(this.options.container)),this.$drop.offset({top:e.top,left:e.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}let e=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(e=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height",`${e}px`),this.$drop.find(".multiple").css("width",`${this.options.multipleWidth}px`),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}close(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}animateMethod(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}update(t){const e=this.getSelects();let n=this.getSelects("text");this.options.displayValues&&(n=e);const i=this.$choice.find(">span"),o=e.length;let s="";0===o?i.addClass("ms-placeholder").html(this.options.placeholder):s=o<this.options.minimumCountSelected?n.join(this.options.displayDelimiter):this.options.formatAllSelected()&&o===this.dataTotal?this.options.formatAllSelected():this.options.ellipsis&&o>this.options.minimumCountSelected?`${n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter)}...`:this.options.formatCountSelected()&&o>this.options.minimumCountSelected?this.options.formatCountSelected(o,this.dataTotal):n.join(this.options.displayDelimiter),s&&i.removeClass("ms-placeholder").html(s),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}updateSelected(){const e={};this.$drop.find("input[data-key]").each((n,i)=>{const o=t(i);e[o.data("key")]=o});for(let t=this.updateDataStart;t<this.updateDataEnd;t++){const n=this.updateData[t],i=e[n._key];i&&(i.prop("checked",n.selected),i.closest("li").toggleClass("selected",n.selected))}const n=!this.data.some(t=>t.visible);this.$selectAll.length&&this.$selectAll.prop("checked",this.allSelected).closest("li").toggleClass("selected",this.allSelected).toggle(!n),this.$noResults.toggle(n),this.virtualScroll&&(this.virtualScroll.rows=this.getListRows())}getData(){return this.options.data}getOptions(){const e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}refreshOptions(e){((t,e)=>{const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const o of n)if(i.includes(o)&&t[o]!==e[o])return!1;return!0})(this.options,e)||(this.options=t.extend(this.options,e),this.destroy(),this.init())}getSelects(t="value"){const e=[];for(const n of this.data)if("optgroup"===n.type){const i=n.children.filter(t=>t.selected);if(!i.length)continue;if("value"===t||this.options.single)e.push(...i.map(e=>"value"===t&&e._value||e[t]));else{const o=[];o.push("["),o.push(n.label),o.push(`: ${i.map(e=>e[t]).join(", ")}`),o.push("]"),e.push(o.join(""))}}else n.selected&&e.push("value"===t&&n._value||n[t]);return e}setSelects(e,n="value",i=!1){let o=!1;const s=i=>{for(const s of i){let i=!1;if("text"===n)i=e.includes(t("<div>").html(s.text).text().trim());else{const t=l(s._value||s.value);i=e.some(e=>l(e)===t),i||s.value!==""+ +s.value||(i=e.includes(+s.value))}s.selected!==i&&(o=!0),s.selected=i}};for(const t of this.data)"optgroup"===t.type?s(t.children):s([t]);o&&(this.initSelected(i),this.updateSelected(),this.update(i))}enable(){this.$choice.removeClass("disabled")}disable(){this.$choice.addClass("disabled")}check(t){const e=s(this.data,"value",t);e&&this._check(e,!0)}uncheck(t){const e=s(this.data,"value",t);e&&this._check(e,!1)}_check(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}checkAll(){this._checkAll(!0)}uncheckAll(){this._checkAll(!1)}_checkAll(t,e){for(const n of this.data)"optgroup"===n.type?this._checkGroup(n,t,!0):n.disabled||n.divider||!e&&!n.visible||(n.selected=t);e||(this.initSelected(),this.updateSelected(),this.update())}_checkGroup(t,e,n){t.selected=e,t.children.forEach(t=>{t.disabled||t.divider||!n&&!t.visible||(t.selected=e)}),n||(this.initSelected(),this.updateSelected(),this.update())}checkInvert(){if(!this.options.single){for(const t of this.data)if("optgroup"===t.type)for(const e of t.children)e.divider||(e.selected=!e.selected);else t.divider||(t.selected=!t.selected);this.initSelected(),this.updateSelected(),this.update()}}focus(){this.$choice.focus(),this.options.onFocus()}blur(){this.$choice.blur(),this.options.onBlur()}refresh(){this.destroy(),this.init()}resetFilter(){this.options.filter&&(this.$searchInput.val(""),this.filter(!0))}filter(t){const e=this.$searchInput.val().trim(),n=e.toLowerCase();if(this.filterText!==n){this.filterText=n;for(const t of this.data)if("optgroup"===t.type)if(this.options.filterGroup){const i=this.options.customFilter({label:r(t.label.toString().toLowerCase()),search:r(n),originalLabel:t.label,originalSearch:e,row:t});t.visible=i;for(const e of t.children)e.visible=i}else{for(const i of t.children)i.visible=this.options.customFilter({text:r(i.text.toString().toLowerCase()),search:r(n),originalText:i.text,originalSearch:e,row:i,parent:t});t.visible=t.children.filter(t=>t.visible).length>0}else t.visible=this.options.customFilter({text:r(t.text.toString().toLowerCase()),search:r(n),originalText:t.text,originalSearch:e,row:t});this.initListItems(),this.initSelected(t),this.updateSelected(),t||this.options.onFilter(e)}}destroy(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}t.fn.multipleSelect=function(e,...n){let o;return this.each((s,r)=>{const a=t(r);let l=a.data("multipleSelect");const c=t.extend({},a.data(),"object"==typeof e&&e);if(l||(l=new u(a,c),a.data("multipleSelect",l)),"string"==typeof e){if(t.inArray(e,i.METHODS)<0)throw new Error(`Unknown method: ${e}`);o=l[e](...n),"destroy"===e&&a.removeData("multipleSelect")}else l.init()}),void 0!==o?o:this},t.fn.multipleSelect.Constructor=u,t.fn.multipleSelect.defaults=i.DEFAULTS,t.fn.multipleSelect.locales=i.LOCALES,t.fn.multipleSelect.methods=i.METHODS}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,function(t){"use strict";t.fn.multipleSelect.locales["de-DE"]=t.fn.multipleSelect.locales.de={formatSelectAll(){return"[Alle auswählen]"},formatAllSelected(){return"Alle ausgewählt"},formatCountSelected(t,e){return`${t} von ${e} ausgewählt`},formatNoMatchesFound(){return"Keine Treffer"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["de-DE"])}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,function(t){"use strict";t.fn.multipleSelect.locales["it-IT"]=t.fn.multipleSelect.locales.it={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(t,e){return`${t} di ${e} selezionati`},formatNoMatchesFound(){return"Nessun risultato"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["it-IT"])}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,function(t){"use strict";t.fn.multipleSelect.locales["fr-FR"]=t.fn.multipleSelect.locales.fr={formatSelectAll(){return"[Tout sélectionner]"},formatAllSelected(){return"Tous sélectionnés"},formatCountSelected(t,e){return`${t} de ${e} sélectionnés`},formatNoMatchesFound(){return"Aucun résultat"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["fr-FR"])}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,function(t){"use strict";t.fn.multipleSelect.locales["en-US"]=t.fn.multipleSelect.locales.en={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(t,e){return`${t} of ${e} selected`},formatNoMatchesFound(){return"No matches found"}},t.extend(t.fn.multipleSelect.defaults,t.fn.multipleSelect.locales["en-US"])}),function(t,e){"function"==typeof define&&define.amd?define("sifter",e):"object"==typeof exports?module.exports=e():t.Sifter=e()}(this,function(){var t=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};t.prototype.tokenize=function(t,e){if(!(t=o(String(t||"").toLowerCase()))||!t.length)return[];var n,i,r,l,u=[],c=t.split(/ +/);for(n=0,i=c.length;n<i;n++){if(r=s(c[n]),this.settings.diacritics)for(l in a)a.hasOwnProperty(l)&&(r=r.replace(new RegExp(l,"g"),a[l]));e&&(r="\\b"+r),u.push({string:c[n],regex:new RegExp(r,"i")})}return u},t.prototype.iterator=function(t,e){var n;n=r(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;e<n;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)},n.apply(t,[e])},t.prototype.getScoreFunction=function(t,e){var n,o,s,r;t=this.prepareSearch(t,e),o=t.tokens,n=t.options.fields,s=o.length,r=t.options.nesting;var a,l=function(t,e){var n,i;return t?-1===(i=(t=String(t||"")).search(e.regex))?0:(n=e.string.length/t.length,0===i&&(n+=.5),n):0},u=(a=n.length)?1===a?function(t,e){return l(i(e,n[0],r),t)}:function(t,e){for(var o=0,s=0;o<a;o++)s+=l(i(e,n[o],r),t);return s/a}:function(){return 0};return s?1===s?function(t){return u(o[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,i=0;n<s;n++){if((e=u(o[n],t))<=0)return 0;i+=e}return i/s}:function(t){for(var e=0,n=0;e<s;e++)n+=u(o[e],t);return n/s}:function(){return 0}},t.prototype.getSortFunction=function(t,n){var o,s,r,a,l,u,c,d,h,f,p;if(p=!(t=(r=this).prepareSearch(t,n)).query&&n.sort_empty||n.sort,h=function(t,e){return"$score"===t?e.score:i(r.items[e.id],t,n.nesting)},l=[],p)for(o=0,s=p.length;o<s;o++)(t.query||"$score"!==p[o].field)&&l.push(p[o]);if(t.query){for(f=!0,o=0,s=l.length;o<s;o++)if("$score"===l[o].field){f=!1;break}f&&l.unshift({field:"$score",direction:"desc"})}else for(o=0,s=l.length;o<s;o++)if("$score"===l[o].field){l.splice(o,1);break}for(d=[],o=0,s=l.length;o<s;o++)d.push("desc"===l[o].direction?-1:1);return(u=l.length)?1===u?(a=l[0].field,c=d[0],function(t,n){return c*e(h(a,t),h(a,n))}):function(t,n){var i,o,s;for(i=0;i<u;i++)if(s=l[i].field,o=d[i]*e(h(s,t),h(s,n)))return o;return 0}:null},t.prototype.prepareSearch=function(t,e){if("object"==typeof t)return t;var i=(e=n({},e)).fields,o=e.sort,s=e.sort_empty;return i&&!r(i)&&(e.fields=[i]),o&&!r(o)&&(e.sort=[o]),s&&!r(s)&&(e.sort_empty=[s]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t,e.respect_word_boundaries),total:0,items:[]}},t.prototype.search=function(t,e){var n,i,o,s,r=this;return i=this.prepareSearch(t,e),e=i.options,t=i.query,s=e.score||r.getScoreFunction(i),t.length?r.iterator(r.items,function(t,o){n=s(t),(!1===e.filter||n>0)&&i.items.push({score:n,id:o})}):r.iterator(r.items,function(t,e){i.items.push({score:1,id:e})}),(o=r.getSortFunction(i,e))&&i.items.sort(o),i.total=i.items.length,"number"==typeof e.limit&&(i.items=i.items.slice(0,e.limit)),i};var e=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=l(String(t||"")))>(e=l(String(e||"")))?1:e>t?-1:0},n=function(t,e){var n,i,o,s;for(n=1,i=arguments.length;n<i;n++)if(s=arguments[n])for(o in s)s.hasOwnProperty(o)&&(t[o]=s[o]);return t},i=function(t,e,n){if(t&&e){if(!n)return t[e];for(var i=e.split(".");i.length&&(t=t[i.shift()]););return t}},o=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},s=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},r=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},a={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},l=function(){var t,e,n,i,o="",s={};for(n in a)if(a.hasOwnProperty(n))for(o+=i=a[n].substring(2,a[n].length-1),t=0,e=i.length;t<e;t++)s[i.charAt(t)]=n;var r=new RegExp("["+o+"]","g");return function(t){return t.replace(r,function(t){return s[t]}).toLowerCase()}}();return t}),function(t,e){"function"==typeof define&&define.amd?define("microplugin",e):"object"==typeof exports?module.exports=e():t.MicroPlugin=e()}(this,function(){var t={mixin:function(t){t.plugins={},t.prototype.initializePlugins=function(t){var n,i,o,s=this,r=[];if(s.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(n=0,i=t.length;n<i;n++)"string"==typeof t[n]?r.push(t[n]):(s.plugins.settings[t[n].name]=t[n].options,r.push(t[n].name));else if(t)for(o in t)t.hasOwnProperty(o)&&(s.plugins.settings[o]=t[o],r.push(o));for(;r.length;)s.require(r.shift())},t.prototype.loadPlugin=function(e){var n=this,i=n.plugins,o=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');i.requested[e]=!0,i.loaded[e]=o.fn.apply(n,[n.plugins.settings[e]||{}]),i.names.push(e)},t.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},t.define=function(e,n){t.plugins[e]={name:e,fn:n}}}},e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t}),function(t,e){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery"),require("sifter"),require("microplugin")):t.Selectize=e(t.jQuery,t.Sifter,t.MicroPlugin)}(this,function(t,e,n){"use strict";var i=function(t,e){if("string"!=typeof e||e.length){var n="string"==typeof e?new RegExp(e,"i"):e,i=function(t){var e=0;if(3===t.nodeType){var o=t.data.search(n);if(o>=0&&t.data.length>0){var s=t.data.match(n),r=document.createElement("span");r.className="highlight";var a=t.splitText(o),l=(a.splitText(s[0].length),a.cloneNode(!0));r.appendChild(l),a.parentNode.replaceChild(r,a),e=1}}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var u=0;u<t.childNodes.length;++u)u+=i(t.childNodes[u]);return e};return t.each(function(){i(this)})}};t.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()}).end()};var o=function(){};function s(t,e){return navigator.userAgentData?t===navigator.userAgentData.platform:e.test(navigator.userAgent)}o.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},o.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=o.prototype[e[n]]};var r,a=s("macOS",/Mac/),l=a?91:17,u=a?18:17,c=!s("Android",/android/i)&&!!document.createElement("input").validity,d=function(t){return void 0!==t},h=function(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""},f=function(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},p=function(t,e,n){var i=t[e];t[e]=function(){var e=i.apply(t,arguments);return n.apply(t,arguments),e}},g=function(t,e,n){var i,o=t.trigger,s={};for(i in t.trigger=function(){var n=arguments[0];if(-1===e.indexOf(n))return o.apply(t,arguments);s[n]=arguments},n.apply(t,[]),t.trigger=o,s)s.hasOwnProperty(i)&&o.apply(t,s[i])},m=function(t){var e={};if(void 0===t)return console.warn("WARN getSelection cannot locate input control"),e;if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-t.value.length),e.start=n.text.length-i,e.length=i}return e},v=function(e,n){return e?(y.$testInput||(y.$testInput=t("<span />").css({position:"absolute",width:"auto",padding:0,whiteSpace:"pre"}),t("<div />").css({position:"absolute",width:0,height:0,overflow:"hidden"}).append(y.$testInput).appendTo("body")),y.$testInput.text(e),function(t,e,n){var i,o,s={};if(n)for(i=0,o=n.length;i<o;i++)s[n[i]]=t.css(n[i]);else s=t.css();e.css(s)}(n,y.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),y.$testInput.width()):0},b=function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML},y=function(n,i){var o,s,r,a,l=this;(a=n[0]).selectize=l;var u,c,d,h=window.getComputedStyle&&window.getComputedStyle(a,null);if(r=(r=h?h.getPropertyValue("direction"):a.currentStyle&&a.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",t.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===a.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(r),eventNS:".selectize"+ ++y.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",lastValidValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:(u=l.onSearchChange,c=i.loadThrottle,function(){var t=this,e=arguments;window.clearTimeout(d),d=window.setTimeout(function(){u.apply(t,e)},c)})}),l.sifter=new e(this.options,{diacritics:i.diacritics}),l.settings.options){for(o=0,s=l.settings.options.length;o<s;o++)l.registerOption(l.settings.options[o]);delete l.settings.options}if(l.settings.optgroups){for(o=0,s=l.settings.optgroups.length;o<s;o++)l.registerOptionGroup(l.settings.optgroups[o]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return o.mixin(y),void 0!==n?n.mixin(y):((r={explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'})||(r={}),console.error("Selectize: Dependency MicroPlugin is missing"),r.explanation&&(console.group&&console.group(),console.error(r.explanation),console.group&&console.groupEnd())),t.extend(y.prototype,{setup:function(){var e,n,i,o,s,r,d,h,f,p,g,b,y=this,w=y.settings,_=y.eventNS,C=t(window),E=t(document),k=y.$input;if(d=y.settings.mode,h=k.attr("class")||"",e=t("<div>").addClass(w.wrapperClass).addClass(h).addClass(d),n=t("<div>").addClass(w.inputClass).addClass("items").appendTo(e),i=t('<input type="text" autocomplete="new-password" autofill="no" />').appendTo(n).attr("tabindex",k.is(":disabled")?"-1":y.tabIndex),r=t(w.dropdownParent||e),o=t("<div>").addClass(w.dropdownClass).addClass(d).hide().appendTo(r),s=t("<div>").addClass(w.dropdownContentClass).attr("tabindex","-1").appendTo(o),(p=k.attr("id"))&&(i.attr("id",p+"-selectized"),t("label[for='"+p+"']").attr("for",p+"-selectized")),y.settings.copyClassesToDropdown&&o.addClass(h),e.css({width:k[0].style.width}),y.plugins.names.length&&(f="plugin-"+y.plugins.names.join(" plugin-"),e.addClass(f),o.addClass(f)),(null===w.maxItems||w.maxItems>1)&&1===y.tagType&&k.attr("multiple","multiple"),y.settings.placeholder&&i.attr("placeholder",w.placeholder),!y.settings.splitOn&&y.settings.delimiter){var S=y.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");y.settings.splitOn=new RegExp("\\s*"+S+"+\\s*")}k.attr("autocorrect")&&i.attr("autocorrect",k.attr("autocorrect")),k.attr("autocapitalize")&&i.attr("autocapitalize",k.attr("autocapitalize")),k.is("input")&&(i[0].type=k[0].type),y.$wrapper=e,y.$control=n,y.$control_input=i,y.$dropdown=o,y.$dropdown_content=s,o.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(t){t.stopImmediatePropagation()}),o.on("mouseenter","[data-selectable]",function(){return y.onOptionHover.apply(y,arguments)}),o.on("mousedown click","[data-selectable]",function(){return y.onOptionSelect.apply(y,arguments)}),b=function(){return y.onItemSelect.apply(y,arguments)},(g=n).on("mousedown","*:not(input)",function(t){for(var e=t.target;e&&e.parentNode!==g[0];)e=e.parentNode;return t.currentTarget=e,b.apply(this,[t])}),function(t){var e=null,n=function(n,i){var o,s,r,a,l,u,c,d,h;i=i||{},(n=n||window.event||{}).metaKey||n.altKey||(i.force||!1!==t.data("grow"))&&(o=t.val(),n.type&&"keydown"===n.type.toLowerCase()&&(r=(s=n.keyCode)>=48&&s<=57||s>=65&&s<=90||s>=96&&s<=111||s>=186&&s<=222||32===s,46===s||8===s?(h=m(t[0])).length?o=o.substring(0,h.start)+o.substring(h.start+h.length):8===s&&h.start?o=o.substring(0,h.start-1)+o.substring(h.start+1):46===s&&void 0!==h.start&&(o=o.substring(0,h.start)+o.substring(h.start+1)):r&&(c=n.shiftKey,d=String.fromCharCode(n.keyCode),o+=d=c?d.toUpperCase():d.toLowerCase())),u=(l=t.attr("placeholder"))?v(l,t)+4:0,(a=Math.max(v(o,t),u)+4)!==e&&(e=a,t.width(a),t.triggerHandler("resize")))};t.on("keydown keyup update blur",n),n()}(i),n.on({mousedown:function(){return y.onMouseDown.apply(y,arguments)},click:function(){return y.onClick.apply(y,arguments)}}),i.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return y.onKeyDown.apply(y,arguments)},keypress:function(){return y.onKeyPress.apply(y,arguments)},input:function(){return y.onInput.apply(y,arguments)},resize:function(){y.positionDropdown.apply(y,[])},blur:function(){return y.onBlur.apply(y,arguments)},focus:function(){return y.ignoreBlur=!1,y.onFocus.apply(y,arguments)},paste:function(){return y.onPaste.apply(y,arguments)}}),E.on("keydown"+_,function(t){y.isCmdDown=t[a?"metaKey":"ctrlKey"],y.isCtrlDown=t[a?"altKey":"ctrlKey"],y.isShiftDown=t.shiftKey}),E.on("keyup"+_,function(t){t.keyCode===u&&(y.isCtrlDown=!1),16===t.keyCode&&(y.isShiftDown=!1),t.keyCode===l&&(y.isCmdDown=!1)}),E.on("mousedown"+_,function(t){if(y.isFocused){if(t.target===y.$dropdown[0]||t.target.parentNode===y.$dropdown[0])return!1;y.$control.has(t.target).length||t.target===y.$control[0]||y.blur(t.target)}}),C.on(["scroll"+_,"resize"+_].join(" "),function(){y.isOpen&&y.positionDropdown.apply(y,arguments)}),C.on("mousemove"+_,function(){y.ignoreHover=!1}),this.revertSettings={$children:k.children().detach(),tabindex:k.attr("tabindex")},k.attr("tabindex",-1).hide().after(y.$wrapper),Array.isArray(w.items)&&(y.lastValidValue=w.items,y.setValue(w.items),delete w.items),c&&k.on("invalid"+_,function(t){t.preventDefault(),y.isInvalid=!0,y.refreshState()}),y.updateOriginalInput(),y.refreshItems(),y.refreshState(),y.updatePlaceholder(),y.isSetup=!0,k.is(":disabled")&&y.disable(),y.on("change",this.onChange),k.data("selectize",y),k.addClass("selectized"),y.trigger("initialize"),!0===w.preload&&y.onSearchChange("")},setupTemplates:function(){var e=this,n=e.settings.labelField,i=e.settings.valueField,o=e.settings.optgroupLabelField,s={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[o])+"</div>"},option:function(t,e){return'<div class="option '+(""===t[i]?"selectize-dropdown-emptyoptionlabel":"")+'">'+e(t[n])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[n])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>"}};e.settings.render=t.extend({},s,e.settings.render)},setupCallbacks:function(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur",dropdown_item_activate:"onDropdownItemActivate",dropdown_item_deactivate:"onDropdownItemDeactivate"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]])&&this.on(t,e)},onClick:function(t){var e=this;e.isFocused&&e.isOpen||(e.focus(),t.preventDefault())},onMouseDown:function(e){var n=this,i=e.isDefaultPrevented();if(t(e.target),n.isFocused){if(e.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1}else i||window.setTimeout(function(){n.focus()},0)},onChange:function(){var t=this;""!==t.getValue()&&(t.lastValidValue=t.getValue()),this.$input.trigger("input"),this.$input.trigger("change")},onPaste:function(t){var e=this;e.isFull()||e.isInputHidden||e.isLocked?t.preventDefault():e.settings.splitOn&&setTimeout(function(){var t=e.$control_input.val();if(t.match(e.settings.splitOn))for(var n=t.trim().split(e.settings.splitOn),i=0,o=n.length;i<o;i++)e.createItem(n[i])},0)},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){t.target,this.$control_input[0];var e=this;if(e.isLocked)9!==t.keyCode&&t.preventDefault();else{switch(t.keyCode){case 65:if(e.isCmdDown)return void e.selectAll();break;case 27:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case 78:if(!t.ctrlKey||t.altKey)break;case 40:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case 80:if(!t.ctrlKey||t.altKey)break;case 38:if(e.$activeOption){e.ignoreHover=!0;var i=e.getAdjacentOption(e.$activeOption,-1);i.length&&e.setActiveOption(i,!0,!0)}return void t.preventDefault();case 13:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case 37:return void e.advanceSelection(-1,t);case 39:return void e.advanceSelection(1,t);case 9:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&e.settings.showAddOptionOnCreate&&t.preventDefault());case 8:case 46:return void e.deleteSelection(t)}!e.isFull()&&!e.isInputHidden||(a?t.metaKey:t.ctrlKey)||t.preventDefault()}},onInput:function(t){var e=this,n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(t){var e=this,n=e.settings.load;n&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0,e.load(function(i){n.apply(e,[t,i])})))},onFocus:function(t){var e=this,n=e.isFocused;if(e.isDisabled)return e.blur(),t&&t.preventDefault(),!1;e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())},onBlur:function(t,e){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(t);var i=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),e&&e.focus&&e.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,i):i()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(e){var n,i,o=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),(i=t(e.currentTarget)).hasClass("create")?o.createItem(null,function(){o.settings.closeAfterSelect&&o.close()}):void 0!==(n=i.attr("data-value"))&&(o.lastQuery=null,o.setTextboxValue(""),o.addItem(n),o.settings.closeAfterSelect?o.close():!o.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&o.setActiveOption(o.getOption(n)))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},getTextboxValue:function(){return this.$control_input.val()},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){g(this,e?[]:["change"],function(){this.clear(e),this.addItems(t,e)})},setMaxItems:function(t){0===t&&(t=null),this.settings.maxItems=t,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),this.refreshState()},setActiveItem:function(e,n){var i,o,s,r,a,l,u,c,d=this;if("single"!==d.settings.mode){if(!(e=t(e)).length)return t(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(i=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(c=d.$control.children(".active:last"),(r=Array.prototype.indexOf.apply(d.$control[0].childNodes,[c[0]]))>(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[e[0]]))&&(u=r,r=a,a=u),o=r;o<=a;o++)l=d.$control[0].childNodes[o],-1===d.$activeItems.indexOf(l)&&(t(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()}else"mousedown"===i&&d.isCtrlDown||"keydown"===i&&this.isShiftDown?e.hasClass("active")?(s=d.$activeItems.indexOf(e[0]),d.$activeItems.splice(s,1),e.removeClass("active")):d.$activeItems.push(e.addClass("active")[0]):(t(d.$activeItems).removeClass("active"),d.$activeItems=[e.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(e,n,i){var o,s,r,a,l,u=this;u.$activeOption&&(u.$activeOption.removeClass("active"),u.trigger("dropdown_item_deactivate",u.$activeOption.attr("data-value"))),u.$activeOption=null,(e=t(e)).length&&(u.$activeOption=e.addClass("active"),u.isOpen&&u.trigger("dropdown_item_activate",u.$activeOption.attr("data-value")),!n&&d(n)||(o=u.$dropdown_content.height(),s=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,a=r=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,l=r-o+s,r+s>o+n?u.$dropdown_content.stop().animate({scrollTop:l},i?u.settings.scrollDuration:0):r<n&&u.$dropdown_content.stop().animate({scrollTop:a},i?u.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;return t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout(function(){t.ignoreFocus=!1,t.onFocus()},0)),t},blur:function(t){return this.$control_input[0].blur(),this.onBlur(null,t),this},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}},search:function(e){var n,i,o,s=this,r=s.settings,a=this.getSearchOptions();if(r.score&&"function"!=typeof(o=s.settings.score.apply(this,[e])))throw new Error('Selectize "score" setting must be a function that returns a function');if(e!==s.lastQuery?(s.lastQuery=e,i=s.sifter.search(e,t.extend(a,{score:o})),s.currentResults=i):i=t.extend(!0,{},s.currentResults),r.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==s.items.indexOf(h(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(e){var n,o,s,r,a,l,u,c,d,f,p,g,m,v,y,w;void 0===e&&(e=!0);var _=this,C=_.$control_input.val().trim(),E=_.search(C),k=_.$dropdown_content,S=_.$activeOption&&h(_.$activeOption.attr("data-value"));for(r=E.items.length,"number"==typeof _.settings.maxOptions&&(r=Math.min(r,_.settings.maxOptions)),a={},l=[],n=0;n<r;n++)for(u=_.options[E.items[n].id],c=_.render("option",u),d=u[_.settings.optgroupField]||"",o=0,s=(f=Array.isArray(d)?d:[d])&&f.length;o<s;o++)d=f[o],_.optgroups.hasOwnProperty(d)||(d=""),a.hasOwnProperty(d)||(a[d]=document.createDocumentFragment(),l.push(d)),a[d].appendChild(c);for(this.settings.lockOptgroupOrder&&l.sort(function(t,e){return(_.optgroups[t]&&_.optgroups[t].$order||0)-(_.optgroups[e]&&_.optgroups[e].$order||0)}),p=document.createDocumentFragment(),n=0,r=l.length;n<r;n++)d=l[n],_.optgroups.hasOwnProperty(d)&&a[d].childNodes.length?((g=document.createDocumentFragment()).appendChild(_.render("optgroup_header",_.optgroups[d])),g.appendChild(a[d]),p.appendChild(_.render("optgroup",t.extend({},_.optgroups[d],{html:b(g),dom:g})))):p.appendChild(a[d]);if(k.html(p),_.settings.highlight&&(k.removeHighlight(),E.query.length&&E.tokens.length))for(n=0,r=E.tokens.length;n<r;n++)i(k,E.tokens[n].regex);if(!_.settings.hideSelected)for(_.$dropdown.find(".selected").removeClass("selected"),n=0,r=_.items.length;n<r;n++)_.getOption(_.items[n]).addClass("selected");(m=_.canCreate(C))&&_.settings.showAddOptionOnCreate&&(k.prepend(_.render("option_create",{input:C})),w=t(k[0].childNodes[0])),_.hasOptions=E.items.length>0||m&&_.settings.showAddOptionOnCreate,_.hasOptions?(E.items.length>0?(y=S&&_.getOption(S),""!==E.query&&y&&y.length?v=y:"single"===_.settings.mode&&_.items.length&&(v=_.getOption(_.items[0])),v&&v.length||(v=w&&!_.settings.addPrecedence?_.getAdjacentOption(w,1):k.find("[data-selectable]:first"))):v=w,_.setActiveOption(v),e&&!_.isOpen&&_.open()):(_.setActiveOption(null),e&&_.isOpen&&_.close())},addOption:function(t){var e,n,i,o=this;if(Array.isArray(t))for(e=0,n=t.length;e<n;e++)o.addOption(t[e]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(t){var e=h(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=h(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(e,n){var i,o,s,r,a,l,u,c=this;if(e=h(e),s=h(n[c.settings.valueField]),null!==e&&c.options.hasOwnProperty(e)){if("string"!=typeof s)throw new Error("Value must be set in option data");u=c.options[e].$order,s!==e&&(delete c.options[e],-1!==(r=c.items.indexOf(e))&&c.items.splice(r,1,s)),n.$order=n.$order||u,c.options[s]=n,a=c.renderCache.item,l=c.renderCache.option,a&&(delete a[e],delete a[s]),l&&(delete l[e],delete l[s]),-1!==c.items.indexOf(s)&&(i=c.getItem(e),o=t(c.render("item",n)),i.hasClass("active")&&o.addClass("active"),i.replaceWith(o)),c.lastQuery=null,c.isOpen&&c.refreshOptions(!1)}},removeOption:function(t,e){var n=this;t=h(t);var i=n.renderCache.item,o=n.renderCache.option;i&&delete i[t],o&&delete o[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(e){var n=this;n.loadedSearches={},n.userOptions={},n.renderCache={};var i=n.options;t.each(n.options,function(t,e){-1==n.items.indexOf(t)&&delete i[t]}),n.options=n.sifter.items=i,n.lastQuery=null,n.trigger("option_clear"),n.clear(e)},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getFirstOption:function(){var e=this.$dropdown.find("[data-selectable]");return e.length>0?e.eq(0):t()},getAdjacentOption:function(e,n){var i=this.$dropdown.find("[data-selectable]"),o=i.index(e)+n;return o>=0&&o<i.length?i.eq(o):t()},getElementWithValue:function(e,n){if(null!=(e=h(e)))for(var i=0,o=n.length;i<o;i++)if(n[i].getAttribute("data-value")===e)return t(n[i]);return t()},getElementWithTextContent:function(e,n,i){if(null!=(e=h(e)))for(var o=0,s=i.length;o<s;o++){var r=i[o].textContent;if(1==n&&(r=null!==r?r.toLowerCase():null,e=e.toLowerCase()),r===e)return t(i[o])}return t()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},getFirstItemMatchedByTextContent:function(t,e){return e=null!==e&&!0===e,this.getElementWithTextContent(t,e,this.$dropdown_content.find("[data-selectable]"))},addItems:function(t,e){this.buffer=document.createDocumentFragment();for(var n=this.$control[0].childNodes,i=0;i<n.length;i++)this.buffer.appendChild(n[i]);for(var o=Array.isArray(t)?t:[t],s=(i=0,o.length);i<s;i++)this.isPending=i<s-1,this.addItem(o[i],e);var r=this.$control[0];r.insertBefore(this.buffer,r.firstChild),this.buffer=null},addItem:function(e,n){g(this,n?[]:["change"],function(){var i,o,s,r,a,l=this,u=l.settings.mode;e=h(e),-1===l.items.indexOf(e)?l.options.hasOwnProperty(e)&&("single"===u&&l.clear(n),"multi"===u&&l.isFull()||(i=t(l.render("item",l.options[e])),a=l.isFull(),l.items.splice(l.caretPos,0,e),l.insertAtCaret(i),(!l.isPending||!a&&l.isFull())&&l.refreshState(),l.isSetup&&(s=l.$dropdown_content.find("[data-selectable]"),l.isPending||(o=l.getOption(e),r=l.getAdjacentOption(o,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==u),r&&l.setActiveOption(l.getOption(r))),!s.length||l.isFull()?l.close():l.isPending||l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",e,i),l.isPending||l.updateOriginalInput({silent:n})))):"single"===u&&l.close()})},removeItem:function(e,n){var i,o,s,r=this;i=e instanceof t?e:r.getItem(e),e=h(i.attr("data-value")),-1!==(o=r.items.indexOf(e))&&(r.trigger("item_before_remove",e,i),i.remove(),i.hasClass("active")&&(s=r.$activeItems.indexOf(i[0]),r.$activeItems.splice(s,1)),r.items.splice(o,1),r.lastQuery=null,!r.settings.persist&&r.userOptions.hasOwnProperty(e)&&r.removeOption(e,n),o<r.caretPos&&r.setCaret(r.caretPos-1),r.refreshState(),r.updatePlaceholder(),r.updateOriginalInput({silent:n}),r.positionDropdown(),r.trigger("item_remove",e,i))},createItem:function(t,e){var n=this,i=n.caretPos;t=t||(n.$control_input.val()||"").trim();var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof e&&(e=!0),!n.canCreate(t))return o(),!1;n.lock();var s,r,a="function"==typeof n.settings.create?this.settings.create:function(t){var e={};e[n.settings.labelField]=t;var i=t;if(n.settings.formatValueToKey&&"function"==typeof n.settings.formatValueToKey&&(null==(i=n.settings.formatValueToKey.apply(this,[i]))||"object"==typeof i||"function"==typeof i))throw new Error('Selectize "formatValueToKey" setting must be a function that returns a value other than object or function.');return e[n.settings.valueField]=i,e},l=(s=function(t){if(n.unlock(),!t||"object"!=typeof t)return o();var s=h(t[n.settings.valueField]);if("string"!=typeof s)return o();n.setTextboxValue(""),n.addOption(t),n.setCaret(i),n.addItem(s),n.refreshOptions(e&&"single"!==n.settings.mode),o(t)},r=!1,function(){r||(r=!0,s.apply(this,arguments))}),u=a.apply(this,[t,l]);return void 0!==u&&l(u),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var e=this,n=e.isFull(),i=e.isLocked;e.$wrapper.toggleClass("rtl",e.rtl),e.$control.toggleClass("focus",e.isFocused).toggleClass("disabled",e.isDisabled).toggleClass("required",e.isRequired).toggleClass("invalid",e.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",e.isFocused&&!e.isInputHidden).toggleClass("dropdown-active",e.isOpen).toggleClass("has-options",!t.isEmptyObject(e.options)).toggleClass("has-items",e.items.length>0),e.$control_input.data("grow",!n&&!i)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,i,o,s=this;if(t=t||{},1===s.tagType){for(i=[],e=0,n=s.items.length;e<n;e++)o=s.options[s.items[e]][s.settings.labelField]||"",i.push('<option value="'+f(s.items[e])+'" selected="selected">'+f(o)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),s.$input.html(i.join(""))}else s.$input.val(s.getValue()),s.$input.attr("value",s.$input.val());s.isSetup&&(t.silent||s.trigger("change",s.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring&&t.$control_input.blur()),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),n=t[0],i=this.buffer||this.$control[0];0===e?i.insertBefore(n,i.firstChild):i.insertBefore(n,i.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(e){var n,i,o,s,r,a,l,u,c,d=this;if(o=e&&8===e.keyCode?-1:1,s=m(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(l="string"==typeof d.settings.deselectBehavior&&"top"===d.settings.deselectBehavior?d.getFirstOption().attr("data-value"):d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),r=[],d.$activeItems.length){for(c=d.$control.children(".active:"+(o>0?"last":"first")),a=d.$control.children(":not(input)").index(c),o>0&&a++,n=0,i=d.$activeItems.length;n<i;n++)r.push(t(d.$activeItems[n]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(o<0&&0===s.start&&0===s.length?r.push(d.items[d.caretPos-1]):o>0&&s.start===d.$control_input.val().length&&r.push(d.items[d.caretPos]));if(!r.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[r]))return!1;for(void 0!==a&&d.setCaret(a);r.length;)d.removeItem(r.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),l&&(u=d.getOption(l)).length&&d.setActiveOption(u),!0},advanceSelection:function(t,e){var n,i,o,s,r,a=this;0!==t&&(a.rtl&&(t*=-1),n=t>0?"last":"first",i=m(a.$control_input[0]),a.isFocused&&!a.isInputHidden?(s=a.$control_input.val().length,(t<0?0===i.start&&0===i.length:i.start===s)&&!s&&a.advanceCaret(t,e)):(r=a.$control.children(".active:"+n)).length&&(o=a.$control.children(":not(input)").index(r),a.setActiveItem(null),a.setCaret(t>0?o+1:o)))},advanceCaret:function(t,e){var n,i,o=this;0!==t&&(n=t>0?"next":"prev",o.isShiftDown?(i=o.$control_input[n]()).length&&(o.hideInput(),o.setActiveItem(i),e&&e.preventDefault()):o.setCaret(o.caretPos+t))},setCaret:function(e){var n,i,o,s,r=this;if(e="single"===r.settings.mode?r.items.length:Math.max(0,Math.min(r.items.length,e)),!r.isPending)for(n=0,i=(o=r.$control.children(":not(input)")).length;n<i;n++)s=t(o[n]).detach(),n<e?r.$control_input.before(s):r.$control.append(s);r.caretPos=e},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var e=this,n=e.eventNS,i=e.revertSettings;e.trigger("destroy"),e.off(),e.$wrapper.remove(),e.$dropdown.remove(),e.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),e.$control_input.removeData("grow"),e.$input.removeData("selectize"),0==--y.count&&y.$testInput&&(y.$testInput.remove(),y.$testInput=void 0),t(window).off(n),t(document).off(n),t(document.body).off(n),delete e.$input[0].selectize},render:function(e,n){var i,o,s="",r=!1,a=this;return"option"!==e&&"item"!==e||(r=!!(i=h(n[a.settings.valueField]))),r&&(d(a.renderCache[e])||(a.renderCache[e]={}),a.renderCache[e].hasOwnProperty(i))?a.renderCache[e][i]:(s=t(a.settings.render[e].apply(this,[n,f])),"option"===e||"option_create"===e?n[a.settings.disabledField]||s.attr("data-selectable",""):"optgroup"===e&&(o=n[a.settings.optgroupValueField]||"",s.attr("data-group",o),n[a.settings.disabledField]&&s.attr("data-disabled","")),"option"!==e&&"item"!==e||s.attr("data-value",i||""),r&&(a.renderCache[e][i]=s[0]),s[0])},clearCache:function(t){void 0===t?this.renderCache={}:delete this.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var n=e.settings.createFilter;return t.length&&("function"!=typeof n||n.apply(e,[t]))&&("string"!=typeof n||new RegExp(n).test(t))&&(!(n instanceof RegExp)||n.test(t))}}),y.count=0,y.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,showAddOptionOnCreate:!0,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!0,preload:!1,allowEmptyOption:!1,showEmptyOptionInDropdown:!1,emptyOptionLabel:"--",closeAfterSelect:!1,scrollDuration:60,deselectBehavior:"previous",loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(e){var n=t.fn.selectize.defaults,i=t.extend({},n,e),o=i.dataAttr,s=i.labelField,r=i.valueField,a=i.disabledField,l=i.optgroupField,u=i.optgroupLabelField,c=i.optgroupValueField;return this.each(function(){if(!this.selectize){var d=t(this),f=this.tagName.toLowerCase(),p=d.attr("placeholder")||d.attr("data-placeholder");if(p||i.allowEmptyOption||(p=d.children('option[value=""]').text()),i.allowEmptyOption&&i.showEmptyOptionInDropdown&&!d.children('option[value=""]').length){var g=d.html();d.html('<option value="">'+i.emptyOptionLabel+"</option>"+g)}var m={placeholder:p,options:[],optgroups:[],items:[]};"select"===f?function(e,n){var d,f,p,g,m=n.options,v={},b=function(t){var e=o&&t.attr(o);return"string"==typeof e&&e.length?JSON.parse(e):null},y=function(e,o){e=t(e);var u=h(e.val());if(u||i.allowEmptyOption)if(v.hasOwnProperty(u)){if(o){var c=v[u][l];c?t.isArray(c)?c.push(o):v[u][l]=[c,o]:v[u][l]=o}}else{var d=b(e)||{};d[s]=d[s]||e.text(),d[r]=d[r]||u,d[a]=d[a]||e.prop("disabled"),d[l]=d[l]||o,v[u]=d,m.push(d),e.is(":selected")&&n.items.push(u)}},w=function(e){var i,o,s,r,l;for((s=(e=t(e)).attr("label"))&&((r=b(e)||{})[u]=s,r[c]=s,r[a]=e.prop("disabled"),n.optgroups.push(r)),i=0,o=(l=t("option",e)).length;i<o;i++)y(l[i],s)};for(n.maxItems=e.attr("multiple")?null:1,d=0,f=(g=e.children()).length;d<f;d++)"optgroup"===(p=g[d].tagName.toLowerCase())?w(g[d]):"option"===p&&y(g[d])}(d,m):function(e,n){var a,l,u,c,d=e.attr(o);if(d)for(n.options=JSON.parse(d),a=0,l=n.options.length;a<l;a++)n.items.push(n.options[a][r]);else{var h=t.trim(e.val()||"");if(!i.allowEmptyOption&&!h.length)return;for(a=0,l=(u=h.split(i.delimiter)).length;a<l;a++)(c={})[s]=u[a],c[r]=u[a],n.options.push(c);n.items=u}}(d,m),new y(d,t.extend(!0,{},n,m,e)).settings_user=e}})},t.fn.selectize.defaults=y.defaults,t.fn.selectize.support={validity:c},y.define("auto_position",function(){this.positionDropdown=function(){const t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0);const n=this.$dropdown.prop("scrollHeight")+5,i=this.$control.get(0).getBoundingClientRect().top+n+this.$wrapper.height()>window.innerHeight?"top":"bottom",o={width:t.outerWidth(),left:e.left};"top"===i?(Object.assign(o,{bottom:e.top,top:"unset",margin:"0 0 5px 0"}),this.$dropdown.addClass("selectize-position-top")):(Object.assign(o,{top:e.top,bottom:"unset",margin:"5px 0 0 0"}),this.$dropdown.removeClass("selectize-position-top")),this.$dropdown.css(o)}}),y.define("auto_select_on_type",function(t){var e,n=this;n.onBlur=(e=n.onBlur,function(t){var i=n.getFirstItemMatchedByTextContent(n.lastValue,!0);return void 0!==i.attr("data-value")&&n.getValue()!==i.attr("data-value")&&n.setValue(i.attr("data-value")),e.apply(this,arguments)})}),y.define("autofill_disable",function(t){var e,n=this;n.setup=(e=n.setup,function(){e.apply(n,arguments),n.$control_input.attr({autocomplete:"new-password",autofill:"no"})})}),y.define("drag_drop",function(e){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n,i=this;i.lock=(n=i.lock,function(){var t=i.$control.data("sortable");return t&&t.disable(),n.apply(i,arguments)}),i.unlock=function(){var t=i.unlock;return function(){var e=i.$control.data("sortable");return e&&e.enable(),t.apply(i,arguments)}}(),i.setup=function(){var e=i.setup;return function(){e.apply(this,arguments);var n=i.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:i.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),n.addClass("dragging")},stop:function(){n.removeClass("dragging");var e=i.$activeItems?i.$activeItems.slice():null,o=[];n.children("[data-value]").each(function(){o.push(t(this).attr("data-value"))}),i.isFocused=!1,i.setValue(o),i.isFocused=!0,i.setActiveItem(e),i.positionDropdown()}})}}()}}),y.define("dropdown_header",function(e){var n,i=this;e=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">×</a></div></div>'}},e),i.setup=(n=i.setup,function(){n.apply(i,arguments),i.$dropdown_header=t(e.html(e)),i.$dropdown.prepend(i.$dropdown_header)})}),y.define("optgroup_columns",function(e){var n,i=this;e=t.extend({equalizeWidth:!0,equalizeHeight:!0},e),this.getAdjacentOption=function(e,n){var i=e.closest("[data-group]").find("[data-selectable]"),o=i.index(e)+n;return o>=0&&o<i.length?i.eq(o):t()},this.onKeyDown=(n=i.onKeyDown,function(t){var e,o,s,r;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?n.apply(this,arguments):(i.ignoreHover=!0,e=(r=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((o=(s=(r=37===t.keyCode?r.prev("[data-group]"):r.next("[data-group]")).find("[data-selectable]")).eq(Math.min(s.length-1,e))).length&&this.setActiveOption(o)))});var o=function(){var t,e=o.width,n=document;return void 0===e&&((t=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,n.body.appendChild(t),e=o.width=t.offsetWidth-t.clientWidth,n.body.removeChild(t)),e},s=function(){var n,s,r,a,l,u,c;if((s=(c=t("[data-group]",i.$dropdown_content)).length)&&i.$dropdown_content.width()){if(e.equalizeHeight){for(r=0,n=0;n<s;n++)r=Math.max(r,c.eq(n).height());c.css({height:r})}e.equalizeWidth&&(u=i.$dropdown_content.innerWidth()-o(),a=Math.round(u/s),c.css({width:a}),s>1&&(l=u-a*(s-1),c.eq(s-1).css({width:l})))}};(e.equalizeHeight||e.equalizeWidth)&&(p(this,"positionDropdown",s),p(this,"refreshOptions",s))}),y.define("remove_button",function(e){e=t.extend({label:"×",title:"Remove",className:"remove",append:!0},e),"single"!==this.settings.mode?function(e,n){var i,o=e,s='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>";e.setup=(i=o.setup,function(){if(n.append){var r=o.settings.render.item;o.settings.render.item=function(t){return n=r.apply(e,arguments),i=s,o=n.search(/(<\/[^>]+>\s*)$/),n.substring(0,o)+i+n.substring(o);var n,i,o}}i.apply(e,arguments),e.$control.on("click","."+n.className,function(e){if(e.preventDefault(),!o.isLocked){var n=t(e.currentTarget).parent();return o.setActiveItem(n),o.deleteSelection()&&o.setCaret(o.items.length),!1}})})}(this,e):function(e,n){n.className="remove-single";var i,o=e,s='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>";e.setup=(i=o.setup,function(){if(n.append){var r=t(o.$input.context).attr("id"),a=(t("#"+r),o.settings.render.item);o.settings.render.item=function(n){return i=a.apply(e,arguments),o=s,t("<span>").append(i).append(o);var i,o}}i.apply(e,arguments),e.$control.on("click","."+n.className,function(t){t.preventDefault(),o.isLocked||o.clear()})})}(this,e)}),y.define("restore_on_backspace",function(t){var e;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=(e=this.onKeyDown,function(n){var i,o;return 8===n.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(o=this.options[this.items[i]],this.deleteSelection(n)&&(this.setTextboxValue(t.text.apply(this,[o])),this.refreshOptions(!0)),void n.preventDefault()):e.apply(this,arguments)})}),y.define("select_on_focus",function(t){var e,n,i=this;i.on("focus",(e=i.onFocus,function(t){var n=i.getItem(i.getValue()).text();return i.clear(),i.setTextboxValue(n),i.$control_input.select(),setTimeout(function(){i.settings.selectOnTab&&i.setActiveOption(i.getFirstItemMatchedByTextContent(n)),i.settings.score=null},0),e.apply(this,arguments)})),i.onBlur=(n=i.onBlur,function(t){return""===i.getValue()&&i.lastValidValue!==i.getValue()&&i.setValue(i.lastValidValue),setTimeout(function(){i.settings.score=function(){return function(){return 1}}},0),n.apply(this,arguments)}),i.settings.score=function(){return function(){return 1}}}),y.define("tag_limit",function(e){const n=this;e.tagLimit=e.tagLimit,this.onBlur=function(){const i=n.onBlur;return function(n){if(i.apply(this,n),!n)return;const o=this.$control,s=o.find(".item"),r=e.tagLimit;void 0===r||s.length<=r||(s.toArray().forEach(function(e,n){n<r||t(e).hide()}),o.append("<span><b>"+(s.length-r)+"</b></span>"))}}(),this.onFocus=function(){const t=n.onFocus;return function(e){if(t.apply(this,e),!e)return;const n=this.$control;n.find(".item").show(),n.find("span").remove()}}()}),y}),function(t){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=t(),module.exports.introJs=function(){return console.warn('Deprecated: please use require("intro.js") directly, instead of the introJs method of the function'),t().apply(this,arguments)}):"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).introJs=t()}(function(){function t(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function e(t,e){var s=t.querySelectorAll("*[data-intro]"),r=[];if(this._options.steps)C(this._options.steps,function(t){var e=o(t);if(e.step=r.length+1,"string"==typeof e.element&&(e.element=document.querySelector(e.element)),void 0===e.element||null===e.element){var n=document.querySelector(".introjsFloatingElement");null===n&&((n=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(n)),e.element=n,e.position="floating"}e.scrollTo=e.scrollTo||this._options.scrollTo,void 0===e.disableInteraction&&(e.disableInteraction=this._options.disableInteraction),null!==e.element&&r.push(e)}.bind(this));else{var l;if(s.length<1)return!1;C(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&"none"!==t.style.display){var n=parseInt(t.getAttribute("data-step"),10);l=void 0!==t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,n>0&&(r[n-1]={element:t,intro:t.getAttribute("data-intro"),step:parseInt(t.getAttribute("data-step"),10),tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l})}}.bind(this));var u=0;C(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&null===t.getAttribute("data-step")){for(;void 0!==r[u];)u++;l=void 0!==t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,r[u]={element:t,intro:t.getAttribute("data-intro"),step:u+1,tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l}}}.bind(this))}for(var c=[],d=0;d<r.length;d++)r[d]&&c.push(r[d]);return(r=c).sort(function(t,e){return t.step-e.step}),this._introItems=r,D.call(this,t)&&(a.call(this),this._options.keyboardNavigation&&S.on(window,"keydown",i,this,!0),S.on(window,"resize",n,this,!0)),!1}function n(){this.refresh.call(this)}function i(t){var e=null===t.code?t.which:t.code;if(null===e&&(e=null===t.charCode?t.keyCode:t.charCode),"Escape"!==e&&27!==e||!0!==this._options.exitOnEsc){if("ArrowLeft"===e||37===e)l.call(this);else if("ArrowRight"===e||39===e)a.call(this);else if("Enter"===e||13===e){var n=t.target||t.srcElement;n&&n.className.match("introjs-prevbutton")?l.call(this):n&&n.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),c.call(this,this._targetElement)):n&&n.getAttribute("data-stepnumber")?n.click():a.call(this),t.preventDefault?t.preventDefault():t.returnValue=!1}}else c.call(this,this._targetElement)}function o(t){if(null===t||"object"!=typeof t||void 0!==t.nodeType)return t;var e={};for(var n in t)void 0!==window.jQuery&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=o(t[n]);return e}function s(t){this._currentStep=t-2,void 0!==this._introItems&&a.call(this)}function r(t){this._currentStepNumber=t,void 0!==this._introItems&&a.call(this)}function a(){this._direction="forward",void 0!==this._currentStepNumber&&C(this._introItems,function(t,e){t.step===this._currentStepNumber&&(this._currentStep=e-1,this._currentStepNumber=void 0)}.bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var t=this._introItems[this._currentStep],e=!0;return void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void c.call(this,this._targetElement)):void y.call(this,t)}function l(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var t=this._introItems[this._currentStep],e=!0;if(void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e)return++this._currentStep,!1;y.call(this,t)}function u(){if(m.call(this,document.querySelector(".introjs-helperLayer")),m.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),m.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var t=document.querySelector(".introjs-helperNumberLayer"),e=document.querySelector(".introjs-arrow"),n=document.querySelector(".introjs-tooltip");d.call(this,this._introItems[this._currentStep].element,n,e,t)}return N.call(this),this}function c(t,e){var o=!0;if(void 0!==this._introBeforeExitCallback&&(o=this._introBeforeExitCallback.call(this)),e||!1!==o){var s=t.querySelectorAll(".introjs-overlay");s&&s.length&&C(s,function(t){t.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(t),500)}.bind(this));var r=t.querySelector(".introjs-helperLayer");r&&r.parentNode.removeChild(r);var a=t.querySelector(".introjs-tooltipReferenceLayer");a&&a.parentNode.removeChild(a);var l=t.querySelector(".introjs-disableInteraction");l&&l.parentNode.removeChild(l);var u=document.querySelector(".introjsFloatingElement");u&&u.parentNode.removeChild(u),_(),C(document.querySelectorAll(".introjs-fixParent"),function(t){A(t,/introjs-fixParent/g)}),S.off(window,"keydown",i,this,!0),S.off(window,"resize",n,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function d(t,e,n,i,o){var s,r,a,l,u,c="";if(o=o||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit",null!=i&&(i.style.top=null,i.style.left=null),this._introItems[this._currentStep])switch(c="string"==typeof(s=this._introItems[this._currentStep]).tooltipClass?s.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+c).replace(/^\s+|\s+$/g,""),e.setAttribute("role","dialog"),"floating"!==(u=this._introItems[this._currentStep].position)&&(u=p.call(this,t,e,u)),a=V(t),r=V(e),l=$(),x(e,"introjs-"+u),u){case"top-right-aligned":n.className="introjs-arrow bottom-right";var d=0;f(a,d,r,e),e.style.bottom=a.height+20+"px";break;case"top-middle-aligned":n.className="introjs-arrow bottom-middle";var g=a.width/2-r.width/2;o&&(g+=5),f(a,g,r,e)&&(e.style.right=null,h(a,g,r,l,e)),e.style.bottom=a.height+20+"px";break;case"top-left-aligned":case"top":n.className="introjs-arrow bottom",h(a,o?0:15,r,l,e),e.style.bottom=a.height+20+"px";break;case"right":e.style.left=a.width+20+"px",a.top+r.height>l.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(r.height-a.height-20)+"px"):n.className="introjs-arrow left";break;case"left":o||!0!==this._options.showStepNumbers||(e.style.top="15px"),a.top+r.height>l.height?(e.style.top="-"+(r.height-a.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=a.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+r.width/2+"px",e.style.marginTop="-"+r.height/2+"px",null!=i&&(i.style.left="-"+(r.width/2+18)+"px",i.style.top="-"+(r.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",f(a,d=0,r,e),e.style.top=a.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",g=a.width/2-r.width/2,o&&(g+=5),f(a,g,r,e)&&(e.style.right=null,h(a,g,r,l,e)),e.style.top=a.height+20+"px";break;default:n.className="introjs-arrow top",h(a,0,r,l,e),e.style.top=a.height+20+"px"}}function h(t,e,n,i,o){return t.left+e+n.width>i.width?(o.style.left=i.width-n.width-t.left+"px",!1):(o.style.left=e+"px",!0)}function f(t,e,n,i){return t.left+t.width-e-n.width<0?(i.style.left=-t.left+"px",!1):(i.style.right=e+"px",!0)}function p(t,e,n){var i=this._options.positionPrecedence.slice(),o=$(),s=V(e).height+10,r=V(e).width+20,a=t.getBoundingClientRect(),l="floating";a.bottom+s+s>o.height&&g(i,"bottom"),a.top-s<0&&g(i,"top"),a.right+r>o.width&&g(i,"right"),a.left-r<0&&g(i,"left");var u,c,d=-1!==(c=(u=n||"").indexOf("-"))?u.substr(c):"";return n&&(n=n.split("-")[0]),i.length&&(l="auto"!==n&&i.indexOf(n)>-1?n:i[0]),-1!==["top","bottom"].indexOf(l)&&(l+=function(t,e,n,i){var o=e/2,s=Math.min(n.width,window.screen.width),r=["-left-aligned","-middle-aligned","-right-aligned"];return s-t<e&&g(r,"-left-aligned"),(t<o||s-t<o)&&g(r,"-middle-aligned"),t<e&&g(r,"-right-aligned"),r.length?-1!==r.indexOf(i)?i:r[0]:"-middle-aligned"}(a.left,r,o,d)),l}function g(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function m(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=V(e.element),i=this._options.helperElementPadding;O(e.element)?x(t,"introjs-fixedTooltip"):A(t,"introjs-fixedTooltip"),"floating"===e.position&&(i=0),t.style.cssText="width: "+(n.width+i)+"px; height:"+(n.height+i)+"px; top:"+(n.top-i/2)+"px;left: "+(n.left-i/2)+"px;"}}function v(){var t=document.querySelector(".introjs-disableInteraction");null===t&&((t=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(t)),m.call(this,t)}function b(t){t.setAttribute("role","button"),t.tabIndex=0}function y(t){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e,n,i,o,s=this,r=document.querySelector(".introjs-helperLayer"),u=document.querySelector(".introjs-tooltipReferenceLayer"),h="introjs-helperLayer";if("string"==typeof t.highlightClass&&(h+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(h+=" "+this._options.highlightClass),null!==r){var f=u.querySelector(".introjs-helperNumberLayer"),p=u.querySelector(".introjs-tooltiptext"),g=u.querySelector(".introjs-arrow"),y=u.querySelector(".introjs-tooltip");if(i=u.querySelector(".introjs-skipbutton"),n=u.querySelector(".introjs-prevbutton"),e=u.querySelector(".introjs-nextbutton"),r.className=h,y.style.opacity=0,y.style.display="none",null!==f){var E=this._introItems[t.step-2>=0?t.step-2:0];(null!==E&&"forward"===this._direction&&"floating"===E.position||"backward"===this._direction&&"floating"===t.position)&&(f.style.opacity=0)}(o=U(t.element))!==document.body&&Q(o,t.element),m.call(s,r),m.call(s,u),C(document.querySelectorAll(".introjs-fixParent"),function(t){A(t,/introjs-fixParent/g)}),_(),s._lastShowElementTimer&&window.clearTimeout(s._lastShowElementTimer),s._lastShowElementTimer=window.setTimeout(function(){null!==f&&(f.innerHTML=t.step),p.innerHTML=t.intro,y.style.display="block",d.call(s,t.element,y,g,f),s._options.showBullets&&(u.querySelector(".introjs-bullets li > a.active").className="",u.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active"),u.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+K.call(s)+"%;",u.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",K.call(s)),y.style.opacity=1,f&&(f.style.opacity=1),null!=i&&/introjs-donebutton/gi.test(i.className)?i.focus():null!=e&&e.focus(),w.call(s,t.scrollTo,t,p)},350)}else{var k=document.createElement("div"),S=document.createElement("div"),O=document.createElement("div"),$=document.createElement("div"),D=document.createElement("div"),F=document.createElement("div"),I=document.createElement("div"),N=document.createElement("div");k.className=h,S.className="introjs-tooltipReferenceLayer",(o=U(t.element))!==document.body&&Q(o,t.element),m.call(s,k),m.call(s,S),this._targetElement.appendChild(k),this._targetElement.appendChild(S),O.className="introjs-arrow",D.className="introjs-tooltiptext",D.innerHTML=t.intro,F.className="introjs-bullets",!1===this._options.showBullets&&(F.style.display="none");var j=document.createElement("ul");j.setAttribute("role","tablist");var L=function(){s.goToStep(this.getAttribute("data-stepnumber"))};C(this._introItems,function(e,n){var i=document.createElement("li"),o=document.createElement("a");i.setAttribute("role","presentation"),o.setAttribute("role","tab"),o.onclick=L,n===t.step-1&&(o.className="active"),b(o),o.innerHTML=" ",o.setAttribute("data-stepnumber",e.step),i.appendChild(o),j.appendChild(i)}),F.appendChild(j),I.className="introjs-progress",!1===this._options.showProgress&&(I.style.display="none");var P=document.createElement("div");P.className="introjs-progressbar",P.setAttribute("role","progress"),P.setAttribute("aria-valuemin",0),P.setAttribute("aria-valuemax",100),P.setAttribute("aria-valuenow",K.call(this)),P.style.cssText="width:"+K.call(this)+"%;",I.appendChild(P),N.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(N.style.display="none"),$.className="introjs-tooltip",$.appendChild(D),$.appendChild(F),$.appendChild(I);var B=document.createElement("span");!0===this._options.showStepNumbers&&(B.className="introjs-helperNumberLayer",B.innerHTML=t.step,S.appendChild(B)),$.appendChild(O),S.appendChild($),(e=document.createElement("a")).onclick=function(){s._introItems.length-1!==s._currentStep&&a.call(s)},b(e),e.innerHTML=this._options.nextLabel,(n=document.createElement("a")).onclick=function(){0!==s._currentStep&&l.call(s)},b(n),n.innerHTML=this._options.prevLabel,(i=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",b(i),i.innerHTML=this._options.skipLabel,i.onclick=function(){s._introItems.length-1===s._currentStep&&"function"==typeof s._introCompleteCallback&&s._introCompleteCallback.call(s),s._introItems.length-1!==s._currentStep&&"function"==typeof s._introExitCallback&&s._introExitCallback.call(s),"function"==typeof s._introSkipCallback&&s._introSkipCallback.call(s),c.call(s,s._targetElement)},N.appendChild(i),this._introItems.length>1&&(N.appendChild(n),N.appendChild(e)),$.appendChild(N),d.call(s,t.element,$,O,B),w.call(this,t.scrollTo,t,$)}var M=s._targetElement.querySelector(".introjs-disableInteraction");M&&M.parentNode.removeChild(M),t.disableInteraction&&v.call(s),0===this._currentStep&&this._introItems.length>1?(null!=i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),null!=e&&x(e,"introjs-fullbutton")):null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),null!=i&&(i.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=i&&(i.innerHTML=this._options.doneLabel,x(i,"introjs-donebutton")),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),null!=n&&x(n,"introjs-fullbutton")):null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(null!=i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),null!=e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),null!=i&&(i.innerHTML=this._options.skipLabel)),n.setAttribute("role","button"),e.setAttribute("role","button"),i.setAttribute("role","button"),null!=e&&e.focus(),function(t){var e;if(t.element instanceof SVGElement)for(e=t.element.parentNode;null!==t.element.parentNode&&e.tagName&&"body"!==e.tagName.toLowerCase();)"svg"===e.tagName.toLowerCase()&&x(e,"introjs-showElement introjs-relativePosition"),e=e.parentNode;x(t.element,"introjs-showElement");var n=T(t.element,"position");for("absolute"!==n&&"relative"!==n&&"fixed"!==n&&x(t.element,"introjs-relativePosition"),e=t.element.parentNode;null!==e&&e.tagName&&"body"!==e.tagName.toLowerCase();){var i=T(e,"z-index"),o=parseFloat(T(e,"opacity")),s=T(e,"transform")||T(e,"-webkit-transform")||T(e,"-moz-transform")||T(e,"-ms-transform")||T(e,"-o-transform");(/[0-9]+/.test(i)||o<1||"none"!==s&&void 0!==s)&&x(e,"introjs-fixParent"),e=e.parentNode}}(t),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function w(t,e,n){var i;if("off"!==t&&this._options.scrollToElement&&(i="tooltip"===t?n.getBoundingClientRect():e.element.getBoundingClientRect(),!function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}(e.element))){var o=$().height;i.bottom-(i.bottom-i.top)<0||e.element.clientHeight>o?window.scrollBy(0,i.top-(o/2-i.height/2)-this._options.scrollPadding):window.scrollBy(0,i.top-(o/2-i.height/2)+this._options.scrollPadding)}}function _(){C(document.querySelectorAll(".introjs-showElement"),function(t){A(t,/introjs-[a-zA-Z]+/g)})}function C(t,e,n){if(t)for(var i=0,o=t.length;i<o;i++)e(t[i],i);"function"==typeof n&&n()}var E,k=(E={},function(t,e){return E[e=e||"introjs-stamp"]=E[e]||0,void 0===t[e]&&(t[e]=E[e]++),t[e]}),S=new function(){var t="introjs_event";this._id=function(t,e,n,i){return e+k(n)+(i?"_"+k(i):"")},this.on=function(e,n,i,o,s){var r=this._id.apply(this,arguments),a=function(t){return i.call(o||e,t||window.event)};"addEventListener"in e?e.addEventListener(n,a,s):"attachEvent"in e&&e.attachEvent("on"+n,a),e[t]=e[t]||{},e[t][r]=a},this.off=function(e,n,i,o,s){var r=this._id.apply(this,arguments),a=e[t]&&e[t][r];a&&("removeEventListener"in e?e.removeEventListener(n,a,s):"detachEvent"in e&&e.detachEvent("on"+n,a),e[t][r]=null)}};function x(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n+" "+e)}else void 0!==t.classList?C(e.split(" "),function(e){t.classList.add(e)}):t.className.match(e)||(t.className+=" "+e)}function A(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function T(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function O(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===T(t,"position")||O(e))}function $(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function D(t){var e=document.createElement("div"),n="",i=this;if(e.className="introjs-overlay",t.tagName&&"body"!==t.tagName.toLowerCase()){var o=V(t);o&&(n+="width: "+o.width+"px; height:"+o.height+"px; top:"+o.top+"px;left: "+o.left+"px;",e.style.cssText=n)}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.style.cssText=n;return t.appendChild(e),e.onclick=function(){!0===i._options.exitOnOverlayClick&&c.call(i,t)},window.setTimeout(function(){n+="opacity: "+i._options.overlayOpacity.toString()+";",e.style.cssText=n},10),!0}function F(){var t=document.querySelector(".introjs-hintReference");if(t){var e=t.getAttribute("data-step");return t.parentNode.removeChild(t),e}}function I(t){if(this._introItems=[],this._options.hints)C(this._options.hints,function(t){var e=o(t);"string"==typeof e.element&&(e.element=document.querySelector(e.element)),e.hintPosition=e.hintPosition||this._options.hintPosition,e.hintAnimation=e.hintAnimation||this._options.hintAnimation,null!==e.element&&this._introItems.push(e)}.bind(this));else{var e=t.querySelectorAll("*[data-hint]");if(!e||!e.length)return!1;C(e,function(t){var e=t.getAttribute("data-hintanimation");e=e?"true"===e:this._options.hintAnimation,this._introItems.push({element:t,hint:t.getAttribute("data-hint"),hintPosition:t.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:e,tooltipClass:t.getAttribute("data-tooltipclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}q.call(this),S.on(document,"click",F,this,!1),S.on(window,"resize",N,this,!0)}function N(){C(this._introItems,function(t){void 0!==t.targetElement&&z.call(this,t.hintPosition,t.element,t.targetElement)}.bind(this))}function j(t){var e=document.querySelector(".introjs-hints");return e?e.querySelectorAll(t):[]}function L(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];F.call(this),e&&x(e,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,t)}function P(){C(j(".introjs-hint"),function(t){L.call(this,t.getAttribute("data-step"))}.bind(this))}function B(){var t=j(".introjs-hint");t&&t.length?C(t,function(t){M.call(this,t.getAttribute("data-step"))}.bind(this)):I.call(this,this._targetElement)}function M(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];e&&A(e,/introjs-hidehint/g)}function R(){C(j(".introjs-hint"),function(t){H.call(this,t.getAttribute("data-step"))}.bind(this))}function H(t){var e=j('.introjs-hint[data-step="'+t+'"]')[0];e&&e.parentNode.removeChild(e)}function q(){var t=this,e=document.querySelector(".introjs-hints");null===e&&((e=document.createElement("div")).className="introjs-hints"),C(this._introItems,function(n,i){if(!document.querySelector('.introjs-hint[data-step="'+i+'"]')){var o=document.createElement("a");b(o),o.onclick=function(e){return function(n){var i=n||window.event;i.stopPropagation&&i.stopPropagation(),null!==i.cancelBubble&&(i.cancelBubble=!0),W.call(t,e)}}(i),o.className="introjs-hint",n.hintAnimation||x(o,"introjs-hint-no-anim"),O(n.element)&&x(o,"introjs-fixedhint");var s=document.createElement("div");s.className="introjs-hint-dot";var r=document.createElement("div");r.className="introjs-hint-pulse",o.appendChild(s),o.appendChild(r),o.setAttribute("data-step",i),n.targetElement=n.element,n.element=o,z.call(this,n.hintPosition,o,n.targetElement),e.appendChild(o)}}.bind(this)),document.body.appendChild(e),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function z(t,e,n){var i=V.call(this,n),o=20,s=20;switch(t){default:case"top-left":e.style.left=i.left+"px",e.style.top=i.top+"px";break;case"top-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+"px";break;case"bottom-left":e.style.left=i.left+"px",e.style.top=i.top+i.height-s+"px";break;case"bottom-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+i.height-s+"px";break;case"middle-left":e.style.left=i.left+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"middle-right":e.style.left=i.left+i.width-o+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"middle-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+(i.height-s)/2+"px";break;case"bottom-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+i.height-s+"px";break;case"top-middle":e.style.left=i.left+(i.width-o)/2+"px",e.style.top=i.top+"px"}}function W(t){var e=document.querySelector('.introjs-hint[data-step="'+t+'"]'),n=this._introItems[t];void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,e,n,t);var i=F.call(this);if(parseInt(i,10)!==t){var o=document.createElement("div"),s=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div");o.className="introjs-tooltip",o.onclick=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},s.className="introjs-tooltiptext";var l=document.createElement("p");l.innerHTML=n.hint;var u=document.createElement("a");u.className=this._options.buttonClass,u.setAttribute("role","button"),u.innerHTML=this._options.hintButtonLabel,u.onclick=L.bind(this,t),s.appendChild(l),s.appendChild(u),r.className="introjs-arrow",o.appendChild(r),o.appendChild(s),this._currentStep=e.getAttribute("data-step"),a.className="introjs-tooltipReferenceLayer introjs-hintReference",a.setAttribute("data-step",e.getAttribute("data-step")),m.call(this,a),a.appendChild(o),document.body.appendChild(a),d.call(this,e,o,r,null,!0)}}function V(t){var e=document.body,n=document.documentElement,i=window.pageYOffset||n.scrollTop||e.scrollTop,o=window.pageXOffset||n.scrollLeft||e.scrollLeft,s=t.getBoundingClientRect();return{top:s.top+i,width:s.width,height:s.height,left:s.left+o}}function U(t){var e=window.getComputedStyle(t),n="absolute"===e.position,i=/(auto|scroll)/;if("fixed"===e.position)return document.body;for(var o=t;o=o.parentElement;)if(e=window.getComputedStyle(o),(!n||"static"!==e.position)&&i.test(e.overflow+e.overflowY+e.overflowX))return o;return document.body}function Q(t,e){t.scrollTop=e.offsetTop-t.offsetTop}function K(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}var Y=function(e){var n;if("object"==typeof e)n=new t(e);else if("string"==typeof e){var i=document.querySelector(e);if(!i)throw new Error("There is no element with given selector.");n=new t(i)}else n=new t(document.body);return Y.instances[k(n,"introjs-instance")]=n,n};return Y.version="2.9.3",Y.instances={},Y.fn=t.prototype={clone:function(){return new t(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=function(t,e){var n,i={};for(n in t)i[n]=t[n];for(n in e)i[n]=e[n];return i}(this._options,t),this},start:function(t){return e.call(this,this._targetElement,t),this},goToStep:function(t){return s.call(this,t),this},addStep:function(t){return this._options.steps||(this._options.steps=[]),this._options.steps.push(t),this},addSteps:function(t){if(t.length){for(var e=0;e<t.length;e++)this.addStep(t[e]);return this}},goToStepNumber:function(t){return r.call(this,t),this},nextStep:function(){return a.call(this),this},previousStep:function(){return l.call(this),this},exit:function(t){return c.call(this,this._targetElement,t),this},refresh:function(){return u.call(this),this},onbeforechange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onhintsadded:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=t,this},onhintclick:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=t,this},onhintclose:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=t,this},onexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this},onskip:function(t){if("function"!=typeof t)throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=t,this},onbeforeexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=t,this},addHints:function(){return I.call(this,this._targetElement),this},hideHint:function(t){return L.call(this,t),this},hideHints:function(){return P.call(this),this},showHint:function(t){return M.call(this,t),this},showHints:function(){return B.call(this),this},removeHints:function(){return R.call(this),this},removeHint:function(t){return H.call(this,t),this},showHintDialog:function(t){return W.call(this,t),this}},Y}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){var e,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(t.event.fixHooks)for(var r=i.length;r;)t.event.fixHooks[i[--r]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,r=i||window.event,l=s.call(arguments,1),d=0,h=0,f=0,p=0,g=0;if((i=t.event.fix(r)).type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(h=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(h=-1*f,f=0),d=0===f?h:f,"deltaY"in r&&(d=f=-1*r.deltaY),"deltaX"in r&&(h=r.deltaX,0===f&&(d=-1*h)),0!==f||0!==h){if(1===r.deltaMode){var m=t.data(this,"mousewheel-line-height");d*=m,f*=m,h*=m}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");d*=v,f*=v,h*=v}if(o=Math.max(Math.abs(f),Math.abs(h)),(!n||o<n)&&(n=o,c(r,o)&&(n/=40)),c(r,o)&&(d/=40,h/=40,f/=40),d=Math[d>=1?"floor":"ceil"](d/n),h=Math[h>=1?"floor":"ceil"](h/n),f=Math[f>=1?"floor":"ceil"](f/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var b=this.getBoundingClientRect();p=i.clientX-b.left,g=i.clientY-b.top}return i.deltaX=h,i.deltaY=f,i.deltaFactor=n,i.offsetX=p,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,h,f),e&&clearTimeout(e),e=setTimeout(u,200),(t.event.dispatch||t.event.handle).apply(this,l)}}function u(){n=null}function c(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),function(t){if(!t.hasInitialised){var e={escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(t,e){var n=" ";return 1===t.nodeType&&(n+t.className+n).replace(/[\n\t]/g,n).indexOf(n+e+n)>=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var n=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(n,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(t){return e(arguments[1])||""})},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return e.length<2?void 0:e.pop().split(";").shift()},setCookie:function(t,e,n,i,o,s){var r=new Date;r.setHours(r.getHours()+24*(n||365));var a=[t+"="+e,"expires="+r.toUTCString(),"path="+(o||"/")];i&&a.push("domain="+i),s&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(n in t&&this.isPlainObject(t[n])&&this.isPlainObject(e[n])?this.deepExtend(t[n],e[n]):t[n]=e[n]);return t},throttle:function(t,e){var n=!1;return function(){n||(t.apply(this,arguments),n=!0,setTimeout(function(){n=!1},e))}},hash:function(t){var e,n,i=0;if(0===t.length)return i;for(e=0,n=t.length;e<n;++e)i=(i<<5)-i+t.charCodeAt(e),i|=0;return i},normaliseHex:function(t){return"#"==t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t},getContrast:function(t){return t=this.normaliseHex(t),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),n=38+(e>>16),i=38+(e>>8&255),o=38+(255&e);return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(i<255?i<1?0:i:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object},traverseDOMPath:function(t,n){return t&&t.parentNode?e.hasClass(t,n)?t:this.traverseDOMPath(t.parentNode,n):null}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n+"ransition"])return e[n];return""}(),t.hasTransition=!!t.transitionEnd;var n=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){var i={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},onNoCookieLaw:function(t,e){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function o(){this.initialise.apply(this,arguments)}function s(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function r(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var t=this.options.position.split("-"),e=[];return t.forEach(function(t){e.push("cc-"+t)}),e}function l(i){var o=this.options,s=document.createElement("div"),r=o.container&&1===o.container.nodeType?o.container:document.body;s.innerHTML=i;var a=s.children[0];return a.style.display="none",e.hasClass(a,"cc-window")&&t.hasTransition&&e.addClass(a,"cc-invisible"),this.onButtonClick=function(i){var o=e.traverseDOMPath(i.target,"cc-btn")||i.target;if(e.hasClass(o,"cc-btn")){var s=o.className.match(new RegExp("\\bcc-("+n.join("|")+")\\b")),r=s&&s[1]||!1;r&&(this.setStatus(r),this.close(!0))}e.hasClass(o,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(o,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),o.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function u(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}function c(t,e){for(var n=0,i=t.length;n<i;++n){var o=t[n];if(o instanceof RegExp&&o.test(e)||"string"==typeof o&&o.length&&o===e)return!0}return!1}return o.prototype.initialise=function(n){this.options&&this.destroy(),e.deepExtend(this.options={},i),e.isPlainObject(n)&&e.deepExtend(this.options,n),function(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(t.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(t.status.allow),!0;var n=Object.keys(t.status),i=this.getStatus(),o=n.indexOf(i)>=0;return o&&e(i),o}.call(this)&&(this.options.enabled=!1),c(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),c(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var o=this.options.window.replace("{{classes}}",function(){var n=this.options,i="top"==n.position||"bottom"==n.position?"banner":"floating";e.isMobile()&&(i="floating");var o=["cc-"+i,"cc-type-"+n.type,"cc-theme-"+n.theme];return n.static&&o.push("cc-static"),o.push.apply(o,a.call(this)),function(n){var i=e.hash(JSON.stringify(n)),o="cc-color-override-"+i,s=e.isPlainObject(n);return this.customStyleSelector=s?o:null,s&&function(n,i,o){if(t.customStyles[n])++t.customStyles[n].references;else{var s={},r=i.popup,a=i.button,l=i.highlight;r&&(r.text=r.text?r.text:e.getContrast(r.background),r.link=r.link?r.link:r.text,s[o+".cc-window"]=["color: "+r.text,"background-color: "+r.background],s[o+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],s[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:e.getContrast(a.background),a.border=a.border?a.border:"transparent",s[o+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&s[o+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(s[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["background-color: "+(a.hover||u(a.background))]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):s[o+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var c=document.createElement("style");document.head.appendChild(c),t.customStyles[n]={references:1,element:c.sheet};var d=-1;for(var h in s)s.hasOwnProperty(h)&&c.sheet.insertRule(h+"{"+s[h].join(";")+"}",++d)}}(i,n,"."+o),s}.call(this,this.options.palette),this.customStyleSelector&&o.push(this.customStyleSelector),o}.call(this).join(" ")).replace("{{children}}",function(){var t={},n=this.options;n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach(function(i){t[i]=e.interpolateString(n.elements[i],function(t){var e=n.content[t];return t&&"string"==typeof e&&e.length?e:""})});var i=n.compliance[n.type];i||(i=n.compliance.info),t.compliance=e.interpolateString(i,function(e){return t[e]});var o=n.layouts[n.layout];return o||(o=n.layouts.basic),e.interpolateString(o,function(e){return t[e]})}.call(this)),s=this.options.overrideHTML;if("string"==typeof s&&s.length&&(o=s),this.options.static){var r=l.call(this,'<div class="cc-grower">'+o+"</div>");r.style.display="",this.element=r.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=l.call(this,o);(function(){var n=this.setStatus.bind(this),i=this.close.bind(this),o=this.options.dismissOnTimeout;"number"==typeof o&&o>=0&&(this.dismissTimeout=window.setTimeout(function(){n(t.status.dismiss),i(!0)},Math.floor(o)));var s=this.options.dismissOnScroll;if("number"==typeof s&&s>=0){var r=function(e){window.pageYOffset>Math.floor(s)&&(n(t.status.dismiss),i(!0),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r))}var a=this.options.dismissOnWindowClick,l=this.options.ignoreClicksFrom;if(a){var u=function(o){for(var s=!1,r=o.path.length,a=l.length,c=0;c<r;c++)if(!s)for(var d=0;d<a;d++)s||(s=e.hasClass(o.path[c],l[d]));s||(n(t.status.dismiss),i(!0),window.removeEventListener("click",u),window.removeEventListener("touchend",u),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=u,window.addEventListener("click",u),window.addEventListener("touchend",u))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),e.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var t=a.call(this);this.options.animateRevokable&&t.push("cc-animate"),this.customStyleSelector&&t.push(this.customStyleSelector);var n=this.options.revokeBtn.replace("{{classes}}",t.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=l.call(this,n);var i=this.revokeBtn;if(this.options.animateRevokable){var o=e.throttle(function(t){var n=!1,o=window.innerHeight-20;e.hasClass(i,"cc-top")&&t.clientY<20&&(n=!0),e.hasClass(i,"cc-bottom")&&t.clientY>o&&(n=!0),n?e.hasClass(i,"cc-active")||e.addClass(i,"cc-active"):e.hasClass(i,"cc-active")&&e.removeClass(i,"cc-active")},200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}.call(this),this.options.autoOpen&&this.autoOpen()},o.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(n){if(e.isPlainObject(n)){var i=e.hash(JSON.stringify(n)),o=t.customStyles[i];if(o&&! --o.references){var s=o.element.ownerNode;s&&s.parentNode&&s.parentNode.removeChild(s),t.customStyles[i]=null}}}(this.options.palette),this.options=null},o.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},o.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},o.prototype.fadeIn=function(){var n=this.element;if(t.hasTransition&&n&&(this.afterTransition&&r.call(this,n),e.hasClass(n,"cc-invisible"))){if(n.style.display="",this.options.static){var i=this.element.clientHeight;this.element.parentNode.style.maxHeight=i+"px"}this.openingTimeout=setTimeout(s.bind(this,n),20)}},o.prototype.fadeOut=function(){var n=this.element;t.hasTransition&&n&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),s.bind(this,n)),e.hasClass(n,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,n),n.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(n,"cc-invisible")))},o.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},o.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},o.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},o.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},o.prototype.hasConsented=function(e){var n=this.getStatus();return n==t.status.allow||n==t.status.dismiss},o.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},o.prototype.setStatus=function(n){var i=this.options.cookie,o=e.getCookie(i.name),s=Object.keys(t.status).indexOf(o)>=0;Object.keys(t.status).indexOf(n)>=0?(e.setCookie(i.name,n,i.expiryDays,i.domain,i.path,i.secure),this.options.onStatusChange.call(this,n,s)):this.clearStatus()},o.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},o.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},o}(),t.Location=function(){var t={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var n=JSON.parse(e);return n.error?s(n):{code:n.country}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var n=JSON.parse(e);return"ERROR"==n.statusCode?s({error:n.statusMessage}):{code:n.countryCode}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){window.geoip2?geoip2.country(function(e){try{t({code:e.country.iso_code})}catch(e){t(s(e))}},function(e){t(s(e))}):t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function n(n){e.deepExtend(this.options={},t),e.isPlainObject(n)&&e.deepExtend(this.options,n),this.currentServiceIndex=-1}function i(t,e,n){var i,o=document.createElement("script");o.type="text/"+(t.type||"javascript"),o.src=t.src||t,o.async=!1,o.onreadystatechange=o.onload=function(){var t=o.readyState;clearTimeout(i),e.done||t&&!/loaded|complete/.test(t)||(e.done=!0,e(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),i=setTimeout(function(){e.done=!0,e(),o.onreadystatechange=o.onload=null},n)}function o(t,e,n,i,o){var s=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(s.open(i?"POST":"GET",t,1),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var r=0,a=o.length;r<a;++r){var l=o[r].split(":",2);s.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof e&&(s.onreadystatechange=function(){s.readyState>3&&e(s)}),s.send(i)}function s(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}return n.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!t);return t},n.prototype.getServiceByIdx=function(t){var n=this.options.services[t];if("function"==typeof n){var i=n();return i.name&&e.deepExtend(i,this.options.serviceDefinitions[i.name](i)),i}return"string"==typeof n?this.options.serviceDefinitions[n]():e.isPlainObject(n)?this.options.serviceDefinitions[n.name](n):null},n.prototype.locate=function(t,e){var n=this.getNextService();n?(this.callbackComplete=t,this.callbackError=e,this.runService(n,this.runNextServiceOnError.bind(this))):e(new Error("No services to run"))},n.prototype.setupUrl=function(t){var e=this.getCurrentServiceOpts();return t.url.replace(/\{(.*?)\}/g,function(n,i){if("callback"===i){var o="callback"+Date.now();return window[o]=function(e){t.__JSONP_DATA=JSON.stringify(e)},o}if(i in e.interpolateUrl)return e.interpolateUrl[i]})},n.prototype.runService=function(t,e){var n=this;t&&t.url&&t.callback&&(t.isScript?i:o)(this.setupUrl(t),function(i){var o=i?i.responseText:"";t.__JSONP_DATA&&(o=t.__JSONP_DATA,delete t.__JSONP_DATA),n.runServiceCallback.call(n,e,t,o)},this.options.timeout,t.data,t.headers)},n.prototype.runServiceCallback=function(t,e,n){var i=this,o=e.callback(function(e){o||i.onServiceResult.call(i,t,e)},n);o&&this.onServiceResult.call(this,t,o)},n.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},n.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var n=this.getNextService();n?this.runService(n,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},n.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},n.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},n.prototype.logError=function(t){var e=this.currentServiceIndex,n=this.getServiceByIdx(e);console.warn("The service["+e+"] ("+n.url+") responded with the following error",t)},n}(),t.Law=function(){var t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function n(t){this.initialise.apply(this,arguments)}return n.prototype.initialise=function(n){e.deepExtend(this.options={},t),e.isPlainObject(n)&&e.deepExtend(this.options,n)},n.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},n.prototype.applyLaw=function(t,e){var n=this.get(e);return n.hasLaw||(t.enabled=!1,"function"==typeof t.onNoCookieLaw&&t.onNoCookieLaw(e,n)),this.options.regionalLaw&&(n.revokable&&(t.revokable=!0),n.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},n}(),t.initialise=function(n,i,o){var s=new t.Law(n.law);i||(i=function(){}),o||(o=function(){});var r=Object.keys(t.status),a=e.getCookie("cookieconsent_status");r.indexOf(a)>=0?i(new t.Popup(n)):t.getCountryCode(n,function(e){delete n.law,delete n.location,e.code&&(n=s.applyLaw(n,e.code)),i(new t.Popup(n))},function(e){delete n.law,delete n.location,o(e,new t.Popup(n))})},t.getCountryCode=function(e,n,i){e.law&&e.law.countryCode?n({code:e.law.countryCode}):e.location?new t.Location(e.location).locate(function(t){n(t||{})},i):n({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{});
|