(function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.returnExports=t()})(this,function(){function l(n){return n=+n,n!==n?n=0:n!==0&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}function b(n){var t=typeof n;return n===null||t==="undefined"||t==="boolean"||t==="number"||t==="string"}function fi(n){var t,i,u;if(b(n))return n;if((i=n.valueOf,r(i)&&(t=i.call(n),b(t)))||(u=n.toString,r(u)&&(t=u.call(n),b(t))))return t;throw new TypeError;}function k(){}var t=Array.prototype,u=Object.prototype,ft=Function.prototype,o=String.prototype,et=Number.prototype,a=t.slice,ot=t.splice,rr=t.push,ei=t.unshift,h=ft.call,v=u.toString,r=function(n){return u.toString.call(n)==="[object Function]"},oi=function(n){return u.toString.call(n)==="[object RegExp]"},d=function(n){return v.call(n)==="[object Array]"},f=function(n){return v.call(n)==="[object String]"},st=function(n){var i=v.call(n),t=i==="[object Arguments]";return t||(t=!d(n)&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r(n.callee)),t},si=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(n){return!1}}(),ht,i,e,ct,y,hi,ci,li,ai,vi,lt,at,vt,g,nt,yt,pt,wt,tt,it,bt,n,rt,ut,kt,dt,gt;ht=si?function(n,t,i,r){!r&&t in n||Object.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(n,t,i,r){!r&&t in n||(n[t]=i)};i=function(n,t,i){for(var r in t)u.hasOwnProperty.call(t,r)&&ht(n,r,t[r],i)};e=function(n){if(n==null)throw new TypeError("can't convert "+n+" to object");return Object(n)};ct=function(n){return n>>>0};i(ft,{bind:function(n){var t=this,i,u;if(!r(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);var f=a.call(arguments,1),o=function(){if(this instanceof u){var i=t.apply(this,f.concat(a.call(arguments)));return Object(i)===i?i:this}return t.apply(n,f.concat(a.call(arguments)))},s=Math.max(0,t.length-f.length),e=[];for(i=0;i<s;i++)e.push("$"+i);return u=Function("binder","return function ("+e.join(",")+"){return binder.apply(this,arguments)}")(o),t.prototype&&(k.prototype=t.prototype,u.prototype=new k,k.prototype=null),u}});y=h.bind(u.hasOwnProperty);(vi=y(u,"__defineGetter__"))&&(hi=h.bind(u.__defineGetter__),ci=h.bind(u.__defineSetter__),li=h.bind(u.__lookupGetter__),ai=h.bind(u.__lookupSetter__));lt=function(){var n=[1,2],t=n.splice();return n.length===2&&d(t)&&t.length===0}();i(t,{splice:function(){return arguments.length===0?[]:ot.apply(this,arguments)}},lt);at=function(){var n={};return t.splice.call(n,0,0,1),n.length===1}();i(t,{splice:function(n,t){if(arguments.length===0)return[];var i=arguments;return this.length=Math.max(l(this.length),0),arguments.length>0&&typeof t!="number"&&(i=a.call(arguments),i.length<2?i.push(this.length-n):i[1]=l(t)),ot.apply(this,i)}},!at);vt=[].unshift(0)!==1;i(t,{unshift:function(){return ei.apply(this,arguments),this.length}},vt);i(Array,{isArray:d});var ni=Object("a"),s=ni[0]!=="a"||!(0 in ni),c=function(n){var t=!0,i=!0;return n&&(n.call("foo",function(n,i,r){typeof r!="object"&&(t=!1)}),n.call([1],function(){"use strict";i=typeof this=="string"},"x")),!!n&&t&&i};i(t,{forEach:function(n){var u=e(this),i=s&&f(this)?this.split(""):u,o=arguments[1],t=-1,h=i.length>>>0;if(!r(n))throw new TypeError;while(++t<h)t in i&&n.call(o,i[t],t,u)}},!c(t.forEach));i(t,{map:function(n){var u=e(this),i=s&&f(this)?this.split(""):u,o=i.length>>>0,h=Array(o),c=arguments[1],t;if(!r(n))throw new TypeError(n+" is not a function");for(t=0;t<o;t++)t in i&&(h[t]=n.call(c,i[t],t,u));return h}},!c(t.map));i(t,{filter:function(n){var o=e(this),i=s&&f(this)?this.split(""):o,c=i.length>>>0,h=[],u,l=arguments[1],t;if(!r(n))throw new TypeError(n+" is not a function");for(t=0;t<c;t++)t in i&&(u=i[t],n.call(l,u,t,o)&&h.push(u));return h}},!c(t.filter));i(t,{every:function(n){var u=e(this),i=s&&f(this)?this.split(""):u,o=i.length>>>0,h=arguments[1],t;if(!r(n))throw new TypeError(n+" is not a function");for(t=0;t<o;t++)if(t in i&&!n.call(h,i[t],t,u))return!1;return!0}},!c(t.every));i(t,{some:function(n){var u=e(this),i=s&&f(this)?this.split(""):u,o=i.length>>>0,h=arguments[1],t;if(!r(n))throw new TypeError(n+" is not a function");for(t=0;t<o;t++)if(t in i&&n.call(h,i[t],t,u))return!0;return!1}},!c(t.some));g=!1;t.reduce&&(g=typeof t.reduce.call("es5",function(n,t,i,r){return r})=="object");i(t,{reduce:function(n){var h=e(this),i=s&&f(this)?this.split(""):h,o=i.length>>>0,t,u;if(!r(n))throw new TypeError(n+" is not a function");if(!o&&arguments.length===1)throw new TypeError("reduce of empty array with no initial value");if(t=0,arguments.length>=2)u=arguments[1];else do{if(t in i){u=i[t++];break}if(++t>=o)throw new TypeError("reduce of empty array with no initial value");}while(1);for(;t<o;t++)t in i&&(u=n.call(void 0,u,i[t],t,h));return u}},!g);nt=!1;t.reduceRight&&(nt=typeof t.reduceRight.call("es5",function(n,t,i,r){return r})=="object");i(t,{reduceRight:function(n){var o=e(this),u=s&&f(this)?this.split(""):o,h=u.length>>>0,i,t;if(!r(n))throw new TypeError(n+" is not a function");if(!h&&arguments.length===1)throw new TypeError("reduceRight of empty array with no initial value");if(t=h-1,arguments.length>=2)i=arguments[1];else do{if(t in u){i=u[t--];break}if(--t<0)throw new TypeError("reduceRight of empty array with no initial value");}while(1);if(t<0)return i;do t in u&&(i=n.call(void 0,i,u[t],t,o));while(t--);return i}},!nt);yt=Array.prototype.indexOf&&[0,1].indexOf(1,2)!==-1;i(t,{indexOf:function(n){var i=s&&f(this)?this.split(""):e(this),r=i.length>>>0,t;if(!r)return-1;for(t=0,arguments.length>1&&(t=l(arguments[1])),t=t>=0?t:Math.max(0,r+t);t<r;t++)if(t in i&&i[t]===n)return t;return-1}},yt);pt=Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;i(t,{lastIndexOf:function(n){var i=s&&f(this)?this.split(""):e(this),r=i.length>>>0,t;if(!r)return-1;for(t=r-1,arguments.length>1&&(t=Math.min(t,l(arguments[1]))),t=t>=0?t:r-Math.abs(t);t>=0;t--)if(t in i&&n===i[t])return t;return-1}},pt);var yi=!{toString:null}.propertyIsEnumerable("toString"),pi=function(){}.propertyIsEnumerable("prototype"),ti=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],wi=ti.length;i(Object,{keys:function(n){var h=r(n),c=st(n),l=n!==null&&typeof n=="object",p=l&&f(n),t,a,i,u,s,v,e,o;if(!l&&!h&&!c)throw new TypeError("Object.keys called on a non-object");if(t=[],a=pi&&h,p||c)for(i=0;i<n.length;++i)t.push(String(i));else for(u in n)a&&u==="prototype"||!y(n,u)||t.push(String(u));if(yi)for(s=n.constructor,v=s&&s.prototype===n,e=0;e<wi;e++)o=ti[e],v&&o==="constructor"||!y(n,o)||t.push(o);return t}});wt=Object.keys&&function(){return Object.keys(arguments).length===2}(1,2);tt=Object.keys;i(Object,{keys:function(n){return st(n)?tt(t.slice.call(n)):tt(n)}},!wt);var ii=-621987552e5,ri="-000001",bi=Date.prototype.toISOString&&new Date(ii).toISOString().indexOf(ri)===-1;i(Date.prototype,{toISOString:function(){var t,r,u,n,i;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=this.getUTCFullYear(),i=this.getUTCMonth(),n+=Math.floor(i/12),i=(i%12+12)%12,t=[i+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],n=(n<0?"-":n>9999?"+":"")+("00000"+Math.abs(n)).slice(0<=n&&n<=9999?-4:-6),r=t.length;r--;)u=t[r],u<10&&(t[r]="0"+u);return n+"-"+t.slice(0,2).join("-")+"T"+t.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},bi);it=!1;try{it=Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(ii).toJSON().indexOf(ri)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(ur){}it||(Date.prototype.toJSON=function(){var n=Object(this),i=fi(n),t;if(typeof i=="number"&&!isFinite(i))return null;if(t=n.toISOString,typeof t!="function")throw new TypeError("toISOString property is not callable");return t.call(n)});var ki=Date.parse("+033658-09-27T01:46:40.000Z")===1e15,di=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z")),gi=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(!Date.parse||gi||di||!ki)&&(Date=function(n){function t(i,r,u,f,e,o,s){var h=arguments.length,c;return this instanceof n?(c=h===1&&String(i)===i?new n(t.parse(i)):h>=7?new n(i,r,u,f,e,o,s):h>=6?new n(i,r,u,f,e,o):h>=5?new n(i,r,u,f,e):h>=4?new n(i,r,u,f):h>=3?new n(i,r,u):h>=2?new n(i,r):h>=1?new n(i):new n,c.constructor=t,c):n.apply(this,arguments)}function i(n,t){var i=t>1?1:0;return e[t]+Math.floor((n-1969+i)/4)-Math.floor((n-1901+i)/100)+Math.floor((n-1601+i)/400)+365*(n-1970)}function u(t){return Number(new n(1970,0,1,0,0,0,t))}var f=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),e=[0,31,59,90,120,151,181,212,243,273,304,334,365],r;for(r in n)t[r]=n[r];return t.now=n.now,t.UTC=n.UTC,t.prototype=n.prototype,t.prototype.constructor=t,t.parse=function(t){var r=f.exec(t);if(r){var s=Number(r[1]),o=Number(r[2]||1)-1,h=Number(r[3]||1)-1,v=Number(r[4]||0),c=Number(r[5]||0),l=Number(r[6]||0),a=Math.floor(Number(r[7]||0)*1e3),b=Boolean(r[4]&&!r[8]),y=r[9]==="-"?1:-1,p=Number(r[10]||0),w=Number(r[11]||0),e;return v<(c>0||l>0||a>0?24:25)&&c<60&&l<60&&a<1e3&&o>-1&&o<12&&p<24&&w<60&&h>-1&&h<i(s,o+1)-i(s,o)&&(e=((i(s,o)+h)*24+v+p*y)*60,e=((e+c+w*y)*60+l)*1e3+a,b&&(e=u(e)),-864e13<=e&&e<=864e13)?e:NaN}return n.parse.apply(this,arguments)},t}(Date));Date.now||(Date.now=function(){return(new Date).getTime()});bt=et.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128");n={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,i){for(var r=-1;++r<n.size;)i+=t*n.data[r],n.data[r]=i%n.base,i=Math.floor(i/n.base)},divide:function(t){for(var r=n.size,i=0;--r>=0;)i+=n.data[r],n.data[r]=Math.floor(i/t),i=i%t*n.base},numToString:function(){for(var i=n.size,t="",r;--i>=0;)(t!==""||i===0||n.data[i]!==0)&&(r=String(n.data[i]),t===""?t=r:t+="0000000".slice(0,7-r.length)+r);return t},pow:function ui(n,t,i){return t===0?i:t%2==1?ui(n,t-1,i*n):ui(n*n,t/2,i)},log:function(n){for(var t=0;n>=4096;)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t}};i(et,{toFixed:function(t){var i,r,o,u,f,h,e,s;if(i=Number(t),i=i!==i?0:Math.floor(i),i<0||i>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(r=Number(this),r!==r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(o="",r<0&&(o="-",r=-r),u="0",r>1e-21)if(f=n.log(r*n.pow(2,69,1))-69,h=f<0?r*n.pow(2,-f,1):r/n.pow(2,f,1),h*=4503599627370496,f=52-f,f>0){for(n.multiply(0,h),e=i;e>=7;)n.multiply(1e7,0),e-=7;for(n.multiply(n.pow(10,e,1),0),e=f-1;e>=23;)n.divide(8388608),e-=23;n.divide(1<<e);n.multiply(1,1);n.divide(2);u=n.numToString()}else n.multiply(0,h),n.multiply(1<<-f,0),u=n.numToString()+"0.00000000000000000000".slice(2,2+i);return i>0?(s=u.length,u=s<=i?o+"0.0000000000000000000".slice(0,i-s+2)+u:o+u.slice(0,s-i)+"."+u.slice(s-i)):u=o+u,u}},bt);rt=o.split;"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var n=/()??/.exec("")[1]===void 0;o.split=function(i,r){var e=this;if(i===void 0&&r===0)return[];if(v.call(i)!=="[object RegExp]")return rt.call(this,i,r);var f=[],h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),o=0,c,u,s,l;for(i=new RegExp(i.source,h+"g"),e+="",n||(c=new RegExp("^"+i.source+"$(?!\\s)",h)),r=r===void 0?-1>>>0:ct(r);u=i.exec(e);){if(s=u.index+u[0].length,s>o&&(f.push(e.slice(o,u.index)),!n&&u.length>1&&u[0].replace(c,function(){for(var n=1;n<arguments.length-2;n++)arguments[n]===void 0&&(u[n]=void 0)}),u.length>1&&u.index<e.length&&t.push.apply(f,u.slice(1)),l=u[0].length,o=s,f.length>=r))break;i.lastIndex===u.index&&i.lastIndex++}return o===e.length?(l||!i.test(""))&&f.push(""):f.push(e.slice(o)),f.length>r?f.slice(0,r):f}}():"0".split(void 0,0).length&&(o.split=function(n,t){return n===void 0&&t===0?[]:rt.call(this,n,t)});ut=o.replace;kt=function(){var n=[];return"x".replace(/x(.)?/g,function(t,i){n.push(i)}),n.length===1&&typeof n[0]=="undefined"}();kt||(o.replace=function(n,t){var u=r(t),f=oi(n)&&/\)[*?]/.test(n.source),i;return u&&f?(i=function(i){var u=arguments.length,f=n.lastIndex,r;return n.lastIndex=0,r=n.exec(i),n.lastIndex=f,r.push(arguments[u-2],arguments[u-1]),t.apply(this,r)},ut.call(this,n,i)):ut.call(this,n,t)});dt=o.substr;gt="".substr&&"0b".substr(-1)!=="b";i(o,{substr:function(n,t){return dt.call(this,n<0?(n=this.length+n)<0?0:n:n,t)}},gt);var p="\t\n\x0b\f\r   ᠎             　\u2028\u2029﻿",w="["+p+"]",nr=new RegExp("^"+w+w+"*"),tr=new RegExp(w+w+"*$"),ir=o.trim&&(p.trim()||!"​".trim());i(o,{trim:function(){if(this===void 0||this===null)throw new TypeError("can't convert "+this+" to object");return String(this).replace(nr,"").replace(tr,"")}},ir);(parseInt(p+"08")!==8||parseInt(p+"0x16")!==22)&&(parseInt=function(n){var t=/^0[xX]/;return function(i,r){return i=String(i).trim(),Number(r)||(r=t.test(i)?16:10),n(i,r)}}(parseInt))}),function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(n){return!1}}()){var n=Object.defineProperty;Object.defineProperty=function(t,i,r){if(n)try{return n(t,i,r)}catch(u){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(t,i,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(t,i,r.set),"value"in r&&(t[i]=r.value),t}}}();Array.prototype.forEach||(Array.prototype.forEach=function(n){var i,r,u,t;if(this===void 0||this===null)throw TypeError();if(i=Object(this),r=i.length>>>0,typeof n!="function")throw TypeError();for(u=arguments[1],t=0;t<r;t++)t in i&&n.call(u,i[t],t,i)}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ei(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function oi(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},fi))}}function et(n){return n&&{}.toString.call(n)==="[object Function]"}function i(n,t){if(n.nodeType!==1)return[];var r=n.ownerDocument.defaultView,i=r.getComputedStyle(n,null);return t?i[t]:i}function p(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function o(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=i(n),r=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll|overlay)/.test(r+f+u)?n:o(p(n))}function r(n){return n===11?it:n===10?rt:it||rt}function u(n){var e,t,f;if(!n)return document.documentElement;for(e=r(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return(f=t&&t.nodeName,!f||f==="BODY"||f==="HTML")?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&i(t,"position")==="static"?u(t):t}function si(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||u(n.firstElementChild)===n}function w(n){return n.parentNode!==null?w(n.parentNode):n}function c(n,t){var i,r;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,f=document.createRange();return(f.setStart(o,0),f.setEnd(s,0),i=f.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?si(i)?i:u(i):(r=w(n),r.host?c(r.host,t):c(n,w(t).host))}function f(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function hi(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,r=f(t,"top"),u=f(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function ot(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function st(n,t,i,u){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],r(10)?parseInt(i["offset"+n])+parseInt(u["margin"+(n==="Height"?"Top":"Left")])+parseInt(u["margin"+(n==="Height"?"Bottom":"Right")]):0)}function ht(n){var i=n.body,t=n.documentElement,u=r(10)&&getComputedStyle(t);return{height:st("Height",i,t,u),width:st("Width",i,t,u)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function b(n){var u={},o,s,h;try{r(10)?(u=n.getBoundingClientRect(),o=f(n,"top"),s=f(n,"left"),u.top+=o,u.left+=s,u.bottom+=o,u.right+=s):u=n.getBoundingClientRect()}catch(p){}var e={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},a=n.nodeName==="HTML"?ht(n.ownerDocument):{},v=a.width||n.clientWidth||e.right-e.left,y=a.height||n.clientHeight||e.bottom-e.top,c=n.offsetWidth-v,l=n.offsetHeight-y;return(c||l)&&(h=i(n),c-=ot(h,"x"),l-=ot(h,"y"),e.width-=c,e.height-=l),t(e)}function k(n,u){var p=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,w=r(10),k=u.nodeName==="HTML",s=b(n),e=b(u),a=o(n),h=i(u),v=parseFloat(h.borderTopWidth,10),y=parseFloat(h.borderLeftWidth,10),f,c,l;return p&&k&&(e.top=Math.max(e.top,0),e.left=Math.max(e.left,0)),f=t({top:s.top-e.top-v,left:s.left-e.left-y,width:s.width,height:s.height}),f.marginTop=0,f.marginLeft=0,!w&&k&&(c=parseFloat(h.marginTop,10),l=parseFloat(h.marginLeft,10),f.top-=v-c,f.bottom-=v-c,f.left-=y-l,f.right-=y-l,f.marginTop=c,f.marginLeft=l),(w&&!p?u.contains(a):u===a&&a.nodeName!=="BODY")&&(f=hi(f,u)),f}function ci(n){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,i=n.ownerDocument.documentElement,r=k(n,i),e=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),s=u?0:f(i),h=u?0:f(i,"left"),c={top:s-r.top+r.marginTop,left:h-r.left+r.marginLeft,width:e,height:o};return t(c)}function ct(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:i(n,"position")==="fixed"?!0:ct(p(n))}function lt(n){if(!n||!n.parentElement||r())return document.documentElement;for(var t=n.parentElement;t&&i(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function d(n,t,i,r){var h=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1,u={top:0,left:0},l=h?lt(n):c(n,t),e,f,s;if(r==="viewport")u=ci(l,h);else if(e=void 0,r==="scrollParent"?(e=o(p(t)),e.nodeName==="BODY"&&(e=n.ownerDocument.documentElement)):e=r==="window"?n.ownerDocument.documentElement:r,f=k(e,l,h),e.nodeName!=="HTML"||ct(l))u=f;else{var a=ht(n.ownerDocument),v=a.height,y=a.width;u.top+=f.top-f.marginTop;u.bottom=v+f.top;u.left+=f.left-f.marginLeft;u.right=y+f.left}return i=i||0,s=typeof i=="number",u.left+=s?i:i.left||0,u.top+=s?i:i.top||0,u.right-=s?i:i.right||0,u.bottom-=s?i:i.bottom||0,u}function li(n){var t=n.width,i=n.height;return t*i}function at(t,i,r,u,f){var l=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var e=d(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:li(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=h.length>0?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function vt(n,t,i){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,u=r?lt(t):c(t,i);return k(i,u,r)}function yt(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 l(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 pt(n,t,i){i=i.split("-")[0];var r=yt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,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[l(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function ai(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function wt(n,i,r){var u=r===undefined?n:n.slice(0,ai(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&&et(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function vi(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=vt(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=at(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=pt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="fixed",n=wt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function bt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function g(n){for(var t,i,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),r=0;r<u.length;r++)if(t=u[r],i=t?""+t+f:n,typeof document.body.style[i]!="undefined")return i;return null}function yi(){return this.state.isDestroyed=!0,bt(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[g("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function kt(n){var t=n.ownerDocument;return t?t.defaultView:window}function dt(n,t,i,r){var f=n.nodeName==="BODY",u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||dt(o(u.parentNode),t,i,r);r.push(u)}function pi(n,t,i,r){i.updateBound=r;kt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=o(n);return dt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function wi(){this.state.eventsEnabled||(this.state=pi(this.reference,this.options,this.state,this.scheduleUpdate))}function bi(n,t){return kt(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 ki(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=bi(this.reference,this.state))}function nt(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function di(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function gi(n){return tt(n.instance.popper,n.styles),di(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n}function nr(n,t,i,r,u){var f=vt(u,t,n,i.positionFixed),e=at(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:"fixed"}),i}function tr(n,t){var r=n.offsets,i=r.popper,u=r.reference,h=["left","right"].indexOf(n.placement)!==-1,f=n.placement.indexOf("-")!==-1,c=u.width%2==i.width%2,l=u.width%2==1&&i.width%2==1,e=function(n){return n},o=t?h||f||c?Math.round:Math.floor:e,s=t?Math.round:e;return{left:o(l&&!f&&t?i.left-1:i.left),top:s(i.top),bottom:s(i.bottom),right:o(i.right)}}function ir(t,i){var k=i.x,d=i.y,nt=t.offsets.popper,tt=s(t.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,a,v,y;tt!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var e=u(t.instance.popper),p=b(e),r={position:nt.position},f=tr(t,window.devicePixelRatio<2||!ri),o=k==="bottom"?"top":"bottom",h=d==="right"?"left":"right",w=g("transform"),c=void 0,l=void 0;return l=o==="bottom"?e.nodeName==="HTML"?-e.clientHeight+f.bottom:-p.height+f.bottom:f.top,c=h==="right"?e.nodeName==="HTML"?-e.clientWidth+f.right:-p.width+f.right:f.left,!1&&w?(r[w]="translate3d("+c+"px, "+l+"px, 0)",r[o]=0,r[h]=0,r.willChange="transform"):(a=o==="bottom"?-1:1,v=h==="right"?-1:1,r[o]=l*a,r[h]=c*v,r.willChange=o+", "+h),y={"x-placement":t.placement},t.attributes=n({},y,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t}function gt(n,t,i){var u=s(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,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function rr(n,r){var c,f;if(!gt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=r.element,typeof f=="string"){if(f=n.instance.popper.querySelector(f),!f)return n}else if(!n.instance.popper.contains(f))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,h=w.popper,o=w.reference,l=["left","right"].indexOf(k)!==-1,v=l?"height":"width",y=l?"Top":"Left",u=y.toLowerCase(),d=l?"left":"top",a=l?"bottom":"right",s=yt(f)[v];o[a]-s<h[u]&&(n.offsets.popper[u]-=h[u]-(o[a]-s));o[u]+s>h[a]&&(n.offsets.popper[u]+=o[u]+s-h[a]);n.offsets.popper=t(n.offsets.popper);var g=o[u]+o[v]/2-s/2,b=i(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[u]-nt-tt;return p=Math.max(Math.min(h[v]-s,p),0),n.arrowElement=f,n.offsets.arrow=(c={},e(c,u,Math.round(p)),e(c,d,""),c),n}function ur(n){return n==="end"?"start":n==="start"?"end":n}function ni(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=a.indexOf(n),i=a.slice(t+1).concat(a.slice(0,t));return r?i.reverse():i}function fr(t,i){if(bt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=d(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case v.FLIP:f=[r,o];break;case v.CLOCKWISE:f=ni(r);break;case v.COUNTERCLOCKWISE:f=ni(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=l(r);var a=t.offsets.popper,v=t.offsets.reference,c=Math.floor,p=r==="left"&&c(a.right)>c(v.left)||r==="right"&&c(a.left)<c(v.right)||r==="top"&&c(a.bottom)>c(v.top)||r==="bottom"&&c(a.top)<c(v.bottom),w=c(a.left)<c(e.left),b=c(a.right)>c(e.right),k=c(a.top)<c(e.top),d=c(a.bottom)>c(e.bottom),g=r==="left"&&w||r==="right"&&b||r==="top"&&k||r==="bottom"&&d,y=["top","bottom"].indexOf(r)!==-1,nt=!!i.flipVariations&&(y&&u==="start"&&w||y&&u==="end"&&b||!y&&u==="start"&&k||!y&&u==="end"&&d);(p||g||nt)&&(t.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=ur(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,pt(t.instance.popper,t.offsets.reference,t.placement)),t=wt(t.instance.modifiers,t,"flip"))}),t}function er(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,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}function or(n,i,r,u){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+h[1],f=h[2],o,c,s;if(!e)return n;if(f.indexOf("%")===0){o=void 0;switch(f){case"%p":o=r;break;case"%":case"%r":default:o=u}return c=t(o),c[i]/100*e}return f==="vh"||f==="vw"?(s=void 0,s=f==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*e):e}function sr(n,t,i,r){var h=[0,0],c=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return n.search(/,|\s/)!==-1})),o,e;return u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=f!==-1?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(r===1?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return or(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(h[t]+=i*(n[r-1]==="-"?-1:1))})}),h}function hr(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:sr(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function cr(t,i){var s=i.boundariesElement||u(t.instance.popper),o;t.instance.reference===s&&(s=u(s));var h=g("transform"),f=t.instance.popper.style,c=f.top,l=f.left,a=f[h];f.top="";f.left="";f[h]="";o=d(t.instance.popper,t.instance.reference,i.padding,s,t.positionFixed);f.top=c;f.left=l;f[h]=a;i.boundaries=o;var v=i.priority,r=t.offsets.popper,y={primary:function(n){var t=r[n];return r[n]<o[n]&&!i.escapeWithReference&&(t=Math.max(r[n],o[n])),e({},n,t)},secondary:function(n){var t=n==="right"?"left":"top",u=r[t];return r[n]>o[n]&&!i.escapeWithReference&&(u=Math.min(r[t],o[n]-(n==="right"?r.width:r.height))),e({},t,u)}};return v.forEach(function(t){var i=["left","top"].indexOf(t)!==-1?"primary":"secondary";r=n({},r,y[i](t))}),t.offsets.popper=r,t}function lr(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var o=t.offsets,r=o.reference,s=o.popper,h=["bottom","top"].indexOf(l)!==-1,i=h?"left":"top",c=h?"width":"height",a={start:e({},i,r[i]),end:e({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}function ar(n){if(!gt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function vr(n){var u=n.placement,i=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=l(u),n.offsets.popper=t(r),n}for(var ti,ii,it,rt,ri,ut,a,v,h=typeof window!="undefined"&&typeof document!="undefined",ui=["Edge","Trident","Firefox"],fi=0,ft=0;ft<ui.length;ft+=1)if(h&&navigator.userAgent.indexOf(ui[ft])>=0){fi=1;break}ti=h&&window.Promise;ii=ti?ei:oi;it=h&&!!(window.MSInputMethodContext&&document.documentMode);rt=h&&/MSIE 10/.test(navigator.userAgent);var yr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},pr=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}}(),e=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,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};ri=h&&/Firefox/i.test(navigator.userAgent);ut=["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"];a=ut.slice(3);v={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};var wr={shift:{order:100,enabled:!0,fn:lr},offset:{order:200,enabled:!0,fn:hr,offset:0},preventOverflow:{order:300,enabled:!0,fn:cr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:er},arrow:{order:500,enabled:!0,fn:rr,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:fr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:vr},hide:{order:800,enabled:!0,fn:ar},computeStyle:{order:850,enabled:!0,fn:ir,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gi,onLoad:nr,gpuAcceleration:undefined}},br={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:wr},y=function(){function t(i,r){var u=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;yr(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=ii(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){if(n.enabled&&et(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 pr(t,[{key:"update",value:function(){return vi.call(this)}},{key:"destroy",value:function(){return yi.call(this)}},{key:"enableEventListeners",value:function(){return wi.call(this)}},{key:"disableEventListeners",value:function(){return ki.call(this)}}]),t}();return y.Utils=(typeof window!="undefined"?window:global).PopperUtils,y.placements=ut,y.Defaults=br,y}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("jquery"),require("popper.js")):typeof define=="function"&&define.amd?define(["exports","jquery","popper.js"],t):t(n.bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function o(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 f(n,t,i){return t&&o(n.prototype,t),i&&o(n,i),n}function s(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function u(n){for(var i,r,t=1;t<arguments.length;t++)i=arguments[t]!=null?arguments[t]:{},r=Object.keys(i),typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){s(n,t,i[t])});return n}function h(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t}t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;var r=function(n){function f(n){return{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase()}function e(){return{bindType:i,delegateType:i,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function o(i){var u=this,r=!1;n(this).one(t.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}function s(){n.fn.emulateTransitionEnd=o;n.event.special[t.TRANSITION_END]=e()}var i="transitionend",r=1e6,u=1e3,t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*r);while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target");t&&t!=="#"||(t=n.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(i){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=n(t).css("transition-duration"),r=parseFloat(i);return r?(i=i.split(",")[0],parseFloat(i)*u):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,r){var u;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var o=r[u],e=i[u],s=e&&t.isElement(e)?"element":f(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+u+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return s(),t}(t),c=function(n){var i="alert",h="4.1.3",u="bs.alert",e="."+u,c=n.fn[i],o={CLOSE:"close"+e,CLOSED:"closed"+e,CLICK_DATA_API:"click"+e+".data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},t=function(){function t(n){this._element=n}var i=t.prototype;return i.close=function(n){var t=this._element,i;(n&&(t=this._getRootElement(n)),i=this._triggerCloseEvent(t),i.isDefaultPrevented())||this._removeElement(t)},i.dispose=function(){n.removeData(this._element,u);this._element=null},i._getRootElement=function(t){var u=r.getSelectorFromElement(t),i=!1;return u&&(i=document.querySelector(u)),i||(i=n(t).closest("."+s.ALERT)[0]),i},i._triggerCloseEvent=function(t){var i=n.Event(o.CLOSE);return n(t).trigger(i),i},i._removeElement=function(t){var u=this,i;if(n(t).removeClass(s.SHOW),!n(t).hasClass(s.FADE)){this._destroyElement(t);return}i=r.getTransitionDurationFromElement(t);n(t).one(r.TRANSITION_END,function(n){return u._destroyElement(t,n)}).emulateTransitionEnd(i)},i._destroyElement=function(t){n(t).detach().trigger(o.CLOSED).remove()},t._jQueryInterface=function(i){return this.each(function(){var f=n(this),r=f.data(u);r||(r=new t(this),f.data(u,r));i==="close"&&r[i](this)})},t._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},f(t,null,[{key:"VERSION",get:function(){return h}}]),t}();n(document).on(o.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,t._handleDismiss(new t));return n.fn[i]=t._jQueryInterface,n.fn[i].Constructor=t,n.fn[i].noConflict=function(){return n.fn[i]=c,t._jQueryInterface},t}(t),l=function(n){var r="button",c="4.1.3",e="bs.button",o="."+e,s=".data-api",l=n.fn[r],t={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click"+o+s,FOCUS_BLUR_DATA_API:"focus"+o+s+" "+("blur"+o+s)},u=function(){function r(n){this._element=n}var u=r.prototype;return u.toggle=function(){var f=!0,o=!0,u=n(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=this._element.querySelector(i.INPUT),r)){if(r.type==="radio"&&(r.checked&&this._element.classList.contains(t.ACTIVE)?f=!1:(e=u.querySelector(i.ACTIVE),e&&n(e).removeClass(t.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!this._element.classList.contains(t.ACTIVE);n(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(t.ACTIVE));f&&n(this._element).toggleClass(t.ACTIVE)},u.dispose=function(){n.removeData(this._element,e);this._element=null},r._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(e);i||(i=new r(this),n(this).data(e,i));t==="toggle"&&i[t]()})},f(r,null,[{key:"VERSION",get:function(){return c}}]),r}();n(document).on(h.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var f=r.target;n(f).hasClass(t.BUTTON)||(f=n(f).closest(i.BUTTON));u._jQueryInterface.call(n(f),"toggle")}).on(h.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=n(r.target).closest(i.BUTTON)[0];n(u).toggleClass(t.FOCUS,/^focus(in)?$/.test(r.type))});return n.fn[r]=u._jQueryInterface,n.fn[r].Constructor=u,n.fn[r].noConflict=function(){return n.fn[r]=l,u._jQueryInterface},u}(t),a=function(n){var h="carousel",y="4.1.3",l="bs.carousel",e="."+l,v=".data-api",p=n.fn[h],w=37,b=39,k=500,a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},i={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},o={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHEND:"touchend"+e,LOAD_DATA_API:"load"+e+v,CLICK_DATA_API:"click"+e+v},t={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},s={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},c=function(){function v(t,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=n(t)[0];this._indicatorsElement=this._element.querySelector(s.INDICATORS);this._addEventListeners()}var c=v.prototype;return c.next=function(){this._isSliding||this._slide(i.NEXT)},c.nextWhenVisible=function(){!document.hidden&&n(this._element).is(":visible")&&n(this._element).css("visibility")!=="hidden"&&this.next()},c.prev=function(){this._isSliding||this._slide(i.PREV)},c.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(s.NEXT_PREV)&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},c.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},c.to=function(t){var f=this,r,u;if(this._activeElement=this._element.querySelector(s.ACTIVE_ITEM),r=this._getItemIndex(this._activeElement),!(t>this._items.length-1)&&!(t<0)){if(this._isSliding){n(this._element).one(o.SLID,function(){return f.to(t)});return}if(r===t){this.pause();this.cycle();return}u=t>r?i.NEXT:i.PREV;this._slide(u,this._items[t])}},c.dispose=function(){n(this._element).off(e);n.removeData(this._element,l);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},c._getConfig=function(n){return n=u({},a,n),r.typeCheckConfig(h,n,d),n},c._addEventListeners=function(){var t=this;if(this._config.keyboard)n(this._element).on(o.KEYDOWN,function(n){return t._keydown(n)});if(this._config.pause==="hover"){n(this._element).on(o.MOUSEENTER,function(n){return t.pause(n)}).on(o.MOUSELEAVE,function(n){return t.cycle(n)});if("ontouchstart"in document.documentElement)n(this._element).on(o.TOUCHEND,function(){t.pause();t.touchTimeout&&clearTimeout(t.touchTimeout);t.touchTimeout=setTimeout(function(n){return t.cycle(n)},k+t._config.interval)})}},c._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case w:n.preventDefault();this.prev();break;case b:n.preventDefault();this.next()}},c._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(s.ITEM)):[],this._items.indexOf(n)},c._getItemByDirection=function(n,t){var e=n===i.NEXT,o=n===i.PREV,r=this._getItemIndex(t),s=this._items.length-1,h=o&&r===0||e&&r===s,f,u;return h&&!this._config.wrap?t:(f=n===i.PREV?-1:1,u=(r+f)%this._items.length,u===-1?this._items[this._items.length-1]:this._items[u])},c._triggerSlideEvent=function(t,i){var u=this._getItemIndex(t),f=this._getItemIndex(this._element.querySelector(s.ACTIVE_ITEM)),r=n.Event(o.SLIDE,{relatedTarget:t,direction:i,from:f,to:u});return n(this._element).trigger(r),r},c._setActiveIndicatorElement=function(i){var u,r;this._indicatorsElement&&(u=[].slice.call(this._indicatorsElement.querySelectorAll(s.ACTIVE)),n(u).removeClass(t.ACTIVE),r=this._indicatorsElement.children[this._getItemIndex(i)],r&&n(r).addClass(t.ACTIVE))},c._slide=function(u,f){var y=this,h=this._element.querySelector(s.ACTIVE_ITEM),k=this._getItemIndex(h),e=f||h&&this._getItemByDirection(u,h),d=this._getItemIndex(e),p=Boolean(this._interval),c,l,a,w,v,b;if(u===i.NEXT?(c=t.LEFT,l=t.NEXT,a=i.LEFT):(c=t.RIGHT,l=t.PREV,a=i.RIGHT),e&&n(e).hasClass(t.ACTIVE)){this._isSliding=!1;return}(w=this._triggerSlideEvent(e,a),w.isDefaultPrevented())||h&&e&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(e),v=n.Event(o.SLID,{relatedTarget:e,direction:a,from:k,to:d}),n(this._element).hasClass(t.SLIDE)?(n(e).addClass(l),r.reflow(e),n(h).addClass(c),n(e).addClass(c),b=r.getTransitionDurationFromElement(h),n(h).one(r.TRANSITION_END,function(){n(e).removeClass(c+" "+l).addClass(t.ACTIVE);n(h).removeClass(t.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return n(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(n(h).removeClass(t.ACTIVE),n(e).addClass(t.ACTIVE),this._isSliding=!1,n(this._element).trigger(v)),p&&this.cycle())},v._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(l),r=u({},a,n(this).data()),f;if(typeof t=="object"&&(r=u({},r,t)),f=typeof t=="string"?t:r.slide,i||(i=new v(this,r),n(this).data(l,i)),typeof t=="number")i.to(t);else if(typeof f=="string"){if(typeof i[f]=="undefined")throw new TypeError('No method named "'+f+'"');i[f]()}else r.interval&&(i.pause(),i.cycle())})},v._dataApiClickHandler=function(i){var s=r.getSelectorFromElement(this),f,o,e;s&&(f=n(s)[0],f&&n(f).hasClass(t.CAROUSEL))&&(o=u({},n(f).data(),n(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),v._jQueryInterface.call(n(f),o),e&&n(f).data(l).to(e),i.preventDefault())},f(v,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return a}}]),v}();n(document).on(o.CLICK_DATA_API,s.DATA_SLIDE,c._dataApiClickHandler);n(window).on(o.LOAD_DATA_API,function(){for(var r=[].slice.call(document.querySelectorAll(s.DATA_RIDE)),i,t=0,u=r.length;t<u;t++)i=n(r[t]),c._jQueryInterface.call(i,i.data())});return n.fn[h]=c._jQueryInterface,n.fn[h].Constructor=c,n.fn[h].noConflict=function(){return n.fn[h]=p,c._jQueryInterface},c}(t),v=function(n){var e="collapse",v="4.1.3",i="bs.collapse",o="."+i,y=n.fn[e],c={toggle:!0,parent:""},p={toggle:"boolean",parent:"(string|element)"},s={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},t={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},a={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function h(t,i){var f,u,o;for(this._isTransitioning=!1,this._element=t,this._config=this._getConfig(i),this._triggerArray=n.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),f=[].slice.call(document.querySelectorAll(a.DATA_TOGGLE)),u=0,o=f.length;u<o;u++){var s=f[u],e=r.getSelectorFromElement(s),h=[].slice.call(document.querySelectorAll(e)).filter(function(n){return n===t});e!==null&&h.length>0&&(this._selector=e,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var o=h.prototype;return o.toggle=function(){n(this._element).hasClass(t.SHOW)?this.hide():this.show()},o.show=function(){var e=this,u,o,c,f;if(!this._isTransitioning&&!n(this._element).hasClass(t.SHOW)&&(this._parent&&(u=[].slice.call(this._parent.querySelectorAll(a.ACTIVES)).filter(function(n){return n.getAttribute("data-parent")===e._config.parent}),u.length===0&&(u=null)),!u||(o=n(u).not(this._selector).data(i),!o||!o._isTransitioning))&&(c=n.Event(s.SHOW),n(this._element).trigger(c),!c.isDefaultPrevented())){u&&(h._jQueryInterface.call(n(u).not(this._selector),"hide"),o||n(u).data(i,null));f=this._getDimension();n(this._element).removeClass(t.COLLAPSE).addClass(t.COLLAPSING);this._element.style[f]=0;this._triggerArray.length&&n(this._triggerArray).removeClass(t.COLLAPSED).attr("aria-expanded",!0);this.setTransitioning(!0);var l=function(){n(e._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).addClass(t.SHOW);e._element.style[f]="";e.setTransitioning(!1);n(e._element).trigger(s.SHOWN)},v=f[0].toUpperCase()+f.slice(1),y="scroll"+v,p=r.getTransitionDurationFromElement(this._element);n(this._element).one(r.TRANSITION_END,l).emulateTransitionEnd(p);this._element.style[f]=this._element[y]+"px"}},o.hide=function(){var c=this,f,i,e,u,o,h,l,a,v;if(!this._isTransitioning&&n(this._element).hasClass(t.SHOW)&&(f=n.Event(s.HIDE),n(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),n(this._element).addClass(t.COLLAPSING).removeClass(t.COLLAPSE).removeClass(t.SHOW),e=this._triggerArray.length,e>0)for(u=0;u<e;u++)o=this._triggerArray[u],h=r.getSelectorFromElement(o),h!==null&&(l=n([].slice.call(document.querySelectorAll(h))),l.hasClass(t.SHOW)||n(o).addClass(t.COLLAPSED).attr("aria-expanded",!1));this.setTransitioning(!0);a=function(){c.setTransitioning(!1);n(c._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).trigger(s.HIDDEN)};this._element.style[i]="";v=r.getTransitionDurationFromElement(this._element);n(this._element).one(r.TRANSITION_END,a).emulateTransitionEnd(v)}},o.setTransitioning=function(n){this._isTransitioning=n},o.dispose=function(){n.removeData(this._element,i);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},o._getConfig=function(n){return n=u({},c,n),n.toggle=Boolean(n.toggle),r.typeCheckConfig(e,n,p),n},o._getDimension=function(){var t=n(this._element).hasClass(l.WIDTH);return t?l.WIDTH:l.HEIGHT},o._getParent=function(){var f=this,t=null,i,u;return r.isElement(this._config.parent)?(t=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent),i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',u=[].slice.call(t.querySelectorAll(i)),n(u).each(function(n,t){f._addAriaAndCollapsedClass(h._getTargetFromElement(t),[t])}),t},o._addAriaAndCollapsedClass=function(i,r){if(i){var u=n(i).hasClass(t.SHOW);r.length&&n(r).toggleClass(t.COLLAPSED,!u).attr("aria-expanded",u)}},h._getTargetFromElement=function(n){var t=r.getSelectorFromElement(n);return t?document.querySelector(t):null},h._jQueryInterface=function(t){return this.each(function(){var f=n(this),r=f.data(i),e=u({},c,f.data(),typeof t=="object"&&t?t:{});if(!r&&e.toggle&&/show|hide/.test(t)&&(e.toggle=!1),r||(r=new h(this,e),f.data(i,r)),typeof t=="string"){if(typeof r[t]=="undefined")throw new TypeError('No method named "'+t+'"');r[t]()}})},f(h,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return c}}]),h}();n(document).on(s.CLICK_DATA_API,a.DATA_TOGGLE,function(t){t.currentTarget.tagName==="A"&&t.preventDefault();var u=n(this),f=r.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(f));n(e).each(function(){var t=n(this),r=t.data(i),f=r?"toggle":u.data();h._jQueryInterface.call(t,f)})});return n.fn[e]=h._jQueryInterface,n.fn[e].Constructor=h,n.fn[e].noConflict=function(){return n.fn[e]=y,h._jQueryInterface},h}(t),y=function(n){var c="dropdown",d="4.1.3",a="bs.dropdown",s="."+a,y=".data-api",g=n.fn[c],v=27,p=32,k=9,w=38,b=40,nt=3,tt=new RegExp(w+"|"+b+"|"+v),e={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click"+s+y,KEYDOWN_DATA_API:"keydown"+s+y,KEYUP_DATA_API:"keyup"+s+y},t={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},o={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},it={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},rt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},h=function(){function h(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var y=h.prototype;return y.toggle=function(){var u,l,s,c,f;if(!this._element.disabled&&!n(this._element).hasClass(t.DISABLED)&&(u=h._getParentFromElement(this._element),l=n(this._menu).hasClass(t.SHOW),h._clearMenus(),!l)&&(s={relatedTarget:this._element},c=n.Event(e.SHOW,s),n(u).trigger(c),!c.isDefaultPrevented())){if(!this._inNavbar){if(typeof i=="undefined")throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");f=this._element;this._config.reference==="parent"?f=u:r.isElement(this._config.reference)&&(f=this._config.reference,typeof this._config.reference.jquery!="undefined"&&(f=this._config.reference[0]));this._config.boundary!=="scrollParent"&&n(u).addClass(t.POSITION_STATIC);this._popper=new i(f,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&n(u).closest(o.NAVBAR_NAV).length===0)n(document.body).children().on("mouseover",null,n.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);n(this._menu).toggleClass(t.SHOW);n(u).toggleClass(t.SHOW).trigger(n.Event(e.SHOWN,s))}},y.dispose=function(){n.removeData(this._element,a);n(this._element).off(s);this._element=null;this._menu=null;this._popper!==null&&(this._popper.destroy(),this._popper=null)},y.update=function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()},y._addEventListeners=function(){var t=this;n(this._element).on(e.CLICK,function(n){n.preventDefault();n.stopPropagation();t.toggle()})},y._getConfig=function(t){return t=u({},this.constructor.Default,n(this._element).data(),t),r.typeCheckConfig(c,t,this.constructor.DefaultType),t},y._getMenuElement=function(){if(!this._menu){var n=h._getParentFromElement(this._element);n&&(this._menu=n.querySelector(o.MENU))}return this._menu},y._getPlacement=function(){var r=n(this._element.parentNode),i=l.BOTTOM;return r.hasClass(t.DROPUP)?(i=l.TOP,n(this._menu).hasClass(t.MENURIGHT)&&(i=l.TOPEND)):r.hasClass(t.DROPRIGHT)?i=l.RIGHT:r.hasClass(t.DROPLEFT)?i=l.LEFT:n(this._menu).hasClass(t.MENURIGHT)&&(i=l.BOTTOMEND),i},y._detectNavbar=function(){return n(this._element).closest(".navbar").length>0},y._getPopperConfig=function(){var i=this,n={},t;return typeof this._config.offset=="function"?n.fn=function(n){return n.offsets=u({},n.offsets,i._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,t={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}},this._config.display==="static"&&(t.modifiers.applyStyle={enabled:!1}),t},h._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(a),r=typeof t=="object"?t:null;if(i||(i=new h(this,r),n(this).data(a,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},h._clearMenus=function(i){var u,r,l,y,c;if(!i||i.which!==nt&&(i.type!=="keyup"||i.which===k))for(u=[].slice.call(document.querySelectorAll(o.DATA_TOGGLE)),r=0,l=u.length;r<l;r++){var f=h._getParentFromElement(u[r]),v=n(u[r]).data(a),s={relatedTarget:u[r]};(i&&i.type==="click"&&(s.clickEvent=i),v)&&(y=v._menu,n(f).hasClass(t.SHOW))&&(i&&(i.type==="click"&&/input|textarea/i.test(i.target.tagName)||i.type==="keyup"&&i.which===k)&&n.contains(f,i.target)||(c=n.Event(e.HIDE,s),n(f).trigger(c),c.isDefaultPrevented())||("ontouchstart"in document.documentElement&&n(document.body).children().off("mouseover",null,n.noop),u[r].setAttribute("aria-expanded","false"),n(y).removeClass(t.SHOW),n(f).removeClass(t.SHOW).trigger(n.Event(e.HIDDEN,s))))}},h._getParentFromElement=function(n){var t,i=r.getSelectorFromElement(n);return i&&(t=document.querySelector(i)),t||n.parentNode},h._dataApiKeydownHandler=function(i){var f,e,s,u,r;if((/input|textarea/i.test(i.target.tagName)?i.which!==p&&(i.which===v||(i.which===b||i.which===w)&&!n(i.target).closest(o.MENU).length):tt.test(i.which))&&(i.preventDefault(),i.stopPropagation(),!this.disabled&&!n(this).hasClass(t.DISABLED))){if(f=h._getParentFromElement(this),e=n(f).hasClass(t.SHOW),!e&&(i.which!==v||i.which!==p)||e&&(i.which===v||i.which===p)){i.which===v&&(s=f.querySelector(o.DATA_TOGGLE),n(s).trigger("focus"));n(this).trigger("click");return}(u=[].slice.call(f.querySelectorAll(o.VISIBLE_ITEMS)),u.length!==0)&&(r=u.indexOf(i.target),i.which===w&&r>0&&r--,i.which===b&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},f(h,null,[{key:"VERSION",get:function(){return d}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return rt}}]),h}();n(document).on(e.KEYDOWN_DATA_API,o.DATA_TOGGLE,h._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,o.MENU,h._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,h._clearMenus).on(e.CLICK_DATA_API,o.DATA_TOGGLE,function(t){t.preventDefault();t.stopPropagation();h._jQueryInterface.call(n(this),"toggle")}).on(e.CLICK_DATA_API,o.FORM_CHILD,function(n){n.stopPropagation()});return n.fn[c]=h._jQueryInterface,n.fn[c].Constructor=h,n.fn[c].noConflict=function(){return n.fn[c]=g,h._jQueryInterface},h}(t,i),p=function(n){var s="modal",a="4.1.3",h="bs.modal",e="."+h,v=n.fn[s],y=27,l={backdrop:!0,keyboard:!0,focus:!0,show:!0},p={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},t={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,FOCUSIN:"focusin"+e,RESIZE:"resize"+e,CLICK_DISMISS:"click.dismiss"+e,KEYDOWN_DISMISS:"keydown.dismiss"+e,MOUSEUP_DISMISS:"mouseup.dismiss"+e,MOUSEDOWN_DISMISS:"mousedown.dismiss"+e,CLICK_DATA_API:"click"+e+".data-api"},i={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},o={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},c=function(){function v(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(o.DIALOG);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._scrollbarWidth=0}var c=v.prototype;return c.toggle=function(n){return this._isShown?this.hide():this.show(n)},c.show=function(r){var u=this,f;if(!this._isTransitioning&&!this._isShown&&(n(this._element).hasClass(i.FADE)&&(this._isTransitioning=!0),f=n.Event(t.SHOW,{relatedTarget:r}),n(this._element).trigger(f),!this._isShown&&!f.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();this._adjustDialog();n(document.body).addClass(i.OPEN);this._setEscapeEvent();this._setResizeEvent();n(this._element).on(t.CLICK_DISMISS,o.DATA_DISMISS,function(n){return u.hide(n)});n(this._dialog).on(t.MOUSEDOWN_DISMISS,function(){n(u._element).one(t.MOUSEUP_DISMISS,function(t){n(t.target).is(u._element)&&(u._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return u._showElement(r)})}},c.hide=function(u){var s=this,f,e,o;(u&&u.preventDefault(),!this._isTransitioning&&this._isShown)&&(f=n.Event(t.HIDE),n(this._element).trigger(f),this._isShown&&!f.isDefaultPrevented())&&(this._isShown=!1,e=n(this._element).hasClass(i.FADE),e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),n(document).off(t.FOCUSIN),n(this._element).removeClass(i.SHOW),n(this._element).off(t.CLICK_DISMISS),n(this._dialog).off(t.MOUSEDOWN_DISMISS),e?(o=r.getTransitionDurationFromElement(this._element),n(this._element).one(r.TRANSITION_END,function(n){return s._hideModal(n)}).emulateTransitionEnd(o)):this._hideModal())},c.dispose=function(){n.removeData(this._element,h);n(window,document,this._element,this._backdrop).off(e);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},c.handleUpdate=function(){this._adjustDialog()},c._getConfig=function(n){return n=u({},l,n),r.typeCheckConfig(s,n,p),n},c._showElement=function(u){var f=this,o=n(this._element).hasClass(i.FADE),s,e,h;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&r.reflow(this._element);n(this._element).addClass(i.SHOW);this._config.focus&&this._enforceFocus();s=n.Event(t.SHOWN,{relatedTarget:u});e=function(){f._config.focus&&f._element.focus();f._isTransitioning=!1;n(f._element).trigger(s)};o?(h=r.getTransitionDurationFromElement(this._element),n(this._dialog).one(r.TRANSITION_END,e).emulateTransitionEnd(h)):e()},c._enforceFocus=function(){var i=this;n(document).off(t.FOCUSIN).on(t.FOCUSIN,function(t){document!==t.target&&i._element!==t.target&&n(i._element).has(t.target).length===0&&i._element.focus()})},c._setEscapeEvent=function(){var i=this;if(this._isShown&&this._config.keyboard)n(this._element).on(t.KEYDOWN_DISMISS,function(n){n.which===y&&(n.preventDefault(),i.hide())});else this._isShown||n(this._element).off(t.KEYDOWN_DISMISS)},c._setResizeEvent=function(){var i=this;if(this._isShown)n(window).on(t.RESIZE,function(n){return i.handleUpdate(n)});else n(window).off(t.RESIZE)},c._hideModal=function(){var r=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){n(document.body).removeClass(i.OPEN);r._resetAdjustments();r._resetScrollbar();n(r._element).trigger(t.HIDDEN)})},c._removeBackdrop=function(){this._backdrop&&(n(this._backdrop).remove(),this._backdrop=null)},c._showBackdrop=function(u){var f=this,e=n(this._element).hasClass(i.FADE)?i.FADE:"",s,o,h;if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=i.BACKDROP;e&&this._backdrop.classList.add(e);n(this._backdrop).appendTo(document.body);n(this._element).on(t.CLICK_DISMISS,function(n){if(f._ignoreBackdropClick){f._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(f._config.backdrop==="static"?f._element.focus():f.hide())});if(e&&r.reflow(this._backdrop),n(this._backdrop).addClass(i.SHOW),!u)return;if(!e){u();return}s=r.getTransitionDurationFromElement(this._backdrop);n(this._backdrop).one(r.TRANSITION_END,u).emulateTransitionEnd(s)}else!this._isShown&&this._backdrop?(n(this._backdrop).removeClass(i.SHOW),o=function(){f._removeBackdrop();u&&u()},n(this._element).hasClass(i.FADE)?(h=r.getTransitionDurationFromElement(this._backdrop),n(this._backdrop).one(r.TRANSITION_END,o).emulateTransitionEnd(h)):o()):u&&u()},c._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")},c._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},c._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},c._setScrollbar=function(){var t=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(o.FIXED_CONTENT)),r=[].slice.call(document.querySelectorAll(o.STICKY_CONTENT)),n(i).each(function(i,r){var u=r.style.paddingRight,f=n(r).css("padding-right");n(r).data("padding-right",u).css("padding-right",parseFloat(f)+t._scrollbarWidth+"px")}),n(r).each(function(i,r){var u=r.style.marginRight,f=n(r).css("margin-right");n(r).data("margin-right",u).css("margin-right",parseFloat(f)-t._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=n(document.body).css("padding-right"),n(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"))},c._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(o.FIXED_CONTENT)),i,t;n(r).each(function(t,i){var r=n(i).data("padding-right");n(i).removeData("padding-right");i.style.paddingRight=r?r:""});i=[].slice.call(document.querySelectorAll(""+o.STICKY_CONTENT));n(i).each(function(t,i){var r=n(i).data("margin-right");typeof r!="undefined"&&n(i).css("margin-right",r).removeData("margin-right")});t=n(document.body).data("padding-right");n(document.body).removeData("padding-right");document.body.style.paddingRight=t?t:""},c._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=i.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},v._jQueryInterface=function(t,i){return this.each(function(){var r=n(this).data(h),f=u({},l,n(this).data(),typeof t=="object"&&t?t:{});if(r||(r=new v(this,f),n(this).data(h,r)),typeof t=="string"){if(typeof r[t]=="undefined")throw new TypeError('No method named "'+t+'"');r[t](i)}else f.show&&r.show(i)})},f(v,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return l}}]),v}();n(document).on(t.CLICK_DATA_API,o.DATA_TOGGLE,function(i){var e=this,f,o=r.getSelectorFromElement(this),s,l;o&&(f=document.querySelector(o));s=n(f).data(h)?"toggle":u({},n(f).data(),n(this).data());(this.tagName==="A"||this.tagName==="AREA")&&i.preventDefault();l=n(f).one(t.SHOW,function(i){if(!i.isDefaultPrevented())l.one(t.HIDDEN,function(){n(e).is(":visible")&&e.focus()})});c._jQueryInterface.call(n(f),s,this)});return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=v,c._jQueryInterface},c}(t),e=function(n){var h="tooltip",y="4.1.3",c="bs.tooltip",t="."+c,p=n.fn[h],a="bs-tooltip",w=new RegExp("(^|\\s)"+a+"\\S+","g"),b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},k={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d={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"},s={SHOW:"show",OUT:"out"},g={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},e={FADE:"fade",SHOW:"show"},v={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},o={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function p(n,t){if(typeof i=="undefined")throw new TypeError("Bootstrap tooltips require Popper.js (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 l=p.prototype;return l.enable=function(){this._isEnabled=!0},l.disable=function(){this._isEnabled=!1},l.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.toggle=function(t){if(this._isEnabled)if(t){var r=this.constructor.DATA_KEY,i=n(t.currentTarget).data(r);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(n(this.getTipElement()).hasClass(e.SHOW)){this._leave(null,this);return}this._enter(null,this)}},l.dispose=function(){clearTimeout(this._timeout);n.removeData(this.element,this.constructor.DATA_KEY);n(this.element).off(this.constructor.EVENT_KEY);n(this.element).closest(".modal").off("hide.bs.modal");this.tip&&n(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},l.show=function(){var t=this,f,l,u,o,a,h,y,c,p;if(n(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(f=n.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(n(this.element).trigger(f),l=n.contains(this.element.ownerDocument.documentElement,this.element),f.isDefaultPrevented()||!l)return;if(u=this.getTipElement(),o=r.getUID(this.constructor.NAME),u.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&n(u).addClass(e.FADE),a=typeof this.config.placement=="function"?this.config.placement.call(this,u,this.element):this.config.placement,h=this._getAttachment(a),this.addAttachmentClass(h),y=this.config.container===!1?document.body:n(document).find(this.config.container),n(u).data(this.constructor.DATA_KEY,this),n.contains(this.element.ownerDocument.documentElement,this.tip)||n(u).appendTo(y),n(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,u,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){t._handlePopperPlacementChange(n)}}),n(u).addClass(e.SHOW),"ontouchstart"in document.documentElement)n(document.body).children().on("mouseover",null,n.noop);c=function(){t.config.animation&&t._fixTransition();var i=t._hoverState;t._hoverState=null;n(t.element).trigger(t.constructor.Event.SHOWN);i===s.OUT&&t._leave(null,t)};n(this.tip).hasClass(e.FADE)?(p=r.getTransitionDurationFromElement(this.tip),n(this.tip).one(r.TRANSITION_END,c).emulateTransitionEnd(p)):c()}},l.hide=function(t){var i=this,u=this.getTipElement(),f=n.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==s.SHOW&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");n(i.element).trigger(i.constructor.Event.HIDDEN);i._popper!==null&&i._popper.destroy();t&&t()},c;(n(this.element).trigger(f),f.isDefaultPrevented())||(n(u).removeClass(e.SHOW),"ontouchstart"in document.documentElement&&n(document.body).children().off("mouseover",null,n.noop),this._activeTrigger[o.CLICK]=!1,this._activeTrigger[o.FOCUS]=!1,this._activeTrigger[o.HOVER]=!1,n(this.tip).hasClass(e.FADE)?(c=r.getTransitionDurationFromElement(u),n(u).one(r.TRANSITION_END,h).emulateTransitionEnd(c)):h(),this._hoverState="")},l.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},l.isWithContent=function(){return Boolean(this.getTitle())},l.addAttachmentClass=function(t){n(this.getTipElement()).addClass(a+"-"+t)},l.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},l.setContent=function(){var t=this.getTipElement();this.setElementContent(n(t.querySelectorAll(v.TOOLTIP_INNER)),this.getTitle());n(t).removeClass(e.FADE+" "+e.SHOW)},l.setElementContent=function(t,i){var r=this.config.html;typeof i=="object"&&(i.nodeType||i.jquery)?r?n(i).parent().is(t)||t.empty().append(i):t.text(n(i).text()):t[r?"html":"text"](i)},l.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n},l._getAttachment=function(n){return k[n.toUpperCase()]},l._setListeners=function(){var t=this,i=[];this.config.trigger&&(i=this.config.trigger.split(" "));i.forEach(function(i){if(i==="click")n(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(n){return t.toggle(n)});else if(i!==o.MANUAL){var r=i===o.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,u=i===o.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;n(t.element).on(r,t.config.selector,function(n){return t._enter(n)}).on(u,t.config.selector,function(n){return t._leave(n)})}n(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})});this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l._enter=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusin"?o.FOCUS:o.HOVER]=!0),n(i.getTipElement()).hasClass(e.SHOW)||i._hoverState===s.SHOW){i._hoverState=s.SHOW;return}if(clearTimeout(i._timeout),i._hoverState=s.SHOW,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===s.SHOW&&i.show()},i.config.delay.show)},l._leave=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusout"?o.FOCUS:o.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=s.OUT,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===s.OUT&&i.hide()},i.config.delay.hide)}},l._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l._getConfig=function(t){return t=u({},this.constructor.Default,n(this.element).data(),typeof t=="object"&&t?t:{}),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),r.typeCheckConfig(h,t,this.constructor.DefaultType),t},l._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},l._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(w);t!==null&&t.length&&i.removeClass(t.join(""))},l._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},l._fixTransition=function(){var t=this.getTipElement(),i=this.config.animation;t.getAttribute("x-placement")===null&&(n(t).removeClass(e.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},p._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(c),r=typeof t=="object"&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new p(this,r),n(this).data(c,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(p,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return b}}]),p}();return n.fn[h]=l._jQueryInterface,n.fn[h].Constructor=l,n.fn[h].noConflict=function(){return n.fn[h]=p,l._jQueryInterface},l}(t,i),w=function(n){var i="popover",a="4.1.3",r="bs.popover",t="."+r,v=n.fn[i],s="bs-popover",y=new RegExp("(^|\\s)"+s+"\\S+","g"),p=u({},e.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>'}),w=u({},e.DefaultType,{content:"(string|element|function)"}),c={FADE:"fade",SHOW:"show"},l={TITLE:".popover-header",CONTENT:".popover-body"},b={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},o=function(u){function e(){return u.apply(this,arguments)||this}h(e,u);var o=e.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){n(this.getTipElement()).addClass(s+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},o.setContent=function(){var i=n(this.getTipElement()),t;this.setElementContent(i.find(l.TITLE),this.getTitle());t=this._getContent();typeof t=="function"&&(t=t.call(this.element));this.setElementContent(i.find(l.CONTENT),t);i.removeClass(c.FADE+" "+c.SHOW)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(y);t!==null&&t.length>0&&i.removeClass(t.join(""))},e._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(r),u=typeof t=="object"?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new e(this,u),n(this).data(r,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(e,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return w}}]),e}(e);return n.fn[i]=o._jQueryInterface,n.fn[i].Constructor=o,n.fn[i].noConflict=function(){return n.fn[i]=v,o._jQueryInterface},o}(t),b=function(n){var i="scrollspy",v="4.1.3",s="bs.scrollspy",h="."+s,y=n.fn[i],a={offset:10,method:"auto",target:""},p={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+h,SCROLL:"scroll"+h,LOAD_DATA_API:"load"+h+".data-api"},e={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},t={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},l={OFFSET:"offset",POSITION:"position"},o=function(){function y(i,r){var u=this;this._element=i;this._scrollElement=i.tagName==="BODY"?window:i;this._config=this._getConfig(r);this._selector=this._config.target+" "+t.NAV_LINKS+","+(this._config.target+" "+t.LIST_ITEMS+",")+(this._config.target+" "+t.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;n(this._scrollElement).on(c.SCROLL,function(n){return u._process(n)});this.refresh();this._process()}var o=y.prototype;return o.refresh=function(){var t=this,f=this._scrollElement===this._scrollElement.window?l.OFFSET:l.POSITION,i=this._config.method==="auto"?f:this._config.method,e=i===l.POSITION?this._getScrollTop():0,u;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u=[].slice.call(document.querySelectorAll(this._selector));u.map(function(t){var u,f=r.getSelectorFromElement(t),o;return(f&&(u=document.querySelector(f)),u&&(o=u.getBoundingClientRect(),o.width||o.height))?[n(u)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},o.dispose=function(){n.removeData(this._element,s);n(this._scrollElement).off(h);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},o._getConfig=function(t){if(t=u({},a,typeof t=="object"&&t?t:{}),typeof t.target!="string"){var f=n(t.target).attr("id");f||(f=r.getUID(i),n(t.target).attr("id",f));t.target="#"+f}return r.typeCheckConfig(i,t,p),t},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),e=this._config.offset+r-this._getOffsetHeight(),i,u,n,f;if(this._scrollHeight!==r&&this.refresh(),t>=e){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(u=this._offsets.length,n=u;n--;)f=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]=="undefined"||t<this._offsets[n+1]),f&&this._activate(this._targets[n])},o._activate=function(i){var u,r;this._activeTarget=i;this._clear();u=this._selector.split(",");u=u.map(function(n){return n+'[data-target="'+i+'"],'+(n+'[href="'+i+'"]')});r=n([].slice.call(document.querySelectorAll(u.join(","))));r.hasClass(e.DROPDOWN_ITEM)?(r.closest(t.DROPDOWN).find(t.DROPDOWN_TOGGLE).addClass(e.ACTIVE),r.addClass(e.ACTIVE)):(r.addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_LINKS+", "+t.LIST_ITEMS).addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_ITEMS).children(t.NAV_LINKS).addClass(e.ACTIVE));n(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:i})},o._clear=function(){var i=[].slice.call(document.querySelectorAll(this._selector));n(i).filter(t.ACTIVE).removeClass(e.ACTIVE)},y._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(s),r=typeof t=="object"&&t;if(i||(i=new y(this,r),n(this).data(s,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(y,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return a}}]),y}();n(window).on(c.LOAD_DATA_API,function(){for(var u=[].slice.call(document.querySelectorAll(t.DATA_SPY)),f=u.length,r,i=f;i--;)r=n(u[i]),o._jQueryInterface.call(r,r.data())});return n.fn[i]=o._jQueryInterface,n.fn[i].Constructor=o,n.fn[i].noConflict=function(){return n.fn[i]=y,o._jQueryInterface},o}(t),k=function(n){var u="tab",c="4.1.3",h="bs.tab",e="."+h,l=n.fn[u],o={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},t={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},i={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},s=function(){function u(n){this._element=n}var e=u.prototype;return e.show=function(){var a=this,e,u,f,s,v,h,c,l;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&n(this._element).hasClass(t.ACTIVE)||n(this._element).hasClass(t.DISABLED)||(f=n(this._element).closest(i.NAV_LIST_GROUP)[0],s=r.getSelectorFromElement(this._element),f&&(v=f.nodeName==="UL"?i.ACTIVE_UL:i.ACTIVE,u=n.makeArray(n(f).find(v)),u=u[u.length-1]),h=n.Event(o.HIDE,{relatedTarget:this._element}),c=n.Event(o.SHOW,{relatedTarget:u}),u&&n(u).trigger(h),n(this._element).trigger(c),c.isDefaultPrevented()||h.isDefaultPrevented())||(s&&(e=document.querySelector(s)),this._activate(this._element,f),l=function(){var t=n.Event(o.HIDDEN,{relatedTarget:a._element}),i=n.Event(o.SHOWN,{relatedTarget:u});n(u).trigger(t);n(a._element).trigger(i)},e?this._activate(e,e.parentNode,l):l())},e.dispose=function(){n.removeData(this._element,h);this._element=null},e._activate=function(u,f,e){var l=this,s,c;s=f.nodeName==="UL"?n(f).find(i.ACTIVE_UL):n(f).children(i.ACTIVE);var o=s[0],a=e&&o&&n(o).hasClass(t.FADE),h=function(){return l._transitionComplete(u,o,e)};o&&a?(c=r.getTransitionDurationFromElement(o),n(o).one(r.TRANSITION_END,h).emulateTransitionEnd(c)):h()},e._transitionComplete=function(u,f,e){var o,s,h;f&&(n(f).removeClass(t.SHOW+" "+t.ACTIVE),o=n(f.parentNode).find(i.DROPDOWN_ACTIVE_CHILD)[0],o&&n(o).removeClass(t.ACTIVE),f.getAttribute("role")==="tab"&&f.setAttribute("aria-selected",!1));n(u).addClass(t.ACTIVE);u.getAttribute("role")==="tab"&&u.setAttribute("aria-selected",!0);r.reflow(u);n(u).addClass(t.SHOW);u.parentNode&&n(u.parentNode).hasClass(t.DROPDOWN_MENU)&&(s=n(u).closest(i.DROPDOWN)[0],s&&(h=[].slice.call(s.querySelectorAll(i.DROPDOWN_TOGGLE)),n(h).addClass(t.ACTIVE)),u.setAttribute("aria-expanded",!0));e&&e()},u._jQueryInterface=function(t){return this.each(function(){var r=n(this),i=r.data(h);if(i||(i=new u(this),r.data(h,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(u,null,[{key:"VERSION",get:function(){return c}}]),u}();n(document).on(o.CLICK_DATA_API,i.DATA_TOGGLE,function(t){t.preventDefault();s._jQueryInterface.call(n(this),"show")});return n.fn[u]=s._jQueryInterface,n.fn[u].Constructor=s,n.fn[u].noConflict=function(){return n.fn[u]=l,s._jQueryInterface},s}(t);(function(n){if(typeof n=="undefined")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.fn.jquery.split(" ")[0].split("."),i=9;if(t[0]<2&&t[1]<i||t[0]===1&&t[1]===i&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");})(t);n.Util=r;n.Alert=c;n.Button=l;n.Carousel=a;n.Collapse=v;n.Dropdown=y;n.Modal=p;n.Popover=w;n.Scrollspy=b;n.Tab=k;n.Tooltip=e;Object.defineProperty(n,"__esModule",{value:!0})})