text: !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,r=Object.getPrototypeOf,o=n.slice,s=n.concat,a=n.push,l=n.indexOf,c={},u=c.toString,h=c.hasOwnProperty,d=h.toString,f=d.call(Object),p={};function m(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var g=function(e,t){return new g.fn.init(e,t)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([a-z])/g,_=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length"in e&&e.length,n=g.type(e);return"function"!==n&&!g.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:"3.2.1",constructor:g,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return g.each(this,e)},map:function(e){return this.pushStack(g.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},g.extend=g.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||g.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(g.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,o=n&&Array.isArray(n)?n:[]):o=n&&g.isPlainObject(n)?n:{},s[t]=g.extend(c,o,i)):void 0!==i&&(s[t]=i));return s},g.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=g.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=r(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||d.call(n)!==f))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e},globalEval:function(e){m(e)},camelCase:function(e){return e.replace(y,"ms-").replace(b,_)},each:function(e,t){var n,i=0;if(w(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(v,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?g.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(w(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),g.isFunction(e))return i=o.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||g.guid++,r},now:Date.now,support:p}),"function"==typeof Symbol&&(g.fn[Symbol.iterator]=n[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var x=function(e){var t,n,i,r,o,s,a,l,c,u,h,d,f,p,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,x=0,E=0,S=se(),C=se(),T=se(),D=function(e,t){return e===t&&(h=!0),0},k={}.hasOwnProperty,A=[],O=A.pop,M=A.push,I=A.push,N=A.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",Y="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",H="\\["+P+"*("+Y+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Y+"))|)"+P+"*\\]",R=":("+Y+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",W=new RegExp(P+"+","g"),F=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),$=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),B=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),z=new RegExp(R),q=new RegExp("^"+Y+"$"),G={ID:new RegExp("^#("+Y+")"),CLASS:new RegExp("^\\.("+Y+")"),TAG:new RegExp("^("+Y+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{I.apply(A=N.call(w.childNodes),w.childNodes)}catch(e){I={apply:A.length?function(e,t){M.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,r){var o,a,c,u,h,p,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&((t?t.ownerDocument||t:w)!==f&&d(t),t=t||f,m)){if(11!==x&&(h=K.exec(e)))if(o=h[1]){if(9===x){if(!(c=t.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(y&&(c=y.getElementById(o))&&b(t,c)&&c.id===o)return i.push(c),i}else{if(h[2])return I.apply(i,t.getElementsByTagName(e)),i;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))){if(1!==x)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=_),a=(p=s(e)).length;a--;)p[a]="#"+u+" "+ve(p[a]);v=p.join(","),y=Z.test(e)&&me(t.parentNode)||t}if(v)try{return I.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,i,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[_]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function me(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=oe.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:w;return s!==f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,m=!o(f),w!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=le(function(e){return p.appendChild(e).id=_,!f.getElementsByName||!f.getElementsByName(_).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&m){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Q.test(f.querySelectorAll))&&(le(function(e){p.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",R)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(p.compareDocumentPosition),b=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return h=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===w&&b(w,e)?-1:t===f||t.ownerDocument===w&&b(w,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===f?-1:t===f?1:r?-1:o?1:u?L(u,e)-L(u,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ue(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},f):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&d(e),t=t.replace(B,"='$1']"),n.matchesSelector&&m&&!T[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==f&&d(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==f&&d(e);var r=i.attrHandle[t.toLowerCase()],o=r&&k.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,i=[],r=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(D),h){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return u=null,e},r=oe.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=oe.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=oe.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,f,p,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(b=(f=(c=(u=(h=(d=g)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[x,f,b];break}}else if(y&&(b=f=(c=(u=(h=(d=t)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(d=++f&&d&&d[m]||(b=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[x,b]),d!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=L(e,o[s])]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(F,"$1"));return i[_]?ae(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return oe(e,t).length>0}}),contains:ae(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ae(function(e){return q.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=E++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var c,u,h,d=[x,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=(h=t[_]||(t[_]={}))[t.uniqueID]||(h[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[o])&&c[0]===x&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function _e(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),c&&t.push(a)));return s}function we(e,t,n,i,r,o){return i&&!i[_]&&(i=we(i)),r&&!r[_]&&(r=we(r,o)),ae(function(o,s,a,l){var c,u,h,d=[],f=[],p=s.length,m=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)oe(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?m:_e(m,d,e,a,l),v=n?r||(o?e:p||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(c=_e(v,f),i(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[f[u]]=!(g[f[u]]=h));if(o){if(r||e){if(r){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);r(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=r?L(o,h):d[u])>-1&&(o[c]=!(s[c]=h))}}else v=_e(v===s?v.splice(p,v.length):v),r?r(null,s,v,l):I.apply(s,v)})}function xe(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=ye(function(e){return e===t},a,!0),h=ye(function(e){return L(t,e)>-1},a,!0),d=[function(e,n,i){var r=!s&&(i||n!==c)||((t=n).nodeType?u(e,n,i):h(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])d=[ye(be(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[_]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return we(l>1&&be(d),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),n,l<r&&xe(e.slice(l,r)),r<o&&xe(e=e.slice(r)),r<o&&ve(e))}d.push(n)}return be(d)}return ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,s=oe.tokenize=function(e,t){var n,r,o,s,a,l,c,u=C[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(s in n&&!(r=$.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=U.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(F," ")}),a=a.slice(n.length)),i.filter)!(r=G[s].exec(a))||c[s]&&!(r=c[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?oe.error(e):C(e,l).slice(0)},a=oe.compile=function(e,t){var n,r=[],o=[],a=T[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=xe(t[n]))[_]?r.push(a):o.push(a);(a=T(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,s,a,l,u){var h,p,g,v=0,y="0",b=o&&[],_=[],w=c,E=o||r&&i.find.TAG("*",u),S=x+=null==w?1:Math.random()||.1,C=E.length;for(u&&(c=s===f||s||u);y!==C&&null!=(h=E[y]);y++){if(r&&h){for(p=0,s||h.ownerDocument===f||(d(h),a=!m);g=e[p++];)if(g(h,s||f,a)){l.push(h);break}u&&(x=S)}n&&((h=!g&&h)&&v--,o&&b.push(h))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(b,_,s,a);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=O.call(l));_=_e(_)}I.apply(l,_),u&&!o&&_.length>0&&v+t.length>1&&oe.uniqueSort(l)}return u&&(x=S,c=w),b};return n?ae(o):o}(o,r))).selector=e}return a},l=oe.select=function(e,t,n,r){var o,l,c,u,h,d="function"==typeof e&&e,f=!r&&s(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=G.needsContext.test(e)?0:l.length;o--&&!i.relative[u=(c=l[o]).type];)if((h=i.find[u])&&(r=h(c.matches[0].replace(J,ee),Z.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&ve(l)))return I.apply(n,r),n;break}}return(d||a(e,f))(r,t,!m,n,!t||Z.test(e)&&me(t.parentNode)||t),n},n.sortStable=_.split("").sort(D).join("")===_,n.detectDuplicates=!!h,d(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(j,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),oe}(e);g.find=x,g.expr=x.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=x.uniqueSort,g.text=x.getText,g.isXMLDoc=x.isXML,g.contains=x.contains,g.escapeSelector=x.escape;var E=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&g(e).is(n))break;i.push(e)}return i},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=g.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,k=/^.[^:#\[\.,]*$/;function A(e,t,n){return g.isFunction(t)?g.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?g.grep(e,function(e){return e===t!==n}):"string"!=typeof t?g.grep(e,function(e){return l.call(t,e)>-1!==n}):k.test(t)?g.filter(t,e,n):(t=g.filter(t,e),g.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}g.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?g.find.matchesSelector(i,e)?[i]:[]:g.find.matches(e,g.grep(t,function(e){return 1===e.nodeType}))},g.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(g(e).filter(function(){for(t=0;t<i;t++)if(g.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)g.find(e,r[t],n);return i>1?g.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&C.test(e)?g(e):e||[],!1).length}});var O,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(g.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(g.merge(this,g.parseHTML(r[1],(t=t instanceof g?t[0]:t)&&t.nodeType?t.ownerDocument||t:i,!0)),D.test(r[1])&&g.isPlainObject(t))for(r in t)g.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==n.ready?n.ready(e):e(g):g.makeArray(e,this)}).prototype=g.fn,O=g(i);var I=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.fn.extend({has:function(e){var t=g(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(g.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&g(e);if(!C.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&g.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(g(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return T(e,"iframe")?e.contentDocument:(T(e,"template")&&(e=e.content||e),g.merge([],e.childNodes))}},function(e,t){g.fn[e]=function(n,i){var r=g.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=g.filter(i,r)),this.length>1&&(N[e]||g.uniqueSort(r),I.test(e)&&r.reverse()),this.pushStack(r)}});var j=/[^\x20\t\r\n\f]+/g;function P(e){return e}function Y(e){throw e}function H(e,t,n,i){var r;try{e&&g.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&g.isFunction(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}g.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return g.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):g.extend({},e);var t,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){g.each(n,function(n,i){g.isFunction(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==g.type(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return g.each(arguments,function(e,t){for(var n;(n=g.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?g.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},g.extend({Deferred:function(t){var n=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return g.Deferred(function(t){g.each(n,function(n,i){var r=g.isFunction(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){var o=0;function s(t,n,i,r){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");g.isFunction(c=e&&("object"==typeof e||"function"==typeof e)&&e.then)?r?c.call(e,s(o,n,P,r),s(o,n,Y,r)):c.call(e,s(++o,n,P,r),s(o,n,Y,r),s(o,n,P,n.notifyWith)):(i!==P&&(a=void 0,l=[e]),(r||n.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(e){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(e,u.stackTrace),t+1>=o&&(i!==Y&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(g.Deferred.getStackHook&&(u.stackTrace=g.Deferred.getStackHook()),e.setTimeout(u))}}return g.Deferred(function(e){n[0][3].add(s(0,e,g.isFunction(r)?r:P,e.notifyWith)),n[1][3].add(s(0,e,g.isFunction(t)?t:P)),n[2][3].add(s(0,e,g.isFunction(i)?i:Y))}).promise()},promise:function(e){return null!=e?g.extend(e,r):r}},o={};return g.each(n,function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=o.call(arguments),s=g.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(H(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||g.isFunction(r[n]&&r[n].then)))return s.then();for(;n--;)H(r[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},g.readyException=function(t){e.setTimeout(function(){throw t})};var W=g.Deferred();function F(){i.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),g.ready()}g.fn.ready=function(e){return W.then(e).catch(function(e){g.readyException(e)}),this},g.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||W.resolveWith(i,[g]))}}),g.ready.then=W.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(g.ready):(i.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var $=function(e,t,n,i,r,o,s){var a=0,l=e.length,c=null==n;if("object"===g.type(n))for(a in r=!0,n)$(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,g.isFunction(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(g(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):o},U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=g.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[g.camelCase(t)]=n;else for(i in t)r[g.camelCase(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][g.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(g.camelCase):(t=g.camelCase(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||g.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!g.isEmptyObject(t)}};var z=new B,q=new B,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function X(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:G.test(e)?JSON.parse(e):e)}(n)}catch(e){}q.set(e,t,n)}else n=void 0;return n}g.extend({hasData:function(e){return q.hasData(e)||z.hasData(e)},data:function(e,t,n){return q.access(e,t,n)},removeData:function(e,t){q.remove(e,t)},_data:function(e,t,n){return z.access(e,t,n)},_removeData:function(e,t){z.remove(e,t)}}),g.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=q.get(o),1===o.nodeType&&!z.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=g.camelCase(i.slice(5)),X(o,i,r[i]));z.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){q.set(this,e)}):$(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=q.get(o,e))?n:void 0!==(n=X(o,e))?n:void 0;this.each(function(){q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){q.remove(this,e)})}}),g.extend({queue:function(e,t,n){var i;if(e)return i=z.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=z.access(e,t,g.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){var n=g.queue(e,t=t||"fx"),i=n.length,r=n.shift(),o=g._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){g.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return z.get(e,n)||z.access(e,n,{empty:g.Callbacks("once memory").add(function(){z.remove(e,[t+"queue",n])})})}}),g.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?g.queue(this[0],e):void 0===t?this:this.each(function(){var n=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&g.dequeue(this,e)})},dequeue:function(e){return this.each(function(){g.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=g.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=z.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,K=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],J=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&g.contains(e.ownerDocument,e)&&"none"===g.css(e,"display")},ee=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=s[o];return r};function te(e,t,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return g.css(e,t,"")},l=a(),c=n&&n[3]||(g.cssNumber[t]?"":"px"),u=(g.cssNumber[t]||"px"!==c&&+l)&&K.exec(g.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{g.style(e,t,(u/=o=o||".5")+c)}while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var ne={};function ie(e){var t,n=e.ownerDocument,i=e.nodeName,r=ne[i];return r||(t=n.body.appendChild(n.createElement(i)),r=g.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ne[i]=r,r)}function re(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=z.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&J(i)&&(r[o]=ie(i))):"none"!==n&&(r[o]="none",z.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}g.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){J(this)?g(this).show():g(this).hide()})}});var oe=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ce(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?g.merge([e],n):n}function ue(e,t){for(var n=0,i=e.length;n<i;n++)z.set(e[n],"globalEval",!t||z.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var he,de,fe=/<|&#?\w+;/;function pe(e,t,n,i,r){for(var o,s,a,l,c,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===g.type(o))g.merge(d,o.nodeType?[o]:o);else if(fe.test(o)){for(s=s||h.appendChild(t.createElement("div")),a=(se.exec(o)||["",""])[1].toLowerCase(),s.innerHTML=(l=le[a]||le._default)[1]+g.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;g.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(i&&g.inArray(o,i)>-1)r&&r.push(o);else if(c=g.contains(o.ownerDocument,o),s=ce(h.appendChild(o),"script"),c&&ue(s),n)for(u=0;o=s[u++];)ae.test(o.type||"")&&n.push(o);return h}he=i.createDocumentFragment().appendChild(i.createElement("div")),(de=i.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),he.appendChild(de),p.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var me=i.documentElement,ge=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function _e(){return!1}function we(){try{return i.activeElement}catch(e){}}function xe(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)xe(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=_e;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return g().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=g.guid++)),e.each(function(){g.event.add(this,t,r,i,n)})}g.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,m,v=z.get(e);if(v)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&g.find.matchesSelector(me,r),n.guid||(n.guid=g.guid++),(l=v.events)||(l=v.events={}),(s=v.handle)||(s=v.handle=function(t){return"undefined"!=typeof g&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)f=m=(a=ye.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=g.event.special[f]||{},h=g.event.special[f=(r?h.delegateType:h.bindType)||f]||{},u=g.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&g.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),g.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,m,v=z.hasData(e)&&z.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(f=m=(a=ye.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=g.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,v.handle)||g.removeEvent(e,f,v.handle),delete l[f])}else for(f in l)g.event.remove(e,f+t[c],n,i,!0);g.isEmptyObject(l)&&z.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=g.event.fix(e),l=new Array(arguments.length),c=(z.get(this,"events")||{})[a.type]||[],u=g.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=g.event.handlers.call(this,a,c),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((g.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?g(r,this).index(c)>-1:g.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(g.Event.prototype,e,{enumerable:!0,configurable:!0,get:g.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[g.expando]?e:new g.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==we()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===we()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&T(this,"input"))return this.click(),!1},_default:function(e){return T(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},g.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ge.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ve.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},g.event.addProp),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||g.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),g.fn.extend({on:function(e,t,n,i){return xe(this,e,t,n,i)},one:function(e,t,n,i){return xe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,g(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each(function(){g.event.remove(this,e,n,t)})}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Se=/<script|<style|<link/i,Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/^true\/(.*)/,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ke(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&g(">tbody",e)[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){var t=Te.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Me(e,t){var n,i,r,o,s,a,l,c;if(1===t.nodeType){if(z.hasData(e)&&(o=z.access(e),s=z.set(t,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n<i;n++)g.event.add(t,r,c[r][n]);q.hasData(e)&&(a=q.access(e),l=g.extend({},a),q.set(t,l))}}function Ie(e,t,n,i){t=s.apply([],t);var r,o,a,l,c,u,h=0,d=e.length,f=d-1,v=t[0],y=g.isFunction(v);if(y||d>1&&"string"==typeof v&&!p.checkClone&&Ce.test(v))return e.each(function(r){var o=e.eq(r);y&&(t[0]=v.call(this,r,o.html())),Ie(o,t,n,i)});if(d&&(o=(r=pe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(l=(a=g.map(ce(r,"script"),Ae)).length;h<d;h++)c=r,h!==f&&(c=g.clone(c,!0,!0),l&&g.merge(a,ce(c,"script"))),n.call(e[h],c,h);if(l)for(u=a[a.length-1].ownerDocument,g.map(a,Oe),h=0;h<l;h++)ae.test((c=a[h]).type||"")&&!z.access(c,"globalEval")&&g.contains(u,c)&&(c.src?g._evalUrl&&g._evalUrl(c.src):m(c.textContent.replace(De,""),u))}return e}function Ne(e,t,n){for(var i,r=t?g.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||g.cleanData(ce(i)),i.parentNode&&(n&&g.contains(i.ownerDocument,i)&&ue(ce(i,"script")),i.parentNode.removeChild(i));return e}g.extend({htmlPrefilter:function(e){return e.replace(Ee,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),h=g.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(s=ce(u),i=0,r=(o=ce(e)).length;i<r;i++)a=o[i],"input"===(c=(l=s[i]).nodeName.toLowerCase())&&oe.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||ce(e),s=s||ce(u),i=0,r=o.length;i<r;i++)Me(o[i],s[i]);else Me(e,u);return(s=ce(u,"script")).length>0&&ue(s,!h&&ce(e,"script")),u},cleanData:function(e){for(var t,n,i,r=g.event.special,o=0;void 0!==(n=e[o]);o++)if(U(n)){if(t=n[z.expando]){if(t.events)for(i in t.events)r[i]?g.event.remove(n,i):g.removeEvent(n,i,t.handle);n[z.expando]=void 0}n[q.expando]&&(n[q.expando]=void 0)}}}),g.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return $(this,function(e){return void 0===e?g.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ke(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ke(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(ce(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return g.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!le[(se.exec(e)||["",""])[1].toLowerCase()]){e=g.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(g.cleanData(ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,function(t){var n=this.parentNode;g.inArray(this,e)<0&&(g.cleanData(ce(this)),n&&n.replaceChild(t,this))},e)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){g.fn[e]=function(e){for(var n,i=[],r=g(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),g(r[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var Le=/^margin/,je=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),Pe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Ye(e,t,n){var i,r,o,s,a=e.style;return(n=n||Pe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||g.contains(e.ownerDocument,e)||(s=g.style(e,t)),!p.pixelMarginRight()&&je.test(s)&&Le.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",me.appendChild(a);var t=e.getComputedStyle(l);n="1%"!==t.top,s="2px"===t.marginLeft,r="4px"===t.width,l.style.marginRight="50%",o="4px"===t.marginRight,me.removeChild(a),l=null}}var n,r,o,s,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),g.extend(p,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),o},reliableMarginLeft:function(){return t(),s}}))}();var Re=/^(none|table(?!-c[ea]).+)/,We=/^--/,Fe={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","Moz","ms"],Be=i.createElement("div").style;function ze(e){var t=g.cssProps[e];return t||(t=g.cssProps[e]=function(e){if(e in Be)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Be)return e}(e)||e),t}function qe(e,t,n){var i=K.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ge(e,t,n,i,r){var o,s=0;for(o=n===(i?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=g.css(e,n+Z[o],!0,r)),i?("content"===n&&(s-=g.css(e,"padding"+Z[o],!0,r)),"margin"!==n&&(s-=g.css(e,"border"+Z[o]+"Width",!0,r))):(s+=g.css(e,"padding"+Z[o],!0,r),"padding"!==n&&(s+=g.css(e,"border"+Z[o]+"Width",!0,r)));return s}function Ve(e,t,n){var i,r=Pe(e),o=Ye(e,t,r),s="border-box"===g.css(e,"boxSizing",!1,r);return je.test(o)?o:(i=s&&(p.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+Ge(e,t,n||(s?"border":"content"),i,r)+"px")}function Xe(e,t,n,i,r){return new Xe.prototype.init(e,t,n,i,r)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=g.camelCase(t),l=We.test(t),c=e.style;if(l||(t=ze(a)),s=g.cssHooks[t]||g.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=K.exec(n))&&r[1]&&(n=te(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(g.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=g.camelCase(t);return We.test(t)||(t=ze(a)),(s=g.cssHooks[t]||g.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=Ye(e,t,i)),"normal"===r&&t in $e&&(r=$e[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),g.each(["height","width"],function(e,t){g.cssHooks[t]={get:function(e,n,i){if(n)return!Re.test(g.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ve(e,t,i):ee(e,Fe,function(){return Ve(e,t,i)})},set:function(e,n,i){var r,o=i&&Pe(e),s=i&&Ge(e,t,i,"border-box"===g.css(e,"boxSizing",!1,o),o);return s&&(r=K.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=g.css(e,t)),qe(0,n,s)}}}),g.cssHooks.marginLeft=He(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(e,t){g.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+Z[i]+t]=o[i]||o[i-2]||o[0];return r}},Le.test(e)||(g.cssHooks[e+t].set=qe)}),g.fn.extend({css:function(e,t){return $(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=Pe(e),r=t.length;s<r;s++)o[t[s]]=g.css(e,t[s],!1,i);return o}return void 0!==n?g.style(e,t,n):g.css(e,t)},e,t,arguments.length>1)}}),g.Tween=Xe,(Xe.prototype={constructor:Xe,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||g.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(g.cssNumber[n]?"":"px")},cur:function(){var e=Xe.propHooks[this.prop];return e&&e.get?e.get(this):Xe.propHooks._default.get(this)},run:function(e){var t,n=Xe.propHooks[this.prop];return this.pos=t=this.options.duration?g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xe.propHooks._default.set(this),this}}).init.prototype=Xe.prototype,(Xe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[g.cssProps[e.prop]]&&!g.cssHooks[e.prop]?e.elem[e.prop]=e.now:g.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Xe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},g.fx=Xe.prototype.init,g.fx.step={};var Qe,Ke,Ze=/^(?:toggle|show|hide)$/,Je=/queueHooks$/;function et(){Ke&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(et):e.setTimeout(et,g.fx.interval),g.fx.tick())}function tt(){return e.setTimeout(function(){Qe=void 0}),Qe=g.now()}function nt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Z[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function it(e,t,n){for(var i,r=(rt.tweeners[t]||[]).concat(rt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function rt(e,t,n){var i,r,o=0,s=rt.prefilters.length,a=g.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Qe||tt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},n),originalProperties:t,originalOptions:n,startTime:Qe||tt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=g.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=g.camelCase(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=g.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<s;o++)if(i=rt.prefilters[o].call(c,e,u,c.opts))return g.isFunction(i.stop)&&(g._queueHooks(c.elem,c.opts.queue).stop=g.proxy(i.stop,i)),i;return g.map(u,it,c),g.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),g.fx.timer(g.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}g.Animation=g.extend(rt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,K.exec(t),n),n}]},tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,r=e.length;i<r;i++)(rt.tweeners[n=e[i]]=rt.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,c,u,h="width"in t||"height"in t,d=this,f={},p=e.style,m=e.nodeType&&J(e),v=z.get(e,"fxshow");for(i in n.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()})})),t)if(Ze.test(r=t[i])){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!v||void 0===v[i])continue;m=!0}f[i]=v&&v[i]||g.style(e,i)}if((l=!g.isEmptyObject(t))||!g.isEmptyObject(f))for(i in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=v&&v.display)&&(c=z.get(e,"display")),"none"===(u=g.css(e,"display"))&&(c?u=c:(re([e],!0),c=e.style.display||c,u=g.css(e,"display"),re([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===g.css(e,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(c="none"===(u=p.display)?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(v?"hidden"in v&&(m=v.hidden):v=z.access(e,"fxshow",{display:c}),o&&(v.hidden=!m),m&&re([e],!0),d.done(function(){for(i in m||re([e]),z.remove(e,"fxshow"),f)g.style(e,i,f[i])})),l=it(m?v[i]:0,i,d),i in v||(v[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?rt.prefilters.unshift(e):rt.prefilters.push(e)}}),g.speed=function(e,t,n){var i=e&&"object"==typeof e?g.extend({},e):{complete:n||!n&&t||g.isFunction(e)&&e,duration:e,easing:n&&t||t&&!g.isFunction(t)&&t};return g.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration=i.duration in g.fx.speeds?g.fx.speeds[i.duration]:g.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g.isFunction(i.old)&&i.old.call(this),i.queue&&g.dequeue(this,i.queue)},i},g.fn.extend({fadeTo:function(e,t,n,i){return this.filter(J).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=g.isEmptyObject(e),o=g.speed(t,n,i),s=function(){var t=rt(this,g.extend({},e),o);(r||z.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=g.timers,s=z.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&Je.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||g.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=z.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=g.timers,s=i?i.length:0;for(n.finish=!0,g.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),g.each(["toggle","show","hide"],function(e,t){var n=g.fn[t];g.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(nt(t,!0),e,i,r)}}),g.each({slideDown:nt("show"),slideUp:nt("hide"),slideToggle:nt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){g.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),g.timers=[],g.fx.tick=function(){var e,t=0,n=g.timers;for(Qe=g.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||g.fx.stop(),Qe=void 0},g.fx.timer=function(e){g.timers.push(e),g.fx.start()},g.fx.interval=13,g.fx.start=function(){Ke||(Ke=!0,et())},g.fx.stop=function(){Ke=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(t,n){return t=g.fx&&g.fx.speeds[t]||t,this.queue(n=n||"fx",function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var ot,st=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return $(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){g.removeAttr(this,e)})}}),g.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?g.prop(e,t,n):(1===o&&g.isXMLDoc(e)||(r=g.attrHooks[t.toLowerCase()]||(g.expr.match.bool.test(t)?ot:void 0)),void 0!==n?null===n?void g.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=g.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ot={set:function(e,t,n){return!1===t?g.removeAttr(e,n):e.setAttribute(n,n),n}},g.each(g.expr.match.bool.source.match(/\w+/g),function(e,t){var n=st[t]||g.find.attr;st[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=st[s],st[s]=r,r=null!=n(e,t,i)?s:null,st[s]=o),r}});var at=/^(?:input|select|textarea|button)$/i,lt=/^(?:a|area)$/i;function ct(e){return(e.match(j)||[]).join(" ")}function ut(e){return e.getAttribute&&e.getAttribute("class")||""}g.fn.extend({prop:function(e,t){return $(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[g.propFix[e]||e]})}}),g.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(e)||(r=g.propHooks[t=g.propFix[t]||t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):at.test(e.nodeName)||lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(g.propHooks.selected={get:function(e){return null},set:function(e){}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this}),g.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(g.isFunction(e))return this.each(function(t){g(this).addClass(e.call(this,t,ut(this)))});if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=ut(n),i=1===n.nodeType&&" "+ct(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=ct(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(g.isFunction(e))return this.each(function(t){g(this).removeClass(e.call(this,t,ut(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=ut(n),i=1===n.nodeType&&" "+ct(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=ct(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each(function(n){g(this).toggleClass(e.call(this,n,ut(this),t),t)}):this.each(function(){var t,i,r,o;if("string"===n)for(i=0,r=g(this),o=e.match(j)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=ut(this))&&z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ct(ut(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;g.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=g.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,g(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=g.map(r,function(e){return null==e?"":e+""})),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=g.valHooks[r.type]||g.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ht,""):null==n?"":n:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:ct(g.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=g(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=g.makeArray(t),s=r.length;s--;)((i=r[s]).selected=g.inArray(g.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=g.inArray(g(e).val(),t)>-1}},p.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var dt=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(t,n,r,o){var s,a,l,c,u,d,f,p=[r||i],m=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(a=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!dt.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[g.expando]?t:new g.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:g.makeArray(n,[t]),f=g.event.special[m]||{},o||!f.trigger||!1!==f.trigger.apply(r,n))){if(!o&&!f.noBubble&&!g.isWindow(r)){for(dt.test((c=f.delegateType||m)+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),l=a;l===(r.ownerDocument||i)&&p.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=p[s++])&&!t.isPropagationStopped();)t.type=s>1?c:f.bindType||m,(d=(z.get(a,"events")||{})[t.type]&&z.get(a,"handle"))&&d.apply(a,n),(d=u&&a[u])&&d.apply&&U(a)&&(t.result=d.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),n)||!U(r)||u&&g.isFunction(r[m])&&!g.isWindow(r)&&((l=r[u])&&(r[u]=null),g.event.triggered=m,r[m](),g.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(e,t,n){var i=g.extend(new g.Event,n,{type:e,isSimulated:!0});g.event.trigger(i,null,t)}}),g.fn.extend({trigger:function(e,t){return this.each(function(){g.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return g.event.trigger(e,t,n,!0)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){g.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),p.focusin="onfocusin"in e,p.focusin||g.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){g.event.simulate(t,e.target,g.event.fix(e))};g.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=z.access(i,t);r||i.addEventListener(e,n,!0),z.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=z.access(i,t)-1;r?z.access(i,t,r):(i.removeEventListener(e,n,!0),z.remove(i,t))}}});var ft=e.location,pt=g.now(),mt=/\?/;g.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+t),n};var gt=/\[\]$/,vt=/\r?\n/g,yt=/^(?:submit|button|image|reset|file)$/i,bt=/^(?:input|select|textarea|keygen)/i;function _t(e,t,n,i){var r;if(Array.isArray(t))g.each(t,function(t,r){n||gt.test(e)?i(e,r):_t(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==g.type(t))i(e,t);else for(r in t)_t(e+"["+r+"]",t[r],n,i)}g.param=function(e,t){var n,i=[],r=function(e,t){var n=g.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,function(){r(this.name,this.value)});else for(n in e)_t(n,e[n],t,r);return i.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&bt.test(this.nodeName)&&!yt.test(e)&&(this.checked||!oe.test(e))}).map(function(e,t){var n=g(this).val();return null==n?null:Array.isArray(n)?g.map(n,function(e){return{name:t.name,value:e.replace(vt,"\r\n")}}):{name:t.name,value:n.replace(vt,"\r\n")}}).get()}});var wt=/%20/g,xt=/#.*$/,Et=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ct=/^(?:GET|HEAD)$/,Tt=/^\/\//,Dt={},kt={},At="*/".concat("*"),Ot=i.createElement("a");function Mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(j)||[];if(g.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function It(e,t,n,i){var r={},o=e===kt;function s(a){var l;return r[a]=!0,g.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Nt(e,t){var n,i,r=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&g.extend(!0,e,i),e}Ot.href=ft.href,g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ft.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ft.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Nt(Nt(e,g.ajaxSettings),t):Nt(g.ajaxSettings,e)},ajaxPrefilter:Mt(Dt),ajaxTransport:Mt(kt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0);var r,o,s,a,l,c,u,h,d,f,p=g.ajaxSetup({},n=n||{}),m=p.context||p,v=p.context&&(m.nodeType||m.jquery)?g(m):g.event,y=g.Deferred(),b=g.Callbacks("once memory"),_=p.statusCode||{},w={},x={},E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=St.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),C(0,t),this}};if(y.promise(S),p.url=((t||p.url||ft.href)+"").replace(Tt,ft.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){c=i.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Ot.protocol+"//"+Ot.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=g.param(p.data,p.traditional)),It(Dt,p,n,S),u)return S;for(d in(h=g.event&&p.global)&&0==g.active++&&g.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ct.test(p.type),o=p.url.replace(xt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(wt,"+")):(f=p.url.slice(o.length),p.data&&(o+=(mt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Et,"$1"),f=(mt.test(o)?"&":"?")+"_="+pt+++f),p.url=o+f),p.ifModified&&(g.lastModified[o]&&S.setRequestHeader("If-Modified-Since",g.lastModified[o]),g.etag[o]&&S.setRequestHeader("If-None-Match",g.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+At+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(m,S,p)||u))return S.abort();if(E="abort",b.add(p.complete),S.done(p.success),S.fail(p.error),r=It(kt,p,n,S)){if(S.readyState=1,h&&v.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(l=e.setTimeout(function(){S.abort("timeout")},p.timeout));try{u=!1,r.send(w,C)}catch(e){if(u)throw e;C(-1,e)}}else C(-1,"No Transport");function C(t,n,i,a){var c,d,f,w,x,E=n;u||(u=!0,l&&e.clearTimeout(l),r=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(w=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,S,i)),w=function(e,t,n,i){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,w,S,c),c?(p.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(g.lastModified[o]=x),(x=S.getResponseHeader("etag"))&&(g.etag[o]=x)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=w.state,d=w.data,c=!(f=w.error))):(f=E,!t&&E||(E="error",t<0&&(t=0))),S.status=t,S.statusText=(n||E)+"",c?y.resolveWith(m,[d,E,S]):y.rejectWith(m,[S,E,f]),S.statusCode(_),_=void 0,h&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,p,c?d:f]),b.fireWith(m,[S,E]),h&&(v.trigger("ajaxComplete",[S,p]),--g.active||g.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return g.get(e,t,n,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],function(e,t){g[t]=function(e,n,i,r){return g.isFunction(n)&&(r=r||i,i=n,n=void 0),g.ajax(g.extend({url:e,type:t,dataType:r,data:n,success:i},g.isPlainObject(e)&&e))}}),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return this[0]&&(g.isFunction(e)&&(e=e.call(this[0])),t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g.isFunction(e)?this.each(function(t){g(this).wrapInner(e.call(this,t))}):this.each(function(){var t=g(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g.isFunction(e);return this.each(function(n){g(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(e){return!g.expr.pseudos.visible(e)},g.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Lt={0:200,1223:204},jt=g.ajaxSettings.xhr();p.cors=!!jt&&"withCredentials"in jt,p.ajax=jt=!!jt,g.ajaxTransport(function(t){var n,i;if(p.cors||jt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Lt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),g.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),g.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=g("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Pt,Yt=[],Ht=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||g.expando+"_"+pt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=!1!==t.jsonp&&(Ht.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=g.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ht,"$1"+r):!1!==t.jsonp&&(t.url+=(mt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||g.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?g(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Yt.push(r)),s&&g.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),p.createHTMLDocument=((Pt=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Pt.childNodes.length),g.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),o=D.exec(e),s=!n&&[],o?[t.createElement(o[1])]:(o=pe([e],t,s),s&&s.length&&g(s).remove(),g.merge([],o.childNodes)));var r,o,s},g.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=ct(e.slice(a)),e=e.slice(0,a)),g.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&g.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?g("<div>").append(g.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){g.fn[t]=function(e){return this.on(t,e)}}),g.expr.pseudos.animated=function(e){return g.grep(g.timers,function(t){return e===t.elem}).length},g.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=g.css(e,"position"),u=g(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=g.css(e,"top"),l=g.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),g.isFunction(t)&&(t=t.call(e,n,g.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):u.css(h)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){g.offset.setOffset(this,e,t)});var t,n,i,r,o=this[0];return o?o.getClientRects().length?{top:(i=o.getBoundingClientRect()).top+(r=(t=o.ownerDocument).defaultView).pageYOffset-(n=t.documentElement).clientTop,left:i.left+r.pageXOffset-n.clientLeft}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),T(e[0],"html")||(i=e.offset()),i={top:i.top+g.css(e[0],"borderTopWidth",!0),left:i.left+g.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-g.css(n,"marginTop",!0),left:t.left-i.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===g.css(e,"position");)e=e.offsetParent;return e||me})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;g.fn[e]=function(i){return $(this,function(e,i,r){var o;if(g.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),g.each(["top","left"],function(e,t){g.cssHooks[t]=He(p.pixelPosition,function(e,n){if(n)return n=Ye(e,t),je.test(n)?g(e).position()[t]+"px":n})}),g.each({Height:"height",Width:"width"},function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){g.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return $(this,function(t,n,r){var o;return g.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?g.css(t,n,a):g.style(t,n,r,a)},t,s?r:void 0,s)}})}),g.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),g.holdReady=function(e){e?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=T,"function"==typeof define&&define.amd&&define("jquery",[],function(){return g});var Rt=e.jQuery,Wt=e.$;return g.noConflict=function(t){return e.$===g&&(e.$=Wt),t&&e.jQuery===g&&(e.jQuery=Rt),g},t||(e.jQuery=e.$=g),g}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";for(var e="undefined"!=typeof window&&"undefined"!=typeof document,t=["Edge","Trident","Firefox"],n=0,i=0;i<t.length;i+=1)if(e&&navigator.userAgent.indexOf(t[i])>=0){n=1;break}var r=e&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},n))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:l(a(e))}var c=e&&!(!window.MSInputMethodContext||!document.documentMode),u=e&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?c:10===e?u:c||u}function d(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function p(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&d(s.firstElementChild)!==s?d(l):l;var c=f(e);return c.host?p(c.host,t):p(e,f(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[t]:e[t]}function g(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function v(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],h(10)?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function y(){var e=document.body,t=document.documentElement,n=h(10)&&getComputedStyle(t);return{height:v("Height",e,t,n),width:v("Width",e,t,n)}}var b=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),w=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function E(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var n=m(e,"top"),i=m(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?y():{},a=e.offsetWidth-(o.width||e.clientWidth||r.right-r.left),l=e.offsetHeight-(o.height||e.clientHeight||r.bottom-r.top);if(a||l){var c=s(e);a-=g(c,"x"),l-=g(c,"y"),r.width-=a,r.height-=l}return E(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(10),r="HTML"===t.nodeName,o=S(e),a=S(t),c=l(e),u=s(t),d=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=E({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!i&&r){var g=parseFloat(u.marginTop,10),v=parseFloat(u.marginLeft,10);p.top-=d-g,p.bottom-=d-g,p.left-=f-v,p.right-=f-v,p.marginTop=g,p.marginLeft=v}return(i&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=m(t,"top"),r=m(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}(p,t)),p}function T(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function D(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},c=r?T(e):p(e,t);if("viewport"===i)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=C(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:m(n),a=t?0:m(n,"left");return E({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o})}(c,r);else{var u=void 0;"scrollParent"===i?"BODY"===(u=l(a(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===i?e.ownerDocument.documentElement:i;var h=C(u,c,r);if("HTML"!==u.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===s(t,"position")||e(a(t)))}(c))o=h;else{var d=y(),f=d.height,g=d.width;o.top+=h.top-h.marginTop,o.bottom=f+h.top,o.left+=h.left-h.marginLeft,o.right=g+h.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function k(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=D(n,i,o,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map(function(e){return x({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function A(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return C(n,i?T(t):p(t,n),i)}function O(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function I(e,t,n){n=n.split("-")[0];var i=O(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=t[s]+t[l]/2-i[l]/2,r[a]=n===a?t[a]-i[c]:t[M(a)],r}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e.name===n});var i=N(e,function(e){return e.name===n});return e.indexOf(i)}(e,0,n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=n(t,e))}),t}function j(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function P(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if("undefined"!=typeof document.body.style[o])return o}return null}function Y(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function R(e,t){Object.keys(t).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&H(t[n])&&(i="px"),e.style[n]=t[n]+i})}function W(e,t,n){var i=N(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`";console.warn("`"+n+"` modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var F=["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"],$=F.slice(3);function U(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$.indexOf(e),i=$.slice(n+1).concat($.slice(0,n));return t?i.reverse():i}var B={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:w({},l,o[l]),end:w({},l,o[l]+o[c]-s[c])};e.offsets.popper=x({},s,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,r=e.offsets,o=r.popper,s=r.reference,a=e.placement.split("-")[0];return n=H(+i)?[+i,0]:function(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(N(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(e,i){var r=(1===i?!o:o)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return E(a)[t]/100*o}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,i){H(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))})}),r}(i,o,s,a),"left"===a?(o.top+=n[0],o.left-=n[1]):"right"===a?(o.top+=n[0],o.left+=n[1]):"top"===a?(o.left+=n[0],o.top-=n[1]):"bottom"===a&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var i=P("transform"),r=e.instance.popper.style,o=r.top,s=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=D(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=s,r[i]=a,t.boundaries=l;var c=e.offsets.popper,u={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),w({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),w({},n,i)}};return t.priority.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=x({},c,u[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!W(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",h=c?"Top":"Left",d=h.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=O(i)[u];l[p]-m<a[d]&&(e.offsets.popper[d]-=a[d]-(l[p]-m)),l[d]+m>a[p]&&(e.offsets.popper[d]+=l[d]+m-a[p]),e.offsets.popper=E(e.offsets.popper);var g=l[d]+l[u]/2-m/2,v=s(e.instance.popper),y=parseFloat(v["margin"+h],10),b=parseFloat(v["border"+h+"Width"],10),_=g-e.offsets.popper[d]-y-b;return _=Math.max(Math.min(a[u]-m,_),0),e.arrowElement=i,e.offsets.arrow=(w(n={},d,Math.round(_)),w(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=D(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=M(i),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[i,r];break;case"clockwise":s=U(i);break;case"counterclockwise":s=U(i,!0);break;default:s=t.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return e;i=e.placement.split("-")[0],r=M(i);var c=e.offsets.popper,u=e.offsets.reference,h=Math.floor,d="left"===i&&h(c.right)>h(u.left)||"right"===i&&h(c.left)<h(u.right)||"top"===i&&h(c.bottom)>h(u.top)||"bottom"===i&&h(c.top)<h(u.bottom),f=h(c.left)<h(n.left),p=h(c.right)>h(n.right),m=h(c.top)<h(n.top),g=h(c.bottom)>h(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g);(d||v||b)&&(e.flipped=!0,(d||v)&&(i=s[l+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=x({},e.offsets.popper,I(e.instance.popper,e.offsets.reference,e.placement)),e=L(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=M(t),e.offsets.popper=E(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!W(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=N(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,l=void 0!==o?o:t.gpuAcceleration,c=S(d(e.instance.popper)),u={position:r.position},h={left:Math.floor(r.left),top:Math.round(r.top),bottom:Math.round(r.bottom),right:Math.floor(r.right)},f="bottom"===n?"top":"bottom",p="right"===i?"left":"right",m=P("transform");if(a="bottom"===f?-c.height+h.bottom:h.top,s="right"===p?-c.width+h.right:h.left,l&&m)u[m]="translate3d("+s+"px, "+a+"px, 0)",u[f]=0,u[p]=0,u.willChange="transform";else{var g="right"===p?-1:1;u[f]=a*("bottom"===f?-1:1),u[p]=s*g,u.willChange=f+", "+p}return e.attributes=x({},{"x-placement":e.placement},e.attributes),e.styles=x({},u,e.styles),e.arrowStyles=x({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return R(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&R(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=A(r,t,e,n.positionFixed),s=k(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),R(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},z=function(){function e(t,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=x({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,s.modifiers)).forEach(function(t){i.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return x({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return _(e,[{key:"update",value:function(){return(function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=I(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}).call(this)}},{key:"destroy",value:function(){return(function(){return this.state.isDestroyed=!0,j(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[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}).call(this)}},{key:"enableEventListeners",value:function(){return(function(){this.state.eventsEnabled||(this.state=function(e,t,n,i){n.updateBound=i,Y(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,i,r){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(n,i,{passive:!0}),o||e(l(s.parentNode),n,i,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}(this.reference,0,this.state,this.scheduleUpdate))}).call(this)}},{key:"disableEventListeners",value:function(){return(function(){var e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.state,Y(this.reference).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}).call(this)}}]),e}();return z.Utils=("undefined"!=typeof window?window:global).PopperUtils,z.placements=F,z.Defaults=B,z}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js"],t):t(e.jQuery,e.Popper)}(this,function(e,t){"use strict";function n(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(){return(r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s=Math.max;e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var a=function(e){function t(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}var n=!1,i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(t){var n=t.getAttribute("data-target");n&&"#"!==n||(n=t.getAttribute("href")||""),"#"===n.charAt(0)&&(n=function(t){return"function"==typeof e.escapeSelector?e.escapeSelector(t).substr(1):t.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}(n));try{return 0<e(document).find(n).length?n:null}catch(e){return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(n.end)},supportsTransitionEnd:function(){return!!n},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,n,r){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var s=r[o],a=n[o],l=a&&i.isElement(a)?"element":t(a);if(!new RegExp(s).test(l))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+l+'" but expected type "'+s+'".')}}};return n=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},e.fn.emulateTransitionEnd=function(t){var n=this,r=!1;return e(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(n)},t),this},i.supportsTransitionEnd()&&(e.event.special[i.TRANSITION_END]={bindType:n.end,delegateType:n.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}}),i}(e),l=(function(e){var t="alert",n="bs.alert",r="."+n,o=e.fn[t],s={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+".data-api"},l=function(){function t(e){this._element=e}var r=t.prototype;return r.close=function(e){var t=this._getRootElement(e=e||this._element);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){e.removeData(this._element,n),this._element=null},r._getRootElement=function(t){var n=a.getSelectorFromElement(t),i=!1;return n&&(i=e(n)[0]),i||(i=e(t).closest(".alert")[0]),i},r._triggerCloseEvent=function(t){var n=e.Event(s.CLOSE);return e(t).trigger(n),n},r._removeElement=function(t){var n=this;return e(t).removeClass("show"),a.supportsTransitionEnd()&&e(t).hasClass("fade")?void e(t).one(a.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(150):void this._destroyElement(t)},r._destroyElement=function(t){e(t).detach().trigger(s.CLOSED).remove()},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(this),r.data(n,o)),"close"===i&&o[i](this)})},t._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}();e(document).on(s.CLICK_DATA_API,'[data-dismiss="alert"]',l._handleDismiss(new l)),e.fn[t]=l._jQueryInterface,e.fn[t].Constructor=l,e.fn[t].noConflict=function(){return e.fn[t]=o,l._jQueryInterface}}(e),function(e){var t="button",n="bs.button",r="."+n,o=".data-api",s=e.fn[t],a={CLICK_DATA_API:"click"+r+o,FOCUS_BLUR_DATA_API:"focus"+r+o+" blur"+r+o},l=function(){function t(e){this._element=e}var r=t.prototype;return r.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var r=e(this._element).find("input")[0];if(r){if("radio"===r.type)if(r.checked&&e(this._element).hasClass("active"))t=!1;else{var o=e(i).find(".active")[0];o&&e(o).removeClass("active")}if(t){if(r.hasAttribute("disabled")||i.hasAttribute("disabled")||r.classList.contains("disabled")||i.classList.contains("disabled"))return;r.checked=!e(this._element).hasClass("active"),e(r).trigger("change")}r.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!e(this._element).hasClass("active")),t&&e(this._element).toggleClass("active")},r.dispose=function(){e.removeData(this._element,n),this._element=null},t._jQueryInterface=function(i){return this.each(function(){var r=e(this).data(n);r||(r=new t(this),e(this).data(n,r)),"toggle"===i&&r[i]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}();e(document).on(a.CLICK_DATA_API,'[data-toggle^="button"]',function(t){t.preventDefault();var n=t.target;e(n).hasClass("btn")||(n=e(n).closest(".btn")),l._jQueryInterface.call(e(n),"toggle")}).on(a.FOCUS_BLUR_DATA_API,'[data-toggle^="button"]',function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))}),e.fn[t]=l._jQueryInterface,e.fn[t].Constructor=l,e.fn[t].noConflict=function(){return e.fn[t]=s,l._jQueryInterface}}(e),function(e){var t="carousel",n="bs.carousel",o="."+n,s=".data-api",l=e.fn[t],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},u={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},h={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load"+o+s,CLICK_DATA_API:"click"+o+s},d={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"]'},f=function(){function s(t,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=e(t)[0],this._indicatorsElement=e(this._element).find(d.INDICATORS)[0],this._addEventListeners()}var l=s.prototype;return l.next=function(){this._isSliding||this._slide("next")},l.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},l.prev=function(){this._isSliding||this._slide("prev")},l.pause=function(t){t||(this._isPaused=!0),e(this._element).find(d.NEXT_PREV)[0]&&a.supportsTransitionEnd()&&(a.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.to=function(t){var n=this;this._activeElement=e(this._element).find(d.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||0>t)){if(this._isSliding)return void e(this._element).one(h.SLID,function(){return n.to(t)});if(i===t)return this.pause(),void this.cycle();this._slide(t>i?"next":"prev",this._items[t])}},l.dispose=function(){e(this._element).off(o),e.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l._getConfig=function(e){return e=r({},c,e),a.typeCheckConfig(t,e,u),e},l._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(h.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(e(this._element).on(h.MOUSEENTER,function(e){return t.pause(e)}).on(h.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&e(this._element).on(h.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},l._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},l._getItemIndex=function(t){return this._items=e.makeArray(e(t).parent().find(d.ITEM)),this._items.indexOf(t)},l._getItemByDirection=function(e,t){var n="next"===e,i="prev"===e,r=this._getItemIndex(t);if((i&&0===r||n&&r===this._items.length-1)&&!this._config.wrap)return t;var o=(r+("prev"===e?-1:1))%this._items.length;return-1==o?this._items[this._items.length-1]:this._items[o]},l._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),r=this._getItemIndex(e(this._element).find(d.ACTIVE_ITEM)[0]),o=e.Event(h.SLIDE,{relatedTarget:t,direction:n,from:r,to:i});return e(this._element).trigger(o),o},l._setActiveIndicatorElement=function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(d.ACTIVE).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass("active")}},l._slide=function(t,n){var i,r,o,s=this,l=e(this._element).find(d.ACTIVE_ITEM)[0],c=this._getItemIndex(l),u=n||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),p=!!this._interval;if("next"===t?(i="carousel-item-left",r="carousel-item-next",o="left"):(i="carousel-item-right",r="carousel-item-prev",o="right"),u&&e(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&l&&u){this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(u);var m=e.Event(h.SLID,{relatedTarget:u,direction:o,from:c,to:f});a.supportsTransitionEnd()&&e(this._element).hasClass("slide")?(e(u).addClass(r),a.reflow(u),e(l).addClass(i),e(u).addClass(i),e(l).one(a.TRANSITION_END,function(){e(u).removeClass(i+" "+r).addClass("active"),e(l).removeClass("active "+r+" "+i),s._isSliding=!1,setTimeout(function(){return e(s._element).trigger(m)},0)}).emulateTransitionEnd(600)):(e(l).removeClass("active"),e(u).addClass("active"),this._isSliding=!1,e(this._element).trigger(m)),p&&this.cycle()}},s._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n),o=r({},c,e(this).data());"object"==typeof t&&(o=r({},o,t));var a="string"==typeof t?t:o.slide;if(i||(i=new s(this,o),e(this).data(n,i)),"number"==typeof t)i.to(t);else if("string"==typeof a){if("undefined"==typeof i[a])throw new TypeError('No method named "'+a+'"');i[a]()}else o.interval&&(i.pause(),i.cycle())})},s._dataApiClickHandler=function(t){var i=a.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var l=r({},e(o).data(),e(this).data()),c=this.getAttribute("data-slide-to");c&&(l.interval=!1),s._jQueryInterface.call(e(o),l),c&&e(o).data(n).to(c),t.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return c}}]),s}();e(document).on(h.CLICK_DATA_API,d.DATA_SLIDE,f._dataApiClickHandler),e(window).on(h.LOAD_DATA_API,function(){e(d.DATA_RIDE).each(function(){var t=e(this);f._jQueryInterface.call(t,t.data())})}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=l,f._jQueryInterface}}(e),function(e){var t="collapse",n="bs.collapse",o="."+n,s=e.fn[t],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},u={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},h={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},d=function(){function o(t,n){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=e(h.DATA_TOGGLE),r=0;r<i.length;r++){var o=i[r],s=a.getSelectorFromElement(o);null!==s&&0<e(s).filter(t).length&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=o.prototype;return s.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},s.show=function(){var t,i,r=this;if(!(this._isTransitioning||e(this._element).hasClass("show")||(this._parent&&0===(t=e.makeArray(e(this._parent).find(h.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(t=null),t&&(i=e(t).not(this._selector).data(n),i&&i._isTransitioning)))){var s=e.Event(u.SHOW);if(e(this._element).trigger(s),!s.isDefaultPrevented()){t&&(o._jQueryInterface.call(e(t).not(this._selector),"hide"),!i&&e(t).data(n,null));var l=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[l]=0,0<this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){e(r._element).removeClass("collapsing").addClass("collapse").addClass("show"),r._element.style[l]="",r.setTransitioning(!1),e(r._element).trigger(u.SHOWN)};if(!a.supportsTransitionEnd())return void c();var d=l[0].toUpperCase()+l.slice(1);e(this._element).one(a.TRANSITION_END,c).emulateTransitionEnd(600),this._element.style[l]=this._element["scroll"+d]+"px"}}},s.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event(u.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",a.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse").removeClass("show"),0<this._triggerArray.length)for(var r=0;r<this._triggerArray.length;r++){var o=this._triggerArray[r],s=a.getSelectorFromElement(o);null!==s&&(e(s).hasClass("show")||e(o).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),e(t._element).removeClass("collapsing").addClass("collapse").trigger(u.HIDDEN)};return this._element.style[i]="",a.supportsTransitionEnd()?void e(this._element).one(a.TRANSITION_END,l).emulateTransitionEnd(600):void l()}}},s.setTransitioning=function(e){this._isTransitioning=e},s.dispose=function(){e.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(e){return(e=r({},l,e)).toggle=!!e.toggle,a.typeCheckConfig(t,e,c),e},s._getDimension=function(){return e(this._element).hasClass("width")?"width":"height"},s._getParent=function(){var t=this,n=null;a.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=e(this._config.parent)[0];var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(i).each(function(e,n){t._addAriaAndCollapsedClass(o._getTargetFromElement(n),[n])}),n},s._addAriaAndCollapsedClass=function(t,n){if(t){var i=e(t).hasClass("show");0<n.length&&e(n).toggleClass("collapsed",!i).attr("aria-expanded",i)}},o._getTargetFromElement=function(t){var n=a.getSelectorFromElement(t);return n?e(n)[0]:null},o._jQueryInterface=function(t){return this.each(function(){var i=e(this),s=i.data(n),a=r({},l,i.data(),"object"==typeof t&&t);if(!s&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),s||(s=new o(this,a),i.data(n,s)),"string"==typeof t){if("undefined"==typeof s[t])throw new TypeError('No method named "'+t+'"');s[t]()}})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}}]),o}();e(document).on(u.CLICK_DATA_API,h.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=e(this),r=a.getSelectorFromElement(this);e(r).each(function(){var t=e(this),r=t.data(n)?"toggle":i.data();d._jQueryInterface.call(t,r)})}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface}}(e),function(e){var t="modal",n="bs.modal",o="."+n,s=e.fn[t],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,FOCUSIN:"focusin"+o,RESIZE:"resize"+o,CLICK_DISMISS:"click.dismiss"+o,KEYDOWN_DISMISS:"keydown.dismiss"+o,MOUSEUP_DISMISS:"mouseup.dismiss"+o,MOUSEDOWN_DISMISS:"mousedown.dismiss"+o,CLICK_DATA_API:"click"+o+".data-api"},h={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",NAVBAR_TOGGLER:".navbar-toggler"},d=function(){function s(t,n){this._config=this._getConfig(n),this._element=t,this._dialog=e(t).find(h.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var d=s.prototype;return d.toggle=function(e){return this._isShown?this.hide():this.show(e)},d.show=function(t){var n=this;if(!this._isTransitioning&&!this._isShown){a.supportsTransitionEnd()&&e(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=e.Event(u.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),e(document.body).addClass("modal-open"),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(u.CLICK_DISMISS,h.DATA_DISMISS,function(e){return n.hide(e)}),e(this._dialog).on(u.MOUSEDOWN_DISMISS,function(){e(n._element).one(u.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))}},d.hide=function(t){var n=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=e.Event(u.HIDE);if(e(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=a.supportsTransitionEnd()&&e(this._element).hasClass("fade");r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(u.FOCUSIN),e(this._element).removeClass("show"),e(this._element).off(u.CLICK_DISMISS),e(this._dialog).off(u.MOUSEDOWN_DISMISS),r?e(this._element).one(a.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(300):this._hideModal()}}},d.dispose=function(){e.removeData(this._element,n),e(window,document,this._element,this._backdrop).off(o),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},d.handleUpdate=function(){this._adjustDialog()},d._getConfig=function(e){return e=r({},l,e),a.typeCheckConfig(t,e,c),e},d._showElement=function(t){var n=this,i=a.supportsTransitionEnd()&&e(this._element).hasClass("fade");this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&a.reflow(this._element),e(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var r=e.Event(u.SHOWN,{relatedTarget:t}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(r)};i?e(this._dialog).one(a.TRANSITION_END,o).emulateTransitionEnd(300):o()},d._enforceFocus=function(){var t=this;e(document).off(u.FOCUSIN).on(u.FOCUSIN,function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()})},d._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(u.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):!this._isShown&&e(this._element).off(u.KEYDOWN_DISMISS)},d._setResizeEvent=function(){var t=this;this._isShown?e(window).on(u.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(u.RESIZE)},d._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(u.HIDDEN)})},d._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},d._showBackdrop=function(t){var n=this,i=e(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){var r=a.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&e(this._backdrop).addClass(i),e(this._backdrop).appendTo(document.body),e(this._element).on(u.CLICK_DISMISS,function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target!==e.currentTarget||("static"===n._config.backdrop?n._element.focus():n.hide()))}),r&&a.reflow(this._backdrop),e(this._backdrop).addClass("show"),!t)return;if(!r)return void t();e(this._backdrop).one(a.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass("show");var o=function(){n._removeBackdrop(),t&&t()};a.supportsTransitionEnd()&&e(this._element).hasClass("fade")?e(this._backdrop).one(a.TRANSITION_END,o).emulateTransitionEnd(150):o()}else t&&t()},d._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},d._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},d._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},d._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){e(h.FIXED_CONTENT).each(function(n,i){var r=e(i)[0].style.paddingRight,o=e(i).css("padding-right");e(i).data("padding-right",r).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),e(h.STICKY_CONTENT).each(function(n,i){var r=e(i)[0].style.marginRight,o=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}),e(h.NAVBAR_TOGGLER).each(function(n,i){var r=e(i)[0].style.marginRight,o=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(o)+t._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=e("body").css("padding-right");e("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},d._resetScrollbar=function(){e(h.FIXED_CONTENT).each(function(t,n){var i=e(n).data("padding-right");"undefined"!=typeof i&&e(n).css("padding-right",i).removeData("padding-right")}),e(h.STICKY_CONTENT+", "+h.NAVBAR_TOGGLER).each(function(t,n){var i=e(n).data("margin-right");"undefined"!=typeof i&&e(n).css("margin-right",i).removeData("margin-right")});var t=e("body").data("padding-right");"undefined"!=typeof t&&e("body").css("padding-right",t).removeData("padding-right")},d._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},s._jQueryInterface=function(t,i){return this.each(function(){var o=e(this).data(n),a=r({},s.Default,e(this).data(),"object"==typeof t&&t);if(o||(o=new s(this,a),e(this).data(n,o)),"string"==typeof t){if("undefined"==typeof o[t])throw new TypeError('No method named "'+t+'"');o[t](i)}else a.show&&o.show(i)})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}}]),s}();e(document).on(u.CLICK_DATA_API,h.DATA_TOGGLE,function(t){var i,o=this,s=a.getSelectorFromElement(this);s&&(i=e(s)[0]);var l=e(i).data(n)?"toggle":r({},e(i).data(),e(this).data());("A"===this.tagName||"AREA"===this.tagName)&&t.preventDefault();var c=e(i).one(u.SHOW,function(t){t.isDefaultPrevented()||c.one(u.HIDDEN,function(){e(o).is(":visible")&&o.focus()})});d._jQueryInterface.call(e(i),l,this)}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface}}(e),function(e){var n="tooltip",o="bs.tooltip",s="."+o,l=e.fn[n],c=/(^|\s)bs-tooltip\S+/g,u={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)"},h={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"},f={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},p=function(){function l(e,n){if("undefined"==typeof t)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=e,this.config=this._getConfig(n),this.tip=null,this._setListeners()}var p=l.prototype;return p.enable=function(){this._isEnabled=!0},p.disable=function(){this._isEnabled=!1},p.toggleEnabled=function(){this._isEnabled=!this._isEnabled},p.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},p.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},p.show=function(){var n=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!r)return;var o=this.getTipElement(),s=a.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(o).addClass("fade");var c="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,u=this._getAttachment(c);this.addAttachmentClass(u);var h=!1===this.config.container?document.body:e(this.config.container);e(o).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(o).appendTo(h),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new t(this.element,o,{placement:u,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&n._handlePopperPlacementChange(e)},onUpdate:function(e){n._handlePopperPlacementChange(e)}}),e(o).addClass("show"),"ontouchstart"in document.documentElement&&e("body").children().on("mouseover",null,e.noop);var d=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null,e(n.element).trigger(n.constructor.Event.SHOWN),"out"===t&&n._leave(null,n)};a.supportsTransitionEnd()&&e(this.tip).hasClass("fade")?e(this.tip).one(a.TRANSITION_END,d).emulateTransitionEnd(l._TRANSITION_DURATION):d()}},p.hide=function(t){var n=this,i=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),o=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};e(this.element).trigger(r),r.isDefaultPrevented()||(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,a.supportsTransitionEnd()&&e(this.tip).hasClass("fade")?e(i).one(a.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},p.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},p.isWithContent=function(){return!!this.getTitle()},p.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},p.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},p.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".tooltip-inner"),this.getTitle()),t.removeClass("fade show")},p.setElementContent=function(t,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?!e(n).parent().is(t)&&t.empty().append(n):t.text(e(n).text()):t[i?"html":"text"](n)},p.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},p._getAttachment=function(e){return h[e.toUpperCase()]},p._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(r,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},p._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!=e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},p._enter=function(t,n){var i=this.constructor.DATA_KEY;return(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?void(n._hoverState="show"):(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){"show"===n._hoverState&&n.show()},n.config.delay.show)):void n.show())},p._leave=function(t,n){var i=this.constructor.DATA_KEY;if((n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){"out"===n._hoverState&&n.hide()},n.config.delay.hide)):void n.hide()},p._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},p._getConfig=function(t){return"number"==typeof(t=r({},this.constructor.Default,e(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),a.typeCheckConfig(n,t,this.constructor.DefaultType),t},p._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},p._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(c);null!==n&&0<n.length&&t.removeClass(n.join(""))},p._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},p._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null!==t.getAttribute("x-placement")||(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},l._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(o);if((n||!/dispose|hide/.test(t))&&(n||(n=new l(this,"object"==typeof t&&t),e(this).data(o,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},i(l,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return o}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return u}}]),l}();return e.fn[n]=p._jQueryInterface,e.fn[n].Constructor=p,e.fn[n].noConflict=function(){return e.fn[n]=l,p._jQueryInterface},p}(e)),c=(function(e){var t="popover",n="bs.popover",s="."+n,a=e.fn[t],c=/(^|\s)bs-popover\S+/g,u=r({},l.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>'}),h=r({},l.DefaultType,{content:"(string|element|function)"}),d={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},f=function(r){function a(){return r.apply(this,arguments)||this}o(a,r);var l=a.prototype;return l.isWithContent=function(){return this.getTitle()||this._getContent()},l.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},l.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},l.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},l._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},l._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(c);null!==n&&0<n.length&&t.removeClass(n.join(""))},a._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n),r="object"==typeof t?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new a(this,r),e(this).data(n,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},i(a,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return h}}]),a}(l);e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=a,f._jQueryInterface}}(e),function(e){var t="scrollspy",n="bs.scrollspy",o="."+n,l=e.fn[t],c={offset:10,method:"auto",target:""},u={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+o,SCROLL:"scroll"+o,LOAD_DATA_API:"load"+o+".data-api"},d={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"},f=function(){function l(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+d.NAV_LINKS+","+this._config.target+" "+d.LIST_ITEMS+","+this._config.target+" "+d.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(h.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}var f=l.prototype;return f.refresh=function(){var t=this,n="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":"position":this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var r,o=a.getSelectorFromElement(t);if(o&&(r=e(o)[0]),r){var s=r.getBoundingClientRect();if(s.width||s.height)return[e(r)[n]().top+i,o]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},f.dispose=function(){e.removeData(this._element,n),e(this._scrollElement).off(o),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},f._getConfig=function(n){if("string"!=typeof(n=r({},c,n)).target){var i=e(n.target).attr("id");i||(i=a.getUID(t),e(n.target).attr("id",i)),n.target="#"+i}return a.typeCheckConfig(t,n,u),n},f._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},f._getScrollHeight=function(){return this._scrollElement.scrollHeight||s(document.body.scrollHeight,document.documentElement.scrollHeight)},f._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},f._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},f._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=e(n.join(","));i.hasClass("dropdown-item")?(i.closest(d.DROPDOWN).find(d.DROPDOWN_TOGGLE).addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(d.NAV_LIST_GROUP).prev(d.NAV_LINKS+", "+d.LIST_ITEMS).addClass("active"),i.parents(d.NAV_LIST_GROUP).prev(d.NAV_ITEMS).children(d.NAV_LINKS).addClass("active")),e(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:t})},f._clear=function(){e(this._selector).filter(d.ACTIVE).removeClass("active")},l._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n);if(i||(i=new l(this,"object"==typeof t&&t),e(this).data(n,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},i(l,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return c}}]),l}();e(window).on(h.LOAD_DATA_API,function(){for(var t,n=e.makeArray(e(d.DATA_SPY)),i=n.length;i--;)t=e(n[i]),f._jQueryInterface.call(t,t.data())}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=l,f._jQueryInterface}}(e),function(e){var t="tab",n="bs.tab",r="."+n,o=e.fn[t],s={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK_DATA_API:"click"+r+".data-api"},l=function(){function t(e){this._element=e}var r=t.prototype;return r.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass("active")||e(this._element).hasClass("disabled"))){var n,i,r=e(this._element).closest(".nav, .list-group")[0],o=a.getSelectorFromElement(this._element);if(r){var l="UL"===r.nodeName?"> li > .active":".active";i=(i=e.makeArray(e(r).find(l)))[i.length-1]}var c=e.Event(s.HIDE,{relatedTarget:this._element}),u=e.Event(s.SHOW,{relatedTarget:i});if(i&&e(i).trigger(c),e(this._element).trigger(u),!u.isDefaultPrevented()&&!c.isDefaultPrevented()){o&&(n=e(o)[0]),this._activate(this._element,r);var h=function(){var n=e.Event(s.HIDDEN,{relatedTarget:t._element}),r=e.Event(s.SHOWN,{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(r)};n?this._activate(n,n.parentNode,h):h()}}},r.dispose=function(){e.removeData(this._element,n),this._element=null},r._activate=function(t,n,i){var r=this,o=("UL"===n.nodeName?e(n).find("> li > .active"):e(n).children(".active"))[0],s=i&&a.supportsTransitionEnd()&&o&&e(o).hasClass("fade"),l=function(){return r._transitionComplete(t,o,i)};o&&s?e(o).one(a.TRANSITION_END,l).emulateTransitionEnd(150):l()},r._transitionComplete=function(t,n,i){if(n){e(n).removeClass("show active");var r=e(n.parentNode).find("> .dropdown-menu .active")[0];r&&e(r).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),a.reflow(t),e(t).addClass("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var o=e(t).closest(".dropdown")[0];o&&e(o).find(".dropdown-toggle").addClass("active"),t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),o=r.data(n);if(o||(o=new t(this),r.data(n,o)),"string"==typeof i){if("undefined"==typeof o[i])throw new TypeError('No method named "'+i+'"');o[i]()}})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}();e(document).on(s.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),l._jQueryInterface.call(e(this),"show")}),e.fn[t]=l._jQueryInterface,e.fn[t].Constructor=l,e.fn[t].noConflict=function(){return e.fn[t]=o,l._jQueryInterface}}(e),function(){var e=!1,t="",n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};return function(){for(var i in e=function(){if(window.QUnit)return!1;var e=document.createElement("bmd");for(var t in n)if(void 0!==e.style[t])return n[t];return!1}(),n)t+=" "+n[i]}(),{transitionEndSupported:function(){return e},transitionEndSelector:function(){return t},isChar:function(e){return!("undefined"!=typeof e.which)||"number"==typeof e.which&&0<e.which&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which},assert:function(e,t,n){if(t)throw void 0===!e&&e.css("border","1px solid red"),console.error(n,e),n},describe:function(e){return void 0===e?"undefined":0===e.length?"(no matching elements)":e[0].outerHTML.split(">")[0]+">"}}}(jQuery)),u=function(e){var t={};return function(){function n(n,i,r){for(var o in void 0===r&&(r={}),this.$element=n,this.config=e.extend(!0,{},t,i),r)this[o]=r[o]}var i=n.prototype;return i.dispose=function(e){this.$element.data(e,null),this.$element=null,this.config=null},i.addFormGroupFocus=function(){this.$element.prop("disabled")||this.$bmdFormGroup.addClass("is-focused")},i.removeFormGroupFocus=function(){this.$bmdFormGroup.removeClass("is-focused")},i.removeIsFilled=function(){this.$bmdFormGroup.removeClass("is-filled")},i.addIsFilled=function(){this.$bmdFormGroup.addClass("is-filled")},i.findMdbFormGroup=function(t){void 0===t&&(t=!0);var n=this.$element.closest(".bmd-form-group");return 0===n.length&&t&&e.error("Failed to find .bmd-form-group for "+c.describe(this.$element)),n},n}()}(jQuery),h=function(e){var t=".form-group",n="label[class^='bmd-label'], label[class*=' bmd-label']",i={validate:!1,formGroup:{required:!1},bmdFormGroup:{template:"<span class='bmd-form-group'></span>",create:!0,required:!0},label:{required:!1,selectors:[".form-control-label","> label"],className:"bmd-label-static"},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:!0},r={"form-control-lg":"bmd-form-group-lg","form-control-sm":"bmd-form-group-sm"};return function(s){function a(t,n,r){var o;return void 0===r&&(r={}),(o=s.call(this,t,e.extend(!0,{},i,n),r)||this)._rejectInvalidComponentMatches(),o.rejectWithoutRequiredStructure(),o._rejectWithoutRequiredClasses(),o.$formGroup=o.findFormGroup(o.config.formGroup.required),o.$bmdFormGroup=o.resolveMdbFormGroup(),o.$bmdLabel=o.resolveMdbLabel(),o.resolveMdbFormGroupSizing(),o.addFocusListener(),o.addChangeListener(),""!=o.$element.val()&&o.addIsFilled(),o}o(a,s);var l=a.prototype;return l.dispose=function(e){s.prototype.dispose.call(this,e),this.$bmdFormGroup=null,this.$formGroup=null},l.rejectWithoutRequiredStructure=function(){},l.addFocusListener=function(){var e=this;this.$element.on("focus",function(){e.addFormGroupFocus()}).on("blur",function(){e.removeFormGroupFocus()})},l.addChangeListener=function(){var e=this;this.$element.on("keydown paste",function(t){c.isChar(t)&&e.addIsFilled()}).on("keyup change",function(){e.isEmpty()?e.removeIsFilled():e.addIsFilled(),e.config.validate&&("undefined"==typeof e.$element[0].checkValidity||e.$element[0].checkValidity()?e.removeHasDanger():e.addHasDanger())})},l.addHasDanger=function(){this.$bmdFormGroup.addClass("has-danger")},l.removeHasDanger=function(){this.$bmdFormGroup.removeClass("has-danger")},l.isEmpty=function(){return null===this.$element.val()||void 0===this.$element.val()||""===this.$element.val()},l.resolveMdbFormGroup=function(){var e=this.findMdbFormGroup(!1);return(void 0===e||0===e.length)&&(!this.config.bmdFormGroup.create||void 0!==this.$formGroup&&0!==this.$formGroup.length?this.$formGroup.addClass("bmd-form-group"):this.outerElement().parent().hasClass("input-group")?this.outerElement().parent().wrap(this.config.bmdFormGroup.template):this.outerElement().wrap(this.config.bmdFormGroup.template),e=this.findMdbFormGroup(this.config.bmdFormGroup.required)),e},l.outerElement=function(){return this.$element},l.resolveMdbLabel=function(){var e=this.$bmdFormGroup.find(n);return(void 0===e||0===e.length)&&(void 0===(e=this.findMdbLabel(this.config.label.required))||0===e.length||e.addClass(this.config.label.className)),e},l.findMdbLabel=function(t){void 0===t&&(t=!0);var i=null,r=this.config.label.selectors,o=Array.isArray(r),s=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}var l=a;if(void 0!==(i=e.isFunction(l)?l(this):this.$bmdFormGroup.find(l))&&0<i.length)break}return 0===i.length&&t&&e.error("Failed to find "+n+" within form-group for "+c.describe(this.$element)),i},l.findFormGroup=function(n){void 0===n&&(n=!0);var i=this.$element.closest(t);return 0===i.length&&n&&e.error("Failed to find "+t+" for "+c.describe(this.$element)),i},l.resolveMdbFormGroupSizing=function(){if(this.config.convertInputSizeVariations)for(var e in r)this.$element.hasClass(e)&&this.$bmdFormGroup.addClass(r[e])},l._rejectInvalidComponentMatches=function(){var e=this.config.invalidComponentMatches,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}i.rejectMatch(this.constructor.name,this.$element)}},l._rejectWithoutRequiredClasses=function(){var e=this.config.requiredClasses,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var r=i;if(-1!==r.indexOf("||")){var o=r.split("||"),s=Array.isArray(o),a=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(a>=o.length)break;l=o[a++]}else{if((a=o.next()).done)break;l=a.value}if(this.$element.hasClass(l))break}}else this.$element.hasClass(r)}},a}(u)}(jQuery),d=function(e){var t={label:{required:!1}};return function(n){function i(i,r,o){var s;return(s=n.call(this,i,e.extend(!0,{},t,r),o)||this).decorateMarkup(),s}o(i,n);var r=i.prototype;return r.decorateMarkup=function(){var t=e(this.config.template);this.$element.after(t),!1!==this.config.ripples&&t.bmdRipples()},r.outerElement=function(){return this.$element.parent().closest("."+this.outerClass)},r.rejectWithoutRequiredStructure=function(){c.assert(this.$element,"label"===!this.$element.parent().prop("tagName"),this.constructor.name+"'s "+c.describe(this.$element)+" parent element should be <label>."),c.assert(this.$element,!this.outerElement().hasClass(this.outerClass),this.constructor.name+"'s "+c.describe(this.$element)+" outer element should have class "+this.outerClass+".")},r.addFocusListener=function(){var e=this;this.$element.closest("label").hover(function(){e.addFormGroupFocus()},function(){e.removeFormGroupFocus()})},r.addChangeListener=function(){var e=this;this.$element.change(function(){e.$element.blur()})},i}(h)}(jQuery),f=function(e){var t="checkbox",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={template:"<span class='checkbox-decorator'><span class='check'></span></span>"},a=function(i){function r(n,r,o){return void 0===o&&(o={inputType:t,outerClass:t}),i.call(this,n,e.extend(!0,s,r),o)||this}return o(r,i),r.prototype.dispose=function(e){void 0===e&&(e=n),i.prototype.dispose.call(this,e)},r.matches=function(e){return"checkbox"===e.attr("type")},r.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for type='checkbox'.")},r._jQueryInterface=function(t){return this.each(function(){var i=e(this),o=i.data(n);o||(o=new r(i,t),i.data(n,o))})},r}(d);return e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface},a}(jQuery),p=(function(e){var t="checkboxInline",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={bmdFormGroup:{create:!1,required:!1}},a=function(t){function i(n,i,r){return void 0===r&&(r={inputType:"checkbox",outerClass:"checkbox-inline"}),t.call(this,n,e.extend(!0,{},s,i),r)||this}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n)},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(f);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){var t="collapseInline",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={ANY_INPUT:"input, select, textarea"},a={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed",WIDTH:"width"},l={},h=function(t){function i(n,i){var r;(r=t.call(this,n,e.extend(!0,{},l,i))||this).$bmdFormGroup=r.findMdbFormGroup(!0);var o=n.data("target");r.$collapse=e(o),c.assert(n,0===r.$collapse.length,"Cannot find collapse target for "+c.describe(n)),c.assert(r.$collapse,!r.$collapse.hasClass(a.COLLAPSE),c.describe(r.$collapse)+" is expected to have the '"+a.COLLAPSE+"' class.  It is being targeted by "+c.describe(n));var u=r.$bmdFormGroup.find(s.ANY_INPUT);return 0<u.length&&(r.$input=u.first()),r.$collapse.hasClass(a.WIDTH)||r.$collapse.addClass(a.WIDTH),r.$input&&(r.$collapse.on("shown.bs.collapse",function(){r.$input.focus()}),r.$input.blur(function(){r.$collapse.collapse("hide")})),r}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n),this.$bmdFormGroup=null,this.$collapse=null,this.$input=null},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(u);e.fn[i]=h._jQueryInterface,e.fn[i].Constructor=h,e.fn[i].noConflict=function(){return e.fn[i]=r,h._jQueryInterface}}(jQuery),function(e){var t="file",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={},a={FILE:t,IS_FILE:"is-file"},l=function(t){function i(n,i){var r;return(r=t.call(this,n,e.extend(!0,s,i))||this).$bmdFormGroup.addClass(a.IS_FILE),r}o(i,t);var r=i.prototype;return r.dispose=function(){t.prototype.dispose.call(this,n)},i.matches=function(e){return"file"===e.attr("type")},i.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for type='file'.")},r.outerElement=function(){return this.$element.parent().closest("."+a.FILE)},r.rejectWithoutRequiredStructure=function(){c.assert(this.$element,"label"===!this.outerElement().prop("tagName"),this.constructor.name+"'s "+c.describe(this.$element)+" parent element "+c.describe(this.outerElement())+" should be <label>."),c.assert(this.$element,!this.outerElement().hasClass(a.FILE),this.constructor.name+"'s "+c.describe(this.$element)+" parent element "+c.describe(this.outerElement())+" should have class ."+a.FILE+".")},r.addFocusListener=function(){var e=this;this.$bmdFormGroup.on("focus",function(){e.addFormGroupFocus()}).on("blur",function(){e.removeFormGroupFocus()})},r.addChangeListener=function(){var t=this;this.$element.on("change",function(){var n="";e.each(t.$element.files,function(e,t){n+=t.name+"  , "}),(n=n.substring(0,n.length-2))?t.addIsFilled():t.removeIsFilled(),t.$bmdFormGroup.find("input.form-control[readonly]").val(n)})},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(h);e.fn[i]=l._jQueryInterface,e.fn[i].Constructor=l,e.fn[i].noConflict=function(){return e.fn[i]=r,l._jQueryInterface}}(jQuery),function(e){var t="radio",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={template:"<span class='bmd-radio'></span>"},a=function(i){function r(n,r,o){return void 0===o&&(o={inputType:t,outerClass:t}),i.call(this,n,e.extend(!0,s,r),o)||this}return o(r,i),r.prototype.dispose=function(e){void 0===e&&(e=n),i.prototype.dispose.call(this,e)},r.matches=function(e){return"radio"===e.attr("type")},r.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for type='radio'.")},r._jQueryInterface=function(t){return this.each(function(){var i=e(this),o=i.data(n);o||(o=new r(i,t),i.data(n,o))})},r}(d);return e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface},a}(jQuery)),m=(function(e){var t="radioInline",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={bmdFormGroup:{create:!1,required:!1}},a=function(t){function i(n,i,r){return void 0===r&&(r={inputType:"radio",outerClass:"radio-inline"}),t.call(this,n,e.extend(!0,{},s,i),r)||this}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n)},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(p);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){var t={requiredClasses:["form-control"]};return function(n){function i(i,r){var o;return(o=n.call(this,i,e.extend(!0,t,r))||this).isEmpty()&&o.removeIsFilled(),o}return o(i,n),i}(h)}(jQuery)),g=(function(e){var t="select",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={requiredClasses:["form-control||custom-select"]},a=function(t){function i(n,i){var r;return(r=t.call(this,n,e.extend(!0,s,i))||this).addIsFilled(),r}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n)},i.matches=function(e){return"select"===e.prop("tagName")},i.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for <select>.")},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(m);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){var t="switch",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={template:"<span class='bmd-switch-track'></span>"},a=function(t){function i(n,i,r){return void 0===r&&(r={inputType:"checkbox",outerClass:"switch"}),t.call(this,n,e.extend(!0,{},s,i),r)||this}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n)},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(f);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){var t="text",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={},a=function(t){function i(n,i){return t.call(this,n,e.extend(!0,s,i))||this}return o(i,t),i.prototype.dispose=function(e){void 0===e&&(e=n),t.prototype.dispose.call(this,e)},i.matches=function(e){return"text"===e.attr("type")},i.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for type='text'.")},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(m);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){var t="textarea",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={},a=function(t){function i(n,i){return t.call(this,n,e.extend(!0,s,i))||this}return o(i,t),i.prototype.dispose=function(){t.prototype.dispose.call(this,n)},i.matches=function(e){return"textarea"===e.prop("tagName")},i.rejectMatch=function(e,t){c.assert(this.$element,this.matches(t),e+" component element "+c.describe(t)+" is invalid for <textarea>.")},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(m);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),function(e){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var t="dropdown",n="bs.dropdown",r="."+n,o=".data-api",s=e.fn[t],l=/38|40|27/,c={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,CLICK_DATA_API:"click"+r+o,KEYDOWN_DATA_API:"keydown"+r+o,KEYUP_DATA_API:"keyup"+r+o,TRANSITION_END:"transitionend webkitTransitionEnd oTransitionEnd animationend webkitAnimationEnd oAnimationEnd"},u='[data-toggle="dropdown"]',h={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},d={placement:h.BOTTOM,offset:0,flip:!0},f={placement:"string",offset:"(number|string)",flip:"boolean"},p=function(){function o(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var s=o.prototype;return s.toggle=function(){var t=this;if(!this._element.disabled&&!e(this._element).hasClass("disabled")){var n=o._getParentFromElement(this._element),i=e(this._menu).hasClass("show");if(o._clearMenus(),!i){var r={relatedTarget:this._element},s=e.Event(c.SHOW,r);if(e(n).trigger(s),!s.isDefaultPrevented()){var a=this._element;e(n).hasClass("dropup")&&(e(this._menu).hasClass("dropdown-menu-left")||e(this._menu).hasClass("dropdown-menu-right"))&&(a=n),this._popper=new Popper(a,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!e(n).closest(".navbar-nav").length&&e("body").children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).one(c.TRANSITION_END,function(){e(n).trigger(e.Event(c.SHOWN,r)),e(t._menu).removeClass("showing")}),e(this._menu).addClass("show showing"),e(n).addClass("show")}}}},s.dispose=function(){e.removeData(this._element,n),e(this._element).off(r),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},s.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},s._addEventListeners=function(){var t=this;e(this._element).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},s._getConfig=function(n){var i=e(this._element).data();return void 0!==i.placement&&(i.placement=h[i.placement.toUpperCase()]),n=e.extend({},this.constructor.Default,e(this._element).data(),n),a.typeCheckConfig(t,n,this.constructor.DefaultType),n},s._getMenuElement=function(){if(!this._menu){var t=o._getParentFromElement(this._element);this._menu=e(t).find(".dropdown-menu")[0]}return this._menu},s._getPlacement=function(){var t=e(this._element).parent(),n=this._config.placement;return t.hasClass("dropup")||this._config.placement===h.TOP?(n=h.TOP,e(this._menu).hasClass("dropdown-menu-right")&&(n=h.TOPEND)):e(this._menu).hasClass("dropdown-menu-right")&&(n=h.BOTTOMEND),n},s._detectNavbar=function(){return 0<e(this._element).closest(".navbar").length},s._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(e.modifiers.applyStyle={enabled:!this._inNavbar}),e},o._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(n);if(i||(i=new o(this,"object"==typeof t?t:null),e(this).data(n,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},o._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=e.makeArray(e(u)),r=function(r){var s=o._getParentFromElement(i[r]),a=e(i[r]).data(n),l={relatedTarget:i[r]};if(!a)return"continue";var u=a._menu;if(!e(s).hasClass("show"))return"continue";if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(s,t.target))return"continue";var h=e.Event(c.HIDE,l);return e(s).trigger(h),h.isDefaultPrevented()?"continue":("ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),i[r].setAttribute("aria-expanded","false"),e(u).addClass("hiding").removeClass("show"),e(s).removeClass("show"),void e(u).one(c.TRANSITION_END,function(){e(s).trigger(e.Event(c.HIDDEN,l)),e(u).removeClass("hiding")}))},s=0;s<i.length;s++)r(s)},o._getParentFromElement=function(t){var n,i=a.getSelectorFromElement(t);return i&&(n=e(i)[0]),n||t.parentNode},o._dataApiKeydownHandler=function(t){if(!(!l.test(t.which)||/button/i.test(t.target.tagName)&&32===t.which||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass("disabled")))){var n=o._getParentFromElement(this),i=e(n).hasClass("show");if(!i&&(27!==t.which||32!==t.which)||i&&(27===t.which||32===t.which)){if(27===t.which){var r=e(n).find(u)[0];e(r).trigger("focus")}return void e(this).trigger("click")}var s=e(n).find(".dropdown-menu .dropdown-item:not(.disabled)").get();if(s.length){var a=s.indexOf(t.target);38===t.which&&0<a&&a--,40===t.which&&a<s.length-1&&a++,0>a&&(a=0),s[a].focus()}}},i(o,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return d}},{key:"DefaultType",get:function(){return f}}]),o}();e(document).on(c.KEYDOWN_DATA_API,u,p._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,".dropdown-menu",p._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,p._clearMenus).on(c.CLICK_DATA_API,u,function(t){t.preventDefault(),t.stopPropagation(),p._jQueryInterface.call(e(this),"toggle")}).on(c.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),e.fn[t]=p._jQueryInterface,e.fn[t].Constructor=p,e.fn[t].noConflict=function(){return e.fn[t]=s,p._jQueryInterface}}(jQuery),function(e){var t=".bmd-layout-canvas",n=".bmd-layout-container",i=".bmd-layout-backdrop",r={canvas:{create:!0,required:!0,template:'<div class="bmd-layout-canvas"></div>'},backdrop:{create:!0,required:!0,template:'<div class="bmd-layout-backdrop"></div>'}};return function(s){function a(t,n,i){var o;return void 0===i&&(i={}),(o=s.call(this,t,e.extend(!0,{},r,n),i)||this).$container=o.findContainer(!0),o.$backdrop=o.resolveBackdrop(),o.resolveCanvas(),o}o(a,s);var l=a.prototype;return l.dispose=function(e){s.prototype.dispose.call(this,e),this.$container=null,this.$backdrop=null},l.resolveCanvas=function(){var e=this.findCanvas(!1);return(void 0===e||0===e.length)&&(this.config.canvas.create&&this.$container.wrap(this.config.canvas.template),e=this.findCanvas(this.config.canvas.required)),e},l.findCanvas=function(n,i){void 0===n&&(n=!0),void 0===i&&(i=this.$container);var r=i.closest(t);return 0===r.length&&n&&e.error("Failed to find "+t+" for "+c.describe(i)),r},l.resolveBackdrop=function(){var e=this.findBackdrop(!1);return(void 0===e||0===e.length)&&(this.config.backdrop.create&&this.$container.append(this.config.backdrop.template),e=this.findBackdrop(this.config.backdrop.required)),e},l.findBackdrop=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=this.$container);var r=n.find("> "+i);return 0===r.length&&t&&e.error("Failed to find "+i+" for "+c.describe(n)),r},l.findContainer=function(t,i){void 0===t&&(t=!0),void 0===i&&(i=this.$element);var r=i.closest(n);return 0===r.length&&t&&e.error("Failed to find "+n+" for "+c.describe(i)),r},a}(u)}(jQuery));(function(e){var t="drawer",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={ESCAPE:27},a={focusSelector:"a, button, input"},l=function(t){function i(n,i){var r;return(r=t.call(this,n,e.extend(!0,{},a,i))||this).$toggles=e('[data-toggle="drawer"][href="#'+r.$element[0].id+'"], [data-toggle="drawer"][data-target="#'+r.$element[0].id+'"]'),r._addAria(),r.$backdrop.keydown(function(e){e.which===s.ESCAPE&&r.hide()}).click(function(){r.hide()}),r.$element.keydown(function(e){e.which===s.ESCAPE&&r.hide()}),r.$toggles.click(function(){r.toggle()}),r}o(i,t);var r=i.prototype;return r.dispose=function(){t.prototype.dispose.call(this,n),this.$toggles=null},r.toggle=function(){this._isOpen()?this.hide():this.show()},r.show=function(){if(!this._isForcedClosed()&&!this._isOpen()){this.$toggles.attr("aria-expanded",!0),this.$element.attr("aria-expanded",!0),this.$element.attr("aria-hidden",!1);var e=this.$element.find(this.config.focusSelector);0<e.length&&e.first().focus(),this.$container.addClass("bmd-drawer-in"),this.$backdrop.addClass("in")}},r.hide=function(){this._isOpen()&&(this.$toggles.attr("aria-expanded",!1),this.$element.attr("aria-expanded",!1),this.$element.attr("aria-hidden",!0),this.$container.removeClass("bmd-drawer-in"),this.$backdrop.removeClass("in"))},r._isOpen=function(){return this.$container.hasClass("bmd-drawer-in")},r._isForcedClosed=function(){return this.$container.hasClass("bmd-drawer-out")},r._addAria=function(){var e=this._isOpen();this.$element.attr("aria-expanded",e),this.$element.attr("aria-hidden",e),this.$toggles.length&&this.$toggles.attr("aria-expanded",e)},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(g);e.fn[i]=l._jQueryInterface,e.fn[i].Constructor=l,e.fn[i].noConflict=function(){return e.fn[i]=r,l._jQueryInterface}})(jQuery),function(e){var t="ripples",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],o=".ripple-container",a=".ripple-decorator",l={container:{template:"<div class='ripple-container'></div>"},decorator:{template:"<div class='ripple-decorator'></div>"},trigger:{start:"mousedown touchstart",end:"mouseup mouseleave touchend"},touchUserAgentRegex:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,duration:500},u=function(){function t(t,n){var i=this;this.$element=t,this.config=e.extend(!0,{},l,n),this.$element.on(this.config.trigger.start,function(e){i._onStartRipple(e)})}var i=t.prototype;return i.dispose=function(){this.$element.data(n,null),this.$element=null,this.$container=null,this.$decorator=null,this.config=null},i._onStartRipple=function(e){var t=this;if(!this._isTouch()||"mousedown"!==e.type){this._findOrCreateContainer();var n=this._getRelY(e),i=this._getRelX(e);(n||i)&&(this.$decorator.css({left:i,top:n,"background-color":this._getRipplesColor()}),this._forceStyleApplication(),this.rippleOn(),setTimeout(function(){t.rippleEnd()},this.config.duration),this.$element.on(this.config.trigger.end,function(){t.$decorator&&(t.$decorator.data("mousedown","off"),"off"===t.$decorator.data("animating")&&t.rippleOut())}))}},i._findOrCreateContainer=function(){(!this.$container||0<!this.$container.length)&&(this.$element.append(this.config.container.template),this.$container=this.$element.find(o)),this.$container.append(this.config.decorator.template),this.$decorator=this.$container.find(a)},i._forceStyleApplication=function(){return window.getComputedStyle(this.$decorator[0]).opacity},i._getRelX=function(e){var t=this.$container.offset();return this._isTouch()?1===(e=e.originalEvent).touches.length&&e.touches[0].pageX-t.left:e.pageX-t.left},i._getRelY=function(e){var t=this.$container.offset();return this._isTouch()?1===(e=e.originalEvent).touches.length&&e.touches[0].pageY-t.top:e.pageY-t.top},i._getRipplesColor=function(){return this.$element.data("ripple-color")?this.$element.data("ripple-color"):window.getComputedStyle(this.$element[0]).color},i._isTouch=function(){return this.config.touchUserAgentRegex.test(navigator.userAgent)},i.rippleEnd=function(){this.$decorator&&(this.$decorator.data("animating","off"),"off"===this.$decorator.data("mousedown")&&this.rippleOut(this.$decorator))},i.rippleOut=function(){var e=this;this.$decorator.off(),c.transitionEndSupported()?this.$decorator.addClass("ripple-out"):this.$decorator.animate({opacity:0},100,function(){e.$decorator.trigger("transitionend")}),this.$decorator.on(c.transitionEndSelector(),function(){e.$decorator&&(e.$decorator.remove(),e.$decorator=null)})},i.rippleOn=function(){var e=this,t=this._getNewSize();c.transitionEndSupported()?this.$decorator.css({"-ms-transform":"scale("+t+")","-moz-transform":"scale("+t+")","-webkit-transform":"scale("+t+")",transform:"scale("+t+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on"):this.$decorator.animate({width:2*s(this.$element.outerWidth(),this.$element.outerHeight()),height:2*s(this.$element.outerWidth(),this.$element.outerHeight()),"margin-left":-1*s(this.$element.outerWidth(),this.$element.outerHeight()),"margin-top":-1*s(this.$element.outerWidth(),this.$element.outerHeight()),opacity:.2},this.config.duration,function(){e.$decorator.trigger("transitionend")})},i._getNewSize=function(){return s(this.$element.outerWidth(),this.$element.outerHeight())/this.$decorator.outerWidth()*2.5},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(r,i),r.data(n,o))})},t}();e.fn[i]=u._jQueryInterface,e.fn[i].Constructor=u,e.fn[i].noConflict=function(){return e.fn[i]=r,u._jQueryInterface}}(jQuery),function(e){var t="autofill",n="bmd."+t,i="bmd"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.fn[i],s={},a=function(t){function i(n,i){var r;return(r=t.call(this,n,e.extend(!0,{},s,i))||this)._watchLoading(),r._attachEventHandlers(),r}o(i,t);var r=i.prototype;return r.dispose=function(){t.prototype.dispose.call(this,n)},r._watchLoading=function(){var e=this;setTimeout(function(){clearInterval(e._onLoading)},1e4)},r._onLoading=function(){setInterval(function(){e("input[type!=checkbox]").each(function(t,n){var i=e(n);i.val()&&i.val()!==i.attr("value")&&i.trigger("change")})},100)},r._attachEventHandlers=function(){var t=null;e(document).on("focus","input",function(n){var i=e(n.currentTarget).closest("form").find("input").not("[type=file]");t=setInterval(function(){i.each(function(t,n){var i=e(n);i.val()!==i.attr("value")&&i.trigger("change")})},100)}).on("blur",".form-group input",function(){clearInterval(t)})},i._jQueryInterface=function(t){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new i(r,t),r.data(n,o))})},i}(u);e.fn[i]=a._jQueryInterface,e.fn[i].Constructor=a,e.fn[i].noConflict=function(){return e.fn[i]=r,a._jQueryInterface}}(jQuery),Popper.Defaults.modifiers.computeStyle.gpuAcceleration=!1,function(e){var t="bootstrapMaterialDesign",n="bmd."+t,i=t,r=e.fn[i],o={global:{validate:!1,label:{className:"bmd-label-static"}},autofill:{selector:"body"},checkbox:{selector:".checkbox > label > input[type=checkbox]"},checkboxInline:{selector:"label.checkbox-inline > input[type=checkbox]"},collapseInline:{selector:'.bmd-collapse-inline [data-toggle="collapse"]'},drawer:{selector:".bmd-layout-drawer"},file:{selector:"input[type=file]"},radio:{selector:".radio > label > input[type=radio]"},radioInline:{selector:"label.radio-inline > input[type=radio]"},ripples:{selector:[".btn:not(.btn-link):not(.ripple-none)",".card-image:not(.ripple-none)",".navbar a:not(.ripple-none)",".dropdown-menu a:not(.ripple-none)",".nav-tabs a:not(.ripple-none)",".pagination li:not(.active):not(.disabled) a:not(.ripple-none)",".ripple"]},select:{selector:["select"]},switch:{selector:".switch > label > input[type=checkbox]"},text:{selector:["input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])"]},textarea:{selector:["textarea"]},arrive:!0,instantiation:["ripples","checkbox","checkboxInline","collapseInline","drawer","radio","radioInline","switch","text","textarea","select","autofill"]},s=function(){function t(t,n){var i=this;this.$element=t,this.config=e.extend(!0,{},o,n);var r=e(document),s=function(t){var n=i.config[t];if(n){var o=i._resolveSelector(n);n=e.extend(!0,{},i.config.global,n);var s="bmd"+(t.charAt(0).toUpperCase()+t.slice(1));try{e(o)[s](n),document.arrive&&i.config.arrive&&r.arrive(o,function(){e(this)[s](n)})}catch(t){throw console.error("Failed to instantiate component: $('"+o+"')["+s+"]("+n+")",t,"\nSelected elements: ",e(o)),t}}},a=this.config.instantiation,l=Array.isArray(a),c=0;for(a=l?a:a[Symbol.iterator]();;){var u;if(l){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}s(u)}}var i=t.prototype;return i.dispose=function(){this.$element.data(n,null),this.$element=null,this.config=null},i._resolveSelector=function(e){var t=e.selector;return Array.isArray(t)&&(t=t.join(", ")),t},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),o=r.data(n);o||(o=new t(r,i),r.data(n,o))})},t}();e.fn[i]=s._jQueryInterface,e.fn[i].Constructor=s,e.fn[i].noConflict=function(){return e.fn[i]=r,s._jQueryInterface}}(jQuery)});var Arrive=function(e,t,n){"use strict";if(e.MutationObserver&&"undefined"!=typeof HTMLElement){var i,r=0,o=(i=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector,{matchesSelector:function(e,t){return e instanceof HTMLElement&&i.call(e,t)},addMethod:function(e,t,n){var i=e[t];e[t]=function(){return n.length==arguments.length?n.apply(this,arguments):"function"==typeof i?i.apply(this,arguments):void 0}},callCallbacks:function(e,t){t&&t.options.onceOnly&&1==t.firedElems.length&&(e=[e[0]]);for(var n,i=0;n=e[i];i++)n&&n.callback&&n.callback.call(n.elem,n.elem);t&&t.options.onceOnly&&1==t.firedElems.length&&t.me.unbindEventWithSelectorAndCallback.call(t.target,t.selector,t.callback)},checkChildNodesRecursively:function(e,t,n,i){for(var r,s=0;r=e[s];s++)n(r,t,i)&&i.push({callback:t.callback,elem:r}),r.childNodes.length>0&&o.checkChildNodesRecursively(r.childNodes,t,n,i)},mergeArrays:function(e,t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);for(n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);return i},toElementsArray:function(t){return"undefined"==typeof t||"number"==typeof t.length&&t!==e||(t=[t]),t}}),s=function(){var e=function(){this._eventsBucket=[],this._beforeAdding=null,this._beforeRemoving=null};return e.prototype.addEvent=function(e,t,n,i){var r={target:e,selector:t,options:n,callback:i,firedElems:[]};return this._beforeAdding&&this._beforeAdding(r),this._eventsBucket.push(r),r},e.prototype.removeEvent=function(e){for(var t,n=this._eventsBucket.length-1;t=this._eventsBucket[n];n--)if(e(t)){this._beforeRemoving&&this._beforeRemoving(t);var i=this._eventsBucket.splice(n,1);i&&i.length&&(i[0].callback=null)}},e.prototype.beforeAdding=function(e){this._beforeAdding=e},e.prototype.beforeRemoving=function(e){this._beforeRemoving=e},e}(),a=function(t,i){var r=new s,a=this,l={fireOnAttributesModification:!1};return r.beforeAdding(function(n){var r,o=n.target;o!==e.document&&o!==e||(o=document.getElementsByTagName("html")[0]),r=new MutationObserver(function(e){i.call(this,e,n)});var s=t(n.options);r.observe(o,s),n.observer=r,n.me=a}),r.beforeRemoving(function(e){e.observer.disconnect()}),this.bindEvent=function(e,t,n){t=o.mergeArrays(l,t);for(var i=o.toElementsArray(this),s=0;s<i.length;s++)r.addEvent(i[s],e,t,n)},this.unbindEvent=function(){var e=o.toElementsArray(this);r.removeEvent(function(t){for(var i=0;i<e.length;i++)if(this===n||t.target===e[i])return!0;return!1})},this.unbindEventWithSelectorOrCallback=function(e){var t=o.toElementsArray(this),i=e;r.removeEvent("function"==typeof e?function(e){for(var r=0;r<t.length;r++)if((this===n||e.target===t[r])&&e.callback===i)return!0;return!1}:function(i){for(var r=0;r<t.length;r++)if((this===n||i.target===t[r])&&i.selector===e)return!0;return!1})},this.unbindEventWithSelectorAndCallback=function(e,t){var i=o.toElementsArray(this);r.removeEvent(function(r){for(var o=0;o<i.length;o++)if((this===n||r.target===i[o])&&r.selector===e&&r.callback===t)return!0;return!1})},this},l=new function(){var e={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};function t(e,t,i){return!(!o.matchesSelector(e,t.selector)||(e._id===n&&(e._id=r++),-1!=t.firedElems.indexOf(e._id))||(t.firedElems.push(e._id),0))}var i=(l=new a(function(e){var t={attributes:!1,childList:!0,subtree:!0};return e.fireOnAttributesModification&&(t.attributes=!0),t},function(e,n){e.forEach(function(e){var i=e.addedNodes,r=e.target,s=[];null!==i&&i.length>0?o.checkChildNodesRecursively(i,n,t,s):"attributes"===e.type&&t(r,n)&&s.push({callback:n.callback,elem:r}),o.callCallbacks(s,n)})})).bindEvent;return l.bindEvent=function(t,n,r){"undefined"==typeof r?(r=n,n=e):n=o.mergeArrays(e,n);var s=o.toElementsArray(this);if(n.existing){for(var a=[],l=0;l<s.length;l++)for(var c=s[l].querySelectorAll(t),u=0;u<c.length;u++)a.push({callback:r,elem:c[u]});if(n.onceOnly&&a.length)return r.call(a[0].elem,a[0].elem);setTimeout(o.callCallbacks,1,a)}i.call(this,t,n,r)},l},c=new function(){var e={};function t(e,t){return o.matchesSelector(e,t.selector)}var n=(c=new a(function(){return{childList:!0,subtree:!0}},function(e,n){e.forEach(function(e){var i=e.removedNodes,r=[];null!==i&&i.length>0&&o.checkChildNodesRecursively(i,n,t,r),o.callCallbacks(r,n)})})).bindEvent;return c.bindEvent=function(t,i,r){"undefined"==typeof r?(r=i,i=e):i=o.mergeArrays(e,i),n.call(this,t,i,r)},c};t&&d(t.fn),d(HTMLElement.prototype),d(NodeList.prototype),d(HTMLCollection.prototype),d(HTMLDocument.prototype),d(Window.prototype);var u={};return h(l,u,"unbindAllArrive"),h(c,u,"unbindAllLeave"),u}function h(e,t,n){o.addMethod(t,n,e.unbindEvent),o.addMethod(t,n,e.unbindEventWithSelectorOrCallback),o.addMethod(t,n,e.unbindEventWithSelectorAndCallback)}function d(e){e.arrive=l.bindEvent,h(l,e,"unbindArrive"),e.leave=c.bindEvent,h(c,e,"unbindLeave")}}(window,"undefined"==typeof jQuery?null:jQuery,void 0);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,t;function n(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return Tt(e,t,n,i,!0).utc()}function d(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){if(null==e._isValid){var n=d(e),i=t.call(n.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(e._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function p(e){var t=h(NaN);return null!=e?u(d(t),e):d(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var m=n.momentProperties=[];function g(e,t){var n,i,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=d(t)),o(t._locale)||(e._locale=t._locale),m.length>0)for(n=0;n<m.length;n++)o(r=t[i=m[n]])||(e[i]=r);return e}var v=!1;function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function b(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function _(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=_(t)),n}function x(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&w(e[i])!==w(t[i]))&&s++;return s+o}function E(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var i=!0;return u(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}E(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}var C,T={};function D(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),T[e]||(E(t),T[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,i=u({},e);for(n in t)c(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},u(i[n],e[n]),u(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)c(e,n)&&!c(t,n)&&r(e[n])&&(i[n]=u({},i[n]));return i}function O(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var M={};function I(e,t){var n=e.toLowerCase();M[n]=M[n+"s"]=M[t]=e}function N(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function L(e){var t,n,i={};for(n in e)c(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}var j={};function P(e,t){j[e]=t}function Y(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},F={};function $(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(F[e]=r),t&&(F[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=B(t,e.localeData()),W[t]=W[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t<n;t++)r[t]=F[r[t]]?F[r[t]]:(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=k(r[i])?r[i].call(t,e):r[i];return o}}(t),W[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,i),R.lastIndex=0,n-=1;return e}var z=/\d/,q=/\d\d/,G=/\d{3}/,V=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae={};function le(e,t,n){ae[e]=k(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return c(ae,e)?ae[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function de(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)he[e[n]]=i}function fe(e,t){de(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function pe(e,t,n){null!=t&&c(he,e)&&he[e](t,n._a,n,e)}var me=0,ge=1,ve=2,ye=3,be=4,_e=5,we=6,xe=7,Ee=8;function Se(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}$("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),I("year","y"),P("year",1),le("Y",ie),le("YY",Q,q),le("YYYY",ee,V),le("YYYYY",te,X),le("YYYYYY",te,X),de(["YYYYY","YYYYYY"],me),de("YYYY",function(e,t){t[me]=2===e.length?n.parseTwoDigitYear(e):w(e)}),de("YY",function(e,t){t[me]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[me]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var Te,De=ke("FullYear",!0);function ke(e,t){return function(i){return null!=i?(Oe(this,e,i),n.updateOffset(this,t),this):Ae(this,e)}}function Ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?Ce(e)?29:28:31-n%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),P("month",8),le("M",Q),le("MM",Q,q),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[ge]=w(e)-1}),de(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[ge]=r:d(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Me(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Pe(e){return null!=e?(je(this,e),n.updateOffset(this,!0),this):Ae(this,"Month")}var Ye=se,He=se;function Re(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=ue(i[t]),r[t]=ue(r[t]);for(t=0;t<24;t++)o[t]=ue(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function We(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Fe(e,t,n){var i=7+t-n;return-(7+We(e,0,i).getUTCDay()-t)%7+i-1}function $e(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+Fe(e,i,r);return a<=0?s=Se(o=e-1)+a:a>Se(e)?(o=e+1,s=a-Se(e)):(o=e,s=a),{year:o,dayOfYear:s}}function Ue(e,t,n){var i,r,o=Fe(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Be(r=e.year()-1,t,n):s>Be(e.year(),t,n)?(i=s-Be(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Be(e,t,n){var i=Fe(e,t,n),r=Fe(e+1,t,n);return(Se(e)-i+r)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),P("week",5),P("isoWeek",5),le("w",Q),le("ww",Q,q),le("W",Q),le("WW",Q,q),fe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)}),$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:d(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=se,Xe=se,Qe=se;function Ke(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(s.sort(e),a.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)a[t]=ue(a[t]),l[t]=ue(l[t]),c[t]=ue(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Je(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ze),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+Ze.apply(this)+Y(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Ze.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Je("a",!0),Je("A",!1),I("hour","h"),P("hour",13),le("a",et),le("A",et),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,q),le("hh",Q,q),le("kk",Q,q),le("hmm",K),le("hmmss",Z),le("Hmm",K),le("Hmmss",Z),de(["H","HH"],ye),de(["k","kk"],function(e,t,n){var i=w(e);t[ye]=24===i?0:i}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[ye]=w(e),d(n).bigHour=!0}),de("hmm",function(e,t,n){var i=e.length-2;t[ye]=w(e.substr(0,i)),t[be]=w(e.substr(i)),d(n).bigHour=!0}),de("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=w(e.substr(0,i)),t[be]=w(e.substr(i,2)),t[_e]=w(e.substr(r)),d(n).bigHour=!0}),de("Hmm",function(e,t,n){var i=e.length-2;t[ye]=w(e.substr(0,i)),t[be]=w(e.substr(i))}),de("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=w(e.substr(0,i)),t[be]=w(e.substr(i,2)),t[_e]=w(e.substr(r))});var tt,nt=ke("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Le,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Ge,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},rt={},ot={};function st(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!rt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),lt(t)}catch(e){}return rt[e]}function lt(e,t){var n;return e&&((n=o(t)?ut(e):ct(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function ct(e,t){if(null!==t){var n,i=it;if(t.abbr=e,null!=rt[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])i=rt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;i=n._config}return rt[e]=new O(A(i,t)),ot[e]&&ot[e].forEach(function(e){ct(e.name,e.config)}),lt(e),rt[e]}return delete rt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!i(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=st(e[o]).split("-")).length,n=(n=st(e[o+1]))?n.split("-"):null;t>0;){if(i=at(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return tt}(e)}function ht(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>Me(n[me],n[ge])?ve:n[ye]<0||n[ye]>24||24===n[ye]&&(0!==n[be]||0!==n[_e]||0!==n[we])?ye:n[be]<0||n[be]>59?be:n[_e]<0||n[_e]>59?_e:n[we]<0||n[we]>999?we:-1,d(e)._overflowDayOfYear&&(t<me||t>ve)&&(t=ve),d(e)._overflowWeeks&&-1===t&&(t=xe),d(e)._overflowWeekday&&-1===t&&(t=Ee),d(e).overflow=t),e}function dt(e,t,n){return null!=e?e:null!=t?t:n}function ft(e){var t,i,r,o,s,a=[];if(!e._d){for(r=function(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ge]&&function(e){var t,n,i,r,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=dt(t.GG,e._a[me],Ue(Dt(),1,4).year),i=dt(t.W,1),((r=dt(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=Ue(Dt(),o,s);n=dt(t.gg,e._a[me],c.year),i=dt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Be(n,o,s)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(a=$e(n,i,r,o,s),e._a[me]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=dt(e._a[me],r[me]),(e._dayOfYear>Se(s)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),i=We(s,0,e._dayOfYear),e._a[ge]=i.getUTCMonth(),e._a[ve]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ye]&&0===e._a[be]&&0===e._a[_e]&&0===e._a[we]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?We:function(e,t,n,i,r,o,s){var a=new Date(e,t,n,i,r,o,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==o&&(d(e).weekdayMismatch=!0)}}var pt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bt=/^\/?Date\((\-?\d+)/i;function _t(e){var t,n,i,r,o,s,a=e._i,l=pt.exec(a)||mt.exec(a);if(l){for(d(e).iso=!0,t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[1])){r=vt[t][0],i=!1!==vt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[3])){o=(l[2]||" ")+yt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),St(e)}else e._isValid=!1}var wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,i,r,o,s,a,l=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(l){var c=(t=l[3],n=l[2],i=l[5],r=l[6],o=l[7],s=[(a=parseInt(l[4],10),a<=49?2e3+a:a<=999?1900+a:a),Le.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)],o&&s.push(parseInt(o,10)),s);if(!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(d(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(l[8],l[9],l[10]),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),d(e).rfc2822=!0}else e._isValid=!1}function St(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],d(e).empty=!0;var t,i,r,o,s,a=""+e._i,l=a.length,c=0;for(r=B(e._f,e._locale).match(H)||[],t=0;t<r.length;t++)(i=(a.match(ce(o=r[t],e))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),c+=i.length),F[o]?(i?d(e).empty=!1:d(e).unusedTokens.push(o),pe(o,i,e)):e._strict&&!i&&d(e).unusedTokens.push(o);d(e).charsLeftOver=l-c,a.length>0&&d(e).unusedInput.push(a),e._a[ye]<=12&&!0===d(e).bigHour&&e._a[ye]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[ye]=(u=e._locale,h=e._a[ye],null==(f=e._meridiem)?h:null!=u.meridiemHour?u.meridiemHour(h,f):null!=u.isPM?((p=u.isPM(f))&&h<12&&(h+=12),p||12!==h||(h=0),h):h),ft(e),ht(e)}else Et(e);else _t(e);var u,h,f,p}function Ct(e){var t=e._i,c=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===c&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new y(ht(t)):(a(t)?e._d=t:i(c)?function(e){var t,n,i,r,o;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],St(t),f(t)&&(o+=d(t).charsLeftOver,o+=10*d(t).unusedTokens.length,d(t).score=o,(null==i||o<i)&&(i=o,n=t));u(e,n||t)}(e):c?St(e):function(e){var t=e._i;o(t)?e._d=new Date(n.now()):a(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=bt.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,Et(e),!1===e._isValid&&(delete e._isValid,n.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=l(t.slice(0),function(e){return parseInt(e,10)}),ft(e)):r(t)?function(e){if(!e._d){var t=L(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ft(e)}}(e):s(t)?e._d=new Date(t):n.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function Tt(e,t,n,o,s){var a,l={};return!0!==n&&!1!==n||(o=n,n=void 0),(r(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=o,(a=new y(ht(Ct(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Dt(e,t,n,i){return Tt(e,t,n,i,!1)}n.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var kt=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),At=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()});function Ot(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=L(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Te.call(Mt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Mt.length;++i)if(e[Mt[i]]){if(n)return!1;parseFloat(e[Mt[i]])!==w(e[Mt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ut(),this._bubble()}function Nt(e){return e instanceof It}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)})}jt("Z",":"),jt("ZZ",""),le("Z",oe),le("ZZ",oe),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(oe,e)});var Pt=/([\+\-]|\d\d)/gi;function Yt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Pt)||["-",0,0],r=60*i[1]+w(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Ht(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(b(e)||a(e)?e.valueOf():Dt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Dt(e).local()}function Rt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Ft=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,i,r,o,a,l,u=e,h=null;return Nt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(u={},t?u[t]=e:u.milliseconds=e):(h=Ft.exec(e))?(n="-"===h[1]?-1:1,u={y:0,d:w(h[ve])*n,h:w(h[ye])*n,m:w(h[be])*n,s:w(h[_e])*n,ms:w(Lt(1e3*h[we]))*n}):(h=$t.exec(e))?u={y:Bt(h[2],n="-"===h[1]?-1:1),M:Bt(h[3],n),w:Bt(h[4],n),d:Bt(h[5],n),h:Bt(h[6],n),m:Bt(h[7],n),s:Bt(h[8],n)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Dt(u.from),a=Dt(u.to),r=o.isValid()&&a.isValid()?(a=Ht(a,o),o.isBefore(a)?l=zt(o,a):((l=zt(a,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new It(u),Nt(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Gt(this,Ut(n="string"==typeof n?+n:n,i),e),this}}function Gt(e,t,i,r){var o=t._milliseconds,s=Lt(t._days),a=Lt(t._months);e.isValid()&&(r=null==r||r,a&&je(e,Ae(e,"Month")+a*i),s&&Oe(e,"Date",Ae(e,"Date")+s*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&n.updateOffset(e,s||a))}Ut.fn=It.prototype,Ut.invalid=function(){return Ut(NaN)};var Vt=qt(1,"add"),Xt=qt(-1,"subtract");function Qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zt=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}function en(e,t){$(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var o;return null==e?Ue(this,i,r).year:(t>(o=Be(e,i,r))&&(t=o),(function(e,t,n,i,r){var o=$e(e,t,n,i,r),s=We(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}).call(this,e,t,n,i,r))}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),le("G",ie),le("g",ie),le("GG",Q,q),le("gg",Q,q),le("GGGG",ee,V),le("gggg",ee,V),le("GGGGG",te,X),le("ggggg",te,X),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),fe(["gg","GG"],function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),I("quarter","Q"),P("quarter",7),le("Q",z),de("Q",function(e,t){t[ge]=3*(w(e)-1)}),$("D",["DD",2],"Do","date"),I("date","D"),P("date",9),le("D",Q),le("DD",Q,q),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ve),de("Do",function(e,t){t[ve]=w(e.match(Q)[0])});var nn=ke("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),P("dayOfYear",4),le("DDD",J),le("DDDD",G),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),$("m",["mm",2],0,"minute"),I("minute","m"),P("minute",14),le("m",Q),le("mm",Q,q),de(["m","mm"],be);var rn=ke("Minutes",!1);$("s",["ss",2],0,"second"),I("second","s"),P("second",15),le("s",Q),le("ss",Q,q),de(["s","ss"],_e);var on,sn=ke("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),P("millisecond",16),le("S",J,z),le("SS",J,q),le("SSS",J,G),on="SSSS";on.length<=9;on+="S")le(on,ne);function an(e,t){t[we]=w(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")de(on,an);var ln=ke("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var cn=y.prototype;function un(e){return e}cn.add=Vt,cn.calendar=function(e,t){var i=e||Dt(),r=Ht(i,this).startOf("day"),o=n.calendarFormat(this,r)||"sameElse",s=t&&(k(t[o])?t[o].call(this,i):t[o]);return this.format(s||this.localeData().calendar(o,this,Dt(i)))},cn.clone=function(){return new y(this)},cn.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Ht(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=Qt(this,i)/12;break;case"month":o=Qt(this,i);break;case"quarter":o=Qt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:_(o)},cn.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},cn.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},cn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.fromNow=function(e){return this.from(Dt(),e)},cn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.toNow=function(e){return this.to(Dt(),e)},cn.get=function(e){return k(this[e=N(e)])?this[e]():this},cn.invalidAt=function(){return d(this).overflow},cn.isAfter=function(e,t){var n=b(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},cn.isBefore=function(e,t){var n=b(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},cn.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},cn.isSame=function(e,t){var n,i=b(e)?e:Dt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=N(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},cn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},cn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},cn.isValid=function(){return f(this)},cn.lang=Zt,cn.locale=Kt,cn.localeData=Jt,cn.max=At,cn.min=kt,cn.parsingFlags=function(){return u({},d(this))},cn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:j[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=L(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(k(this[e=N(e)]))return this[e](t);return this},cn.startOf=function(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},cn.subtract=Xt,cn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},cn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=De,cn.isLeapYear=function(){return Ce(this.year())},cn.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},cn.month=Pe,cn.daysInMonth=function(){return Me(this.year(),this.month())},cn.week=cn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},cn.isoWeek=cn.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},cn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},cn.isoWeeksInYear=function(){return Be(this.year(),1,4)},cn.date=nn,cn.day=cn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},cn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},cn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},cn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},cn.hour=cn.hours=nt,cn.minute=cn.minutes=rn,cn.second=cn.seconds=sn,cn.millisecond=cn.milliseconds=ln,cn.utcOffset=function(e,t,i){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Yt(oe,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Gt(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)},cn.utc=function(e){return this.utcOffset(0,e)},cn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Yt(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=Wt,cn.isUTC=Wt,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=S("dates accessor is deprecated. Use date instead.",nn),cn.months=S("months accessor is deprecated. Use month instead",Pe),cn.years=S("years accessor is deprecated. Use year instead",De),cn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),cn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Ct(e))._a){var t=e._isUTC?h(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=O.prototype;function dn(e,t,n,i){var r=ut(),o=h().set(i,t);return r[n](o,e)}function fn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function pn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r,o=ut(),a=e?o._week.dow:0;if(null!=n)return dn(t,(n+a)%7,i,"day");var l=[];for(r=0;r<7;r++)l[r]=dn(t,(r+a)%7,i,"day");return l}hn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return k(i)?i.call(t,n):i},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=un,hn.postformat=un,hn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return k(r)?r(e,t,n,i):r.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)k(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return(function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Te.call(this._shortMonthsParse,s))?r:null:-1!==(r=Te.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=Te.call(this._shortMonthsParse,s))?r:-1!==(r=Te.call(this._longMonthsParse,s))?r:null:-1!==(r=Te.call(this._longMonthsParse,s))?r:-1!==(r=Te.call(this._shortMonthsParse,s))?r:null}).call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},hn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return(function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null}).call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=S("moment.lang is deprecated. Use moment.locale instead.",lt),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ut);var mn=Math.abs;function gn(e,t,n,i){var r=Ut(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function _n(e){return function(){return this.as(e)}}var wn=_n("ms"),xn=_n("s"),En=_n("m"),Sn=_n("h"),Cn=_n("d"),Tn=_n("w"),Dn=_n("M"),kn=_n("y");function An(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=An("milliseconds"),Mn=An("seconds"),In=An("minutes"),Nn=An("hours"),Ln=An("days"),jn=An("months"),Pn=An("years"),Yn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11},Rn=Math.abs;function Wn(e){return(e>0)-(e<0)||+e}function Fn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Rn(this._milliseconds)/1e3,i=Rn(this._days),r=Rn(this._months);t=_((e=_(n/60))/60),n%=60,e%=60;var o=_(r/12),s=r%=12,a=i,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Wn(this._months)!==Wn(h)?"-":"",p=Wn(this._days)!==Wn(h)?"-":"",m=Wn(this._milliseconds)!==Wn(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var $n=It.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},$n.add=function(e,t){return gn(this,e,t,1)},$n.subtract=function(e,t){return gn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return n=this._months+yn(t=this._days+i/864e5),"month"===e?n:n/12;switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=wn,$n.asSeconds=xn,$n.asMinutes=En,$n.asHours=Sn,$n.asDays=Cn,$n.asWeeks=Tn,$n.asMonths=Dn,$n.asYears=kn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},$n._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*vn(bn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=_(o/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,n=_(t/60),l.hours=n%24,a+=r=_(yn(s+=_(n/24))),s-=vn(bn(r)),i=_(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},$n.clone=function(){return Ut(this)},$n.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=On,$n.seconds=Mn,$n.minutes=In,$n.hours=Nn,$n.days=Ln,$n.weeks=function(){return _(this.days()/7)},$n.months=jn,$n.years=Pn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ut(e).abs(),r=Yn(i.as("s")),o=Yn(i.as("m")),s=Yn(i.as("h")),a=Yn(i.as("d")),l=Yn(i.as("M")),c=Yn(i.as("y")),u=r<=Hn.ss&&["s",r]||r<Hn.s&&["ss",r]||o<=1&&["m"]||o<Hn.m&&["mm",o]||s<=1&&["h"]||s<Hn.h&&["hh",s]||a<=1&&["d"]||a<Hn.d&&["dd",a]||l<=1&&["M"]||l<Hn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,(function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}).apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Fn,$n.toString=Fn,$n.toJSON=Fn,$n.locale=Kt,$n.localeData=Jt,$n.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fn),$n.lang=Zt,$("X",0,0,"unix"),$("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),de("x",function(e,t,n){n._d=new Date(w(e))}),n.version="2.22.1",e=Dt,n.fn=cn,n.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},n.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(e){return Dt(1e3*e)},n.months=function(e,t){return fn(e,t,"months")},n.isDate=a,n.locale=lt,n.invalid=p,n.duration=Ut,n.isMoment=b,n.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},n.parseZone=function(){return Dt.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=Nt,n.monthsShort=function(e,t){return fn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},n.defineLocale=ct,n.updateLocale=function(e,t){if(null!=t){var n,i,r=it;null!=(i=at(e))&&(r=i._config),(n=new O(t=A(r,t))).parentLocale=rt[e],rt[e]=n,lt(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},n.locales=function(){return C(rt)},n.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},n.normalizeUnits=N,n.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},n.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=cn,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},n}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.PerfectScrollbar=t()}(this,function(){"use strict";function e(e){return getComputedStyle(e)}function t(e,t){for(var n in t){var i=t[n];"number"==typeof i&&(i+="px"),e.style[n]=i}return e}function n(e){var t=document.createElement("div");return t.className=e,t}function i(e,t){if(!m)throw new Error("No element matching method supported");return m.call(e,t)}function r(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function o(e,t){return Array.prototype.filter.call(e.children,function(e){return i(e,t)})}function s(e,t){var n=e.element.classList,i=g.state.scrolling(t);n.contains(i)?clearTimeout(v[t]):n.add(i)}function a(e,t){v[t]=setTimeout(function(){return e.element.classList.remove(g.state.scrolling(t))},e.settings.scrollingThreshold)}function l(e,t){s(e,t),a(e,t)}function c(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function u(e){return parseInt(e,10)||0}function h(e){return i(e,"input,[contenteditable]")||i(e,"select,[contenteditable]")||i(e,"textarea,[contenteditable]")||i(e,"button,[contenteditable]")}function d(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function f(e,n){var i={width:n.railXWidth};i.left=n.isRtl?n.negativeScrollAdjustment+e.scrollLeft+n.containerWidth-n.contentWidth:e.scrollLeft,n.isScrollbarXUsingBottom?i.bottom=n.scrollbarXBottom-e.scrollTop:i.top=n.scrollbarXTop+e.scrollTop,t(n.scrollbarXRail,i);var r={top:e.scrollTop,height:n.railYHeight};n.isScrollbarYUsingRight?r.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+e.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth:n.scrollbarYRight-e.scrollLeft:r.left=n.isRtl?n.negativeScrollAdjustment+e.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+e.scrollLeft,t(n.scrollbarYRail,r),t(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),t(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}function p(e,t){function n(t){w(e,d,m+v*(t[l]-g),!1),s(e,f),E(e),t.stopPropagation(),t.preventDefault()}function i(){a(e,f),e.event.unbind(e.ownerDocument,"mousemove",n)}var r=t[0],o=t[1],l=t[2],c=t[3],u=t[5],h=t[6],d=t[7],f=t[8],p=e.element,m=null,g=null,v=null;e.event.bind(e[t[4]],"mousedown",function(t){m=p[h],g=t[l],v=(e[o]-e[r])/(e[c]-e[u]),e.event.bind(e.ownerDocument,"mousemove",n),e.event.once(e.ownerDocument,"mouseup",i),t.stopPropagation(),t.preventDefault()})}var m=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector,g={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},v={x:null,y:null},y=function(e){this.element=e,this.handlers={}},b={isEmpty:{configurable:!0}};y.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},y.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(i){return!(!t||i===t)||(n.element.removeEventListener(e,i,!1),!1)})},y.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},b.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(y.prototype,b);var _=function(){this.eventElements=[]};_.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new y(e),this.eventElements.push(t)),t},_.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},_.prototype.unbind=function(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},_.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},_.prototype.once=function(e,t,n){var i=this.eventElement(e),r=function(e){i.unbind(t,r),n(e)};i.bind(t,r)};var w=function(e,t,n,i){var r;if(void 0===i&&(i=!0),"top"===t)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,i){var r=n[0],o=n[1],s=n[2],a=n[3],u=n[4],h=n[5],d=e.element,f=!1;e.reach[a]=null,t<=0&&(t=0,e.reach[a]="start"),t>=e[r]-e[o]&&((t=e[r]-e[o])-d[s]<=2&&(f=!0),e.reach[a]="end");var p=d[s]-t;p&&(d.dispatchEvent(c("ps-scroll-"+a)),d.dispatchEvent(c(p>0?"ps-scroll-"+u:"ps-scroll-"+h)),f||(d[s]=t),e.reach[a]&&d.dispatchEvent(c("ps-"+a+"-reach-"+e.reach[a])),i&&l(e,a))}(e,n,r,i)},x={isWebKit:document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:navigator&&navigator.msMaxTouchPoints},E=function(e){var t=e.element;e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(o(t,g.element.rail("x")).forEach(function(e){return r(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(o(t,g.element.rail("y")).forEach(function(e){return r(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=d(e,u(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=u((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=d(e,u(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=u(t.scrollTop*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),f(t,e),e.scrollbarXActive?t.classList.add(g.state.active("x")):(t.classList.remove(g.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,w(e,"left",0)),e.scrollbarYActive?t.classList.add(g.state.active("y")):(t.classList.remove(g.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,w(e,"top",0))},S={"click-rail":function(e){var t=e.element;e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(n){var i=n.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;w(e,"top",t.scrollTop+i*e.containerHeight),E(e),n.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(n){var i=n.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;w(e,"left",t.scrollLeft+i*e.containerWidth),E(e),n.stopPropagation()})},"drag-thumb":function(e){p(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","left","x"]),p(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","top","y"])},keyboard:function(e){var t=e.element,n=function(){return i(t,":hover")},r=function(){return i(e.scrollbarX,":focus")||i(e.scrollbarY,":focus")};e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(n()||r())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(h(o))return}var s=0,a=0;switch(i.which){case 37:s=i.metaKey?-e.contentWidth:i.altKey?-e.containerWidth:-30;break;case 38:a=i.metaKey?e.contentHeight:i.altKey?e.containerHeight:30;break;case 39:s=i.metaKey?e.contentWidth:i.altKey?e.containerWidth:30;break;case 40:a=i.metaKey?-e.contentHeight:i.altKey?-e.containerHeight:-30;break;case 32:a=i.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==s||e.settings.suppressScrollY&&0!==a||(w(e,"top",t.scrollTop-a),w(e,"left",t.scrollLeft+s),E(e),function(n,i){var r=t.scrollTop;if(0===n){if(!e.scrollbarYActive)return!1;if(0===r&&i>0||r>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(s,a)&&i.preventDefault())}})},wheel:function(t){function n(t,n,i){if(!x.isWebKit&&r.querySelector("select:focus"))return!0;if(!r.contains(t))return!1;for(var o=t;o&&o!==r;){if(o.classList.contains(g.element.consuming))return!0;var s=e(o);if([s.overflow,s.overflowX,s.overflowY].join("").match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(a>0&&!(0===o.scrollTop&&i>0||o.scrollTop===a&&i<0))return!0;var l=o.scrollLeft-o.clientWidth;if(l>0&&!(0===o.scrollLeft&&n<0||o.scrollLeft===l&&n>0))return!0}o=o.parentNode}return!1}function i(e){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(e),o=i[0],s=i[1];if(!n(e.target,o,s)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(w(t,"top",s?r.scrollTop-s*t.settings.wheelSpeed:r.scrollTop+o*t.settings.wheelSpeed),a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(w(t,"left",o?r.scrollLeft+o*t.settings.wheelSpeed:r.scrollLeft-s*t.settings.wheelSpeed),a=!0):(w(t,"top",r.scrollTop-s*t.settings.wheelSpeed),w(t,"left",r.scrollLeft+o*t.settings.wheelSpeed)),E(t),(a=a||function(e,n){var i=r.scrollTop;if(0===e){if(!t.scrollbarYActive)return!1;if(0===i&&n>0||i>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=r.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&e<0||o>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}(o,s))&&(e.stopPropagation(),e.preventDefault())}}var r=t.element;void 0!==window.onwheel?t.event.bind(r,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(r,"mousewheel",i)},touch:function(e){function t(t,n){var i=u.scrollTop,r=u.scrollLeft,o=Math.abs(t),s=Math.abs(n);if(s>o){if(n<0&&i===e.contentHeight-e.containerHeight||n>0&&0===i)return{stop:!e.settings.swipePropagation,prevent:0===window.scrollY}}else if(o>s&&(t<0&&r===e.contentWidth-e.containerWidth||t>0&&0===r))return{stop:!e.settings.swipePropagation,prevent:!0};return{stop:!0,prevent:!0}}function n(t,n){w(e,"top",u.scrollTop-n),w(e,"left",u.scrollLeft-t),E(e)}function i(){m=!0}function r(){m=!1}function o(e){return e.targetTouches?e.targetTouches[0]:e}function s(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function a(e){if(s(e)){g=!0;var t=o(e);h.pageX=t.pageX,h.pageY=t.pageY,d=(new Date).getTime(),null!==p&&clearInterval(p),e.stopPropagation()}}function l(i){if(!g&&e.settings.swipePropagation&&a(i),!m&&g&&s(i)){var r=o(i),l={pageX:r.pageX,pageY:r.pageY},c=l.pageX-h.pageX,u=l.pageY-h.pageY;n(c,u),h=l;var p=(new Date).getTime(),v=p-d;v>0&&(f.x=c/v,f.y=u/v,d=p);var y=t(c,u),b=y.prevent;y.stop&&i.stopPropagation(),b&&i.preventDefault()}}function c(){!m&&g&&(g=!1,e.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){e.isInitialized?clearInterval(p):f.x||f.y?Math.abs(f.x)<.01&&Math.abs(f.y)<.01?clearInterval(p):(n(30*f.x,30*f.y),f.x*=.8,f.y*=.8):clearInterval(p)},10)))}if(x.supportsTouch||x.supportsIePointer){var u=e.element,h={},d=0,f={},p=null,m=!1,g=!1;x.supportsTouch?(e.event.bind(window,"touchstart",i),e.event.bind(window,"touchend",r),e.event.bind(u,"touchstart",a),e.event.bind(u,"touchmove",l),e.event.bind(u,"touchend",c)):x.supportsIePointer&&(window.PointerEvent?(e.event.bind(window,"pointerdown",i),e.event.bind(window,"pointerup",r),e.event.bind(u,"pointerdown",a),e.event.bind(u,"pointermove",l),e.event.bind(u,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(window,"MSPointerDown",i),e.event.bind(window,"MSPointerUp",r),e.event.bind(u,"MSPointerDown",a),e.event.bind(u,"MSPointerMove",l),e.event.bind(u,"MSPointerUp",c)))}}},C=function(i,r){var o=this;if(void 0===r&&(r={}),"string"==typeof i&&(i=document.querySelector(i)),!i||!i.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=i,i.classList.add(g.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},r)o.settings[s]=r[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return i.classList.add(g.state.focus)},l=function(){return i.classList.remove(g.state.focus)};this.isRtl="rtl"===e(i).direction,this.isNegativeScroll=function(){var e,t=i.scrollLeft;return i.scrollLeft=-1,e=i.scrollLeft<0,i.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?i.scrollWidth-i.clientWidth:0,this.event=new _,this.ownerDocument=i.ownerDocument||document,this.scrollbarXRail=n(g.element.rail("x")),i.appendChild(this.scrollbarXRail),this.scrollbarX=n(g.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(c.borderLeftWidth)+u(c.borderRightWidth),t(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),t(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=n(g.element.rail("y")),i.appendChild(this.scrollbarYRail),this.scrollbarY=n(g.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var h=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(h.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(h.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var n=e(t);return u(n.width)+u(n.paddingLeft)+u(n.paddingRight)+u(n.borderLeftWidth)+u(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=u(h.borderTopWidth)+u(h.borderBottomWidth),t(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(h.marginTop)+u(h.marginBottom),t(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:i.scrollLeft<=0?"start":i.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:i.scrollTop<=0?"start":i.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.settings.handlers.forEach(function(e){return S[e](o)}),this.event.bind(this.element,"scroll",function(){return E(o)}),E(this)},T={isInitialized:{configurable:!0}};return T.isInitialized.get=function(){return this.element.classList.contains(g.main)},C.prototype.update=function(){this.isInitialized&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,t(this.scrollbarXRail,{display:"block"}),t(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(e(this.scrollbarXRail).marginLeft)+u(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(e(this.scrollbarYRail).marginTop)+u(e(this.scrollbarYRail).marginBottom),t(this.scrollbarXRail,{display:"none"}),t(this.scrollbarYRail,{display:"none"}),E(this),t(this.scrollbarXRail,{display:""}),t(this.scrollbarYRail,{display:""}))},C.prototype.destroy=function(){this.isInitialized&&(this.event.unbindAll(),r(this.scrollbarX),r(this.scrollbarY),r(this.scrollbarXRail),r(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null)},C.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},Object.defineProperties(C.prototype,T),C}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){var t={element:"body",position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:1e3,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:'<div data-notify="container" class="col-xs-11 col-sm-4 alert alert-{0}" role="alert"><button type="button" aria-hidden="true" class="close" data-notify="dismiss">&times;</button><span data-notify="icon"></span> <span data-notify="title">{1}</span> <span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>'};function n(n,i,r){r=e.extend(!0,{},i={content:{message:"object"==typeof i?i.message:i,title:i.title?i.title:"",icon:i.icon?i.icon:"",url:i.url?i.url:"#",target:i.target?i.target:"-"}},r),this.settings=e.extend(!0,{},t,r),this._defaults=t,"-"==this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),this.init()}String.format=function(){for(var e=arguments[0],t=1;t<arguments.length;t++)e=e.replace(RegExp("\\{"+(t-1)+"\\}","gm"),arguments[t]);return e},e.extend(n.prototype,{init:function(){var e=this;this.buildNotify(),this.settings.content.icon&&this.setIcon(),"#"!=this.settings.content.url&&this.styleURL(),this.styleDismiss(),this.placement(),this.bind(),this.notify={$ele:this.$ele,update:function(t,n){var i={};for(var t in"string"==typeof t?i[t]=n:i=t,i)switch(t){case"type":this.$ele.removeClass("alert-"+e.settings.type),this.$ele.find('[data-notify="progressbar"] > .progress-bar').removeClass("progress-bar-"+e.settings.type),e.settings.type=i[t],this.$ele.addClass("alert-"+i[t]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+i[t]);break;case"icon":var r=this.$ele.find('[data-notify="icon"]');"class"==e.settings.icon_type.toLowerCase()?r.removeClass(e.settings.content.icon).addClass(i[t]):(r.is("img")||r.find("img"),r.attr("src",i[t]));break;case"progress":this.$ele.data("notify-delay",e.settings.delay-e.settings.delay*(i[t]/100)),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i[t]).css("width",i[t]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",i[t]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",i[t]);break;default:this.$ele.find('[data-notify="'+t+'"]').html(i[t])}var o=this.$ele.outerHeight()+parseInt(e.settings.spacing)+parseInt(e.settings.offset.y);e.reposition(o)},close:function(){e.close()}}},buildNotify:function(){var t=this.settings.content;this.$ele=e(String.format(this.settings.template,this.settings.type,t.title,t.message,t.url,t.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"==this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append('<img src="'+this.settings.content.icon+'" alt="Notify Icon" />')},styleDismiss:function(){this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:"0px",position:"absolute",top:"0px",width:"100%",zIndex:this.settings.z_index+1})},placement:function(){var t=this,n=this.settings.offset.y,i={display:"inline-block",margin:"0px auto",position:this.settings.position?this.settings.position:"body"===this.settings.element?"fixed":"absolute",transition:"all .5s ease-in-out",zIndex:this.settings.z_index},r=!1,o=this.settings;switch(e('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each(function(){return n=Math.max(n,parseInt(e(this).css(o.placement.from))+parseInt(e(this).outerHeight())+parseInt(o.spacing))}),1==this.settings.newest_on_top&&(n=this.settings.offset.y),i[this.settings.placement.from]=n+"px",this.settings.placement.align){case"left":case"right":i[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":i.left=0,i.right=0}this.$ele.css(i).addClass(this.settings.animate.enter),e.each(Array("webkit-","moz-","o-","ms-",""),function(e,n){t.$ele[0].style[n+"AnimationIterationCount"]=1}),e(this.settings.element).append(this.$ele),1==this.settings.newest_on_top&&(n=parseInt(n)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(n)),e.isFunction(t.settings.onShow)&&t.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,function(e){r=!0}).one(this.animations.end,function(n){e.isFunction(t.settings.onShown)&&t.settings.onShown.call(this)}),setTimeout(function(){r||e.isFunction(t.settings.onShown)&&t.settings.onShown.call(this)},600)},bind:function(){var t=this;if(this.$ele.find('[data-notify="dismiss"]').on("click",function(){t.close()}),this.$ele.mouseover(function(t){e(this).data("data-hover","true")}).mouseout(function(t){e(this).data("data-hover","false")}),this.$ele.data("data-hover","false"),this.settings.delay>0){t.$ele.data("notify-delay",t.settings.delay);var n=setInterval(function(){var e=parseInt(t.$ele.data("notify-delay"))-t.settings.timer;if("false"===t.$ele.data("data-hover")&&"pause"==t.settings.mouse_over||"pause"!=t.settings.mouse_over){var i=(t.settings.delay-e)/t.settings.delay*100;t.$ele.data("notify-delay",e),t.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i).css("width",i+"%")}e<=-t.settings.timer&&(clearInterval(n),t.close())},t.settings.timer)}},close:function(){var t=this,n=parseInt(this.$ele.css(this.settings.placement.from)),i=!1;this.$ele.data("closing","true").addClass(this.settings.animate.exit),t.reposition(n),e.isFunction(t.settings.onClose)&&t.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,function(e){i=!0}).one(this.animations.end,function(n){e(this).remove(),e.isFunction(t.settings.onClosed)&&t.settings.onClosed.call(this)}),setTimeout(function(){i||(t.$ele.remove(),t.settings.onClosed&&t.settings.onClosed(t.$ele))},600)},reposition:function(t){var n=this,i='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',r=this.$ele.nextAll(i);1==this.settings.newest_on_top&&(r=this.$ele.prevAll(i)),r.each(function(){e(this).css(n.settings.placement.from,t),t=parseInt(t)+parseInt(n.settings.spacing)+e(this).outerHeight()})}}),e.notify=function(e,t){return new n(this,e,t).notify},e.notifyDefaults=function(n){return t=e.extend(!0,{},t,n)},e.notifyClose=function(t){"undefined"==typeof t||"all"==t?e("[data-notify]").find('[data-notify="dismiss"]').trigger("click"):e('[data-notify-position="'+t+'"]').find('[data-notify="dismiss"]').trigger("click")}}),function(e,t){"function"==typeof define&&define.amd?define("Chartist",[],function(){return e.Chartist=t()}):"object"==typeof module&&module.exports?module.exports=t():e.Chartist=t()}(this,function(){var e={version:"0.11.0"};return function(e,t,n){"use strict";n.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},n.noop=function(e){return e},n.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},n.extend=function(e){var t,i,r;for(e=e||{},t=1;t<arguments.length;t++)for(var o in i=arguments[t])e[o]="object"!=typeof(r=i[o])||null===r||r instanceof Array?r:n.extend(e[o],r);return e},n.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},n.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},n.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},n.querySelector=function(e){return e instanceof Node?e:t.querySelector(e)},n.times=function(e){return Array.apply(null,new Array(e))},n.sum=function(e,t){return e+(t||0)},n.mapMultiply=function(e){return function(t){return t*e}},n.mapAdd=function(e){return function(t){return t+e}},n.serialMap=function(e,t){var i=[],r=Math.max.apply(null,e.map(function(e){return e.length}));return n.times(r).forEach(function(n,r){var o=e.map(function(e){return e[r]});i[r]=t.apply(null,o)}),i},n.roundWithPrecision=function(e,t){var i=Math.pow(10,t||n.precision);return Math.round(e*i)/i},n.precision=8,n.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},n.serialize=function(e){return null===e||void 0===e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,t,n.escapingMap[t])},e))},n.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,n.escapingMap[t],t)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},n.createSvg=function(e,t,i,r){var o;return t=t||"100%",i=i||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(n.namespaces.xmlns,"ct")}).forEach(function(t){e.removeChild(t)}),(o=new n.Svg("svg").attr({width:t,height:i}).addClass(r))._node.style.width=t,o._node.style.height=i,e.appendChild(o._node),o},n.normalizeData=function(e,t,i){var r,o={raw:e,normalized:{}};return o.normalized.series=n.getDataArray({series:e.series||[]},t,i),r=o.normalized.series.every(function(e){return e instanceof Array})?Math.max.apply(null,o.normalized.series.map(function(e){return e.length})):o.normalized.series.length,o.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(o.normalized.labels,n.times(Math.max(0,r-o.normalized.labels.length)).map(function(){return""})),t&&n.reverseData(o.normalized),o},n.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},n.isDataHoleValue=function(e){return null===e||void 0===e||"number"==typeof e&&isNaN(e)},n.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},n.getDataArray=function(e,t,i){return e.series.map(function e(t){if(n.safeHasProperty(t,"value"))return e(t.value);if(n.safeHasProperty(t,"data"))return e(t.data);if(t instanceof Array)return t.map(e);if(!n.isDataHoleValue(t)){if(i){var r={};return"string"==typeof i?r[i]=n.getNumberOrUndefined(t):r.y=n.getNumberOrUndefined(t),r.x=t.hasOwnProperty("x")?n.getNumberOrUndefined(t.x):r.x,r.y=t.hasOwnProperty("y")?n.getNumberOrUndefined(t.y):r.y,r}return n.getNumberOrUndefined(t)}})},n.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},n.getMetaData=function(e,t){var n=e.data?e.data[t]:e[t];return n?n.meta:void 0},n.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},n.projectLength=function(e,t,n){return t/n.range*e},n.getAvailableHeight=function(e,t){return Math.max((n.quantity(t.height).value||e.height())-(t.chartPadding.top+t.chartPadding.bottom)-t.axisX.offset,0)},n.getHighLow=function(e,t,i){var r={high:void 0===(t=n.extend({},t,i?t["axis"+i.toUpperCase()]:{})).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},o=void 0===t.high,s=void 0===t.low;return(o||s)&&function e(t){if(void 0!==t)if(t instanceof Array)for(var n=0;n<t.length;n++)e(t[n]);else{var a=i?+t[i]:+t;o&&a>r.high&&(r.high=a),s&&a<r.low&&(r.low=a)}}(e),(t.referenceValue||0===t.referenceValue)&&(r.high=Math.max(t.referenceValue,r.high),r.low=Math.min(t.referenceValue,r.low)),r.high<=r.low&&(0===r.low?r.high=1:r.low<0?r.high=0:r.high>0?r.low=0:(r.high=1,r.low=0)),r},n.isNumeric=function(e){return null!==e&&isFinite(e)},n.isFalseyButZero=function(e){return!e&&0!==e},n.getNumberOrUndefined=function(e){return n.isNumeric(e)?+e:void 0},n.isMultiValue=function(e){return"object"==typeof e&&("x"in e||"y"in e)},n.getMultiValue=function(e,t){return n.isMultiValue(e)?n.getNumberOrUndefined(e[t||"y"]):n.getNumberOrUndefined(e)},n.rho=function(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}var i,r=2,o=2;if(e%2==0)return 2;do{r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e)}while(1===i);return i},n.getBounds=function(e,t,i,r){var o,s,a,l=0,c={high:t.high,low:t.low};c.valueRange=c.high-c.low,c.oom=n.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=n.projectLength(e,c.step,c)<i,h=r?n.rho(c.range):0;if(r&&n.projectLength(e,1,c)>=i)c.step=1;else if(r&&h<c.step&&n.projectLength(e,h,c)>=i)c.step=h;else for(;;){if(u&&n.projectLength(e,c.step,c)<=i)c.step*=2;else{if(u||!(n.projectLength(e,c.step/2,c)>=i))break;if(c.step/=2,r&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var d=2.221e-16;function f(e,t){return e===(e+=t)&&(e*=1+(t>0?d:-d)),e}for(c.step=Math.max(c.step,d),s=c.min,a=c.max;s+c.step<=c.low;)s=f(s,c.step);for(;a-c.step>=c.high;)a=f(a,-c.step);c.min=s,c.max=a,c.range=c.max-c.min;var p=[];for(o=c.min;o<=c.max;o=f(o,c.step)){var m=n.roundWithPrecision(o);m!==p[p.length-1]&&p.push(m)}return c.values=p,c},n.polarToCartesian=function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},n.createChartRect=function(e,t,i){var r=!(!t.axisX&&!t.axisY),o=r?t.axisY.offset:0,s=r?t.axisX.offset:0,a=e.width()||n.quantity(t.width).value||0,l=e.height()||n.quantity(t.height).value||0,c=n.normalizePadding(t.chartPadding,i);a=Math.max(a,o+c.left+c.right),l=Math.max(l,s+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return r?("start"===t.axisX.position?(u.y2=c.top+s,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-s,u.y2+1)),"start"===t.axisY.position?(u.x1=c.left+o,u.x2=Math.max(a-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(a-c.right-o,u.x1+1))):(u.x1=c.left,u.x2=Math.max(a-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},n.createGrid=function(e,t,i,r,o,s,a,l){var c={};c[i.units.pos+"1"]=e,c[i.units.pos+"2"]=e,c[i.counterUnits.pos+"1"]=r,c[i.counterUnits.pos+"2"]=r+o;var u=s.elem("line",c,a.join(" "));l.emit("draw",n.extend({type:"grid",axis:i,index:t,group:s,element:u},c))},n.createGridBackground=function(e,t,n,i){var r=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);i.emit("draw",{type:"gridBackground",group:e,element:r})},n.createLabel=function(e,i,r,o,s,a,l,c,u,h,d){var f,p={};if(p[s.units.pos]=e+l[s.units.pos],p[s.counterUnits.pos]=l[s.counterUnits.pos],p[s.units.len]=i,p[s.counterUnits.len]=Math.max(0,a-10),h){var m=t.createElement("span");m.className=u.join(" "),m.setAttribute("xmlns",n.namespaces.xhtml),m.innerText=o[r],m.style[s.units.len]=Math.round(p[s.units.len])+"px",m.style[s.counterUnits.len]=Math.round(p[s.counterUnits.len])+"px",f=c.foreignObject(m,n.extend({style:"overflow: visible;"},p))}else f=c.elem("text",p,u.join(" ")).text(o[r]);d.emit("draw",n.extend({type:"label",axis:s,index:r,group:c,element:f,text:o[r]},p))},n.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var i=t.series[e.name];return i.hasOwnProperty(n)?i[n]:t[n]}return t[n]},n.optionsProvider=function(t,i,r){var o,s,a=n.extend({},t),l=[];function c(t){var l=o;if(o=n.extend({},a),i)for(s=0;s<i.length;s++)e.matchMedia(i[s][0]).matches&&(o=n.extend(o,i[s][1]));r&&t&&r.emit("optionsChanged",{previousOptions:l,currentOptions:o})}if(!e.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(i)for(s=0;s<i.length;s++){var u=e.matchMedia(i[s][0]);u.addListener(c),l.push(u)}return c(),{removeMediaQueryListeners:function(){l.forEach(function(e){e.removeListener(c)})},getCurrentOptions:function(){return n.extend({},o)}}},n.splitIntoSegments=function(e,t,i){i=n.extend({},{increasingX:!1,fillHoles:!1},i);for(var r=[],o=!0,s=0;s<e.length;s+=2)void 0===n.getMultiValue(t[s/2].value)?i.fillHoles||(o=!0):(i.increasingX&&s>=2&&e[s]<=e[s-2]&&(o=!0),o&&(r.push({pathCoordinates:[],valueData:[]}),o=!1),r[r.length-1].pathCoordinates.push(e[s],e[s+1]),r[r.length-1].valueData.push(t[s/2]));return r}}(window,document,e),function(e,t,n){"use strict";n.Interpolation={},n.Interpolation.none=function(e){return e=n.extend({},{fillHoles:!1},e),function(t,i){for(var r=new n.Svg.Path,o=!0,s=0;s<t.length;s+=2){var a=t[s],l=t[s+1],c=i[s/2];void 0!==n.getMultiValue(c.value)?(o?r.move(a,l,!1,c):r.line(a,l,!1,c),o=!1):e.fillHoles||(o=!0)}return r}},n.Interpolation.simple=function(e){e=n.extend({},{divisor:2,fillHoles:!1},e);var t=1/Math.max(1,e.divisor);return function(i,r){for(var o,s,a,l=new n.Svg.Path,c=0;c<i.length;c+=2){var u=i[c],h=i[c+1],d=(u-o)*t,f=r[c/2];void 0!==f.value?(void 0===a?l.move(u,h,!1,f):l.curve(o+d,s,u-d,h,u,h,!1,f),o=u,s=h,a=f):e.fillHoles||(o=u=a=void 0)}return l}},n.Interpolation.cardinal=function(e){e=n.extend({},{tension:1,fillHoles:!1},e);var t=Math.min(1,Math.max(0,e.tension)),i=1-t;return function r(o,s){var a=n.splitIntoSegments(o,s,{fillHoles:e.fillHoles});if(a.length){if(a.length>1){var l=[];return a.forEach(function(e){l.push(r(e.pathCoordinates,e.valueData))}),n.Svg.Path.join(l)}if(s=a[0].valueData,(o=a[0].pathCoordinates).length<=4)return n.Interpolation.none()(o,s);for(var c=(new n.Svg.Path).move(o[0],o[1],!1,s[0]),u=0,h=o.length;h-2>u;u+=2){var d=[{x:+o[u-2],y:+o[u-1]},{x:+o[u],y:+o[u+1]},{x:+o[u+2],y:+o[u+3]},{x:+o[u+4],y:+o[u+5]}];h-4===u?d[3]=d[2]:u||(d[0]={x:+o[u],y:+o[u+1]}),c.curve(t*(6*d[1].x-d[0].x+d[2].x)/6+i*d[2].x,t*(6*d[1].y-d[0].y+d[2].y)/6+i*d[2].y,t*(d[1].x+6*d[2].x-d[3].x)/6+i*d[2].x,t*(d[1].y+6*d[2].y-d[3].y)/6+i*d[2].y,d[2].x,d[2].y,!1,s[(u+2)/2])}return c}return n.Interpolation.none()([])}},n.Interpolation.monotoneCubic=function(e){return e=n.extend({},{fillHoles:!1},e),function t(i,r){var o=n.splitIntoSegments(i,r,{fillHoles:e.fillHoles,increasingX:!0});if(o.length){if(o.length>1){var s=[];return o.forEach(function(e){s.push(t(e.pathCoordinates,e.valueData))}),n.Svg.Path.join(s)}if(r=o[0].valueData,(i=o[0].pathCoordinates).length<=4)return n.Interpolation.none()(i,r);var a,l,c=[],u=[],h=i.length/2,d=[],f=[],p=[],m=[];for(a=0;a<h;a++)c[a]=i[2*a],u[a]=i[2*a+1];for(a=0;a<h-1;a++)p[a]=u[a+1]-u[a],m[a]=c[a+1]-c[a],f[a]=p[a]/m[a];for(d[0]=f[0],d[h-1]=f[h-2],a=1;a<h-1;a++)0===f[a]||0===f[a-1]||f[a-1]>0!=f[a]>0?d[a]=0:(d[a]=3*(m[a-1]+m[a])/((2*m[a]+m[a-1])/f[a-1]+(m[a]+2*m[a-1])/f[a]),isFinite(d[a])||(d[a]=0));for(l=(new n.Svg.Path).move(c[0],u[0],!1,r[0]),a=0;a<h-1;a++)l.curve(c[a]+m[a]/3,u[a]+d[a]*m[a]/3,c[a+1]-m[a]/3,u[a+1]-d[a+1]*m[a]/3,c[a+1],u[a+1],!1,r[a+1]);return l}return n.Interpolation.none()([])}},n.Interpolation.step=function(e){return e=n.extend({},{postpone:!0,fillHoles:!1},e),function(t,i){for(var r,o,s,a=new n.Svg.Path,l=0;l<t.length;l+=2){var c=t[l],u=t[l+1],h=i[l/2];void 0!==h.value?(void 0===s?a.move(c,u,!1,h):(e.postpone?a.line(c,o,!1,s):a.line(r,u,!1,h),a.line(c,u,!1,h)),r=c,o=u,s=h):e.fillHoles||(r=o=s=void 0)}return a}}}(window,document,e),function(e,t,n){"use strict";n.EventEmitter=function(){var e=[];return{addEventHandler:function(t,n){e[t]=e[t]||[],e[t].push(n)},removeEventHandler:function(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])},emit:function(t,n){e[t]&&e[t].forEach(function(e){e(n)}),e["*"]&&e["*"].forEach(function(e){e(t,n)})}}}}(window,document,e),function(e,t,n){"use strict";n.Class={extend:function(e,t){var i=t||this.prototype||n.Class,r=Object.create(i);n.Class.cloneDefinitions(r,e);var o=function(){var e,t=r.constructor||function(){};return e=this===n?Object.create(r):this,t.apply(e,Array.prototype.slice.call(arguments,0)),e};return o.prototype=r,o.super=i,o.extend=this.extend,o},cloneDefinitions:function(){var e=function(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}(arguments),t=e[0];return e.splice(1,e.length-1).forEach(function(e){Object.getOwnPropertyNames(e).forEach(function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}),t}}}(window,document,e),function(e,t,n){"use strict";n.Base=n.Class.extend({constructor:function(t,i,r,o,s){this.container=n.querySelector(t),this.data=i||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=r,this.options=o,this.responsiveOptions=s,this.eventEmitter=n.EventEmitter(),this.supportsForeignObject=n.Svg.isSupported("Extensibility"),this.supportsAnimations=n.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=(function(){this.update()}).bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout((function(){e.addEventListener("resize",this.resizeListener),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",(function(){this.update()}).bind(this)),this.options.plugins&&this.options.plugins.forEach((function(e){e instanceof Array?e[0](this,e[1]):e(this)}).bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}).bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(e,t,i){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),t&&(this.options=n.extend({},i?this.options:this.defaultOptions,t),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?e.clearTimeout(this.initializeTimeoutId):(e.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(e,t){return this.eventEmitter.addEventHandler(e,t),this},off:function(e,t){return this.eventEmitter.removeEventHandler(e,t),this},version:n.version,supportsForeignObject:!1})}(window,document,e),function(e,t,n){"use strict";n.Svg=n.Class.extend({constructor:function(e,i,r,o,s){e instanceof Element?this._node=e:(this._node=t.createElementNS(n.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":n.namespaces.ct})),i&&this.attr(i),r&&this.addClass(r),o&&(s&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))},attr:function(e,t){return"string"==typeof e?t?this._node.getAttributeNS(t,e):this._node.getAttribute(e):(Object.keys(e).forEach((function(t){if(void 0!==e[t])if(-1!==t.indexOf(":")){var i=t.split(":");this._node.setAttributeNS(n.namespaces[i[0]],t,e[t])}else this._node.setAttribute(t,e[t])}).bind(this)),this)},elem:function(e,t,i,r){return new n.Svg(e,t,i,this,r)},parent:function(){return this._node.parentNode instanceof SVGElement?new n.Svg(this._node.parentNode):null},root:function(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new n.Svg(e)},querySelector:function(e){var t=this._node.querySelector(e);return t?new n.Svg(t):null},querySelectorAll:function(e){var t=this._node.querySelectorAll(e);return t.length?new n.Svg.List(t):null},getNode:function(){return this._node},foreignObject:function(e,i,r,o){if("string"==typeof e){var s=t.createElement("div");s.innerHTML=e,e=s.firstChild}e.setAttribute("xmlns",n.namespaces.xmlns);var a=this.elem("foreignObject",i,r,o);return a._node.appendChild(e),a},text:function(e){return this._node.appendChild(t.createTextNode(e)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(e){return this._node.parentNode.replaceChild(e._node,this._node),e},append:function(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter(function(e,t,n){return n.indexOf(e)===t}).join(" ")),this},removeClass:function(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(e){return-1===t.indexOf(e)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(e,t,i){return void 0===t&&(t=!0),Object.keys(e).forEach((function(r){function o(e,t){var o,s,a,l={};e.easing&&(a=e.easing instanceof Array?e.easing:n.Svg.Easing[e.easing],delete e.easing),e.begin=n.ensureUnit(e.begin,"ms"),e.dur=n.ensureUnit(e.dur,"ms"),a&&(e.calcMode="spline",e.keySplines=a.join(" "),e.keyTimes="0;1"),t&&(e.fill="freeze",l[r]=e.from,this.attr(l),s=n.quantity(e.begin||0).value,e.begin="indefinite"),o=this.elem("animate",n.extend({attributeName:r},e)),t&&setTimeout((function(){try{o._node.beginElement()}catch(t){l[r]=e.to,this.attr(l),o.remove()}}).bind(this),s),i&&o._node.addEventListener("beginEvent",(function(){i.emit("animationBegin",{element:this,animate:o._node,params:e})}).bind(this)),o._node.addEventListener("endEvent",(function(){i&&i.emit("animationEnd",{element:this,animate:o._node,params:e}),t&&(l[r]=e.to,this.attr(l),o.remove())}).bind(this))}e[r]instanceof Array?e[r].forEach((function(e){o.bind(this)(e,!1)}).bind(this)):o.bind(this)(e[r],t)}).bind(this)),this}}),n.Svg.isSupported=function(e){return t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")},n.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},n.Svg.List=n.Class.extend({constructor:function(e){var t=this;this.svgElements=[];for(var i=0;i<e.length;i++)this.svgElements.push(new n.Svg(e[i]));Object.keys(n.Svg.prototype).filter(function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)}).forEach(function(e){t[e]=function(){var i=Array.prototype.slice.call(arguments,0);return t.svgElements.forEach(function(t){n.Svg.prototype[e].apply(t,i)}),t}})}})}(window,document,e),function(e,t,n){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},r={accuracy:3};function o(e,t,i,r,o,s){var a=n.extend({command:o?e.toLowerCase():e.toUpperCase()},t,s?{data:s}:{});i.splice(r,0,a)}function s(e,t){e.forEach(function(n,r){i[n.command.toLowerCase()].forEach(function(i,o){t(n,i,r,o,e)})})}n.Svg.Path=n.Class.extend({constructor:function(e,t){this.pathElements=[],this.pos=0,this.close=e,this.options=n.extend({},r,t)},position:function(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos},remove:function(e){return this.pathElements.splice(this.pos,e),this},move:function(e,t,n,i){return o("M",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this},line:function(e,t,n,i){return o("L",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this},curve:function(e,t,n,i,r,s,a,l){return o("C",{x1:+e,y1:+t,x2:+n,y2:+i,x:+r,y:+s},this.pathElements,this.pos++,a,l),this},arc:function(e,t,n,i,r,s,a,l,c){return o("A",{rx:+e,ry:+t,xAr:+n,lAf:+i,sf:+r,x:+s,y:+a},this.pathElements,this.pos++,l,c),this},scale:function(e,t){return s(this.pathElements,function(n,i){n[i]*="x"===i[0]?e:t}),this},translate:function(e,t){return s(this.pathElements,function(n,i){n[i]+="x"===i[0]?e:t}),this},transform:function(e){return s(this.pathElements,function(t,n,i,r,o){var s=e(t,n,i,r,o);(s||0===s)&&(t[n]=s)}),this},parse:function(e){var t=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e},[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();var r=t.map(function(e){var t=e.shift(),r=i[t.toLowerCase()];return n.extend({command:t},r.reduce(function(t,n,i){return t[n]=+e[i],t},{}))}),o=[this.pos,0];return Array.prototype.push.apply(o,r),Array.prototype.splice.apply(this.pathElements,o),this.pos+=r.length,this},stringify:function(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((function(t,n){var r=i[n.command.toLowerCase()].map((function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}).bind(this));return t+n.command+r.join(",")}).bind(this),"")+(this.close?"Z":"")},clone:function(e){var t=new n.Svg.Path(e||this.close);return t.pos=this.pos,t.pathElements=this.pathElements.slice().map(function(e){return n.extend({},e)}),t.options=n.extend({},this.options),t},splitByCommand:function(e){var t=[new n.Svg.Path];return this.pathElements.forEach(function(i){i.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new n.Svg.Path),t[t.length-1].pathElements.push(i)}),t}}),n.Svg.Path.elementDescriptions=i,n.Svg.Path.join=function(e,t,i){for(var r=new n.Svg.Path(t,i),o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.pathElements.length;a++)r.pathElements.push(s.pathElements[a]);return r}}(window,document,e),function(e,t,n){"use strict";var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};n.Axis=n.Class.extend({constructor:function(e,t,n,r){this.units=e,this.counterUnits=e===i.x?i.y:i.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=r},createGridAndLabels:function(e,t,i,r,o){var s=r["axis"+this.units.pos.toUpperCase()],a=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(s.labelInterpolationFnc);a.forEach((function(c,u){var h,d={x:0,y:0};h=a[u+1]?a[u+1]-c:Math.max(this.axisLength-c,30),n.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,d.x=r.axisX.labelOffset.x,d.y="start"===r.axisX.position?this.chartRect.padding.top+r.axisX.labelOffset.y+(i?5:20):this.chartRect.y1+r.axisX.labelOffset.y+(i?5:20)):(c=this.chartRect.y1-c,d.y=r.axisY.labelOffset.y-(i?h:0),d.x="start"===r.axisY.position?i?this.chartRect.padding.left+r.axisY.labelOffset.x:this.chartRect.x1-10:this.chartRect.x2+r.axisY.labelOffset.x+10),s.showGrid&&n.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[r.classNames.grid,r.classNames[this.units.dir]],o),s.showLabel&&n.createLabel(c,h,u,l,this,s.offset,d,t,[r.classNames.label,r.classNames[this.units.dir],"start"===s.position?r.classNames[s.position]:r.classNames.end],i,o))}).bind(this))},projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),n.Axis.units=i}(window,document,e),function(e,t,n){"use strict";n.AutoScaleAxis=n.Axis.extend({constructor:function(e,t,i,r){var o=r.highLow||n.getHighLow(t,r,e.pos);this.bounds=n.getBounds(i[e.rectEnd]-i[e.rectStart],o,r.scaleMinSpace||20,r.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},n.AutoScaleAxis.super.constructor.call(this,e,i,this.bounds.values,r)},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}})}(window,document,e),function(e,t,n){"use strict";n.FixedScaleAxis=n.Axis.extend({constructor:function(e,t,i,r){var o=r.highLow||n.getHighLow(t,r,e.pos);this.divisor=r.divisor||1,this.ticks=r.ticks||n.times(this.divisor).map((function(e,t){return o.low+(o.high-o.low)/this.divisor*t}).bind(this)),this.ticks.sort(function(e,t){return e-t}),this.range={min:o.low,max:o.high},n.FixedScaleAxis.super.constructor.call(this,e,i,this.ticks,r),this.stepLength=this.axisLength/this.divisor},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(window,document,e),function(e,t,n){"use strict";n.StepAxis=n.Axis.extend({constructor:function(e,t,i,r){n.StepAxis.super.constructor.call(this,e,i,r.ticks,r);var o=Math.max(1,r.ticks.length-(r.stretch?1:0));this.stepLength=this.axisLength/o},projectValue:function(e,t){return this.stepLength*t}})}(window,document,e),function(e,t,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Line=n.Base.extend({constructor:function(e,t,r,o){n.Line.super.constructor.call(this,e,t,i,n.extend({},i,r),o)},createChart:function(e){var t=n.normalizeData(this.data,e.reverseData,!0);this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart);var r,o,s=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=n.createChartRect(this.svg,e,i.padding);r=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t.normalized.series,c,n.extend({},e.axisX,{ticks:t.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,c,e.axisX),o=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t.normalized.series,c,n.extend({},e.axisY,{high:n.isNumeric(e.high)?e.high:e.axisY.high,low:n.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,c,e.axisY),r.createGridAndLabels(s,l,this.supportsForeignObject,e,this.eventEmitter),o.createGridAndLabels(s,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&n.createGridBackground(s,c,e.classNames.gridBackground,this.eventEmitter),t.raw.series.forEach((function(i,s){var l=a.elem("g");l.attr({"ct:series-name":i.name,"ct:meta":n.serialize(i.meta)}),l.addClass([e.classNames.series,i.className||e.classNames.series+"-"+n.alphaNumerate(s)].join(" "));var u=[],h=[];t.normalized.series[s].forEach((function(e,a){var l={x:c.x1+r.projectValue(e,a,t.normalized.series[s]),y:c.y1-o.projectValue(e,a,t.normalized.series[s])};u.push(l.x,l.y),h.push({value:e,valueIndex:a,meta:n.getMetaData(i,a)})}).bind(this));var d={lineSmooth:n.getSeriesOption(i,e,"lineSmooth"),showPoint:n.getSeriesOption(i,e,"showPoint"),showLine:n.getSeriesOption(i,e,"showLine"),showArea:n.getSeriesOption(i,e,"showArea"),areaBase:n.getSeriesOption(i,e,"areaBase")},f=("function"==typeof d.lineSmooth?d.lineSmooth:d.lineSmooth?n.Interpolation.monotoneCubic():n.Interpolation.none())(u,h);if(d.showPoint&&f.pathElements.forEach((function(t){var a=l.elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y},e.classNames.point).attr({"ct:value":[t.data.value.x,t.data.value.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(t.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:t.data.value,index:t.data.valueIndex,meta:t.data.meta,series:i,seriesIndex:s,axisX:r,axisY:o,group:l,element:a,x:t.x,y:t.y})}).bind(this)),d.showLine){var p=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:t.normalized.series[s],path:f.clone(),chartRect:c,index:s,series:i,seriesIndex:s,seriesMeta:i.meta,axisX:r,axisY:o,group:l,element:p})}if(d.showArea&&o.range){var m=Math.max(Math.min(d.areaBase,o.range.max),o.range.min),g=c.y1-o.projectValue(m);f.splitByCommand("M").filter(function(e){return e.pathElements.length>1}).map(function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,g)}).forEach((function(n){var a=l.elem("path",{d:n.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:t.normalized.series[s],path:n.clone(),series:i,seriesIndex:s,axisX:r,axisY:o,chartRect:c,index:s,group:l,element:a})}).bind(this))}}).bind(this)),this.eventEmitter.emit("created",{bounds:o.bounds,chartRect:c,axisX:r,axisY:o,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Bar=n.Base.extend({constructor:function(e,t,r,o){n.Bar.super.constructor.call(this,e,t,i,n.extend({},i,r),o)},createChart:function(e){var t,r;e.distributeSeries?(t=n.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=t.normalized.series.map(function(e){return[e]}):t=n.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var o=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),a=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==t.normalized.series.length){var l=n.serialMap(t.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(e){return e}).reduce(function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}},{x:0,y:0})});r=n.getHighLow([l],e,e.horizontalBars?"x":"y")}else r=n.getHighLow(t.normalized.series,e,e.horizontalBars?"x":"y");r.high=+e.high||(0===e.high?0:r.high),r.low=+e.low||(0===e.low?0:r.low);var c,u,h,d,f,p=n.createChartRect(this.svg,e,i.padding);u=e.distributeSeries&&e.stackBars?t.normalized.labels.slice(0,1):t.normalized.labels,e.horizontalBars?(c=d=void 0===e.axisX.type?new n.AutoScaleAxis(n.Axis.units.x,t.normalized.series,p,n.extend({},e.axisX,{highLow:r,referenceValue:0})):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,p,n.extend({},e.axisX,{highLow:r,referenceValue:0})),h=f=void 0===e.axisY.type?new n.StepAxis(n.Axis.units.y,t.normalized.series,p,{ticks:u}):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,p,e.axisY)):(h=d=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t.normalized.series,p,{ticks:u}):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,p,e.axisX),c=f=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t.normalized.series,p,n.extend({},e.axisY,{highLow:r,referenceValue:0})):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,p,n.extend({},e.axisY,{highLow:r,referenceValue:0})));var m=e.horizontalBars?p.x1+c.projectValue(0):p.y1-c.projectValue(0),g=[];h.createGridAndLabels(o,a,this.supportsForeignObject,e,this.eventEmitter),c.createGridAndLabels(o,a,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&n.createGridBackground(o,p,e.classNames.gridBackground,this.eventEmitter),t.raw.series.forEach((function(i,r){var o,a,l=r-(t.raw.series.length-1)/2;o=e.distributeSeries&&!e.stackBars?h.axisLength/t.normalized.series.length/2:e.distributeSeries&&e.stackBars?h.axisLength/2:h.axisLength/t.normalized.series[r].length/2,(a=s.elem("g")).attr({"ct:series-name":i.name,"ct:meta":n.serialize(i.meta)}),a.addClass([e.classNames.series,i.className||e.classNames.series+"-"+n.alphaNumerate(r)].join(" ")),t.normalized.series[r].forEach((function(s,u){var v,y,b,_;if(_=e.distributeSeries&&!e.stackBars?r:e.distributeSeries&&e.stackBars?0:u,v=e.horizontalBars?{x:p.x1+c.projectValue(s&&s.x?s.x:0,u,t.normalized.series[r]),y:p.y1-h.projectValue(s&&s.y?s.y:0,_,t.normalized.series[r])}:{x:p.x1+h.projectValue(s&&s.x?s.x:0,_,t.normalized.series[r]),y:p.y1-c.projectValue(s&&s.y?s.y:0,u,t.normalized.series[r])},h instanceof n.StepAxis&&(h.options.stretch||(v[h.units.pos]+=o*(e.horizontalBars?-1:1)),v[h.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),g[u]=(b=g[u]||m)-(m-v[h.counterUnits.pos]),void 0!==s){var w={};w[h.units.pos+"1"]=v[h.units.pos],w[h.units.pos+"2"]=v[h.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[h.counterUnits.pos+"1"]=m,w[h.counterUnits.pos+"2"]=v[h.counterUnits.pos]):(w[h.counterUnits.pos+"1"]=b,w[h.counterUnits.pos+"2"]=g[u]),w.x1=Math.min(Math.max(w.x1,p.x1),p.x2),w.x2=Math.min(Math.max(w.x2,p.x1),p.x2),w.y1=Math.min(Math.max(w.y1,p.y2),p.y1),w.y2=Math.min(Math.max(w.y2,p.y2),p.y1);var x=n.getMetaData(i,u);y=a.elem("line",w,e.classNames.bar).attr({"ct:value":[s.x,s.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(x)}),this.eventEmitter.emit("draw",n.extend({type:"bar",value:s,index:u,meta:x,series:i,seriesIndex:r,axisX:d,axisY:f,chartRect:p,group:a,element:y},w))}}).bind(this))}).bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:p,axisX:d,axisY:f,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";var i={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:n.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function r(e,t,n){var i=t.x>e.x;return i&&"explode"===n||!i&&"implode"===n?"start":i&&"implode"===n||!i&&"explode"===n?"end":"middle"}n.Pie=n.Base.extend({constructor:function(e,t,r,o){n.Pie.super.constructor.call(this,e,t,i,n.extend({},i,r),o)},createChart:function(e){var t,o,s,a,l,c=n.normalizeData(this.data),u=[],h=e.startAngle;this.svg=n.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),o=n.createChartRect(this.svg,e,i.padding),s=Math.min(o.width()/2,o.height()/2),l=e.total||c.normalized.series.reduce(function(e,t){return e+t},0);var d=n.quantity(e.donutWidth);"%"===d.unit&&(d.value*=s/100),s-=e.donut&&!e.donutSolid?d.value/2:0,a="outside"===e.labelPosition||e.donut&&!e.donutSolid?s:"center"===e.labelPosition?0:e.donutSolid?s-d.value/2:s/2,a+=e.labelOffset;var f={x:o.x1+o.width()/2,y:o.y2+o.height()/2},p=1===c.raw.series.filter(function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e}).length;c.raw.series.forEach((function(e,t){u[t]=this.svg.elem("g",null,null)}).bind(this)),e.showLabel&&(t=this.svg.elem("g",null,null)),c.raw.series.forEach((function(i,o){if(0!==c.normalized.series[o]||!e.ignoreEmptyValues){u[o].attr({"ct:series-name":i.name}),u[o].addClass([e.classNames.series,i.className||e.classNames.series+"-"+n.alphaNumerate(o)].join(" "));var m=l>0?h+c.normalized.series[o]/l*360:0,g=Math.max(0,h-(0===o||p?0:.2));m-g>=359.99&&(m=g+359.99);var v,y,b,_=n.polarToCartesian(f.x,f.y,s,g),w=n.polarToCartesian(f.x,f.y,s,m),x=new n.Svg.Path(!e.donut||e.donutSolid).move(w.x,w.y).arc(s,s,0,m-h>180,0,_.x,_.y);e.donut?e.donutSolid&&(v=n.polarToCartesian(f.x,f.y,b=s-d.value,h-(0===o||p?0:.2)),y=n.polarToCartesian(f.x,f.y,b,m),x.line(v.x,v.y),x.arc(b,b,0,m-h>180,1,y.x,y.y)):x.line(f.x,f.y);var E=e.classNames.slicePie;e.donut&&(E=e.classNames.sliceDonut,e.donutSolid&&(E=e.classNames.sliceDonutSolid));var S=u[o].elem("path",{d:x.stringify()},E);if(S.attr({"ct:value":c.normalized.series[o],"ct:meta":n.serialize(i.meta)}),e.donut&&!e.donutSolid&&(S._node.style.strokeWidth=d.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[o],totalDataSum:l,index:o,meta:i.meta,series:i,group:u[o],element:S,path:x.clone(),center:f,radius:s,startAngle:h,endAngle:m}),e.showLabel){var C,T;C=1===c.raw.series.length?{x:f.x,y:f.y}:n.polarToCartesian(f.x,f.y,a,h+(m-h)/2),T=c.normalized.labels&&!n.isFalseyButZero(c.normalized.labels[o])?c.normalized.labels[o]:c.normalized.series[o];var D=e.labelInterpolationFnc(T,o);if(D||0===D){var k=t.elem("text",{dx:C.x,dy:C.y,"text-anchor":r(f,C,e.labelDirection)},e.classNames.label).text(""+D);this.eventEmitter.emit("draw",{type:"label",index:o,group:t,element:k,text:""+D,x:C.x,y:C.y})}}h=m}}).bind(this)),this.eventEmitter.emit("created",{chartRect:o,svg:this.svg,options:e})},determineAnchorPosition:r})}(window,document,e),e});