function _typeof(n){return n&&typeof Symbol!="undefined"&&n.constructor===Symbol?"symbol":typeof n}function showModalMessage(n,t,i,r,u,f,e){e?$("#modal-message .modal-dialog").addClass("modal-lg"):$("#modal-message .modal-dialog").removeClass("modal-lg");$("#modal-message .modal-title").text(n);f?$("#modal-message .modal-body p").html(t):$("#modal-message .modal-body p").text(t);i===!0?$("#modal-message #close-button").text("Done"):u!==undefined&&u!==null&&u.length>0&&$("#modal-message #close-button").text(u);$("#modal-message").modal();commonHelpers&&commonHelpers.isFunction(r)&&$("#modal-message #close-button, #modal-message .modal-header .close").click(function(){r()})}(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()})(this,function(){"use strict";function ut(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var r=n.ownerDocument.defaultView,i=r.getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll|overlay)/.test(i+f+u)?n:s(y(n))}function ft(n){return n&&n.referenceNode?n.referenceNode:n}function u(n){return 11===n?ii:10===n?ri:ii||ri}function f(n){var e,t,i;if(!n)return document.documentElement;for(e=u(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?f(t):t:n?n.ownerDocument.documentElement:document.documentElement}function fi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||f(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function l(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?fi(i)?i:f(i):(u=p(n),u.host?l(u.host,t):l(n,p(t).host))}function e(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function ei(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=e(t,"top"),u=e(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function et(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"])+parseFloat(n["border"+r+"Width"])}function ot(n,i,r,f){return t(i["offset"+n],i["scroll"+n],r["client"+n],r["offset"+n],r["scroll"+n],u(10)?parseInt(r["offset"+n])+parseInt(f["margin"+("Height"===n?"Top":"Left")])+parseInt(f["margin"+("Height"===n?"Bottom":"Right")]):0)}function st(n){var i=n.body,t=n.documentElement,r=u(10)&&getComputedStyle(t);return{height:ot("Height",i,t,r),width:ot("Width",i,t,r)}}function i(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var t={},o,s,l;try{u(10)?(t=n.getBoundingClientRect(),o=e(n,"top"),s=e(n,"left"),t.top+=o,t.left+=s,t.bottom+=o,t.right+=s):t=n.getBoundingClientRect()}catch(r){}var f={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?st(n.ownerDocument):{},v=a.width||n.clientWidth||f.width,y=a.height||n.clientHeight||f.height,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=r(n),h-=et(l,"x"),c-=et(l,"y"),f.width-=h,f.height-=c),i(f)}function b(n,f){var b=2<arguments.length&&void 0!==arguments[2]&&arguments[2],k=u(10),d="HTML"===f.nodeName,h=w(n),o=w(f),v=s(n),c=r(f),y=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth),e,l,a;return b&&d&&(o.top=t(o.top,0),o.left=t(o.left,0)),e=i({top:h.top-o.top-y,left:h.left-o.left-p,width:h.width,height:h.height}),(e.marginTop=0,e.marginLeft=0,!k&&d)&&(l=parseFloat(c.marginTop),a=parseFloat(c.marginLeft),e.top-=y-l,e.bottom-=y-l,e.left-=p-a,e.right-=p-a,e.marginTop=l,e.marginLeft=a),(k&&!b?f.contains(v):f===v&&"BODY"!==v.nodeName)&&(e=ei(e,f)),e}function oi(n){var f=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=n.ownerDocument.documentElement,u=b(n,r),o=t(r.clientWidth,window.innerWidth||0),s=t(r.clientHeight,window.innerHeight||0),h=f?0:e(r),c=f?0:e(r,"left"),l={top:h-u.top+u.marginTop,left:c-u.left+u.marginLeft,width:o,height:s};return i(l)}function ht(n){var i=n.nodeName,t;return"BODY"===i||"HTML"===i?!1:"fixed"===r(n,"position")?!0:(t=y(n),!!t&&ht(t))}function ct(n){if(!n||!n.parentElement||u())return document.documentElement;for(var t=n.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(n,t,i,r){var h=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},c=h?ct(n):l(n,ft(t)),e,f,o;if("viewport"===r)u=oi(c,h);else if("scrollParent"===r?(e=s(y(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=b(e,c,h),"HTML"!==e.nodeName||ht(c))u=f;else{var a=st(n.ownerDocument),v=a.height,p=a.width;u.top+=f.top-f.marginTop;u.bottom=v+f.top;u.left+=f.left-f.marginLeft;u.right=p+f.left}return i=i||0,o="number"==typeof i,u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function si(n){var t=n.width,i=n.height;return t*i}function lt(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=k(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:si(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function at(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,u=r?ct(t):l(t,ft(i));return b(i,u,r)}function vt(n){var i=n.ownerDocument.defaultView,t=i.getComputedStyle(n),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),u=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+u,height:n.offsetHeight+r}}function a(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function yt(n,t,i){i=i.split("-")[0];var r=vt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[a(f)],e}function h(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function hi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=h(n,function(n){return n[t]===i});return n.indexOf(r)}function pt(n,t,r){var u=void 0===r?n:n.slice(0,hi(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&ut(r)&&(t.offsets.popper=i(t.offsets.popper),t.offsets.reference=i(t.offsets.reference),t=r(t,n))}),t}function ci(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=lt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=yt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=pt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function wt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function d(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function li(){return this.state.isDestroyed=!0,wt(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[d("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(n){var t=n.ownerDocument;return t?t.defaultView:window}function kt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||kt(s(u.parentNode),t,i,r);r.push(u)}function ai(n,t,i,r){i.updateBound=r;bt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=s(n);return kt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function vi(){this.state.eventsEnabled||(this.state=ai(this.reference,this.options,this.state,this.scheduleUpdate))}function yi(n,t){return bt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function pi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=yi(this.reference,this.state))}function g(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function nt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&g(t[i])&&(r="px");n.style[i]=t[i]+r})}function wi(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function bi(n,t){var u=n.offsets,i=u.popper,l=u.reference,r=ti,f=function(n){return n},e=r(l.width),o=r(i.width),a=-1!==["left","right"].indexOf(n.placement),s=-1!==n.placement.indexOf("-"),h=t?a||s||e%2==o%2?r:tt:f,c=t?r:f;return{left:h(1==e%2&&1==o%2&&!s&&t?i.left-1:i.left),top:c(i.top),bottom:c(i.bottom),right:h(i.right)}}function dt(n,t,i){var u=h(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function ki(n){return"end"===n?"start":"start"===n?"end":n}function gt(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=it.indexOf(n),i=it.slice(t+1).concat(it.slice(0,t));return r?i.reverse():i}function di(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=i(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?t(document.documentElement.clientHeight,window.innerHeight||0):t(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function gi(n,t,i,r){var s=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(h(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return di(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){g(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function nr(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=g(+f)?[+f,0]:gi(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}var ni=Math.min,tt=Math.floor,ti=Math.round,t=Math.max,c="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,tr=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(c&&0<=navigator.userAgent.indexOf(t[n]))return 1;return 0}(),ir=c&&window.Promise,rr=ir?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},tr))}},ii=c&&!!(window.MSInputMethodContext&&document.documentMode),ri=c&&/MSIE 10/.test(navigator.userAgent),ur=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},fr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},er=c&&/Firefox/i.test(navigator.userAgent),ui=["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"],it=ui.slice(3),rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},v=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;ur(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=rr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ut(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return fr(t,[{key:"update",value:function(){return ci.call(this)}},{key:"destroy",value:function(){return li.call(this)}},{key:"enableEventListeners",value:function(){return vi.call(this)}},{key:"disableEventListeners",value:function(){return pi.call(this)}}]),t}();return v.Utils=("undefined"==typeof window?global:window).PopperUtils,v.placements=ui,v.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,s=e.popper,h=-1!==["bottom","top"].indexOf(l),i=h?"left":"top",c=h?"width":"height",a={start:o({},i,r[i]),end:o({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}},offset:{order:200,enabled:!0,fn:nr,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(i,r){var h=r.boundariesElement||f(i.instance.popper),s;i.instance.reference===h&&(h=f(h));var c=d("transform"),e=i.instance.popper.style,l=e.top,a=e.left,v=e[c];e.top="";e.left="";e[c]="";s=k(i.instance.popper,i.instance.reference,r.padding,h,i.positionFixed);e.top=l;e.left=a;e[c]=v;r.boundaries=s;var y=r.priority,u=i.offsets.popper,p={primary:function(n){var i=u[n];return u[n]<s[n]&&!r.escapeWithReference&&(i=t(u[n],s[n])),o({},n,i)},secondary:function(n){var t="right"===n?"left":"top",i=u[t];return u[n]>s[n]&&!r.escapeWithReference&&(i=ni(u[t],s[n]-("right"===n?u.width:u.height))),o({},t,i)}};return y.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";u=n({},u,p[i](t))}),i.offsets.popper=u,i},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=tt,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var l,e;if(!dt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var d=n.placement.split("-")[0],b=n.offsets,c=b.popper,s=b.reference,a=-1!==["left","right"].indexOf(d),y=a?"height":"width",p=a?"Top":"Left",f=p.toLowerCase(),g=a?"left":"top",v=a?"bottom":"right",h=vt(e)[y];s[v]-h<c[f]&&(n.offsets.popper[f]-=c[f]-(s[v]-h));s[f]+h>c[v]&&(n.offsets.popper[f]+=s[f]+h-c[v]);n.offsets.popper=i(n.offsets.popper);var nt=s[f]+s[y]/2-h/2,k=r(n.instance.popper),tt=parseFloat(k["margin"+p]),it=parseFloat(k["border"+p+"Width"]),w=nt-n.offsets.popper[f]-tt-it;return w=t(ni(c[y]-h,w),0),n.arrowElement=e,n.offsets.arrow=(l={},o(l,f,ti(w)),o(l,g,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(wt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=a(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case rt.FLIP:f=[r,o];break;case rt.CLOCKWISE:f=gt(r);break;case rt.COUNTERCLOCKWISE:f=gt(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=a(r);var l=t.offsets.popper,y=t.offsets.reference,c=tt,d="left"===r&&c(l.right)>c(y.left)||"right"===r&&c(l.left)<c(y.right)||"top"===r&&c(l.bottom)>c(y.top)||"bottom"===r&&c(l.top)<c(y.bottom),p=c(l.left)<c(e.left),w=c(l.right)>c(e.right),b=c(l.top)<c(e.top),k=c(l.bottom)>c(e.bottom),g="left"===r&&p||"right"===r&&w||"top"===r&&b||"bottom"===r&&k,v=-1!==["top","bottom"].indexOf(r),it=!!i.flipVariations&&(v&&"start"===u&&p||v&&"end"===u&&w||!v&&"start"===u&&b||!v&&"end"===u&&k),rt=!!i.flipVariationsByContent&&(v&&"start"===u&&w||v&&"end"===u&&p||!v&&"start"===u&&k||!v&&"end"===u&&b),nt=it||rt;(d||g||nt)&&(t.flipped=!0,(d||g)&&(r=f[h+1]),nt&&(u=ki(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,yt(t.instance.popper,t.offsets.reference,t.placement)),t=pt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return r[e?"left":"top"]=o[t]-(s?r[e?"width":"height"]:0),n.placement=a(u),n.offsets.popper=i(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!dt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var g=i.x,nt=i.y,tt=t.offsets.popper,c=h(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,p,b,k;void 0!==c&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l,a,it=void 0===c?i.gpuAcceleration:c,e=f(t.instance.popper),v=w(e),r={position:tt.position},u=bi(t,2>window.devicePixelRatio||!er),o="bottom"===g?"top":"bottom",s="right"===nt?"left":"right",y=d("transform");return(a="bottom"==o?"HTML"===e.nodeName?-e.clientHeight+u.bottom:-v.height+u.bottom:u.top,l="right"==s?"HTML"===e.nodeName?-e.clientWidth+u.right:-v.width+u.right:u.left,it&&y)?(r[y]="translate3d("+l+"px, "+a+"px, 0)",r[o]=0,r[s]=0,r.willChange="transform"):(p="bottom"==o?-1:1,b="right"==s?-1:1,r[o]=a*p,r[s]=l*b,r.willChange=o+", "+s),k={"x-placement":t.placement},t.attributes=n({},k,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return nt(n.instance.popper,n.styles),wi(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&nt(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=at(u,t,n,i.positionFixed),e=lt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),nt(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},v});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function rr(n){return n&&"object"==typeof n&&"default"in n?n:{"default":n}}function ur(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function e(n,t,i){return t&&ur(n.prototype,t),i&&ur(n,i),n}function f(){return f=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},f.apply(this,arguments)}function ei(n,t){return ei=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n},ei(n,t)}function iu(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===sf.indexOf(i)||Boolean(hf.test(n.nodeValue)||cf.test(n.nodeValue));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(u[r].test(i))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var r=rr(t),ht=rr(i),ct="transitionend",u={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var t=r.default(n).css("transition-duration"),i=r.default(n).css("transition-delay"),u=parseFloat(t),f=parseFloat(i);return u||f?(t=t.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(t)+parseFloat(i))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){r.default(n).trigger(ct)},supportsTransitionEnd:function(){return Boolean(ct)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,i){var r,f;for(r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var o=i[r],e=t[r],s=e&&u.isElement(e)?"element":null===(f=e)||"undefined"==typeof f?""+f:{}.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+o+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"==typeof n.getRootNode){var t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?u.findShadowRoot(n.parentNode):null},jQueryDetection:function(){if("undefined"==typeof r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=r.default.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}};u.jQueryDetection();r.default.fn.emulateTransitionEnd=function(n){var i=this,t=!1;return r.default(this).one(u.TRANSITION_END,function(){t=!0}),setTimeout(function(){t||u.triggerTransitionEnd(i)},n),this};r.default.event.special[u.TRANSITION_END]={bindType:ct,delegateType:ct,handle:function(n){if(r.default(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var oi="bs.alert",wu=r.default.fn.alert,v=function(){function n(n){this._element=n}var t=n.prototype;return t.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.default.removeData(this._element,oi);this._element=null},t._getRootElement=function(n){var i=u.getSelectorFromElement(n),t=!1;return i&&(t=document.querySelector(i)),t||(t=r.default(n).closest(".alert")[0]),t},t._triggerCloseEvent=function(n){var t=r.default.Event("close.bs.alert");return r.default(n).trigger(t),t},t._removeElement=function(n){var i=this,t;(r.default(n).removeClass("show"),r.default(n).hasClass("fade"))?(t=u.getTransitionDurationFromElement(n),r.default(n).one(u.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(t)):this._destroyElement(n)},t._destroyElement=function(n){r.default(n).detach().trigger("closed.bs.alert").remove()},n._jQueryInterface=function(t){return this.each(function(){var u=r.default(this),i=u.data(oi);i||(i=new n(this),u.data(oi,i));"close"===t&&i[t](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},e(n,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),n}();r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',v._handleDismiss(new v));r.default.fn.alert=v._jQueryInterface;r.default.fn.alert.Constructor=v;r.default.fn.alert.noConflict=function(){return r.default.fn.alert=wu,v._jQueryInterface};var si="bs.button",bu=r.default.fn.button,s="active",fr='[data-toggle^="button"]',hi='input:not([type="hidden"])',er=".btn",nt=function(){function n(n){this._element=n;this.shouldAvoidTriggerChange=!1}var t=n.prototype;return t.toggle=function(){var t=!0,u=!0,f=r.default(this._element).closest('[data-toggle="buttons"]')[0],n,i;f&&(n=this._element.querySelector(hi),n&&("radio"===n.type&&(n.checked&&this._element.classList.contains(s)?t=!1:(i=f.querySelector(".active"),i&&r.default(i).removeClass(s))),t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains(s)),this.shouldAvoidTriggerChange||r.default(n).trigger("change")),n.focus(),u=!1));this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(u&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(s)),t&&r.default(this._element).toggleClass(s))},t.dispose=function(){r.default.removeData(this._element,si);this._element=null},n._jQueryInterface=function(t,i){return this.each(function(){var f=r.default(this),u=f.data(si);u||(u=new n(this),f.data(si,u));u.shouldAvoidTriggerChange=i;"toggle"===t&&u[t]()})},e(n,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),n}();r.default(document).on("click.bs.button.data-api",fr,function(n){var t=n.target,u=t,i;if(r.default(t).hasClass("btn")||(t=r.default(t).closest(er)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))n.preventDefault();else{if(i=t.querySelector(hi),i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void n.preventDefault();"INPUT"!==u.tagName&&"LABEL"===t.tagName||nt._jQueryInterface.call(r.default(t),"toggle","INPUT"===u.tagName)}}).on("focus.bs.button.data-api blur.bs.button.data-api",fr,function(n){var t=r.default(n.target).closest(er)[0];r.default(t).toggleClass("focus",/^focus(in)?$/.test(n.type))});r.default(window).on("load.bs.button.data-api",function(){for(var t,f,i,e,r,n=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),u=0,o=n.length;u<o;u++)t=n[u],f=t.querySelector(hi),f.checked||f.hasAttribute("checked")?t.classList.add(s):t.classList.remove(s);for(i=0,e=(n=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;i<e;i++)r=n[i],"true"===r.getAttribute("aria-pressed")?r.classList.add(s):r.classList.remove(s)});r.default.fn.button=nt._jQueryInterface;r.default.fn.button.Constructor=nt;r.default.fn.button.noConflict=function(){return r.default.fn.button=bu,nt._jQueryInterface};var y="carousel",lt="bs.carousel",ku=r.default.fn[y],p="active",at="next",vt="prev",or="slid.bs.carousel",yt=".active.carousel-item",ci={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},du={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},sr={TOUCH:"touch",PEN:"pen"},w=function(){function t(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=n;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 n=t.prototype;return n.next=function(){this._isSliding||this._slide(at)},n.nextWhenVisible=function(){var n=r.default(this._element);!document.hidden&&n.is(":visible")&&"hidden"!==n.css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(vt)},n.pause=function(n){n||(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},n.cycle=function(n){n||(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))},n.to=function(n){var u=this,t,i;if(this._activeElement=this._element.querySelector(yt),t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)r.default(this._element).one(or,function(){return u.to(n)});else{if(t===n)return this.pause(),void this.cycle();i=n>t?at:vt;this._slide(i,this._items[n])}},n.dispose=function(){r.default(this._element).off(".bs.carousel");r.default.removeData(this._element,lt);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=f({},ci,n),u.typeCheckConfig(y,n,du),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,this.touchDeltaX=0,n>0&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&r.default(this._element).on("keydown.bs.carousel",function(t){return n._keydown(t)});"hover"===this._config.pause&&r.default(this._element).on("mouseenter.bs.carousel",function(t){return n.pause(t)}).on("mouseleave.bs.carousel",function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,t,i;this._touchSupported&&(t=function(t){n._pointerEvent&&sr[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&sr[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},r.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(n){return n.preventDefault()}),this._pointerEvent?(r.default(this._element).on("pointerdown.bs.carousel",function(n){return t(n)}),r.default(this._element).on("pointerup.bs.carousel",function(n){return i(n)}),this._element.classList.add("pointer-event")):(r.default(this._element).on("touchstart.bs.carousel",function(n){return t(n)}),r.default(this._element).on("touchmove.bs.carousel",function(t){return function(t){n.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-n.touchStartX}(t)}),r.default(this._element).on("touchend.bs.carousel",function(n){return i(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===at,f=n===vt,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===vt?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,t){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(yt)),i=r.default.Event("slide.bs.carousel",{relatedTarget:n,direction:t,from:f,to:u});return r.default(this._element).trigger(i),i},n._setActiveIndicatorElement=function(n){var i,t;this._indicatorsElement&&(i=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),r.default(i).removeClass(p),t=this._indicatorsElement.children[this._getItemIndex(n)],t&&r.default(t).addClass(p))},n._updateInterval=function(){var t=this._activeElement||this._element.querySelector(yt),n;t&&(n=parseInt(t.getAttribute("data-interval"),10),n?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=n):this._config.interval=this._config.defaultInterval||this._config.interval)},n._slide=function(n,t){var e,o,s,c=this,f=this._element.querySelector(yt),v=this._getItemIndex(f),i=t||f&&this._getItemByDirection(n,f),y=this._getItemIndex(i),l=Boolean(this._interval),h,a;(n===at?(e="carousel-item-left",o="carousel-item-next",s="left"):(e="carousel-item-right",o="carousel-item-prev",s="right"),i&&r.default(i).hasClass(p))?this._isSliding=!1:!this._triggerSlideEvent(i,s).isDefaultPrevented()&&f&&i&&(this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(i),this._activeElement=i,h=r.default.Event(or,{relatedTarget:i,direction:s,from:v,to:y}),r.default(this._element).hasClass("slide")?(r.default(i).addClass(o),u.reflow(i),r.default(f).addClass(e),r.default(i).addClass(e),a=u.getTransitionDurationFromElement(f),r.default(f).one(u.TRANSITION_END,function(){r.default(i).removeClass(e+" "+o).addClass(p);r.default(f).removeClass("active "+o+" "+e);c._isSliding=!1;setTimeout(function(){return r.default(c._element).trigger(h)},0)}).emulateTransitionEnd(a)):(r.default(f).removeClass(p),r.default(i).addClass(p),this._isSliding=!1,r.default(this._element).trigger(h)),l&&this.cycle())},t._jQueryInterface=function(n){return this.each(function(){var i=r.default(this).data(lt),u=f({},ci,r.default(this).data()),e;if("object"==typeof n&&(u=f({},u,n)),e="string"==typeof n?n:u.slide,i||(i=new t(this,u),r.default(this).data(lt,i)),"number"==typeof n)i.to(n);else if("string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}else u.interval&&u.ride&&(i.pause(),i.cycle())})},t._dataApiClickHandler=function(n){var s=u.getSelectorFromElement(this),i,o,e;s&&(i=r.default(s)[0],i&&r.default(i).hasClass("carousel")&&(o=f({},r.default(i).data(),r.default(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),t._jQueryInterface.call(r.default(i),o),e&&r.default(i).data(lt).to(e),n.preventDefault()))},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return ci}}]),t}();r.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler);r.default(window).on("load.bs.carousel.data-api",function(){for(var t,i=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,u=i.length;n<u;n++)t=r.default(i[n]),w._jQueryInterface.call(t,t.data())});r.default.fn[y]=w._jQueryInterface;r.default.fn[y].Constructor=w;r.default.fn[y].noConflict=function(){return r.default.fn[y]=ku,w._jQueryInterface};var b="collapse",k="bs.collapse",gu=r.default.fn[b],tt="show",li="collapse",pt="collapsing",ai="collapsed",hr="width",cr='[data-toggle="collapse"]',vi={toggle:!0,parent:""},nf={toggle:"boolean",parent:"(string|element)"},it=function(){function t(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll(cr)),i=0,o=f.length;i<o;i++){var e=f[i],r=u.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===n});null!==r&&s.length>0&&(this._selector=r,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){r.default(this._element).hasClass(tt)?this.hide():this.show()},n.show=function(){var n,e,i=this,o,f,s,h;this._isTransitioning||r.default(this._element).hasClass(tt)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(n){return"string"==typeof i._config.parent?n.getAttribute("data-parent")===i._config.parent:n.classList.contains(li)})).length&&(n=null),n&&(e=r.default(n).not(this._selector).data(k))&&e._isTransitioning)||(o=r.default.Event("show.bs.collapse"),(r.default(this._element).trigger(o),o.isDefaultPrevented())||(n&&(t._jQueryInterface.call(r.default(n).not(this._selector),"hide"),e||r.default(n).data(k,null)),f=this._getDimension(),r.default(this._element).removeClass(li).addClass(pt),this._element.style[f]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass(ai).attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=u.getTransitionDurationFromElement(this._element),r.default(this._element).one(u.TRANSITION_END,function(){r.default(i._element).removeClass(pt).addClass("collapse show");i._element.style[f]="";i.setTransitioning(!1);r.default(i._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,i,n,f,t,e,o,h;if(!this._isTransitioning&&r.default(this._element).hasClass(tt)&&(i=r.default.Event("hide.bs.collapse"),r.default(this._element).trigger(i),!i.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),r.default(this._element).addClass(pt).removeClass("collapse show"),f=this._triggerArray.length,f>0)for(t=0;t<f;t++)e=this._triggerArray[t],o=u.getSelectorFromElement(e),null!==o&&(r.default([].slice.call(document.querySelectorAll(o))).hasClass(tt)||r.default(e).addClass(ai).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,function(){s.setTransitioning(!1);r.default(s._element).removeClass(pt).addClass(li).trigger("hidden.bs.collapse")}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){r.default.removeData(this._element,k);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=f({},vi,n)).toggle=Boolean(n.toggle),u.typeCheckConfig(b,n,nf),n},n._getDimension=function(){return r.default(this._element).hasClass(hr)?hr:"height"},n._getParent=function(){var n,e=this,i,f;return u.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(i)),r.default(f).each(function(n,i){e._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),n},n._addAriaAndCollapsedClass=function(n,t){var i=r.default(n).hasClass(tt);t.length&&r.default(t).toggleClass(ai,!i).attr("aria-expanded",i)},t._getTargetFromElement=function(n){var t=u.getSelectorFromElement(n);return t?document.querySelector(t):null},t._jQueryInterface=function(n){return this.each(function(){var u=r.default(this),i=u.data(k),e=f({},vi,u.data(),"object"==typeof n&&n?n:{});if(!i&&e.toggle&&"string"==typeof n&&/show|hide/.test(n)&&(e.toggle=!1),i||(i=new t(this,e),u.data(k,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return vi}}]),t}();r.default(document).on("click.bs.collapse.data-api",cr,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=r.default(this),i=u.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(i));r.default(f).each(function(){var n=r.default(this),i=n.data(k)?"toggle":t.data();it._jQueryInterface.call(n,i)})});r.default.fn[b]=it._jQueryInterface;r.default.fn[b].Constructor=it;r.default.fn[b].noConflict=function(){return r.default.fn[b]=gu,it._jQueryInterface};var d="dropdown",wt="bs.dropdown",tf=r.default.fn[d],rf=new RegExp("38|40|27"),bt="disabled",o="show",lr="dropdown-menu-right",ar="hide.bs.dropdown",vr="hidden.bs.dropdown",yi="click.bs.dropdown.data-api",yr="keydown.bs.dropdown.data-api",kt='[data-toggle="dropdown"]',pi=".dropdown-menu",uf={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},ff={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},h=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var t=n.prototype;return t.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(bt)){var t=r.default(this._menu).hasClass(o);n._clearMenus();t||this.show(!0)}},t.show=function(t){var f;if(void 0===t&&(t=!1),!(this._element.disabled||r.default(this._element).hasClass(bt)||r.default(this._menu).hasClass(o))){var e={relatedTarget:this._element},s=r.default.Event("show.bs.dropdown",e),i=n._getParentFromElement(this._element);if(r.default(i).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&t){if("undefined"==typeof ht.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");f=this._element;"parent"===this._config.reference?f=i:u.isElement(this._config.reference)&&(f=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(f=this._config.reference[0]));"scrollParent"!==this._config.boundary&&r.default(i).addClass("position-static");this._popper=new ht.default(f,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(i).closest(".navbar-nav").length&&r.default(document.body).children().on("mouseover",null,r.default.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);r.default(this._menu).toggleClass(o);r.default(i).toggleClass(o).trigger(r.default.Event("shown.bs.dropdown",e))}}},t.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(bt)&&r.default(this._menu).hasClass(o)){var t={relatedTarget:this._element},i=r.default.Event(ar,t),u=n._getParentFromElement(this._element);r.default(u).trigger(i);i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass(o),r.default(u).toggleClass(o).trigger(r.default.Event(vr,t)))}},t.dispose=function(){r.default.removeData(this._element,wt);r.default(this._element).off(".bs.dropdown");this._element=null;this._menu=null;null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var n=this;r.default(this._element).on("click.bs.dropdown",function(t){t.preventDefault();t.stopPropagation();n.toggle()})},t._getConfig=function(n){return n=f({},this.constructor.Default,r.default(this._element).data(),n),u.typeCheckConfig(d,n,this.constructor.DefaultType),n},t._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(pi))}return this._menu},t._getPlacement=function(){var t=r.default(this._element.parentNode),n="bottom-start";return t.hasClass("dropup")?n=r.default(this._menu).hasClass(lr)?"top-end":"top-start":t.hasClass("dropright")?n="right-start":t.hasClass("dropleft")?n="left-start":r.default(this._menu).hasClass(lr)&&(n="bottom-end"),n},t._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=f({},n.offsets,t._config.offset(n.offsets,t._element)),n}:n.offset=this._config.offset,n},t._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),f({},n,this._config.popperConfig)},n._jQueryInterface=function(t){return this.each(function(){var i=r.default(this).data(wt);if(i||(i=new n(this,"object"==typeof t?t:null),r.default(this).data(wt,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},n._clearMenus=function(t){var c,h;if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var u=[].slice.call(document.querySelectorAll(kt)),i=0,l=u.length;i<l;i++){var f=n._getParentFromElement(u[i]),e=r.default(u[i]).data(wt),s={relatedTarget:u[i]};(t&&"click"===t.type&&(s.clickEvent=t),e)&&(c=e._menu,!r.default(f).hasClass(o)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&r.default.contains(f,t.target)||(h=r.default.Event(ar,s),r.default(f).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),u[i].setAttribute("aria-expanded","false"),e._popper&&e._popper.destroy(),r.default(c).removeClass(o),r.default(f).removeClass(o).trigger(r.default.Event(vr,s)))))}},n._getParentFromElement=function(n){var t,i=u.getSelectorFromElement(n);return i&&(t=document.querySelector(i)),t||n.parentNode},n._dataApiKeydownHandler=function(t){var f,e,u,i;if(!(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||r.default(t.target).closest(pi).length):!rf.test(t.which))&&!this.disabled&&!r.default(this).hasClass(bt)&&(f=n._getParentFromElement(this),e=r.default(f).hasClass(o),e||27!==t.which)){if(t.preventDefault(),t.stopPropagation(),!e||27===t.which||32===t.which)return 27===t.which&&r.default(f.querySelector(kt)).trigger("focus"),void r.default(this).trigger("click");u=[].slice.call(f.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(n){return r.default(n).is(":visible")});0!==u.length&&(i=u.indexOf(t.target),38===t.which&&i>0&&i--,40===t.which&&i<u.length-1&&i++,i<0&&(i=0),u[i].focus())}},e(n,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return uf}},{key:"DefaultType",get:function(){return ff}}]),n}();r.default(document).on(yr,kt,h._dataApiKeydownHandler).on(yr,pi,h._dataApiKeydownHandler).on(yi+" keyup.bs.dropdown.data-api",h._clearMenus).on(yi,kt,function(n){n.preventDefault();n.stopPropagation();h._jQueryInterface.call(r.default(this),"toggle")}).on(yi,".dropdown form",function(n){n.stopPropagation()});r.default.fn[d]=h._jQueryInterface;r.default.fn[d].Constructor=h;r.default.fn[d].noConflict=function(){return r.default.fn[d]=tf,h._jQueryInterface};var dt="bs.modal",ef=r.default.fn.modal,pr="modal-open",g="fade",gt="show",wr="modal-static",br="hidden.bs.modal",kr="show.bs.modal",ni="focusin.bs.modal",dr="resize.bs.modal",wi="click.dismiss.bs.modal",gr="keydown.dismiss.bs.modal",nu="mousedown.dismiss.bs.modal",tu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",bi={backdrop:!0,keyboard:!0,focus:!0,show:!0},of={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},rt=function(){function t(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(".modal-dialog");this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var t=this,i;this._isShown||this._isTransitioning||(i=r.default.Event(kr,{relatedTarget:n}),r.default(this._element).trigger(i),i.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass(g)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on(wi,'[data-dismiss="modal"]',function(n){return t.hide(n)}),r.default(this._dialog).on(nu,function(){r.default(t._element).one("mouseup.dismiss.bs.modal",function(n){r.default(n.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(n)})))},n.hide=function(n){var e=this,t,i,f;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(t=r.default.Event("hide.bs.modal"),(r.default(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented())&&(this._isShown=!1,i=r.default(this._element).hasClass(g),(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off(ni),r.default(this._element).removeClass(gt),r.default(this._element).off(wi),r.default(this._dialog).off(nu),i)?(f=u.getTransitionDurationFromElement(this._element),r.default(this._element).one(u.TRANSITION_END,function(n){return e._hideModal(n)}).emulateTransitionEnd(f)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return r.default(n).off(".bs.modal")});r.default(document).off(ni);r.default.removeData(this._element,dt);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},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=f({},bi,n),u.typeCheckConfig("modal",n,of),n},n._triggerBackdropTransition=function(){var n=this,f=r.default.Event("hidePrevented.bs.modal"),t,i;(r.default(this._element).trigger(f),f.isDefaultPrevented())||(t=this._element.scrollHeight>document.documentElement.clientHeight,t||(this._element.style.overflowY="hidden"),this._element.classList.add(wr),i=u.getTransitionDurationFromElement(this._dialog),r.default(this._element).off(u.TRANSITION_END),r.default(this._element).one(u.TRANSITION_END,function(){n._element.classList.remove(wr);t||r.default(n._element).one(u.TRANSITION_END,function(){n._element.style.overflowY=""}).emulateTransitionEnd(n._element,i)}).emulateTransitionEnd(i),this._element.focus())},n._showElement=function(n){var t=this,f=r.default(this._element).hasClass(g),e=this._dialog?this._dialog.querySelector(".modal-body"):null,o,i,s;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");r.default(this._dialog).hasClass("modal-dialog-scrollable")&&e?e.scrollTop=0:this._element.scrollTop=0;f&&u.reflow(this._element);r.default(this._element).addClass(gt);this._config.focus&&this._enforceFocus();o=r.default.Event("shown.bs.modal",{relatedTarget:n});i=function(){t._config.focus&&t._element.focus();t._isTransitioning=!1;r.default(t._element).trigger(o)};f?(s=u.getTransitionDurationFromElement(this._dialog),r.default(this._dialog).one(u.TRANSITION_END,i).emulateTransitionEnd(s)):i()},n._enforceFocus=function(){var n=this;r.default(document).off(ni).on(ni,function(t){document!==t.target&&n._element!==t.target&&0===r.default(n._element).has(t.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown?r.default(this._element).on(gr,function(t){n._config.keyboard&&27===t.which?(t.preventDefault(),n.hide()):n._config.keyboard||27!==t.which||n._triggerBackdropTransition()}):this._isShown||r.default(this._element).off(gr)},n._setResizeEvent=function(){var n=this;this._isShown?r.default(window).on(dr,function(t){return n.handleUpdate(t)}):r.default(window).off(dr)},n._hideModal=function(){var n=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(){r.default(document.body).removeClass(pr);n._resetAdjustments();n._resetScrollbar();r.default(n._element).trigger(br)})},n._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var t=this,i=r.default(this._element).hasClass(g)?g:"",e,f,o;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on(wi,function(n){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())}),i&&u.reflow(this._backdrop),r.default(this._backdrop).addClass(gt),!n)return;if(!i)return void n();e=u.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(u.TRANSITION_END,n).emulateTransitionEnd(e)}else!this._isShown&&this._backdrop?(r.default(this._backdrop).removeClass(gt),f=function(){t._removeBackdrop();n&&n()},r.default(this._element).hasClass(g)?(o=u.getTransitionDurationFromElement(this._backdrop),r.default(this._backdrop).one(u.TRANSITION_END,f).emulateTransitionEnd(o)):f()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(n.left+n.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,t,i,u,f;this._isBodyOverflowing&&(t=[].slice.call(document.querySelectorAll(tu)),i=[].slice.call(document.querySelectorAll(".sticky-top")),r.default(t).each(function(t,i){var u=i.style.paddingRight,f=r.default(i).css("padding-right");r.default(i).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),r.default(i).each(function(t,i){var u=i.style.marginRight,f=r.default(i).css("margin-right");r.default(i).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=r.default(document.body).css("padding-right"),r.default(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));r.default(document.body).addClass(pr)},n._resetScrollbar=function(){var i=[].slice.call(document.querySelectorAll(tu)),n,t;r.default(i).each(function(n,t){var i=r.default(t).data("padding-right");r.default(t).removeData("padding-right");t.style.paddingRight=i||""});n=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(n).each(function(n,t){var i=r.default(t).data("margin-right");"undefined"!=typeof i&&r.default(t).css("margin-right",i).removeData("margin-right")});t=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right");document.body.style.paddingRight=t||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},t._jQueryInterface=function(n,i){return this.each(function(){var u=r.default(this).data(dt),e=f({},bi,r.default(this).data(),"object"==typeof n&&n?n:{});if(u||(u=new t(this,e),r.default(this).data(dt,u)),"string"==typeof n){if("undefined"==typeof u[n])throw new TypeError('No method named "'+n+'"');u[n](i)}else e.show&&u.show(i)})},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return bi}}]),t}();r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var t,i=this,e=u.getSelectorFromElement(this),o,s;e&&(t=document.querySelector(e));o=r.default(t).data(dt)?"toggle":f({},r.default(t).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();s=r.default(t).one(kr,function(n){n.isDefaultPrevented()||s.one(br,function(){r.default(i).is(":visible")&&i.focus()})});rt._jQueryInterface.call(r.default(t),o,this)});r.default.fn.modal=rt._jQueryInterface;r.default.fn.modal.Constructor=rt;r.default.fn.modal.noConflict=function(){return r.default.fn.modal=ef,rt._jQueryInterface};var sf=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],hf=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,cf=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;var ru="tooltip",ki="bs.tooltip",lf=r.default.fn.tooltip,af=new RegExp("(^|\\s)bs-tooltip\\S+","g"),vf=["sanitize","whiteList","sanitizeFn"],ti="fade",ii="show",ut="show",di="out",ri="hover",uu="focus",yf={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},pf={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},wf={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)"},bf={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},c=function(){function t(n,t){if("undefined"==typeof ht.default)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=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var i=this.constructor.DATA_KEY,t=r.default(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),r.default(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(r.default(this.getTipElement()).hasClass(ii))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);r.default.removeData(this.element,this.constructor.DATA_KEY);r.default(this.element).off(this.constructor.EVENT_KEY);r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);this.tip&&r.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},n.show=function(){var t=this,i,f,h,n,e,c,o,l,s,a;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");if(i=r.default.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(r.default(this.element).trigger(i),f=u.findShadowRoot(this.element),h=r.default.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),i.isDefaultPrevented()||!h)return;n=this.getTipElement();e=u.getUID(this.constructor.NAME);n.setAttribute("id",e);this.element.setAttribute("aria-describedby",e);this.setContent();this.config.animation&&r.default(n).addClass(ti);c="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement;o=this._getAttachment(c);this.addAttachmentClass(o);l=this._getContainer();r.default(n).data(this.constructor.DATA_KEY,this);r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(n).appendTo(l);r.default(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new ht.default(this.element,n,this._getPopperConfig(o));r.default(n).addClass(ii);r.default(n).addClass(this.config.customClass);"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);s=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null;r.default(t.element).trigger(t.constructor.Event.SHOWN);n===di&&t._leave(null,t)};r.default(this.tip).hasClass(ti)?(a=u.getTransitionDurationFromElement(this.tip),r.default(this.tip).one(u.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){var t=this,i=this.getTipElement(),f=r.default.Event(this.constructor.Event.HIDE),e=function(){t._hoverState!==ut&&i.parentNode&&i.parentNode.removeChild(i);t._cleanTipClass();t.element.removeAttribute("aria-describedby");r.default(t.element).trigger(t.constructor.Event.HIDDEN);null!==t._popper&&t._popper.destroy();n&&n()},o;(r.default(this.element).trigger(f),f.isDefaultPrevented())||((r.default(i).removeClass(ii),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass(ti))?(o=u.getTransitionDurationFromElement(i),r.default(i).one(u.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){r.default(this.getTipElement()).addClass("bs-tooltip-"+n)},n.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(r.default(n.querySelectorAll(".tooltip-inner")),this.getTitle());r.default(n).removeClass("fade show")},n.setElementContent=function(n,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=iu(t,this.config.whiteList,this.config.sanitizeFn)),n.html(t)):n.text(t):this.config.html?r.default(t).parent().is(n)||n.empty().append(t):n.text(r.default(t).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getPopperConfig=function(n){var t=this;return f({},{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){return t._handlePopperPlacementChange(n)}},this.config.popperConfig)},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=f({},n.offsets,t.config.offset(n.offsets,t.element)),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},n._getAttachment=function(n){return yf[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)r.default(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if("manual"!==t){var i=t===ri?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=t===ri?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;r.default(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}});this._hideModalHandler=function(){n.element&&n.hide()};r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);this.config.selector?this.config=f({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,t){var i=this.constructor.DATA_KEY;(t=t||r.default(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),r.default(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusin"===n.type?uu:ri]=!0);r.default(t.getTipElement()).hasClass(ii)||t._hoverState===ut?t._hoverState=ut:(clearTimeout(t._timeout),t._hoverState=ut,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===ut&&t.show()},t.config.delay.show):t.show())},n._leave=function(n,t){var i=this.constructor.DATA_KEY;(t=t||r.default(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),r.default(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusout"===n.type?uu:ri]=!1);t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=di,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===di&&t.hide()},t.config.delay.hide):t.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var t=r.default(this.element).data();return Object.keys(t).forEach(function(n){-1!==vf.indexOf(n)&&delete t[n]}),"number"==typeof(n=f({},this.constructor.Default,t,"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),u.typeCheckConfig(ru,n,this.constructor.DefaultType),n.sanitize&&(n.template=iu(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var t=r.default(this.getTipElement()),n=t.attr("class").match(af);null!==n&&n.length&&t.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){this.tip=n.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;null===n.getAttribute("x-placement")&&(r.default(n).removeClass(ti),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},t._jQueryInterface=function(n){return this.each(function(){var u=r.default(this),i=u.data(ki),f="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,f),u.data(ki,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return pf}},{key:"NAME",get:function(){return ru}},{key:"DATA_KEY",get:function(){return ki}},{key:"Event",get:function(){return bf}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return wf}}]),t}();r.default.fn.tooltip=c._jQueryInterface;r.default.fn.tooltip.Constructor=c;r.default.fn.tooltip.noConflict=function(){return r.default.fn.tooltip=lf,c._jQueryInterface};var gi="bs.popover",kf=r.default.fn.popover,df=new RegExp("(^|\\s)bs-popover\\S+","g"),gf=f({},c.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>'}),ne=f({},c.DefaultType,{content:"(string|element|function)"}),te={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ui=function(n){function i(){return n.apply(this,arguments)||this}var u,f,t;return f=n,(u=i).prototype=Object.create(f.prototype),u.prototype.constructor=u,ei(u,f),t=i.prototype,t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(n){r.default(this.getTipElement()).addClass("bs-popover-"+n)},t.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},t.setContent=function(){var t=r.default(this.getTipElement()),n;this.setElementContent(t.find(".popover-header"),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(t.find(".popover-body"),n);t.removeClass("fade show")},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var t=r.default(this.getTipElement()),n=t.attr("class").match(df);null!==n&&n.length>0&&t.removeClass(n.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=r.default(this).data(gi),u="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,u),r.default(this).data(gi,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},e(i,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return gf}},{key:"NAME",get:function(){return"popover"}},{key:"DATA_KEY",get:function(){return gi}},{key:"Event",get:function(){return te}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return ne}}]),i}(c);r.default.fn.popover=ui._jQueryInterface;r.default.fn.popover.Constructor=ui;r.default.fn.popover.noConflict=function(){return r.default.fn.popover=kf,ui._jQueryInterface};var l="scrollspy",nr="bs.scrollspy",ie=r.default.fn[l],a="active",fu="position",eu=".nav, .list-group",ou={offset:10,method:"auto",target:""},re={offset:"number",method:"string",target:"(string|element)"},ft=function(){function t(n,t){var i=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(t);this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item";this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;r.default(this._scrollElement).on("scroll.bs.scrollspy",function(n){return i._process(n)});this.refresh();this._process()}var n=t.prototype;return n.refresh=function(){var n=this,i=this._scrollElement===this._scrollElement.window?"offset":fu,t="auto"===this._config.method?i:this._config.method,f=t===fu?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var i,e=u.getSelectorFromElement(n),o;return(e&&(i=document.querySelector(e)),i)&&(o=i.getBoundingClientRect(),o.width||o.height)?[r.default(i)[t]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){r.default.removeData(this._element,nr);r.default(this._scrollElement).off(".bs.scrollspy");this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=f({},ou,"object"==typeof n&&n?n:{})).target&&u.isElement(n.target)){var t=r.default(n.target).attr("id");t||(t=u.getUID(l),r.default(n.target).attr("id",t));n.target="#"+t}return u.typeCheckConfig(l,n,re),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),t>=u)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(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var i=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),t=r.default([].slice.call(document.querySelectorAll(i.join(","))));t.hasClass("dropdown-item")?(t.closest(".dropdown").find(".dropdown-toggle").addClass(a),t.addClass(a)):(t.addClass(a),t.parents(eu).prev(".nav-link, .list-group-item").addClass(a),t.parents(eu).prev(".nav-item").children(".nav-link").addClass(a));r.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains(a)}).forEach(function(n){return n.classList.remove(a)})},t._jQueryInterface=function(n){return this.each(function(){var i=r.default(this).data(nr);if(i||(i=new t(this,"object"==typeof n&&n),r.default(this).data(nr,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return ou}}]),t}();r.default(window).on("load.bs.scrollspy.data-api",function(){for(var i,n=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=n.length;t--;)i=r.default(n[t]),ft._jQueryInterface.call(i,i.data())});r.default.fn[l]=ft._jQueryInterface;r.default.fn[l].Constructor=ft;r.default.fn[l].noConflict=function(){return r.default.fn[l]=ie,ft._jQueryInterface};var tr="bs.tab",ue=r.default.fn.tab,et="active",su="fade",hu="show",cu=".active",lu="> li > .active",ot=function(){function n(n){this._element=n}var t=n.prototype;return t.show=function(){var h=this,i,n,t,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass(et)||r.default(this._element).hasClass("disabled")||(t=r.default(this._element).closest(".nav, .list-group")[0],f=u.getSelectorFromElement(this._element),t&&(c="UL"===t.nodeName||"OL"===t.nodeName?lu:cu,n=(n=r.default.makeArray(r.default(t).find(c)))[n.length-1]),e=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),o=r.default.Event("show.bs.tab",{relatedTarget:n}),(n&&r.default(n).trigger(e),r.default(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(i=document.querySelector(f)),this._activate(this._element,t),s=function(){var t=r.default.Event("hidden.bs.tab",{relatedTarget:h._element}),i=r.default.Event("shown.bs.tab",{relatedTarget:n});r.default(n).trigger(t);r.default(h._element).trigger(i)},i?this._activate(i,i.parentNode,s):s()))},t.dispose=function(){r.default.removeData(this._element,tr);this._element=null},t._activate=function(n,t,i){var s=this,f=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?r.default(t).children(cu):r.default(t).find(lu))[0],h=i&&f&&r.default(f).hasClass(su),e=function(){return s._transitionComplete(n,f,i)},o;f&&h?(o=u.getTransitionDurationFromElement(f),r.default(f).removeClass(hu).one(u.TRANSITION_END,e).emulateTransitionEnd(o)):e()},t._transitionComplete=function(n,t,i){var e,f,o,s;t&&(r.default(t).removeClass(et),e=r.default(t.parentNode).find("> .dropdown-menu .active")[0],e&&r.default(e).removeClass(et),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1));r.default(n).addClass(et);"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0);u.reflow(n);n.classList.contains(su)&&n.classList.add(hu);f=n.parentNode;(f&&"LI"===f.nodeName&&(f=f.parentNode),f&&r.default(f).hasClass("dropdown-menu"))&&(o=r.default(n).closest(".dropdown")[0],o&&(s=[].slice.call(o.querySelectorAll(".dropdown-toggle")),r.default(s).addClass(et)),n.setAttribute("aria-expanded",!0));i&&i()},n._jQueryInterface=function(t){return this.each(function(){var u=r.default(this),i=u.data(tr);if(i||(i=new n(this),u.data(tr,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},e(n,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),n}();r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();ot._jQueryInterface.call(r.default(this),"show")});r.default.fn.tab=ot._jQueryInterface;r.default.fn.tab.Constructor=ot;r.default.fn.tab.noConflict=function(){return r.default.fn.tab=ue,ot._jQueryInterface};var ir="bs.toast",fe=r.default.fn.toast,au="hide",st="show",vu="showing",yu="click.dismiss.bs.toast",pu={animation:!0,autohide:!0,delay:500},ee={animation:"boolean",autohide:"boolean",delay:"number"},fi=function(){function t(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=t.prototype;return n.show=function(){var n=this,i=r.default.Event("show.bs.toast"),t,f;(r.default(this._element).trigger(i),i.isDefaultPrevented())||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),t=function(){n._element.classList.remove(vu);n._element.classList.add(st);r.default(n._element).trigger("shown.bs.toast");n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},(this._element.classList.remove(au),u.reflow(this._element),this._element.classList.add(vu),this._config.animation)?(f=u.getTransitionDurationFromElement(this._element),r.default(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(f)):t())},n.hide=function(){if(this._element.classList.contains(st)){var n=r.default.Event("hide.bs.toast");r.default(this._element).trigger(n);n.isDefaultPrevented()||this._close()}},n.dispose=function(){this._clearTimeout();this._element.classList.contains(st)&&this._element.classList.remove(st);r.default(this._element).off(yu);r.default.removeData(this._element,ir);this._element=null;this._config=null},n._getConfig=function(n){return n=f({},pu,r.default(this._element).data(),"object"==typeof n&&n?n:{}),u.typeCheckConfig("toast",n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;r.default(this._element).on(yu,'[data-dismiss="toast"]',function(){return n.hide()})},n._close=function(){var n=this,t=function(){n._element.classList.add(au);r.default(n._element).trigger("hidden.bs.toast")},i;(this._element.classList.remove(st),this._config.animation)?(i=u.getTransitionDurationFromElement(this._element),r.default(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(i)):t()},n._clearTimeout=function(){clearTimeout(this._timeout);this._timeout=null},t._jQueryInterface=function(n){return this.each(function(){var u=r.default(this),i=u.data(ir);if(i||(i=new t(this,"object"==typeof n&&n),u.data(ir,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},e(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"DefaultType",get:function(){return ee}},{key:"Default",get:function(){return pu}}]),t}();r.default.fn.toast=fi._jQueryInterface;r.default.fn.toast.Constructor=fi;r.default.fn.toast.noConflict=function(){return r.default.fn.toast=fe,fi._jQueryInterface};n.Alert=v;n.Button=nt;n.Carousel=w;n.Collapse=it;n.Dropdown=h;n.Modal=rt;n.Popover=ui;n.Scrollspy=ft;n.Tab=ot;n.Toast=fi;n.Tooltip=c;n.Util=u;Object.defineProperty(n,"__esModule",{value:!0})}),function(n){if(typeof define=="function"&&define.amd)define(["jquery"],n);else if((typeof module=="undefined"?"undefined":_typeof(module))==="object"&&module.exports){var t;try{t=require("jquery")}catch(i){t=null}module.exports=n(t)}else window&&(window.Slider=n(window.jQuery))}(function(n){var i="slider",r="bootstrapSlider",t;return window.console||(window.console={}),window.console.log||(window.console.log=function(){}),window.console.warn||(window.console.warn=function(){}),function(n){"use strict";function i(){}function r(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var c,s,l,a,e,h,o;if(typeof f=="string"){for(c=t.call(arguments,1),s=0,l=this.length;s<l;s++){if(a=this[s],e=n.data(a,i),!e){r("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");continue}if(!n.isFunction(e[f])||f.charAt(0)==="_"){r("no such method '"+f+"' for "+i+" instance");continue}if(h=e[f].apply(e,c),h!==undefined&&h!==e)return h}return this}return o=this.map(function(){var t=n.data(this,i);return t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t)),n(this)}),!o||o.length>1?o:o[0]}}if(n){var r=typeof console=="undefined"?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var t=Array.prototype.slice;r(n)}(n),function(n){function e(t,i){function rt(n,t){var r="data-slider-"+t.replace(/_/g,"-"),i=n.getAttribute(r);try{return JSON.parse(i)}catch(u){return i}}var g,r,h,o,s,w,b,d,l,a,v,tt,it;for(this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1},typeof t=="string"?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),i=i?i:{},g=Object.keys(this.defaultOptions),r=0;r<g.length;r++)h=g[r],o=i[h],o=typeof o!="undefined"?o:rt(this.element,h),o=o!==null?o:this.defaultOptions[h],this.options||(this.options={}),this.options[h]=o;this.options.orientation==="vertical"&&(this.options.tooltip_position==="top"||this.options.tooltip_position==="bottom")?this.options.tooltip_position="right":this.options.orientation==="horizontal"&&(this.options.tooltip_position==="left"||this.options.tooltip_position==="right")&&(this.options.tooltip_position="top");var ut=this.element.style.width,nt=!1,ft=this.element.parentNode,c,y,p,u,e;if(this.sliderElem)nt=!0;else{if(this.sliderElem=document.createElement("div"),this.sliderElem.className="slider",s=document.createElement("div"),s.className="slider-track",y=document.createElement("div"),y.className="slider-track-low",c=document.createElement("div"),c.className="slider-selection",p=document.createElement("div"),p.className="slider-track-high",u=document.createElement("div"),u.className="slider-handle min-slider-handle",u.setAttribute("role","slider"),u.setAttribute("aria-valuemin",this.options.min),u.setAttribute("aria-valuemax",this.options.max),e=document.createElement("div"),e.className="slider-handle max-slider-handle",e.setAttribute("role","slider"),e.setAttribute("aria-valuemin",this.options.min),e.setAttribute("aria-valuemax",this.options.max),s.appendChild(y),s.appendChild(c),s.appendChild(p),w=Array.isArray(this.options.labelledby),w&&this.options.labelledby[0]&&u.setAttribute("aria-labelledby",this.options.labelledby[0]),w&&this.options.labelledby[1]&&e.setAttribute("aria-labelledby",this.options.labelledby[1]),!w&&this.options.labelledby&&(u.setAttribute("aria-labelledby",this.options.labelledby),e.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",r=0;r<this.options.ticks.length;r++)b=document.createElement("div"),b.className="slider-tick",this.ticks.push(b),this.ticksContainer.appendChild(b);c.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",r=0;r<this.options.ticks_labels.length;r++){var k=document.createElement("div"),et=this.options.ticks_positions.length===0,ot=this.options.reversed&&et?this.options.ticks_labels.length-(r+1):r;k.className="slider-tick-label";k.innerHTML=this.options.ticks_labels[ot];this.tickLabels.push(k);this.tickLabelContainer.appendChild(k)}d=function(n){var i=document.createElement("div"),t;i.className="tooltip-arrow";t=document.createElement("div");t.className="tooltip-inner";n.appendChild(i);n.appendChild(t)};l=document.createElement("div");l.className="tooltip tooltip-main";l.setAttribute("role","presentation");d(l);a=document.createElement("div");a.className="tooltip tooltip-min";a.setAttribute("role","presentation");d(a);v=document.createElement("div");v.className="tooltip tooltip-max";v.setAttribute("role","presentation");d(v);this.sliderElem.appendChild(s);this.sliderElem.appendChild(l);this.sliderElem.appendChild(a);this.sliderElem.appendChild(v);this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer);this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer);this.sliderElem.appendChild(u);this.sliderElem.appendChild(e);ft.insertBefore(this.sliderElem,this.element);this.element.style.display="none"}if(n&&(this.$element=n(this.element),this.$sliderElem=n(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),f[this.options.scale]&&(this.options.scale=f[this.options.scale]),nt===!0&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","top","width","height"].forEach(function(n){this._removeProperty(this.trackLow,n);this._removeProperty(this.trackSelection,n);this._removeProperty(this.trackHigh,n)},this),[this.handle1,this.handle2].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"top")},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"top");this._removeProperty(n,"margin-left");this._removeProperty(n,"margin-top");this._removeClass(n,"right");this._removeClass(n,"top")},this)),this.options.orientation==="vertical"?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=ut,this.options.orientation="horizontal",this.stylePos="left",this.mousePos="pageX",this.sizePos="offsetWidth"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(this.options.max=Math.max.apply(Math,this.options.ticks),this.options.min=Math.min.apply(Math,this.options.ticks)),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this._state.value=this.options.range?[this.options.value,this.options.max]:this.options.value,this.trackLow=y||this.trackLow,this.trackSelection=c||this.trackSelection,this.trackHigh=p||this.trackHigh,this.options.selection==="none"&&(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")),this.handle1=u||this.handle1,this.handle2=e||this.handle2,nt===!0)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),r=0;r<this.ticks.length;r++)this._removeClass(this.ticks[r],"round triangle hide");if(tt=["round","triangle","custom"],it=tt.indexOf(this.options.handle)!==-1,it)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),r=0;r<this.ticks.length;r++)this._addClass(this.ticks[r],this.options.handle);this._state.offset=this._offset(this.sliderElem);this._state.size=this.sliderElem[this.sizePos];this.setValue(this._state.value);this.handle1Keydown=this._keydown.bind(this,0);this.handle1.addEventListener("keydown",this.handle1Keydown,!1);this.handle2Keydown=this._keydown.bind(this,1);this.handle2.addEventListener("keydown",this.handle2Keydown,!1);this.mousedown=this._mousedown.bind(this);this.touchstart=this._touchstart.bind(this);this.touchmove=this._touchmove.bind(this);this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1));this.sliderElem.addEventListener("mousedown",this.mousedown,!1);this.resize=this._resize.bind(this);window.addEventListener("resize",this.resize,!1);this.options.tooltip==="hide"?(this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide")):this.options.tooltip==="always"?(this._showTooltip(),this._alwaysShowTooltip=!0):(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1));this.options.enabled?this.enable():this.disable()}var u={formatInvalidInputErrorMsg:function(n){return"Invalid input value '"+n+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},f={linear:{toValue:function(n){var e=n/100*(this.options.max-this.options.min),o=!0,r,s,u,f,t,h,c,i;if(this.options.ticks_positions.length>0){for(f=0,t=1;t<this.options.ticks_positions.length;t++)if(n<=this.options.ticks_positions[t]){r=this.options.ticks[t-1];u=this.options.ticks_positions[t-1];s=this.options.ticks[t];f=this.options.ticks_positions[t];break}h=(n-u)/(f-u);e=r+h*(s-r);o=!1}return c=o?this.options.min:0,i=c+Math.round(e/this.options.step)*this.options.step,i<this.options.min?this.options.min:i>this.options.max?this.options.max:i},toPercentage:function(n){var i,f,r,u,t,e;if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(u=0,t=0;t<this.options.ticks.length;t++)if(n<=this.options.ticks[t]){i=t>0?this.options.ticks[t-1]:0;r=t>0?this.options.ticks_positions[t-1]:0;f=this.options.ticks[t];u=this.options.ticks_positions[t];break}if(t>0)return e=(n-i)/(f-i),r+e*(u-r)}return 100*(n-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(n){var i=this.options.min===0?0:Math.log(this.options.min),r=Math.log(this.options.max),t=Math.exp(i+(r-i)*n/100);return t=this.options.min+Math.round((t-this.options.min)/this.options.step)*this.options.step,t<this.options.min?this.options.min:t>this.options.max?this.options.max:t},toPercentage:function(n){if(this.options.max===this.options.min)return 0;var i=Math.log(this.options.max),t=this.options.min===0?0:Math.log(this.options.min),r=n===0?0:Math.log(n);return 100*(r-t)/(i-t)}}};t=function(n,t){return e.call(this,n,t),this};t.prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,handle:"round",reversed:!1,enabled:!0,formatter:function(n){return Array.isArray(n)?n[0]+" : "+n[1]:n},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,scale:"linear",focus:!1,tooltip_position:null,labelledby:null},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(n,t,i){var f,u,r;return n||(n=0),f=this.getValue(),this._state.value=this._validateInputValue(n),u=this._applyPrecision.bind(this),this.options.range?(this._state.value[0]=u(this._state.value[0]),this._state.value[1]=u(this._state.value[1]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=u(this._state.value),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),this._state.value[1]=this.options.selection==="after"?this.options.max:this.options.min),this._state.percentage=this.options.max>this.options.min?[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:[0,0,100],this._layout(),r=this.options.range?this._state.value:this._state.value[0],this._setDataVal(r),t===!0&&this._trigger("slide",r),f!==r&&i===!0&&this._trigger("change",{oldValue:f,newValue:r}),this},destroy:function(){this._removeSliderEventHandlers();this.sliderElem.parentNode.removeChild(this.sliderElem);this.element.style.display="";this._cleanUpEventCallbacksMap();this.element.removeAttribute("data");n&&(this._unbindJQueryEventHandlers(),this.$element.removeData("slider"))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(n,t){return this._bindNonQueryEventHandler(n,t),this},off:function(t,i){n?(this.$element.off(t,i),this.$sliderElem.off(t,i)):this._unbindNonQueryEventHandler(t,i)},getAttribute:function(n){return n?this.options[n]:this.options},setAttribute:function(n,t){return this.options[n]=t,this},refresh:function(){return this._removeSliderEventHandlers(),e.call(this,this.element,this.options),n&&n.data(this.element,"slider",this),this},relayout:function(){return this._resize(),this._layout(),this},_removeSliderEventHandlers:function(){this.handle1.removeEventListener("keydown",this.handle1Keydown,!1);this.handle2.removeEventListener("keydown",this.handle2Keydown,!1);this.showTooltip&&(this.handle1.removeEventListener("focus",this.showTooltip,!1),this.handle2.removeEventListener("focus",this.showTooltip,!1));this.hideTooltip&&(this.handle1.removeEventListener("blur",this.hideTooltip,!1),this.handle2.removeEventListener("blur",this.hideTooltip,!1));this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1);this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1);this.sliderElem.removeEventListener("touchstart",this.touchstart,!1);this.sliderElem.removeEventListener("touchmove",this.touchmove,!1);this.sliderElem.removeEventListener("mousedown",this.mousedown,!1);window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(n,t){this.eventToCallbackMap[n]===undefined&&(this.eventToCallbackMap[n]=[]);this.eventToCallbackMap[n].push(t)},_unbindNonQueryEventHandler:function(n,t){var r=this.eventToCallbackMap[n],i;if(r!==undefined)for(i=0;i<r.length;i++)if(r[i]===t){r.splice(i,1);break}},_cleanUpEventCallbacksMap:function(){for(var i,t=Object.keys(this.eventToCallbackMap),n=0;n<t.length;n++)i=t[n],this.eventToCallbackMap[i]=null},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none");this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this.alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in"));this._state.over=!1},_layout:function(){var n,r,t,i,u,h,c,e,o;if(n=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=n[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),this.handle2.style[this.stylePos]=n[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var l=this.options.orientation==="vertical"?"height":"width",s=this.options.orientation==="vertical"?"marginTop":"marginLeft",f=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){if(r=0,this.options.ticks_positions.length===0)this.options.orientation!=="vertical"&&(this.tickLabelContainer.style[s]=-f/2+"px"),r=this.tickLabelContainer.offsetHeight;else for(t=0;t<this.tickLabelContainer.childNodes.length;t++)this.tickLabelContainer.childNodes[t].offsetHeight>r&&(r=this.tickLabelContainer.childNodes[t].offsetHeight);this.options.orientation==="horizontal"&&(this.sliderElem.style.marginBottom=r+"px")}for(t=0;t<this.options.ticks.length;t++)i=this.options.ticks_positions[t]||this._toPercentage(this.options.ticks[t]),this.options.reversed&&(i=100-i),this.ticks[t].style[this.stylePos]=i+"%",this._removeClass(this.ticks[t],"in-selection"),this.options.range?i>=n[0]&&i<=n[1]&&this._addClass(this.ticks[t],"in-selection"):this.options.selection==="after"&&i>=n[0]?this._addClass(this.ticks[t],"in-selection"):this.options.selection==="before"&&i<=n[0]&&this._addClass(this.ticks[t],"in-selection"),this.tickLabels[t]&&(this.tickLabels[t].style[l]=f+"px",this.options.orientation!=="vertical"&&this.options.ticks_positions[t]!==undefined?(this.tickLabels[t].style.position="absolute",this.tickLabels[t].style[this.stylePos]=i+"%",this.tickLabels[t].style[s]=-f/2+"px"):this.options.orientation==="vertical"&&(this.tickLabels[t].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style.marginTop=this.sliderElem.offsetWidth/-2+"px"))}this.options.range?(u=this.options.formatter(this._state.value),this._setText(this.tooltipInner,u),this.tooltip.style[this.stylePos]=(n[1]+n[0])/2+"%",this.options.orientation==="vertical"?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"),this.options.orientation==="vertical"?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"),h=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner_min,h),c=this.options.formatter(this._state.value[1]),this._setText(this.tooltipInner_max,c),this.tooltip_min.style[this.stylePos]=n[0]+"%",this.options.orientation==="vertical"?this._css(this.tooltip_min,"margin-top",-this.tooltip_min.offsetHeight/2+"px"):this._css(this.tooltip_min,"margin-left",-this.tooltip_min.offsetWidth/2+"px"),this.tooltip_max.style[this.stylePos]=n[1]+"%",this.options.orientation==="vertical"?this._css(this.tooltip_max,"margin-top",-this.tooltip_max.offsetHeight/2+"px"):this._css(this.tooltip_max,"margin-left",-this.tooltip_max.offsetWidth/2+"px")):(u=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,u),this.tooltip.style[this.stylePos]=n[0]+"%",this.options.orientation==="vertical"?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"));this.options.orientation==="vertical"?(this.trackLow.style.top="0",this.trackLow.style.height=Math.min(n[0],n[1])+"%",this.trackSelection.style.top=Math.min(n[0],n[1])+"%",this.trackSelection.style.height=Math.abs(n[0]-n[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%"):(this.trackLow.style.left="0",this.trackLow.style.width=Math.min(n[0],n[1])+"%",this.trackSelection.style.left=Math.min(n[0],n[1])+"%",this.trackSelection.style.width=Math.abs(n[0]-n[1])+"%",this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%",e=this.tooltip_min.getBoundingClientRect(),o=this.tooltip_max.getBoundingClientRect(),this.options.tooltip_position==="bottom"?e.right>o.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):e.right>o.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top))},_resize:function(){this._state.offset=this._offset(this.sliderElem);this._state.size=this.sliderElem[this.sizePos];this._layout()},_removeProperty:function(n,t){n.style.removeProperty?n.style.removeProperty(t):n.style.removeAttribute(t)},_mousedown:function(n){var t,r,u,i;return this._state.enabled?(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],t=this._getPercentage(n),this.options.range?(r=Math.abs(this._state.percentage[0]-t),u=Math.abs(this._state.percentage[1]-t),this._state.dragged=r<u?0:1,this._adjustPercentageForRangeSliders(t)):this._state.dragged=0,this._state.percentage[this._state.dragged]=t,this._layout(),this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0,i=this._calculateValue(),this._trigger("slideStart",i),this._setDataVal(i),this.setValue(i,!1,!0),this._pauseEvent(n),this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0):!1},_touchstart:function(n){if(n.changedTouches===undefined){this._mousedown(n);return}var t=n.changedTouches[0];this.touchX=t.pageX;this.touchY=t.pageY},_triggerFocusOnHandle:function(n){n===0&&this.handle1.focus();n===1&&this.handle2.focus()},_keydown:function(n,t){var r,u,f,i;if(!this._state.enabled)return!1;switch(t.keyCode){case 37:case 40:r=-1;break;case 39:case 38:r=1}if(r)return this.options.natural_arrow_keys&&(u=this.options.orientation==="vertical"&&!this.options.reversed,f=this.options.orientation==="horizontal"&&this.options.reversed,(u||f)&&(r=-r)),i=this._state.value[n]+r*this.options.step,this.options.range&&(i=[n?this._state.value[0]:i,n?i:this._state.value[1]]),this._trigger("slideStart",i),this._setDataVal(i),this.setValue(i,!0,!0),this._setDataVal(i),this._trigger("slideStop",i),this._layout(),this._pauseEvent(t),!1},_pauseEvent:function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.returnValue=!1},_mousemove:function(n){var t,i;return this._state.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this._layout(),i=this._calculateValue(!0),this.setValue(i,!0,!0),!1):!1},_touchmove:function(n){if(n.changedTouches!==undefined){var r=n.changedTouches[0],t=r.pageX-this.touchX,i=r.pageY-this.touchY;this._state.inDrag||(this.options.orientation==="vertical"&&t<=5&&t>=-5&&(i>=15||i<=-15)?this._mousedown(n):i<=5&&i>=-5&&(t>=15||t<=-15)&&this._mousedown(n))}},_adjustPercentageForRangeSliders:function(n){var t,i;this.options.range&&(t=this._getNumDigitsAfterDecimalPlace(n),t=t?t-1:0,i=this._applyToFixedAndParseFloat(n,t),this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>i&&(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0))},_mouseup:function(){if(!this._state.enabled)return!1;this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1));document.removeEventListener("mousemove",this.mousemove,!1);document.removeEventListener("mouseup",this.mouseup,!1);this._state.inDrag=!1;this._state.over===!1&&this._hideTooltip();var n=this._calculateValue(!0);return this._layout(),this._setDataVal(n),this._trigger("slideStop",n),!1},_calculateValue:function(n){var t,i,r,u;if(this.options.range?(t=[this.options.min,this.options.max],this._state.percentage[0]!==0&&(t[0]=this._toValue(this._state.percentage[0]),t[0]=this._applyPrecision(t[0])),this._state.percentage[1]!==100&&(t[1]=this._toValue(this._state.percentage[1]),t[1]=this._applyPrecision(t[1]))):(t=this._toValue(this._state.percentage[0]),t=parseFloat(t),t=this._applyPrecision(t)),n){for(i=[t,Infinity],r=0;r<this.options.ticks.length;r++)u=Math.abs(this.options.ticks[r]-t),u<=i[1]&&(i=[this.options.ticks[r],u]);if(i[1]<=this.options.ticks_snap_bounds)return i[0]}return t},_applyPrecision:function(n){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(n,t)},_getNumDigitsAfterDecimalPlace:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(n,t){var i=n.toFixed(t);return parseFloat(i)},_getPercentage:function(n){this.touchCapable&&(n.type==="touchstart"||n.type==="touchmove")&&(n=n.touches[0]);var i=n[this.mousePos],r=this._state.offset[this.stylePos],u=i-r,t=u/this._state.size*100;return t=Math.round(t/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(t=100-t),Math.max(0,Math.min(100,t))},_validateInputValue:function(n){if(typeof n=="number")return n;if(Array.isArray(n))return this._validateArray(n),n;throw new Error(u.formatInvalidInputErrorMsg(n));},_validateArray:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t],typeof i!="number")throw new Error(u.formatInvalidInputErrorMsg(i));},_setDataVal:function(n){this.element.setAttribute("data-value",n);this.element.setAttribute("value",n);this.element.value=n},_trigger:function(t,i){var r,u,f;if(i=i||i===0?i:undefined,r=this.eventToCallbackMap[t],r&&r.length)for(u=0;u<r.length;u++)f=r[u],f(i);n&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(n,t){var i={type:n,value:t};this.$element.trigger(i);this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off();this.$sliderElem.off()},_setText:function(n,t){typeof n.textContent!="undefined"?n.textContent=t:typeof n.innerText!="undefined"&&(n.innerText=t)},_removeClass:function(n,t){for(var f,e,u=t.split(" "),i=n.className,r=0;r<u.length;r++)f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),i=i.replace(e," ");n.className=i.trim()},_addClass:function(n,t){for(var u=t.split(" "),i=n.className,r=0;r<u.length;r++){var f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),o=e.test(i);o||(i+=" "+f)}n.className=i.trim()},_offsetLeft:function(n){return n.getBoundingClientRect().left},_offsetTop:function(n){for(var t=n.offsetTop;(n=n.offsetParent)&&!isNaN(n.offsetTop);)t+=n.offsetTop,n.tagName!=="BODY"&&(t-=n.scrollTop);return t},_offset:function(n){return{left:this._offsetLeft(n),top:this._offsetTop(n)}},_css:function(t,i,r){if(n)n.style(t,i,r);else{var u=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()});t.style[u]=r}},_toValue:function(n){return this.options.scale.toValue.apply(this,[n])},_toPercentage:function(n){return this.options.scale.toPercentage.apply(this,[n])},_setTooltipPosition:function(){var n=[this.tooltip,this.tooltip_min,this.tooltip_max],t,i;this.options.orientation==="vertical"?(t=this.options.tooltip_position||"right",i=t==="left"?"right":"left",n.forEach(function(n){this._addClass(n,t);n.style[i]="100%"}.bind(this))):this.options.tooltip_position==="bottom"?n.forEach(function(n){this._addClass(n,"bottom");n.style.top="22px"}.bind(this)):n.forEach(function(n){this._addClass(n,"top");n.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))}};n&&function(){var u=undefined;n.fn.slider?(window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),u=r):(n.bridget(i,t),u=i);n.bridget(r,t);n(function(){n("input[data-provide=slider]")[u]()})}()}(n),t});!function(n,t){void 0===n&&void 0!==window&&(n=window);"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){!function(n){"use strict";function ni(t,i){var r=t.nodeName.toLowerCase();if(-1!==n.inArray(r,i))return-1===n.inArray(r,kt)||Boolean(t.nodeValue.match(dt)||t.nodeValue.match(gt));for(var f=n(i).filter(function(n,t){return t instanceof RegExp}),u=0,e=f.length;u<e;u++)if(r.match(f[u]))return!0;return!1}function g(n,t,i){var r,e,s;if(i&&"function"==typeof i)return i(n);for(var l=Object.keys(t),u=0,a=n.length;u<a;u++)for(var h=n[u].querySelectorAll("*"),f=0,v=h.length;f<v;f++)if(r=h[f],e=r.nodeName.toLowerCase(),-1!==l.indexOf(e))for(var c=[].slice.call(r.attributes),y=[].concat(t["*"]||[],t[e]||[]),o=0,p=c.length;o<p;o++)s=c[o],ni(s,y)||r.removeAttribute(s.nodeName);else r.parentNode.removeChild(r)}function ut(n){var r,u,i;if(null==this)throw new TypeError;if(r=String(this),n&&"[object RegExp]"==nt.call(n))throw new TypeError;var f=r.length,e=String(n),o=e.length,s=1<arguments.length?arguments[1]:void 0,t=s?Number(s):0;if(t!=t&&(t=0),u=Math.min(Math.max(t,0),f),f<o+u)return!1;for(i=-1;++i<o;)if(r.charCodeAt(u+i)!=e.charCodeAt(i))return!1;return!0}function ft(n,t){var i,u=n.selectedOptions,f=[],r,e;if(t){for(r=0,e=u.length;r<e;r++)(i=u[r]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||f.push(i);return f}return u}function l(n,t){for(var i,r=[],f=t||n.selectedOptions,u=0,e=f.length;u<e;u++)(i=f[u]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||r.push(i.value);return n.multiple?r:r.length?r[0]:null}function ot(n,t,i,r){for(var e,u,o=["display","subtext","tokens"],s=!1,f=0;f<o.length;f++)if(e=o[f],u=n[e],u&&(u=u.toString(),"display"===e&&(u=u.replace(/<[^>]+>/g,"")),r&&(u=st(u)),u=u.toUpperCase(),s="contains"===i?0<=u.indexOf(t):u.startsWith(t)))break;return s}function e(n){return parseInt(n,10)||0}function ui(n){return ti[n]}function st(n){return(n=n.toString())&&n.replace(ii,ui).replace(ri,"")}function fi(n){return p[n]}function yt(i){var s,h=arguments,r=i,e,o,c;if([].shift.apply(h),!f.success){try{f.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){u.BootstrapVersion?f.full=u.BootstrapVersion.split(" ")[0].split("."):(f.full=[f.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",i))}f.major=f.full[0];f.success=!0}if("4"===f.major)for(e=[],u.DEFAULTS.style===t.BUTTONCLASS&&e.push({name:"style",className:"BUTTONCLASS"}),u.DEFAULTS.iconBase===t.ICONBASE&&e.push({name:"iconBase",className:"ICONBASE"}),u.DEFAULTS.tickIcon===t.TICKICON&&e.push({name:"tickIcon",className:"TICKICON"}),t.DIVIDER="dropdown-divider",t.SHOW="show",t.BUTTONCLASS="btn-light",t.POPOVERHEADER="popover-header",t.ICONBASE="",t.TICKICON="bs-ok-default",o=0;o<e.length;o++)i=e[o],u.DEFAULTS[i.name]=t[i.className];return c=this.each(function(){var e=n(this),t,i,o,f,c,l;if(e.is("select")){if(t=e.data("selectpicker"),i="object"==typeof r&&r,t){if(i)for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t.options[o]=i[o])}else{f=e.data();for(c in f)Object.prototype.hasOwnProperty.call(f,c)&&-1!==n.inArray(c,bt)&&delete f[c];l=n.extend({},u.DEFAULTS,n.fn.selectpicker.defaults||{},f,i);l.template=n.extend({},u.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},f.template,i.template);e.data("selectpicker",t=new u(this,l))}"string"==typeof r&&(s=t[r]instanceof Function?t[r].apply(t,h):t.options[r])}}),void 0!==s?s:c}function wt(){if(n.fn.dropdown)return(n.fn.dropdown.Constructor._dataApiKeydownHandler||n.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}var bt=["sanitize","whiteList","sanitizeFn"],kt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],dt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,gt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,y,nt,h,tt,it,rt,c,s,et,p,w,ht,ct,a,pt;"classList"in document.createElement("_")||function(t){var r;if("Element"in t){var u="classList",e="prototype",f=t.Element[e],i=Object,o=function(){var t=n(this);return{add:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.addClass(n)},remove:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.removeClass(n)},toggle:function(n,i){return t.toggleClass(n,i)},contains:function(n){return t.hasClass(n)}}};if(i.defineProperty){r={get:o,enumerable:!0,configurable:!0};try{i.defineProperty(f,u,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,i.defineProperty(f,u,r))}}else i[e].__defineGetter__&&f.__defineGetter__(u,o)}}(window);h=document.createElement("_");(h.classList.add("c1","c2"),h.classList.contains("c2"))||(tt=DOMTokenList.prototype.add,it=DOMTokenList.prototype.remove,DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,tt.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,it.bind(this))});(h.classList.toggle("c3",!1),h.classList.contains("c3"))&&(rt=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(n,t){return 1 in arguments&&!this.contains(n)==!t?t:rt.call(this,n)});h=null;String.prototype.startsWith||(y=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(n){}return i}(),nt={}.toString,y?y(String.prototype,"startsWith",{value:ut,configurable:!0,writable:!0}):String.prototype.startsWith=ut);Object.keys||(Object.keys=function(n,t,i){for(t in i=[],n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});c={useDefault:!1,_set:n.valHooks.select.set};n.valHooks.select.set=function(t,i){return i&&!c.useDefault&&n(t).data("selected",!0),c._set.apply(this,arguments)};s=null;et=function(){try{return new Event("change"),!0}catch(n){return!1}}();n.fn.triggerNative=function(n){var t,i=this[0];i.dispatchEvent?(et?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=n,i.fireEvent("on"+n,t)):this.trigger(n)};var ti={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ri=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");a=(p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w="(?:"+Object.keys(p).join("|")+")",ht=RegExp(w),ct=RegExp(w,"g"),function(n){return n=null==n?"":""+n,ht.test(n)?n.replace(ct,fi):n});var ei={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},lt=27,oi=13,v=32,b=9,k=38,d=40,f={success:!1,major:"3"};try{f.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".");f.major=f.full[0];f.success=!0}catch(e){}var at=0,r=".bs.select",t={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},vt={MENU:"."+t.MENU},i={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};i.noResults=i.li.cloneNode(!1);i.noResults.className="no-results";i.a.setAttribute("role","option");i.a.className="dropdown-item";i.subtext.className="text-muted";i.text=i.span.cloneNode(!1);i.text.className="text";i.checkMark=i.span.cloneNode(!1);var si=new RegExp(k+"|"+d),hi=new RegExp("^"+b+"$|"+lt),o={li:function(n,t,r){var u=i.li.cloneNode(!1);return n&&(1===n.nodeType||11===n.nodeType?u.appendChild(n):u.innerHTML=n),void 0!==t&&""!==t&&(u.className=t),null!=r&&u.classList.add("optgroup-"+r),u},a:function(n,t,r){var u=i.a.cloneNode(!0);return n&&(11===n.nodeType?u.appendChild(n):u.insertAdjacentHTML("beforeend",n)),void 0!==t&&""!==t&&u.classList.add.apply(u.classList,t.split(/\s+/)),r&&u.setAttribute("style",r),u},text:function(n,t){var u,f,r=i.text.cloneNode(!1),e;if(n.content?r.innerHTML=n.content:((r.textContent=n.text,n.icon)&&(e=i.whitespace.cloneNode(!1),(f=(!0===t?i.i:i.span).cloneNode(!1)).className=this.options.iconBase+" "+n.icon,i.fragment.appendChild(f),i.fragment.appendChild(e)),n.subtext&&((u=i.subtext.cloneNode(!1)).textContent=n.subtext,r.appendChild(u))),!0===t)for(;0<r.childNodes.length;)i.fragment.appendChild(r.childNodes[0]);else i.fragment.appendChild(r);return i.fragment},label:function(n){var r,u,t=i.text.cloneNode(!1),f;return(t.innerHTML=n.display,n.icon)&&(f=i.whitespace.cloneNode(!1),(u=i.span.cloneNode(!1)).className=this.options.iconBase+" "+n.icon,i.fragment.appendChild(u),i.fragment.appendChild(f)),n.subtext&&((r=i.subtext.cloneNode(!1)).textContent=n.subtext,t.appendChild(r)),i.fragment.appendChild(t),i.fragment}},u=function(t,i){var f=this,r;c.useDefault||(n.valHooks.select.set=c._set,c.useDefault=!0);this.$element=n(t);this.$newElement=null;this.$button=null;this.$menu=null;this.options=i;this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){f.selectpicker.keydown.keyHistory=""},800)}}}};this.sizeInfo={};null===this.options.title&&(this.options.title=this.$element.attr("title"));r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]);this.val=u.prototype.val;this.render=u.prototype.render;this.refresh=u.prototype.refresh;this.setStyle=u.prototype.setStyle;this.selectAll=u.prototype.selectAll;this.deselectAll=u.prototype.deselectAll;this.destroy=u.prototype.destroy;this.remove=u.prototype.remove;this.show=u.prototype.show;this.hide=u.prototype.hide;this.init()};u.VERSION="1.13.18";u.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:t.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:t.ICONBASE,tickIcon:t.TICKICON,showTick:!1,template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}};u.prototype={constructor:u,init:function(){var n=this,f=this.$element.attr("id"),i=this.$element[0],u=i.form;at++;this.selectId="bs-select-"+at;i.classList.add("bs-select-hidden");this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");i.classList.contains("show-tick")&&(this.options.showTick=!0);this.$newElement=this.createDropdown();this.buildData();this.$element.after(this.$newElement).prependTo(this.$newElement);u&&null===i.form&&(u.id||(u.id="form-"+this.selectId),i.setAttribute("form",u.id));this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(vt.MENU);this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");i.classList.remove("bs-select-hidden");!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(t.MENURIGHT);void 0!==f&&this.$button.attr("data-id",f);this.checkDisabled();this.clickListener();this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0];this.setStyle();this.render();this.setWidth();this.options.container?this.selectPosition():this.$element.on("hide"+r,function(){if(n.isVirtual()){var t=n.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,t.firstChild);t.scrollTop=0}});this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(t){n.$element.trigger("hide"+r,t)},"hidden.bs.dropdown":function(t){n.$element.trigger("hidden"+r,t)},"show.bs.dropdown":function(t){n.$element.trigger("show"+r,t)},"shown.bs.dropdown":function(t){n.$element.trigger("shown"+r,t)}});i.hasAttribute("required")&&this.$element.on("invalid"+r,function(){n.$button[0].classList.add("bs-invalid");n.$element.on("shown"+r+".invalid",function(){n.$element.val(n.$element.val()).off("shown"+r+".invalid")}).on("rendered"+r,function(){this.validity.valid&&n.$button[0].classList.remove("bs-invalid");n.$element.off("rendered"+r)});n.$button.on("blur"+r,function(){n.$element.trigger("focus").trigger("blur");n.$button.off("blur"+r)})});setTimeout(function(){n.buildList();n.$element.trigger("loaded"+r)})},createDropdown:function(){var h=this.multiple||this.options.showTick?" show-tick":"",c=this.multiple?' aria-multiselectable="true"':"",i="",l=this.autofocus?" autofocus":"";f.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var r,u="",e="",o="",s="";return this.options.header&&(u='<div class="'+t.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>"),this.options.liveSearch&&(e='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+a(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"><\/div>'),this.multiple&&this.options.actionsBox&&(o='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+t.BUTTONCLASS+'">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn '+t.BUTTONCLASS+'">'+this.options.deselectAllText+"<\/button><\/div><\/div>"),this.multiple&&this.options.doneButton&&(s='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+t.BUTTONCLASS+'">'+this.options.doneButtonText+"<\/button><\/div><\/div>"),r='<div class="dropdown bootstrap-select'+h+i+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+l+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"><\/div><\/div> <\/div>'+("4"===f.major?"":'<span class="bs-caret">'+this.options.template.caret+"<\/span>")+'<\/button><div class="'+t.MENU+" "+("4"===f.major?"":t.SHOW)+'">'+u+e+o+'<div class="inner '+t.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+c+'><ul class="'+t.MENU+" inner "+("4"===f.major?t.SHOW:"")+'" role="presentation"><\/ul><\/div>'+s+"<\/div><\/div>",n(r)},setPositionData:function(){var t,n,i;for(this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1,t=0;t<this.selectpicker.current.data.length;t++)n=this.selectpicker.current.data[t],i=!0,"divider"===n.type?(i=!1,n.height=this.sizeInfo.dividerHeight):"optgroup-label"===n.type?(i=!1,n.height=this.sizeInfo.dropdownHeaderHeight):n.height=this.sizeInfo.liHeight,n.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,n.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),n.position=(0===t?0:this.selectpicker.current.data[t-1].position)+n.height},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(i,u,f){function a(n,t){var c,l,rt,ut,s,b,ft,et,f=e.selectpicker.current.elements.length,k=[],ot=!0,o=e.isVirtual(),r,a,at,vt,w,nt,tt,it,yt,h;for(e.selectpicker.view.scrollTop=n,c=Math.ceil(e.sizeInfo.menuInnerHeight/e.sizeInfo.liHeight*1.5),l=Math.round(f/c)||1,r=0;r<l;r++){if(a=(r+1)*c,r===l-1&&(a=f),k[r]=[r*c+(r?1:0),a],!f)break;void 0===s&&n-1<=e.selectpicker.current.data[a-1].position-e.sizeInfo.menuInnerHeight&&(s=r)}if(void 0===s&&(s=0),b=[e.selectpicker.view.position0,e.selectpicker.view.position1],rt=Math.max(0,s-1),ut=Math.min(l-1,s+1),e.selectpicker.view.position0=!1===o?0:Math.max(0,k[rt][0])||0,e.selectpicker.view.position1=!1===o?f:Math.min(f,k[ut][1])||0,ft=b[0]!==e.selectpicker.view.position0||b[1]!==e.selectpicker.view.position1,void 0!==e.activeIndex&&(y=e.selectpicker.main.elements[e.prevActiveIndex],p=e.selectpicker.main.elements[e.activeIndex],v=e.selectpicker.main.elements[e.selectedIndex],t&&(e.activeIndex!==e.selectedIndex&&e.defocusItem(p),e.activeIndex=void 0),e.activeIndex&&e.activeIndex!==e.selectedIndex&&e.defocusItem(v)),void 0!==e.prevActiveIndex&&e.prevActiveIndex!==e.activeIndex&&e.prevActiveIndex!==e.selectedIndex&&e.defocusItem(y),(t||ft)&&(et=e.selectpicker.view.visibleElements?e.selectpicker.view.visibleElements.slice():[],e.selectpicker.view.visibleElements=!1===o?e.selectpicker.current.elements:e.selectpicker.current.elements.slice(e.selectpicker.view.position0,e.selectpicker.view.position1),e.setOptionStatus(),(i||!1===o&&t)&&(ot=!function(n,t){return n.length===t.length&&n.every(function(n,i){return n===t[i]})}(et,e.selectpicker.view.visibleElements)),(t||!0===o)&&ot)){var st,ht,u=e.$menuInner[0],ct=document.createDocumentFragment(),pt=u.firstChild.cloneNode(!1),lt=e.selectpicker.view.visibleElements,d=[];for(u.replaceChild(pt,u.firstChild),r=0,at=lt.length;r<at;r++)nt=lt[r],e.options.sanitize&&(vt=nt.lastChild)&&(w=e.selectpicker.current.data[r+e.selectpicker.view.position0])&&w.content&&!w.sanitized&&(d.push(vt),w.sanitized=!0),ct.appendChild(nt);(e.options.sanitize&&d.length&&g(d,e.options.whiteList,e.options.sanitizeFn),!0===o?(st=0===e.selectpicker.view.position0?0:e.selectpicker.current.data[e.selectpicker.view.position0-1].position,ht=e.selectpicker.view.position1>f-1?0:e.selectpicker.current.data[f-1].position-e.selectpicker.current.data[e.selectpicker.view.position1-1].position,u.firstChild.style.marginTop=st+"px",u.firstChild.style.marginBottom=ht+"px"):(u.firstChild.style.marginTop=0,u.firstChild.style.marginBottom=0),u.firstChild.appendChild(ct),!0===o&&e.sizeInfo.hasScrollBar)&&(tt=u.firstChild.offsetWidth,t&&tt<e.sizeInfo.menuInnerInnerWidth&&e.sizeInfo.totalMenuWidth>e.sizeInfo.selectWidth?u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px":tt>e.sizeInfo.menuInnerInnerWidth&&(e.$menu[0].style.minWidth=0,it=u.firstChild.offsetWidth,it>e.sizeInfo.menuInnerInnerWidth&&(e.sizeInfo.menuInnerInnerWidth=it,u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px"),e.$menu[0].style.minWidth=""))}(e.prevActiveIndex=e.activeIndex,e.options.liveSearch)?i&&t&&(h=0,e.selectpicker.view.canHighlight[h]||(h=1+e.selectpicker.view.canHighlight.slice(1).indexOf(!0)),yt=e.selectpicker.view.visibleElements[h],e.defocusItem(e.selectpicker.view.currentActive),e.activeIndex=(e.selectpicker.current.data[h]||{}).index,e.focusItem(yt)):e.$menuInner.trigger("focus")}var v,y,e=this,o=0,p=[],s,h,c,l;(this.selectpicker.isSearching=i,this.selectpicker.current=i?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),u)&&(f?o=this.$menuInner[0].scrollTop:e.multiple||(s=e.$element[0],h=(s.options[s.selectedIndex]||{}).liIndex,"number"==typeof h&&!1!==e.options.size&&(c=e.selectpicker.main.data[h],l=c&&c.position,l&&(o=l-(e.sizeInfo.menuInnerHeight+e.sizeInfo.liHeight)/2))));a(o,!0);this.$menuInner.off("scroll.createView").on("scroll.createView",function(n,t){e.noScroll||a(this.scrollTop,t);e.noScroll=!1});n(window).off("resize"+r+"."+this.selectId+".createView").on("resize"+r+"."+this.selectId+".createView",function(){e.$newElement.hasClass(t.SHOW)&&a(e.$menuInner[0].scrollTop)})},focusItem:function(n,t,i){if(n){t=t||this.selectpicker.main.data[this.activeIndex];var r=n.firstChild;r&&(r.setAttribute("aria-setsize",this.selectpicker.view.size),r.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",r.id),n.classList.add("active"),r.classList.add("active")))}},defocusItem:function(n){n&&(n.classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active"))},setPlaceholder:function(){var i=this,r=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));r=!0;var n=this.$element[0],u=!1,f=!this.selectpicker.view.titleOption.parentNode,e=n.selectedIndex,o=n.options[e],t=window.performance&&window.performance.getEntriesByType("navigation"),s=t&&t.length?"back_forward"!==t[0].type:2!==window.performance.navigation.type;f&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",u=!o||0===e&&!1===o.defaultSelected&&void 0===this.$element.data("selected"));!f&&0===this.selectpicker.view.titleOption.index||n.insertBefore(this.selectpicker.view.titleOption,n.firstChild);u&&s?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",function(){i.selectpicker.view.displayedValue!==n.value&&i.render()})}return r},buildData:function(){function f(t){var i=n[n.length-1];i&&"divider"===i.type&&(i.optID||t.optID)||((t=t||{}).type="divider",n.push(t))}function s(t,i){if((i=i||{}).divider="true"===t.getAttribute("data-divider"),i.divider)f({optID:i.optID});else{var u=n.length,e=t.style.cssText,o=e?a(e):"",r=(t.className||"")+(i.optgroupClass||"");i.optID&&(r="opt "+r);i.optionClass=r.trim();i.inlineStyle=o;i.text=t.textContent;i.content=t.getAttribute("data-content");i.tokens=t.getAttribute("data-tokens");i.subtext=t.getAttribute("data-subtext");i.icon=t.getAttribute("data-icon");t.liIndex=u;i.display=i.content||i.text;i.type="option";i.index=u;i.option=t;i.selected=!!t.selected;i.disabled=i.disabled||!!t.disabled;n.push(i)}}function c(t,r){var e=r[t],b=!(t-1<o)&&r[t-1],k=r[t+1],l=e.querySelectorAll("option"+u),y,p,h,c,v,w;if(l.length){for(h={display:a(e.label),subtext:e.getAttribute("data-subtext"),icon:e.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(e.className||"")},i++,b&&f({optID:i}),h.optID=i,n.push(h),c=0,v=l.length;c<v;c++)w=l[c],0===c&&(p=(y=n.length-1)+v),s(w,{headerIndex:y,lastIndex:p,optID:h.optID,optgroupClass:h.optgroupClass,disabled:e.disabled});k&&f({optID:i})}}var u=':not([hidden]):not([data-hidden="true"])',n=[],i=0,o=this.setPlaceholder()?1:0,r,h,t,e;for(this.options.hideDisabled&&(u+=":not(:disabled)"),r=this.$element[0].querySelectorAll("select > *"+u),h=r.length,t=o;t<h;t++)e=r[t],"OPTGROUP"!==e.tagName?s(e,{}):c(t,r);this.selectpicker.main.data=this.selectpicker.current.data=n},buildList:function(){function h(i){var u,f=0;switch(i.type){case"divider":u=o.li(!1,t.DIVIDER,i.optID?i.optID+"div":void 0);break;case"option":(u=o.li(o.a(o.text.call(n,i),i.optionClass,i.inlineStyle),"",i.optID)).firstChild&&(u.firstChild.id=n.selectId+"-"+i.index);break;case"optgroup-label":u=o.li(o.label.call(n,i),"dropdown-header"+i.optgroupClass,i.optID)}i.element=u;r.push(u);i.display&&(f+=i.display.length);i.subtext&&(f+=i.subtext.length);i.icon&&(f+=1);e<f&&(e=f,n.selectpicker.view.widestOption=r[r.length-1])}var n=this,f=this.selectpicker.main.data,r=[],e=0,s,u;for((n.options.showTick||n.multiple)&&!i.checkMark.parentNode&&(i.checkMark.className=this.options.iconBase+" "+n.options.tickIcon+" check-mark",i.a.appendChild(i.checkMark)),s=f.length,u=0;u<s;u++)h(f[u]);this.selectpicker.main.elements=this.selectpicker.current.elements=r},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var b,t=this,y=this.$element[0],rt=this.setPlaceholder()&&0===y.selectedIndex,a=ft(y,this.options.hideDisabled),u=a.length,e=this.$button[0],k=e.querySelector(".filter-option-inner-inner"),ut=document.createTextNode(this.options.multipleSeparator),n=i.fragment.cloneNode(!1),tt=!1,s,v,d,it,nt,w;if(e.classList.toggle("bs-placeholder",t.multiple?!u:!l(y,a)),t.multiple||1!==a.length||(t.selectpicker.view.displayedValue=l(y,a)),"static"===this.options.selectedTextFormat)n=o.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<u&&(1<(b=this.options.selectedTextFormat.split(">")).length&&u>b[1]||1===b.length&&2<=u))){if(!rt){for(s=0;s<u&&s<50;s++){var p=a[s],h=this.selectpicker.main.data[p.liIndex],c={};this.multiple&&0<s&&n.appendChild(ut.cloneNode(!1));p.title?c.text=p.title:h&&(h.content&&t.options.showContent?(c.content=h.content.toString(),tt=!0):(t.options.showIcon&&(c.icon=h.icon),t.options.showSubtext&&!t.multiple&&h.subtext&&(c.subtext=" "+h.subtext),c.text=p.textContent.trim()));n.appendChild(o.text.call(this,c,!0))}49<u&&n.appendChild(document.createTextNode("..."))}}else v=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])',this.options.hideDisabled&&(v+=":not(:disabled)"),d=this.$element[0].querySelectorAll("select > option"+v+", optgroup"+v+" option"+v).length,it="function"==typeof this.options.countSelectedText?this.options.countSelectedText(u,d):this.options.countSelectedText,n=o.text.call(this,{text:it.replace("{0}",u.toString()).replace("{1}",d.toString())},!0);(null==this.options.title&&(this.options.title=this.$element.attr("title")),n.childNodes.length||(n=o.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),e.title=n.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&tt&&g([n],t.options.whiteList,t.options.sanitizeFn),k.innerHTML="",k.appendChild(n),f.major<4&&this.$newElement[0].classList.contains("bs3-has-addon"))&&(nt=e.querySelector(".filter-expand"),w=k.cloneNode(!0),w.className="filter-expand",nt?e.replaceChild(w,nt):e.appendChild(w));this.$element.trigger("rendered"+r)},setStyle:function(n,t){var u,i=this.$button[0],r=this.$newElement[0],e=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));f.major<4&&(r.classList.add("bs3"),r.parentNode.classList&&r.parentNode.classList.contains("input-group")&&(r.previousElementSibling||r.nextElementSibling)&&(r.previousElementSibling||r.nextElementSibling).classList.contains("input-group-addon")&&r.classList.add("bs3-has-addon"));u=n?n.trim():e;"add"==t?u&&i.classList.add.apply(i.classList,u.split(" ")):"remove"==t?u&&i.classList.remove.apply(i.classList,u.split(" ")):(e&&i.classList.remove.apply(i.classList,e.split(" ")),u&&i.classList.add.apply(i.classList,u.split(" ")))},liHeight:function(r){var d,it,rt;if(r||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var l,a=i.div.cloneNode(!1),o=i.div.cloneNode(!1),y=i.div.cloneNode(!1),h=document.createElement("ul"),nt=i.li.cloneNode(!1),v=i.li.cloneNode(!1),tt=i.a.cloneNode(!1),p=i.span.cloneNode(!1),w=this.options.header&&0<this.$menu.find("."+t.POPOVERHEADER).length?this.$menu.find("."+t.POPOVERHEADER)[0].cloneNode(!0):null,c=this.options.liveSearch?i.div.cloneNode(!1):null,b=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,k=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,ft=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,p.className="text",tt.className="dropdown-item "+(ft?ft.className:""),a.className=this.$menu[0].parentNode.className+" "+t.SHOW,a.style.width=0,"auto"===this.options.width&&(o.style.minWidth=0),o.className=t.MENU+" "+t.SHOW,y.className="inner "+t.SHOW,h.className=t.MENU+" inner "+("4"===f.major?t.SHOW:""),nt.className=t.DIVIDER,v.className="dropdown-header",p.appendChild(document.createTextNode("​")),this.selectpicker.current.data.length){for(d=0;d<this.selectpicker.current.data.length;d++)if(it=this.selectpicker.current.data[d],"option"===it.type){l=it.element;break}}else l=i.li.cloneNode(!1),tt.appendChild(p),l.appendChild(tt);(v.appendChild(p.cloneNode(!0)),this.selectpicker.view.widestOption&&h.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),h.appendChild(l),h.appendChild(nt),h.appendChild(v),w&&o.appendChild(w),c)&&(rt=document.createElement("input"),c.className="bs-searchbox",rt.className="form-control",c.appendChild(rt),o.appendChild(c));b&&o.appendChild(b);y.appendChild(h);o.appendChild(y);k&&o.appendChild(k);a.appendChild(o);document.body.appendChild(a);var et,ot=l.offsetHeight,st=v?v.offsetHeight:0,ht=w?w.offsetHeight:0,ct=c?c.offsetHeight:0,lt=b?b.offsetHeight:0,at=k?k.offsetHeight:0,vt=n(nt).outerHeight(!0),u=!!window.getComputedStyle&&window.getComputedStyle(o),ut=o.offsetWidth,s=u?null:n(o),g={vert:e(u?u.paddingTop:s.css("paddingTop"))+e(u?u.paddingBottom:s.css("paddingBottom"))+e(u?u.borderTopWidth:s.css("borderTopWidth"))+e(u?u.borderBottomWidth:s.css("borderBottomWidth")),horiz:e(u?u.paddingLeft:s.css("paddingLeft"))+e(u?u.paddingRight:s.css("paddingRight"))+e(u?u.borderLeftWidth:s.css("borderLeftWidth"))+e(u?u.borderRightWidth:s.css("borderRightWidth"))},yt={vert:g.vert+e(u?u.marginTop:s.css("marginTop"))+e(u?u.marginBottom:s.css("marginBottom"))+2,horiz:g.horiz+e(u?u.marginLeft:s.css("marginLeft"))+e(u?u.marginRight:s.css("marginRight"))+2};y.style.overflowY="scroll";et=o.offsetWidth-ut;document.body.removeChild(a);this.sizeInfo.liHeight=ot;this.sizeInfo.dropdownHeaderHeight=st;this.sizeInfo.headerHeight=ht;this.sizeInfo.searchHeight=ct;this.sizeInfo.actionsHeight=lt;this.sizeInfo.doneButtonHeight=at;this.sizeInfo.dividerHeight=vt;this.sizeInfo.menuPadding=g;this.sizeInfo.menuExtras=yt;this.sizeInfo.menuWidth=ut;this.sizeInfo.menuInnerInnerWidth=ut-g.horiz;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth;this.sizeInfo.scrollBarWidth=et;this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight;this.setPositionData()}},getSelectPosition:function(){var t,u=n(window),f=this.$newElement.offset(),i=n(this.options.container),r;this.options.container&&i.length&&!i.is("body")?((t=i.offset()).top+=parseInt(i.css("borderTopWidth")),t.left+=parseInt(i.css("borderLeftWidth"))):t={top:0,left:0};r=this.options.windowPadding;this.sizeInfo.selectOffsetTop=f.top-t.top-u.scrollTop();this.sizeInfo.selectOffsetBot=u.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-r[2];this.sizeInfo.selectOffsetLeft=f.left-t.left-u.scrollLeft();this.sizeInfo.selectOffsetRight=u.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-r[1];this.sizeInfo.selectOffsetTop-=r[0];this.sizeInfo.selectOffsetLeft-=r[3]},setMenuSize:function(){var f;this.getSelectPosition();var r,n,e,o,s,h,y,u,b=this.sizeInfo.selectWidth,p=this.sizeInfo.liHeight,c=this.sizeInfo.headerHeight,l=this.sizeInfo.searchHeight,a=this.sizeInfo.actionsHeight,v=this.sizeInfo.doneButtonHeight,k=this.sizeInfo.dividerHeight,i=this.sizeInfo.menuPadding,w=0;if(this.options.dropupAuto&&(y=p*this.selectpicker.current.elements.length+i.vert,u=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&y+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(u=this.selectpicker.dropup),this.$newElement.toggleClass(t.DROPUP,u),this.selectpicker.dropup=u),"auto"===this.options.size)o=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,e=o+c+l+a+v,h=Math.max(o-i.vert,0),this.$newElement.hasClass(t.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=(s=n)-c-l-a-v-i.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(f=0;f<this.options.size;f++)"divider"===this.selectpicker.current.data[f].type&&w++;r=(n=p*this.options.size+w*k+i.vert)-i.vert;s=n+c+l+a+v;e=h=""}this.$menu.css({"max-height":s+"px",overflow:"hidden","min-height":e+"px"});this.$menuInner.css({"max-height":r+"px","overflow-y":"auto","min-height":h+"px"});this.sizeInfo.menuInnerHeight=Math.max(r,1);this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth);"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(t.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-b);this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,u=n(window);this.setMenuSize();this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return i.setMenuSize()});"auto"===this.options.size?u.off("resize"+r+"."+this.selectId+".setMenuSize scroll"+r+"."+this.selectId+".setMenuSize").on("resize"+r+"."+this.selectId+".setMenuSize scroll"+r+"."+this.selectId+".setMenuSize",function(){return i.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&u.off("resize"+r+"."+this.selectId+".setMenuSize scroll"+r+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var n=this;"auto"===this.options.width?requestAnimationFrame(function(){n.$menu.css("min-width","0");n.$element.on("loaded"+r,function(){n.liHeight();n.setMenuSize();var t=n.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove();n.sizeInfo.selectWidth=Math.max(n.sizeInfo.totalMenuWidth,i);n.$newElement.css("width",n.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function s(r){var s={},c=i.options.display||!!n.fn.dropdown.Constructor.Default&&n.fn.dropdown.Constructor.Default.display;i.$bsContainer.addClass(r.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(t.DROPUP,r.hasClass(t.DROPUP));o=r.offset();u.is("body")?e={top:0,left:0}:((e=u.offset()).top+=parseInt(u.css("borderTopWidth"))-u.scrollTop(),e.left+=parseInt(u.css("borderLeftWidth"))-u.scrollLeft());h=r.hasClass(t.DROPUP)?0:r[0].offsetHeight;(f.major<4||"static"===c)&&(s.top=o.top-e.top+h,s.left=o.left-e.left);s.width=r[0].offsetWidth;i.$bsContainer.css(s)}this.$bsContainer=n('<div class="bs-container" />');var o,e,h,i=this,u=n(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){i.isDisabled()||(s(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass(t.SHOW,!i.$button.hasClass(t.SHOW)).append(i.$menu))});n(window).off("resize"+r+"."+this.selectId+" scroll"+r+"."+this.selectId).on("resize"+r+"."+this.selectId+" scroll"+r+"."+this.selectId,function(){i.$newElement.hasClass(t.SHOW)&&s(i.$newElement)});this.$element.on("hide"+r,function(){i.$menu.data("height",i.$menu.height());i.$bsContainer.detach()})},setOptionStatus:function(n){var t=this,r,i,u;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(r=0;r<t.selectpicker.view.visibleElements.length;r++)i=t.selectpicker.current.data[r+t.selectpicker.view.position0],u=i.option,u&&(!0!==n&&t.setDisabled(i.index,i.disabled),t.setSelected(i.index,u.selected))},setSelected:function(n,t){var u,i,r=this.selectpicker.main.elements[n],f=this.selectpicker.main.data[n],e=void 0!==this.activeIndex,o=this.activeIndex===n||t&&!this.multiple&&!e;f.selected=t;i=r.firstChild;t&&(this.selectedIndex=n);r.classList.toggle("selected",t);o?(this.focusItem(r,f),this.selectpicker.view.currentActive=r,this.activeIndex=n):this.defocusItem(r);i&&(i.classList.toggle("selected",t),t?i.setAttribute("aria-selected",!0):this.multiple?i.setAttribute("aria-selected",!1):i.removeAttribute("aria-selected"));o||e||!t||void 0===this.prevActiveIndex||(u=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(u))},setDisabled:function(n,i){var r,u=this.selectpicker.main.elements[n];this.selectpicker.main.data[n].disabled=i;r=u.firstChild;u.classList.toggle(t.DISABLED,i);r&&("4"===f.major&&r.classList.toggle(t.DISABLED,i),i?(r.setAttribute("aria-disabled",i),r.setAttribute("tabindex",-1)):(r.removeAttribute("aria-disabled"),r.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(t.DISABLED),this.$button.addClass(t.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(t.DISABLED)&&(this.$newElement[0].classList.remove(t.DISABLED),this.$button.removeClass(t.DISABLED).attr("aria-disabled",!1))},clickListener:function(){function e(){i.options.liveSearch?i.$searchbox.trigger("focus"):i.$menuInner.trigger("focus")}function o(){i.dropdown&&i.dropdown._popper&&i.dropdown._popper.state.isCreated?e():requestAnimationFrame(o)}var i=this,u=n(document);u.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&u.data("spaceSelect")&&(n.preventDefault(),u.data("spaceSelect",!1))});this.$newElement.on("show.bs.dropdown",function(){3<f.major&&!i.dropdown&&(i.dropdown=i.$button.data("bs.dropdown"),i.dropdown._menu=i.$menu[0])});this.$button.on("click.bs.dropdown.data-api",function(){i.$newElement.hasClass(t.SHOW)||i.setSize()});this.$element.on("shown"+r,function(){i.$menuInner[0].scrollTop!==i.selectpicker.view.scrollTop&&(i.$menuInner[0].scrollTop=i.selectpicker.view.scrollTop);3<f.major?requestAnimationFrame(o):e()});this.$menuInner.on("mouseenter","li a",function(){var n=this.parentElement,t=i.isVirtual()?i.selectpicker.view.position0:0,r=Array.prototype.indexOf.call(n.parentElement.children,n),u=i.selectpicker.current.data[r+t];i.focusItem(n,u,!0)});this.$menuInner.on("click","li a",function(u,f){var rt=n(this),c=i.$element[0],lt=i.isVirtual()?i.selectpicker.view.position0:0,ut=i.selectpicker.current.data[rt.parent().index()+lt],a=ut.index,at=l(c),et=c.selectedIndex,ot=c.options[et],w=!0,k,d,p,g;if(i.multiple&&1!==i.options.maxOptions&&u.stopPropagation(),u.preventDefault(),!i.isDisabled()&&!rt.parent().hasClass(t.DISABLED)){var h=ut.option,st=n(h),ht=h.selected,b=st.parent("optgroup"),ct=b.find("option"),e=i.options.maxOptions,o=b.data("maxOptions")||!1;if(a===i.activeIndex&&(f=!0),f||(i.prevActiveIndex=i.activeIndex,i.activeIndex=void 0),i.multiple){if((h.selected=!ht,i.setSelected(a,!ht),i.focusedParent.focus(),!1!==e||!1!==o)&&(k=e<ft(c).length,d=o<b.find("option:selected").length,e&&k||o&&d))if(e&&1==e)c.selectedIndex=-1,h.selected=!0,i.setOptionStatus(!0);else if(o&&1==o){for(p=0;p<ct.length;p++)g=ct[p],g.selected=!1,i.setSelected(g.liIndex,!1);h.selected=!0;i.setSelected(a,!0)}else{var nt="string"==typeof i.options.maxOptionsText?[i.options.maxOptionsText,i.options.maxOptionsText]:i.options.maxOptionsText,v="function"==typeof nt?nt(e,o):nt,tt=v[0].replace("{n}",e),it=v[1].replace("{n}",o),y=n('<div class="notify"><\/div>');v[2]&&(tt=tt.replace("{var}",v[2][1<e?0:1]),it=it.replace("{var}",v[2][1<o?0:1]));h.selected=!1;i.$menu.append(y);e&&k&&(y.append(n("<div>"+tt+"<\/div>")),w=!1,i.$element.trigger("maxReached"+r));o&&d&&(y.append(n("<div>"+it+"<\/div>")),w=!1,i.$element.trigger("maxReachedGrp"+r));setTimeout(function(){i.setSelected(a,!1)},10);y[0].classList.add("fadeOut");setTimeout(function(){y.remove()},1050)}}else ot&&(ot.selected=!1),h.selected=!0,i.setSelected(a,!0);!i.multiple||i.multiple&&1===i.options.maxOptions?i.$button.trigger("focus"):i.options.liveSearch&&i.$searchbox.trigger("focus");w&&(!i.multiple&&et===c.selectedIndex||(s=[h.index,st.prop("selected"),at],i.$element.triggerNative("change")))}});this.$menu.on("click","li."+t.DISABLED+" a, ."+t.POPOVERHEADER+", ."+t.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),i.options.liveSearch&&!n(t.target).hasClass("close")?i.$searchbox.trigger("focus"):i.$button.trigger("focus"))});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();i.options.liveSearch?i.$searchbox.trigger("focus"):i.$button.trigger("focus")});this.$menu.on("click","."+t.POPOVERHEADER+" .close",function(){i.$button.trigger("click")});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(t){i.options.liveSearch?i.$searchbox.trigger("focus"):i.$button.trigger("focus");t.preventDefault();t.stopPropagation();n(this).hasClass("bs-select-all")?i.selectAll():i.deselectAll()});this.$button.on("focus"+r,function(n){var t=i.$element[0].getAttribute("tabindex");void 0!==t&&n.originalEvent&&n.originalEvent.isTrusted&&(this.setAttribute("tabindex",t),i.$element[0].setAttribute("tabindex",-1),i.selectpicker.view.tabindex=t)}).on("blur"+r,function(n){void 0!==i.selectpicker.view.tabindex&&n.originalEvent&&n.originalEvent.isTrusted&&(i.$element[0].setAttribute("tabindex",i.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),i.selectpicker.view.tabindex=void 0)});this.$element.on("change"+r,function(){i.render();i.$element.trigger("changed"+r,s);s=null}).on("focus"+r,function(){i.options.mobile||i.$button[0].focus()})},liveSearchListener:function(){var n=this;this.$button.on("click.bs.dropdown.data-api",function(){n.$searchbox.val()&&(n.$searchbox.val(""),n.selectpicker.search.previousValue=void 0)});this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var e=n.$searchbox[0].value,t,r,h;if(n.selectpicker.search.elements=[],n.selectpicker.search.data=[],e){var o=[],s=e.toUpperCase(),u={},f=[],y=n._searchStyle(),c=n.options.liveSearchNormalize;for(c&&(s=st(s)),t=0;t<n.selectpicker.main.data.length;t++)r=n.selectpicker.main.data[t],u[t]||(u[t]=ot(r,s,y,c)),u[t]&&void 0!==r.headerIndex&&-1===f.indexOf(r.headerIndex)&&(0<r.headerIndex&&(u[r.headerIndex-1]=!0,f.push(r.headerIndex-1)),u[r.headerIndex]=!0,f.push(r.headerIndex),u[r.lastIndex+1]=!0),u[t]&&"optgroup-label"!==r.type&&f.push(t);for(t=0,h=f.length;t<h;t++){var l=f[t],p=f[t-1],v=(r=n.selectpicker.main.data[l],n.selectpicker.main.data[p]);("divider"!==r.type||"divider"===r.type&&v&&"divider"!==v.type&&h-1!==t)&&(n.selectpicker.search.data.push(r),o.push(n.selectpicker.main.elements[l]))}n.activeIndex=void 0;n.noScroll=!0;n.$menuInner.scrollTop(0);n.selectpicker.search.elements=o;n.createView(!0),function(n,t){n.length||(i.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+a(t)+'"'),this.$menuInner[0].firstChild.appendChild(i.noResults))}.call(n,o,e)}else n.selectpicker.search.previousValue&&(n.$menuInner.scrollTop(0),n.createView(!1));n.selectpicker.search.previousValue=e})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(n){var i=this.$element[0],f,u;return void 0===n?this.$element.val():(f=l(i),(s=[null,null,f],this.$element.val(n).trigger("changed"+r,s),this.$newElement.hasClass(t.SHOW))&&(this.multiple?this.setOptionStatus(!0):(u=(i.options[i.selectedIndex]||{}).liIndex,"number"==typeof u&&(this.setSelected(this.selectedIndex,!1),this.setSelected(u,!0)))),this.render(),s=null,this.$element)},changeAll:function(n){var t,u;if(this.multiple){void 0===n&&(n=!0);var i=this.$element[0],f=0,e=0,h=l(i);i.classList.add("bs-select-hidden");for(var r=0,o=this.selectpicker.current.data,c=o.length;r<c;r++)t=o[r],u=t.option,u&&!t.disabled&&"divider"!==t.type&&(t.selected&&f++,!0===(u.selected=n)&&e++);i.classList.remove("bs-select-hidden");f!==e&&(this.setOptionStatus(),s=[null,null,h],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){(n=n||window.event)&&n.stopPropagation();this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(i){var u,tt,f,o,a,s=n(this),ft=s.hasClass("dropdown-toggle"),r=(ft?s.closest(".dropdown"):s.closest(vt.MENU)).data("this"),p=r.findLis(),w=!1,it=i.which===b&&!ft&&!r.options.selectOnTab,et=si.test(i.which)||it,nt=r.$menuInner[0].scrollTop,e=!0===r.isVirtual()?r.selectpicker.view.position0:0,h,rt,y,c,g,ut,l;if(!(112<=i.which&&i.which<=123))if((tt=r.$newElement.hasClass(t.SHOW))||!(et||48<=i.which&&i.which<=57||96<=i.which&&i.which<=105||65<=i.which&&i.which<=90)||(r.$button.trigger("click.bs.dropdown.data-api"),!r.options.liveSearch)){if(i.which===lt&&tt&&(i.preventDefault(),r.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),et){if(!p.length)return;-1!==(u=(f=r.selectpicker.main.elements[r.activeIndex])?Array.prototype.indexOf.call(f.parentElement.children,f):-1)&&r.defocusItem(f);i.which===k?(-1!==u&&u--,u+e<0&&(u+=p.length),r.selectpicker.view.canHighlight[u+e]||-1==(u=r.selectpicker.view.canHighlight.slice(0,u+e).lastIndexOf(!0)-e)&&(u=p.length-1)):i.which!==d&&!it||(++u+e>=r.selectpicker.view.canHighlight.length&&(u=r.selectpicker.view.firstHighlightIndex),r.selectpicker.view.canHighlight[u+e]||(u=u+1+r.selectpicker.view.canHighlight.slice(u+e+1).indexOf(!0)));i.preventDefault();h=e+u;i.which===k?0===e&&u===p.length-1?(r.$menuInner[0].scrollTop=r.$menuInner[0].scrollHeight,h=r.selectpicker.current.elements.length-1):w=(a=(o=r.selectpicker.current.data[h]).position-o.height)<nt:i.which!==d&&!it||(u===r.selectpicker.view.firstHighlightIndex?(r.$menuInner[0].scrollTop=0,h=r.selectpicker.view.firstHighlightIndex):w=nt<(a=(o=r.selectpicker.current.data[h]).position-r.sizeInfo.menuInnerHeight));f=r.selectpicker.current.elements[h];r.activeIndex=r.selectpicker.current.data[h].index;r.focusItem(f);r.selectpicker.view.currentActive=f;w&&(r.$menuInner[0].scrollTop=a);r.options.liveSearch?r.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!hi.test(i.which)||i.which===v&&r.selectpicker.keydown.keyHistory){for(c=[],i.preventDefault(),r.selectpicker.keydown.keyHistory+=ei[i.which],r.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(r.selectpicker.keydown.resetKeyHistory.cancel),r.selectpicker.keydown.resetKeyHistory.cancel=r.selectpicker.keydown.resetKeyHistory.start(),y=r.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0)),g=0;g<r.selectpicker.current.data.length;g++)ut=r.selectpicker.current.data[g],ot(ut,y,"startsWith",!0)&&r.selectpicker.view.canHighlight[g]&&c.push(ut.index);c.length&&(l=0,p.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(l=c.indexOf(r.activeIndex))||l===c.length-1?l=0:l++),rt=c[l],w=0<nt-(o=r.selectpicker.main.data[rt]).position?(a=o.position-o.height,!0):(a=o.position-r.sizeInfo.menuInnerHeight,o.position>nt+r.sizeInfo.menuInnerHeight),f=r.selectpicker.main.elements[rt],r.activeIndex=c[l],r.focusItem(f),f&&f.firstChild.focus(),w&&(r.$menuInner[0].scrollTop=a),s.trigger("focus"))}tt&&(i.which===v&&!r.selectpicker.keydown.keyHistory||i.which===oi||i.which===b&&r.options.selectOnTab)&&(i.which!==v&&i.preventDefault(),r.options.liveSearch&&i.which===v||(r.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),r.options.liveSearch||(i.preventDefault(),n(document).data("spaceSelect",!0))))}else r.$searchbox.trigger("focus")},mobile:function(){this.options.mobile=!0;this.$element[0].classList.add("mobile-device")},refresh:function(){var t=n.extend({},this.options,this.$element.data());this.options=t;this.checkDisabled();this.buildData();this.setStyle();this.render();this.buildList();this.setWidth();this.setSize(!0);this.$element.trigger("refreshed"+r)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption);this.$element.off(r).removeData("selectpicker").removeClass("bs-select-hidden selectpicker");n(window).off(r+"."+this.selectId)}};pt=n.fn.selectpicker;n.fn.selectpicker=yt;n.fn.selectpicker.Constructor=u;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=pt,this};n(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',wt).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",wt).on("keydown"+r,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',u.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load"+r+".data-api",function(){n(".selectpicker").each(function(){var t=n(this);yt.call(t,t.data())})})}(n)}),function(n){"use strict";function i(t,i){this.isInit=!0;this.itemsArray=[];this.$element=n(t);this.$element.addClass("sr-only");this.isSelect=t.tagName==="SELECT";this.multiple=this.isSelect&&t.hasAttribute("multiple");this.objectItems=i&&i.itemValue;this.placeholderText=t.hasAttribute("placeholder")?this.$element.attr("placeholder"):"";this.inputSize=Math.max(1,this.placeholderText.length);this.$container=n('<div class="bootstrap-tagsinput"><\/div>');this.$input=n('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container);this.$element.before(this.$container);this.build(i);this.isInit=!1}function u(n,t){if(typeof n[t]!="function"){var i=n[t];n[t]=function(n){return n[i]}}}function f(n,t){if(typeof n[t]!="function"){var i=n[t];n[t]=function(){return i}}}function t(n){return n?e.text(n).html():""}function o(n){var t=0,i;return document.selection?(n.focus(),i=document.selection.createRange(),i.moveStart("character",-n.value.length),t=i.text.length):(n.selectionStart||n.selectionStart=="0")&&(t=n.selectionStart),t}function s(t,i){var r=!1;return n.each(i,function(n,i){if(typeof i=="number"&&t.which===i)return r=!0,!1;if(t.which===i.which){var u=!i.hasOwnProperty("altKey")||t.altKey===i.altKey,f=!i.hasOwnProperty("shiftKey")||t.shiftKey===i.shiftKey,e=!i.hasOwnProperty("ctrlKey")||t.ctrlKey===i.ctrlKey;if(u&&f&&e)return r=!0,!1}}),r}var r={tagClass:function(){return"badge badge-info"},focusClass:"focus",itemValue:function(n){return n?n.toString():n},itemText:function(n){return this.itemValue(n)},itemTitle:function(){return null},freeInput:!0,addOnBlur:!0,maxTags:undefined,maxChars:undefined,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(n,t){t.addClass("sr-only")},trimValue:!1,allowDuplicates:!1,triggerChange:!0},e;i.prototype={constructor:i,add:function(i,r,u){var f=this,a,e,o,w,l,h,b,c;if((!f.options.maxTags||!(f.itemsArray.length>=f.options.maxTags))&&(i===!1||i)){if(typeof i=="string"&&f.options.trimValue&&(i=n.trim(i)),typeof i=="object"&&!f.objectItems)throw"Can't add objects when itemValue option is not set";if(!i.toString().match(/^\s*$/)){if(f.isSelect&&!f.multiple&&f.itemsArray.length>0&&f.remove(f.itemsArray[0]),typeof i=="string"&&this.$element[0].tagName==="INPUT"&&(a=f.options.delimiterRegex?f.options.delimiterRegex:f.options.delimiter,e=i.split(a),e.length>1)){for(o=0;o<e.length;o++)this.add(e[o],!0);r||f.pushVal(f.options.triggerChange);return}var s=f.options.itemValue(i),v=f.options.itemText(i),k=f.options.tagClass(i),y=f.options.itemTitle(i),p=n.grep(f.itemsArray,function(n){return f.options.itemValue(n)===s})[0];if(p&&!f.options.allowDuplicates){if(f.options.onTagExists){w=n(".badge",f.$container).filter(function(){return n(this).data("item")===p});f.options.onTagExists(i,w)}return}f.items().toString().length+i.length+1>f.options.maxInputLength||(l=n.Event("beforeItemAdd",{item:i,cancel:!1,options:u}),f.$element.trigger(l),l.cancel)||(f.itemsArray.push(i),h=n('<span class="badge '+t(k)+(y!==null?'" title="'+y:"")+'">'+t(v)+'<span data-role="remove"><\/span><\/span>'),h.data("item",i),f.findInputWrapper().before(h),h.after(" "),b=n('option[value="'+encodeURIComponent(s)+'"]',f.$element).length||n('option[value="'+t(s)+'"]',f.$element).length,f.isSelect&&!b&&(c=n("<option selected>"+t(v)+"<\/option>"),c.data("item",i),c.attr("value",s),f.$element.append(c)),r||f.pushVal(f.options.triggerChange),(f.options.maxTags===f.itemsArray.length||f.items().toString().length===f.options.maxInputLength)&&f.$container.addClass("bootstrap-tagsinput-max"),n(".typeahead, .twitter-typeahead",f.$container).length&&f.$input.typeahead("val",""),this.isInit?f.$element.trigger(n.Event("itemAddedOnInit",{item:i,options:u})):f.$element.trigger(n.Event("itemAdded",{item:i,options:u})))}}},remove:function(t,i,r){var u=this,f;if(u.objectItems&&(t=typeof t=="object"?n.grep(u.itemsArray,function(n){return u.options.itemValue(n)==u.options.itemValue(t)}):n.grep(u.itemsArray,function(n){return u.options.itemValue(n)==t}),t=t[t.length-1]),t){if(f=n.Event("beforeItemRemove",{item:t,cancel:!1,options:r}),u.$element.trigger(f),f.cancel)return;n(".badge",u.$container).filter(function(){return n(this).data("item")===t}).remove();n("option",u.$element).filter(function(){return n(this).data("item")===t}).remove();n.inArray(t,u.itemsArray)!==-1&&u.itemsArray.splice(n.inArray(t,u.itemsArray),1)}i||u.pushVal(u.options.triggerChange);u.options.maxTags>u.itemsArray.length&&u.$container.removeClass("bootstrap-tagsinput-max");u.$element.trigger(n.Event("itemRemoved",{item:t,options:r}))},removeAll:function(){var t=this;for(n(".badge",t.$container).remove(),n("option",t.$element).remove();t.itemsArray.length>0;)t.itemsArray.pop();t.pushVal(t.options.triggerChange)},refresh:function(){var i=this;n(".badge",i.$container).each(function(){var r=n(this),u=r.data("item"),e=i.options.itemValue(u),o=i.options.itemText(u),s=i.options.tagClass(u),f;r.attr("class",null);r.addClass("badge "+t(s));r.contents().filter(function(){return this.nodeType==3})[0].nodeValue=t(o);i.isSelect&&(f=n("option",i.$element).filter(function(){return n(this).data("item")===u}),f.attr("value",e))})},items:function(){return this.itemsArray},pushVal:function(){var t=this,i=n.map(t.items(),function(n){return t.options.itemValue(n).toString()});t.$element.val(i.join(t.options.delimiter));t.options.triggerChange&&t.$element.trigger("change")},build:function(t){var i=this,h,e;if(i.options=n.extend({},r,t),i.objectItems&&(i.options.freeInput=!1),u(i.options,"itemValue"),u(i.options,"itemText"),f(i.options,"tagClass"),i.options.typeahead&&(h=i.options.typeahead||{},f(h,"source"),i.$input.typeahead(n.extend({},h,{source:function(t,r){function f(n){for(var u,f=[],t=0;t<n.length;t++)u=i.options.itemText(n[t]),e[u]=n[t],f.push(u);r(f)}this.map={};var e=this.map,u=h.source(t);n.isFunction(u.success)?u.success(f):n.isFunction(u.then)?u.then(f):n.when(u).then(f)},updater:function(n){return i.add(this.map[n]),this.map[n]},matcher:function(n){return n.toLowerCase().indexOf(this.query.trim().toLowerCase())!==-1},sorter:function(n){return n.sort()},highlighter:function(n){var t=new RegExp("("+this.query+")","gi");return n.replace(t,"<strong>$1<\/strong>")}}))),i.options.typeaheadjs){e=i.options.typeaheadjs;n.isArray(e)||(e=[null,e]);n.fn.typeahead.apply(i.$input,e).on("typeahead:selected",n.proxy(function(n,t,r){var u=0;e.some(function(n,t){return n.name===r?(u=t,!0):!1});e[u].valueKey?i.add(t[e[u].valueKey]):i.add(t);i.$input.typeahead("val","")},i))}i.$container.on("click",n.proxy(function(){i.$element.attr("disabled")||i.$input.removeAttr("disabled");i.$input.focus()},i));if(i.options.addOnBlur&&i.options.freeInput)i.$input.on("focusout",n.proxy(function(){n(".typeahead, .twitter-typeahead",i.$container).length===0&&(i.add(i.$input.val()),i.$input.val(""))},i));i.$container.on({focusin:function(){i.$container.addClass(i.options.focusClass)},focusout:function(){i.$container.removeClass(i.options.focusClass)}});i.$container.on("keydown","input",n.proxy(function(t){var r=n(t.target),u=i.findInputWrapper(),f,e,s,h;if(i.$element.attr("disabled")){i.$input.attr("disabled","disabled");return}switch(t.which){case 8:o(r[0])===0&&(f=u.prev(),f.length&&i.remove(f.data("item")));break;case 46:o(r[0])===0&&(e=u.next(),e.length&&i.remove(e.data("item")));break;case 37:s=u.prev();r.val().length===0&&s[0]&&(s.before(u),r.focus());break;case 39:h=u.next();r.val().length===0&&h[0]&&(h.after(u),r.focus())}var c=r.val().length,l=Math.ceil(c/5),a=c+l+1;r.attr("size",Math.max(this.inputSize,a))},i));i.$container.on("keypress","input",n.proxy(function(t){var u=n(t.target),r,f;if(i.$element.attr("disabled")){i.$input.attr("disabled","disabled");return}r=u.val();f=i.options.maxChars&&r.length>=i.options.maxChars;i.options.freeInput&&(s(t,i.options.confirmKeys)||f)&&(r.length!==0&&(i.add(f?r.substr(0,i.options.maxChars):r),u.val("")),i.options.cancelConfirmKeysOnEmpty===!1&&t.preventDefault());var e=u.val().length,o=Math.ceil(e/5),h=e+o+1;u.attr("size",Math.max(this.inputSize,h))},i));i.$container.on("click","[data-role=remove]",n.proxy(function(t){i.$element.attr("disabled")||i.remove(n(t.target).closest(".badge").data("item"))},i));i.options.itemValue===r.itemValue&&(i.$element[0].tagName==="INPUT"?i.add(i.$element.val()):n("option",i.$element).each(function(){i.add(n(this).attr("value"),!0)}))},destroy:function(){var n=this;n.$container.off("keypress","input");n.$container.off("click","[role=remove]");n.$container.remove();n.$element.removeData("tagsinput");n.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var t=this.$input[0],i=this.$container[0];t&&t.parentNode!==i;)t=t.parentNode;return n(t)}};n.fn.tagsinput=function(t,r,u){var f=[];return this.each(function(){var e=n(this).data("tagsinput"),o;e?t||r?e[t]!==undefined&&(o=e[t].length===3&&u!==undefined?e[t](r,null,u):e[t](r),o!==undefined&&f.push(o)):f.push(e):(e=new i(this,t),n(this).data("tagsinput",e),f.push(e),this.tagName==="SELECT"&&n("option",n(this)).attr("selected","selected"),n(this).val(n(this).val()))}),typeof t=="string"?f.length>1?f:f[0]:f};n.fn.tagsinput.Constructor=i;e=n("<div />");n(function(){n("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery);$(function(){function n(n){setTimeout(function(){if(!n.find(".inline_editor_inactive").length){const t=$('form:not(.filter) :input:notHidden:enabled[type!="button"]:not(".fakeusername"):not(".fakepassword"):first',n);t.data("isdatepicker")||t.focus()}},500)}$("body").on("click",".modal_drawer_link",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-drawer-container");t.attr("data-toggle","modal");$("#modal-drawer-dialog").removeClass("modal-drawer-sm");$("#modal-drawer-content").removeClass("white-background")});$("body").on("click",".modal_drawer_link2",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-drawer-container2");t.attr("data-toggle","modal");$("#modal-drawer-dialog2").removeClass("modal-drawer-sm");$("#modal-drawer-content2").removeClass("white-background")});$("body").on("click",".modal_drawer_for_filters",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-drawer-container-for-filters");t.attr("data-toggle","modal");$("#modal-drawer-dialog-for-filter").addClass("modal-drawer-sm");$("#modal-drawer-content-for-filter").addClass("white-background")});$("body").on("click",".modal_drawer_link2_sm",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-drawer-container2");t.attr("data-toggle","modal");$("#modal-drawer-dialog2").addClass("modal-drawer-sm");$("#modal-drawer-content2").addClass("white-background")});$("body").on("click",".modal_link",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container");t.attr("data-toggle","modal");$("#modal-dialog1").removeClass("modal-lg")});$("body").on("click",".modal_link_lg",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container");t.attr("data-toggle","modal");$("#modal-dialog1").addClass("modal-lg")});$("body").on("click",".modal_link2",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container2");t.attr("data-toggle","modal");$("#modal-dialog2").removeClass("modal-lg")});$("body").on("click",".modal_link2_lg",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container2");t.attr("data-toggle","modal");$("#modal-dialog2").addClass("modal-lg")});$("body").on("click",".modal_link_xl",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container");t.attr("data-toggle","modal");$("#modal-dialog1").addClass("modal-xl")});$("body").on("click",".modal_link2_xl",function(n){n.preventDefault();const t=$(this);t.attr("data-target","#modal-container2");t.attr("data-toggle","modal");$("#modal-dialog2").addClass("modal-xl")});$(".modal").on("show.bs.modal",function(t){const i=$(this);i.is("#modal-container")&&($("#modal-drawer-container2").hasClass("show")?$(".modal-backdrop").css("z-index",1046):$("#modal-drawer-container").hasClass("show")?$(".modal-backdrop").css("z-index",1044):$("#modal-drawer-container-for-filters").hasClass("show")&&$(".modal-backdrop").css("z-index",1070));(i.is("#modal-container2")||i.is("#ModalCropImage"))&&($("#modal-container").hasClass("show")?$(".modal-backdrop").css("z-index",1049):$("#modal-drawer-container2").hasClass("show")?$(".modal-backdrop").css("z-index",1046):$("#modal-drawer-container").hasClass("show")&&$(".modal-backdrop").css("z-index",1044));i.is("#modal-drawer-container2")&&$("#modal-drawer-container").hasClass("show")&&$(".modal-backdrop").css("z-index",1044);i.data("after-modal-close-callback",$(t.relatedTarget).data("after-modal-close-callback"));typeof commonHelpers=="undefined"||commonHelpers.isNullOrEmpty(t.relatedTarget)||commonHelpers.isNullOrEmpty(t.relatedTarget.href)||$(t.relatedTarget).attr("href")==="#"||i.find(".modal-content").load(t.relatedTarget.href,function(){$('.paginated_list_container  input[type="search"]').on("keydown",function(n){return n.keyCode===13?(n.preventDefault(),!1):!0});n(i)});i.find(".modal-body").css("overflow-y","auto");i.find(".modal-body").css("max-height","75vh")});jQuery.extend(jQuery.expr[":"],{notHidden:function(n){return!(jQuery(n).is(":hidden")||jQuery(n).parents(":hidden").length)}});$(".modal").on("shown.bs.modal",function(){const n=$(this);this.classList.contains("drawer")&&n.attr("id")!=="modal-drawer-container2"&&n.attr("id")!=="modal-drawer-container-for-filters"||(n.data("bs.modal")._config.backdrop="static");n.is("#modal-drawer-container-for-filters")&&$(".modal-backdrop").css("z-index",1070);$(".modal.show").length&&$("body").css("overflow","hidden")});$("body").on("hidden.bs.modal",".modal",function(){const n=$(this);if($(".modal.show").length?$("body").css("overflow","hidden"):$("body").css("overflow","auto"),!n.hasClass("note-modal")&&!n.hasClass("static_modal")){(n.is("#modal-container")||n.is("#modal-drawer-container-for-filters"))&&($("#modal-drawer-container2").hasClass("show")?$(".modal-backdrop").css("z-index",1044):$("#modal-drawer-container").hasClass("show")&&$(".modal-backdrop").css("z-index",1042));(n.is("#modal-container2")||n.is("#ModalCropImage"))&&($("#modal-container").hasClass("show")?$(".modal-backdrop").css("z-index",1046):$("#modal-drawer-container2").hasClass("show")?$(".modal-backdrop").css("z-index",1044):$("#modal-drawer-container").hasClass("show")&&$(".modal-backdrop").css("z-index",1042));n.is("#modal-drawer-container2")&&$("#modal-drawer-container").hasClass("show")&&$(".modal-backdrop").css("z-index",1042);(n.attr("id")==="modal-drawer-container"||n.attr("id")==="modal-drawer-container2")&&n.find(".modal-header").data("reload-on-close")!==!1&&window.location.reload(!0);$(".modal-content",this).html("<div class='spinner_container'><span class='fa fa-spinner fa-spin'><\/span><\/div>");const t=n.data("after-modal-close-callback");commonHelpers.isNullOrEmpty(t)||(commonHelpers.isFunction(window[t])&&window[t](),n.data("after-modal-close-callback",null));n.removeData("bs.modal")}});$.fn.modal.Constructor.Default.keyboard=!1})