!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(k,t){"use strict";var e=[],x=k.document,i=Object.getPrototypeOf,a=e.slice,m=e.concat,l=e.push,s=e.indexOf,n={},o=n.toString,g=n.hasOwnProperty,r=g.toString,c=r.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},h={type:!0,src:!0,noModule:!0};function _(t,e,n){var i,s=(e=e||x).createElement("script");if(s.text=t,n)for(i in h)n[i]&&(s[i]=n[i]);e.head.appendChild(s).parentNode.removeChild(s)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[o.call(t)]||"object":typeof t}var u="3.3.1",C=function(t,e){return new C.fn.init(t,e)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}C.fn=C.prototype={jquery:u,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(n){return this.pushStack(C.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},C.extend=C.fn.extend=function(){var t,e,n,i,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||y(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=r[e],r!==(i=t[e])&&(c&&i&&(C.isPlainObject(i)||(s=Array.isArray(i)))?(o=s?(s=!1,n&&Array.isArray(n)?n:[]):n&&C.isPlainObject(n)?n:{},r[e]=C.extend(c,o,i)):void 0!==i&&(r[e]=i));return r},C.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==o.call(t))&&(!(e=i(t))||"function"==typeof(n=g.call(e,"constructor")&&e.constructor)&&r.call(n)===c)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){_(t)},each:function(t,e){var n,i=0;if(f(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(d,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(f(Object(t))?C.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:s.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,s=t.length;i<n;i++)t[s++]=e[i];return t.length=s,t},grep:function(t,e,n){for(var i=[],s=0,o=t.length,r=!n;s<o;s++)!e(t[s],s)!==r&&i.push(t[s]);return i},map:function(t,e,n){var i,s,o=0,r=[];if(f(t))for(i=t.length;o<i;o++)null!=(s=e(t[o],o,n))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,n))&&r.push(s);return m.apply([],r)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=e[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var p=function(n){var t,f,_,o,s,p,u,m,w,l,c,D,k,r,x,g,a,h,v,C="sizzle"+1*new Date,y=n.document,S=0,i=0,d=rt(),b=rt(),T=rt(),E=function(t,e){return t===e&&(c=!0),0},M={}.hasOwnProperty,e=[],A=e.pop,O=e.push,I=e.push,N=e.slice,P=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Y="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",H="\\["+Y+"*("+L+")(?:"+Y+"*([*^$|!~]?=)"+Y+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+Y+"*\\]",$=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",R=new RegExp(Y+"+","g"),W=new RegExp("^"+Y+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Y+"+$","g"),U=new RegExp("^"+Y+"*,"+Y+"*"),F=new RegExp("^"+Y+"*([>+~]|"+Y+")"+Y+"*"),q=new RegExp("="+Y+"*([^\\]'\"]*?)"+Y+"*\\]","g"),B=new RegExp($),V=new RegExp("^"+L+"$"),z={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Y+"*(even|odd|(([+-]|)(\\d*)n|)"+Y+"*(?:([+-]|)"+Y+"*(\\d+)|))"+Y+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+Y+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Y+"*((?:-\\d)?\\d*)"+Y+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+Y+"?|("+Y+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){D()},st=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{I.apply(e=N.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(t){I={apply:e.length?function(t,e){O.apply(t,N.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,n,i){var s,o,r,a,l,c,h,u=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&((e?e.ownerDocument||e:y)!==k&&D(e),e=e||k,x)){if(11!==d&&(l=Z.exec(t)))if(s=l[1]){if(9===d){if(!(r=e.getElementById(s)))return n;if(r.id===s)return n.push(r),n}else if(u&&(r=u.getElementById(s))&&v(e,r)&&r.id===s)return n.push(r),n}else{if(l[2])return I.apply(n,e.getElementsByTagName(t)),n;if((s=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(s)),n}if(f.qsa&&!T[t+" "]&&(!g||!g.test(t))){if(1!==d)u=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,nt):e.setAttribute("id",a=C),o=(c=p(t)).length;o--;)c[o]="#"+a+" "+vt(c[o]);h=c.join(","),u=X.test(t)&&mt(e.parentNode)||e}if(h)try{return I.apply(n,u.querySelectorAll(h)),n}catch(t){}finally{a===C&&e.removeAttribute("id")}}}return m(t.replace(W,"$1"),e,n,i)}function rt(){var i=[];return function t(e,n){return i.push(e+" ")>_.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function at(t){return t[C]=!0,t}function lt(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function ft(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&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pt(r){return at(function(o){return o=+o,at(function(t,e){for(var n,i=r([],t.length,o),s=i.length;s--;)t[n=i[s]]&&(t[n]=!(e[n]=t[n]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=ot.support={},s=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},D=ot.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:y;return i!==k&&9===i.nodeType&&i.documentElement&&(r=(k=i).documentElement,x=!s(k),y!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",it,!1):n.attachEvent&&n.attachEvent("onunload",it)),f.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=lt(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=Q.test(k.getElementsByClassName),f.getById=lt(function(t){return r.appendChild(t).id=C,!k.getElementsByName||!k.getElementsByName(C).length}),f.getById?(_.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var n=t.replace(J,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n,i,s,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(s=e.getElementsByName(t),i=0;o=s[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),_.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[s++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&x)return e.getElementsByClassName(t)},a=[],g=[],(f.qsa=Q.test(k.querySelectorAll))&&(lt(function(t){r.appendChild(t).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+Y+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+Y+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+C+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+Y+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),r.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=Q.test(h=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&<(function(t){f.disconnectedMatch=h.call(t,"*"),h.call(t,"[s!='']:x"),a.push("!=",$)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),e=Q.test(r.compareDocumentPosition),v=e||Q.test(r.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===k||t.ownerDocument===y&&v(y,t)?-1:e===k||e.ownerDocument===y&&v(y,e)?1:l?P(l,t)-P(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===k?-1:e===k?1:s?-1:o?1:l?P(l,t)-P(l,e):0;if(s===o)return ht(t,e);for(n=t;n=n.parentNode;)r.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?ht(r[i],a[i]):r[i]===y?-1:a[i]===y?1:0}),k},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==k&&D(t),e=e.replace(q,"='$1']"),f.matchesSelector&&x&&!T[e+" "]&&(!a||!a.test(e))&&(!g||!g.test(e)))try{var n=h.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<ot(e,k,null,[t]).length},ot.contains=function(t,e){return(t.ownerDocument||t)!==k&&D(t),v(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==k&&D(t);var n=_.attrHandle[e.toLowerCase()],i=n&&M.call(_.attrHandle,e.toLowerCase())?n(t,e,!x):void 0;return void 0!==i?i:f.attributes||!x?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],i=0,s=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(E),c){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)t.splice(n[i],1)}return l=null,t},o=ot.getText=function(t){var e,n="",i=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(_=ot.selectors={cacheLength:50,createPseudo:at,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=p(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=d[t+" "];return e||(e=new RegExp("(^|"+Y+")"+t+"("+Y+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,s){return function(t){var e=ot.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===s:"!="===i?e!==s:"^="===i?s&&0===e.indexOf(s):"*="===i?s&&-1<e.indexOf(s):"$="===i?s&&e.slice(-s.length)===s:"~="===i?-1<(" "+e.replace(R," ")+" ").indexOf(s):"|="===i&&(e===s||e.slice(0,s.length+1)===s+"-"))}},CHILD:function(p,t,e,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,s,o,r,a,l,c=v!==y?"nextSibling":"previousSibling",h=t.parentNode,u=b&&t.nodeName.toLowerCase(),d=!n&&!b,f=!1;if(h){if(v){for(;c;){for(r=t;r=r[c];)if(b?r.nodeName.toLowerCase()===u:1===r.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?h.firstChild:h.lastChild],y&&d){for(f=(a=(i=(s=(o=(r=h)[C]||(r[C]={}))[r.uniqueID]||(o[r.uniqueID]={}))[p]||[])[0]===S&&i[1])&&i[2],r=a&&h.childNodes[a];r=++a&&r&&r[c]||(f=a=0)||l.pop();)if(1===r.nodeType&&++f&&r===t){s[p]=[S,a,f];break}}else if(d&&(f=a=(i=(s=(o=(r=t)[C]||(r[C]={}))[r.uniqueID]||(o[r.uniqueID]={}))[p]||[])[0]===S&&i[1]),!1===f)for(;(r=++a&&r&&r[c]||(f=a=0)||l.pop())&&((b?r.nodeName.toLowerCase()!==u:1!==r.nodeType)||!++f||(d&&((s=(o=r[C]||(r[C]={}))[r.uniqueID]||(o[r.uniqueID]={}))[p]=[S,f]),r!==t)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(t,o){var e,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[C]?r(o):1<r.length?(e=[t,t,"",o],_.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,e){for(var n,i=r(t,o),s=i.length;s--;)t[n=P(t,i[s])]=!(e[n]=i[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:at(function(t){var i=[],s=[],a=u(t.replace(W,"$1"));return a[C]?at(function(t,e,n,i){for(var s,o=a(t,null,i,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,e,n){return i[0]=t,a(i,null,n,s),i[0]=null,!s.pop()}}),has:at(function(e){return function(t){return 0<ot(e,t).length}}),contains:at(function(e){return e=e.replace(J,tt),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:at(function(n){return V.test(n||"")||ot.error("unsupported lang: "+n),n=n.replace(J,tt).toLowerCase(),function(t){var e;do{if(e=x?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===r},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:pt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:pt(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:pt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=ut(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=dt(t);function gt(){}function vt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function yt(a,t,e){var l=t.dir,c=t.next,h=c||l,u=e&&"parentNode"===h,d=i++;return t.first?function(t,e,n){for(;t=t[l];)if(1===t.nodeType||u)return a(t,e,n);return!1}:function(t,e,n){var i,s,o,r=[S,d];if(n){for(;t=t[l];)if((1===t.nodeType||u)&&a(t,e,n))return!0}else for(;t=t[l];)if(1===t.nodeType||u)if(s=(o=t[C]||(t[C]={}))[t.uniqueID]||(o[t.uniqueID]={}),c&&c===t.nodeName.toLowerCase())t=t[l]||t;else{if((i=s[h])&&i[0]===S&&i[1]===d)return r[2]=i[2];if((s[h]=r)[2]=a(t,e,n))return!0}return!1}}function bt(s){return 1<s.length?function(t,e,n){for(var i=s.length;i--;)if(!s[i](t,e,n))return!1;return!0}:s[0]}function _t(t,e,n,i,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,s)||(r.push(o),c&&e.push(a)));return r}function wt(f,p,m,g,v,t){return g&&!g[C]&&(g=wt(g)),v&&!v[C]&&(v=wt(v,t)),at(function(t,e,n,i){var s,o,r,a=[],l=[],c=e.length,h=t||function(t,e,n){for(var i=0,s=e.length;i<s;i++)ot(t,e[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),u=!f||!t&&p?h:_t(h,a,f,n,i),d=m?v||(t?f:c||g)?[]:e:u;if(m&&m(u,d,n,i),g)for(s=_t(d,l),g(s,[],n,i),o=s.length;o--;)(r=s[o])&&(d[l[o]]=!(u[l[o]]=r));if(t){if(v||f){if(v){for(s=[],o=d.length;o--;)(r=d[o])&&s.push(u[o]=r);v(null,d=[],s,i)}for(o=d.length;o--;)(r=d[o])&&-1<(s=v?P(t,r):a[o])&&(t[s]=!(e[s]=r))}}else d=_t(d===e?d.splice(c,d.length):d),v?v(null,e,d,i):I.apply(e,d)})}function Dt(t){for(var s,e,n,i=t.length,o=_.relative[t[0].type],r=o||_.relative[" "],a=o?1:0,l=yt(function(t){return t===s},r,!0),c=yt(function(t){return-1<P(s,t)},r,!0),h=[function(t,e,n){var i=!o&&(n||e!==w)||((s=e).nodeType?l(t,e,n):c(t,e,n));return s=null,i}];a<i;a++)if(e=_.relative[t[a].type])h=[yt(bt(h),e)];else{if((e=_.filter[t[a].type].apply(null,t[a].matches))[C]){for(n=++a;n<i&&!_.relative[t[n].type];n++);return wt(1<a&&bt(h),1<a&&vt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(W,"$1"),e,a<n&&Dt(t.slice(a,n)),n<i&&Dt(t=t.slice(n)),n<i&&vt(t))}h.push(e)}return bt(h)}return gt.prototype=_.filters=_.pseudos,_.setFilters=new gt,p=ot.tokenize=function(t,e){var n,i,s,o,r,a,l,c=b[t+" "];if(c)return e?0:c.slice(0);for(r=t,a=[],l=_.preFilter;r;){for(o in n&&!(i=U.exec(r))||(i&&(r=r.slice(i[0].length)||r),a.push(s=[])),n=!1,(i=F.exec(r))&&(n=i.shift(),s.push({value:n,type:i[0].replace(W," ")}),r=r.slice(n.length)),_.filter)!(i=z[o].exec(r))||l[o]&&!(i=l[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),r=r.slice(n.length));if(!n)break}return e?r.length:r?ot.error(t):b(t,a).slice(0)},u=ot.compile=function(t,e){var n,g,v,y,b,i,s=[],o=[],r=T[t+" "];if(!r){for(e||(e=p(t)),n=e.length;n--;)(r=Dt(e[n]))[C]?s.push(r):o.push(r);(r=T(t,(g=o,y=0<(v=s).length,b=0<g.length,i=function(t,e,n,i,s){var o,r,a,l=0,c="0",h=t&&[],u=[],d=w,f=t||b&&_.find.TAG("*",s),p=S+=null==d?1:Math.random()||.1,m=f.length;for(s&&(w=e===k||e||s);c!==m&&null!=(o=f[c]);c++){if(b&&o){for(r=0,e||o.ownerDocument===k||(D(o),n=!x);a=g[r++];)if(a(o,e||k,n)){i.push(o);break}s&&(S=p)}y&&((o=!a&&o)&&l--,t&&h.push(o))}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(h,u,e,n);if(t){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=A.call(i));u=_t(u)}I.apply(i,u),s&&!t&&0<u.length&&1<l+v.length&&ot.uniqueSort(i)}return s&&(S=p,w=d),h},y?at(i):i))).selector=t}return r},m=ot.select=function(t,e,n,i){var s,o,r,a,l,c="function"==typeof t&&t,h=!i&&p(t=c.selector||t);if(n=n||[],1===h.length){if(2<(o=h[0]=h[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===e.nodeType&&x&&_.relative[o[1].type]){if(!(e=(_.find.ID(r.matches[0].replace(J,tt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=z.needsContext.test(t)?0:o.length;s--&&(r=o[s],!_.relative[a=r.type]);)if((l=_.find[a])&&(i=l(r.matches[0].replace(J,tt),X.test(o[0].type)&&mt(e.parentNode)||e))){if(o.splice(s,1),!(t=i.length&&vt(o)))return I.apply(n,i),n;break}}return(c||u(t,h))(i,e,!x,n,!e||X.test(t)&&mt(e.parentNode)||e),n},f.sortStable=C.split("").sort(E).join("")===C,f.detectDuplicates=!!c,D(),f.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&<(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct(j,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),ot}(k);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains,C.escapeSelector=p.escape;var D=function(t,e,n){for(var i=[],s=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&C(t).is(n))break;i.push(t)}return i},S=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},T=C.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,n,i){return y(n)?C.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?C.grep(t,function(t){return t===n!==i}):"string"!=typeof n?C.grep(t,function(t){return-1<s.call(n,t)!==i}):C.filter(n,t,i)}C.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?C.find.matchesSelector(i,t)?[i]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n,i=this.length,s=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<i;e++)if(C.contains(s[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)C.find(t,s[e],n);return 1<i?C.uniqueSort(n):n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&T.test(t)?C(t):t||[],!1).length}});var O,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var i,s;if(!t)return this;if(n=n||O,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:I.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),M.test(i[1])&&C.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=x.getElementById(i[2]))&&(this[0]=s,this.length=1),this}).prototype=C.fn,O=C(x);var N=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function j(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,s=this.length,o=[],r="string"!=typeof t&&C(t);if(!T.test(t))for(;i<s;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(C(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return D(t,"parentNode")},parentsUntil:function(t,e,n){return D(t,"parentNode",n)},next:function(t){return j(t,"nextSibling")},prev:function(t){return j(t,"previousSibling")},nextAll:function(t){return D(t,"nextSibling")},prevAll:function(t){return D(t,"previousSibling")},nextUntil:function(t,e,n){return D(t,"nextSibling",n)},prevUntil:function(t,e,n){return D(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return E(t,"iframe")?t.contentDocument:(E(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(i,s){C.fn[i]=function(t,e){var n=C.map(this,s,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=C.filter(e,n)),1<this.length&&(P[i]||C.uniqueSort(n),N.test(i)&&n.reverse()),this.pushStack(n)}});var Y=/[^\x20\t\r\n\f]+/g;function L(t){return t}function H(t){throw t}function $(t,e,n,i){var s;try{t&&y(s=t.promise)?s.call(t).done(e).fail(n):t&&y(s=t.then)?s.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},C.each(t.match(Y)||[],function(t,e){n[e]=!0}),n):C.extend({},i);var s,e,o,r,a=[],l=[],c=-1,h=function(){for(r=r||i.once,o=s=!0;l.length;c=-1)for(e=l.shift();++c<a.length;)!1===a[c].apply(e[0],e[1])&&i.stopOnFalse&&(c=a.length,e=!1);i.memory||(e=!1),s=!1,r&&(a=e?[]:"")},u={add:function(){return a&&(e&&!s&&(c=a.length-1,l.push(e)),function n(t){C.each(t,function(t,e){y(e)?i.unique&&u.has(e)||a.push(e):e&&e.length&&"string"!==w(e)&&n(e)})}(arguments),e&&!s&&h()),this},remove:function(){return C.each(arguments,function(t,e){for(var n;-1<(n=C.inArray(e,a,n));)a.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<C.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return r=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return r=l=[],e||s||(a=e=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),s||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},C.extend({Deferred:function(t){var o=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],s="pending",r={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var s=arguments;return C.Deferred(function(i){C.each(o,function(t,e){var n=y(s[e[4]])&&s[e[4]];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&y(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),s=null}).promise()},then:function(e,n,i){var l=0;function c(s,o,r,a){return function(){var n=this,i=arguments,t=function(){var t,e;if(!(s<l)){if((t=r.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,y(e)?a?e.call(t,c(l,o,L,a),c(l,o,H,a)):(l++,e.call(t,c(l,o,L,a),c(l,o,H,a),c(l,o,L,o.notifyWith))):(r!==L&&(n=void 0,i=[t]),(a||o.resolveWith)(n,i))}},e=a?t:function(){try{t()}catch(t){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(t,e.stackTrace),l<=s+1&&(r!==H&&(n=void 0,i=[t]),o.rejectWith(n,i))}};s?e():(C.Deferred.getStackHook&&(e.stackTrace=C.Deferred.getStackHook()),k.setTimeout(e))}}return C.Deferred(function(t){o[0][3].add(c(0,t,y(i)?i:L,t.notifyWith)),o[1][3].add(c(0,t,y(e)?e:L)),o[2][3].add(c(0,t,y(n)?n:H))}).promise()},promise:function(t){return null!=t?C.extend(t,r):r}},a={};return C.each(o,function(t,e){var n=e[2],i=e[5];r[e[1]]=n.add,i&&n.add(function(){s=i},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),n.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=n.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){var n=arguments.length,e=n,i=Array(e),s=a.call(arguments),o=C.Deferred(),r=function(e){return function(t){i[e]=this,s[e]=1<arguments.length?a.call(arguments):t,--n||o.resolveWith(i,s)}};if(n<=1&&($(t,o.done(r(e)).resolve,o.reject,!n),"pending"===o.state()||y(s[e]&&s[e].then)))return o.then();for(;e--;)$(s[e],r(e),o.reject);return o.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){k.console&&k.console.warn&&t&&R.test(t.name)&&k.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){k.setTimeout(function(){throw t})};var W=C.Deferred();function U(){x.removeEventListener("DOMContentLoaded",U),k.removeEventListener("load",U),C.ready()}C.fn.ready=function(t){return W.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||W.resolveWith(x,[C])}}),C.ready.then=W.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?k.setTimeout(C.ready):(x.addEventListener("DOMContentLoaded",U),k.addEventListener("load",U));var F=function(t,e,n,i,s,o,r){var a=0,l=t.length,c=null==n;if("object"===w(n))for(a in s=!0,n)F(t,e,a,n[a],!0,o,r);else if(void 0!==i&&(s=!0,y(i)||(r=!0),c&&(e=r?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(C(t),n)})),e))for(;a<l;a++)e(t[a],n,r?i:i.call(t[a],a,e(t[a],n)));return s?t:c?e.call(t):l?e(t[0],n):o},q=/^-ms-/,B=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function z(t){return t.replace(q,"ms-").replace(B,V)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=C.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,s=this.cache(t);if("string"==typeof e)s[z(e)]=n;else for(i in e)s[z(i)]=e[i];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][z(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(z):(e=z(e))in i?[e]:e.match(Y)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||C.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var Q=new K,Z=new K,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function tt(t,e,n){var i,s;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(s=n)||"false"!==s&&("null"===s?null:s===+s+""?+s:X.test(s)?JSON.parse(s):s)}catch(t){}Z.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return Z.hasData(t)||Q.hasData(t)},data:function(t,e,n){return Z.access(t,e,n)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,n){return Q.access(t,e,n)},_removeData:function(t,e){Q.remove(t,e)}}),C.fn.extend({data:function(n,t){var e,i,s,o=this[0],r=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Z.set(this,n)}):F(this,function(t){var e;if(o&&void 0===t)return void 0!==(e=Z.get(o,n))?e:void 0!==(e=tt(o,n))?e:void 0;this.each(function(){Z.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=Z.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(e=r.length;e--;)r[e]&&0===(i=r[e].name).indexOf("data-")&&(i=z(i.slice(5)),tt(o,i,s[i]));Q.set(o,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){Z.remove(this,t)})}}),C.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Q.get(t,e),n&&(!i||Array.isArray(n)?i=Q.access(t,e,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),i=n.length,s=n.shift(),o=C._queueHooks(t,e);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===e&&n.unshift("inprogress"),delete o.stop,s.call(t,function(){C.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:C.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===n?this:this.each(function(){var t=C.queue(this,e,n);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,s=C.Deferred(),o=this,r=this.length,a=function(){--i||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(n=Q.get(o[r],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(e)}});var et=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+et+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&C.contains(t.ownerDocument,t)&&"none"===C.css(t,"display")},ot=function(t,e,n,i){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=n.apply(t,i||[]),e)t.style[o]=r[o];return s};function rt(t,e,n,i){var s,o,r=20,a=i?function(){return i.cur()}:function(){return C.css(t,e,"")},l=a(),c=n&&n[3]||(C.cssNumber[e]?"":"px"),h=(C.cssNumber[e]||"px"!==c&&+l)&&nt.exec(C.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;r--;)C.style(t,e,h+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),h/=o;h*=2,C.style(t,e,h+c),n=n||[]}return n&&(h=+h||+l||0,s=n[1]?h+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=h,i.end=s)),s}var at={};function lt(t,e){for(var n,i,s,o,r,a,l,c=[],h=0,u=t.length;h<u;h++)(i=t[h]).style&&(n=i.style.display,e?("none"===n&&(c[h]=Q.get(i,"display")||null,c[h]||(i.style.display="")),""===i.style.display&&st(i)&&(c[h]=(l=r=o=void 0,r=(s=i).ownerDocument,a=s.nodeName,(l=at[a])||(o=r.body.appendChild(r.createElement(a)),l=C.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),at[a]=l)))):"none"!==n&&(c[h]="none",Q.set(i,"display",n)));for(h=0;h<u;h++)null!=c[h]&&(t[h].style.display=c[h]);return t}C.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){st(this)?C(this).show():C(this).hide()})}});var ct=/^(?:checkbox|radio)$/i,ht=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ut=/^$|^module$|\/(?:java|ecma)script/i,dt={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 ft(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?C.merge([t],n):n}function pt(t,e){for(var n=0,i=t.length;n<i;n++)Q.set(t[n],"globalEval",!e||Q.get(e[n],"globalEval"))}dt.optgroup=dt.option,dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td;var mt,gt,vt=/<|&#?\w+;/;function yt(t,e,n,i,s){for(var o,r,a,l,c,h,u=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===w(o))C.merge(d,o.nodeType?[o]:o);else if(vt.test(o)){for(r=r||u.appendChild(e.createElement("div")),a=(ht.exec(o)||["",""])[1].toLowerCase(),l=dt[a]||dt._default,r.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;C.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",f=0;o=d[f++];)if(i&&-1<C.inArray(o,i))s&&s.push(o);else if(c=C.contains(o.ownerDocument,o),r=ft(u.appendChild(o),"script"),c&&pt(r),n)for(h=0;o=r[h++];)ut.test(o.type||"")&&n.push(o);return u}mt=x.createDocumentFragment().appendChild(x.createElement("div")),(gt=x.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),mt.appendChild(gt),v.checkClone=mt.cloneNode(!0).cloneNode(!0).lastChild.checked,mt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!mt.cloneNode(!0).lastChild.defaultValue;var bt=x.documentElement,_t=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function xt(){return!1}function Ct(){try{return x.activeElement}catch(t){}}function St(t,e,n,i,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)St(t,a,n,i,e[a],o);return t}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=xt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return C().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,i,n)})}C.event={global:{},add:function(e,t,n,i,s){var o,r,a,l,c,h,u,d,f,p,m,g=Q.get(e);if(g)for(n.handler&&(n=(o=n).handler,s=o.selector),s&&C.find.matchesSelector(bt,s),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)f=m=(a=Dt.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(u=C.event.special[f]||{},f=(s?u.delegateType:u.bindType)||f,u=C.event.special[f]||{},h=C.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,p,r)||e.addEventListener&&e.addEventListener(f,r)),u.add&&(u.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),C.event.global[f]=!0)},remove:function(t,e,n,i,s){var o,r,a,l,c,h,u,d,f,p,m,g=Q.hasData(t)&&Q.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(f=m=(a=Dt.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(u=C.event.special[f]||{},d=l[f=(i?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)h=d[o],!s&&m!==h.origType||n&&n.guid!==h.guid||a&&!a.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,p,g.handle)||C.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)C.event.remove(t,f+e[c],n,i,!0);C.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,i,s,o,r,a=C.event.fix(t),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[a.type]||[],h=C.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,a)){for(r=C.event.handlers.call(this,a,c),e=0;(s=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,n=0;(o=s.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((C.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,s,o,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],r={},n=0;n<l;n++)void 0===r[s=(i=e[n]).selector+" "]&&(r[s]=i.needsContext?-1<C(s,this).index(c):C.find(s,this,null,[c]).length),r[s]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(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(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ct()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ct()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E(this,"input"))return this.click(),!1},_default:function(t){return E(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.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(t){var e=t.button;return null==t.which&&_t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&wt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},C.event.addProp),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){C.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=s),e}}}),C.fn.extend({on:function(t,e,n,i){return St(this,t,e,n,i)},one:function(t,e,n,i){return St(this,t,e,n,i,1)},off:function(t,e,n){var i,s;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,C(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=xt),this.each(function(){C.event.remove(this,t,n,e)});for(s in t)this.off(s,e,t[s]);return this}});var Tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Et=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ot(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function It(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,i,s,o,r,a,l,c;if(1===e.nodeType){if(Q.hasData(t)&&(o=Q.access(t),r=Q.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(n=0,i=c[s].length;n<i;n++)C.event.add(e,s,c[s][n]);Z.hasData(t)&&(a=Z.access(t),l=C.extend({},a),Z.set(e,l))}}function jt(n,i,s,o){i=m.apply([],i);var t,e,r,a,l,c,h=0,u=n.length,d=u-1,f=i[0],p=y(f);if(p||1<u&&"string"==typeof f&&!v.checkClone&&Mt.test(f))return n.each(function(t){var e=n.eq(t);p&&(i[0]=f.call(this,t,e.html())),jt(e,i,s,o)});if(u&&(e=(t=yt(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(a=(r=C.map(ft(t,"script"),It)).length;h<u;h++)l=t,h!==d&&(l=C.clone(l,!0,!0),a&&C.merge(r,ft(l,"script"))),s.call(n[h],l,h);if(a)for(c=r[r.length-1].ownerDocument,C.map(r,Nt),h=0;h<a;h++)l=r[h],ut.test(l.type||"")&&!Q.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&C._evalUrl(l.src):_(l.textContent.replace(At,""),c,l))}return n}function Yt(t,e,n){for(var i,s=e?C.filter(e,t):t,o=0;null!=(i=s[o]);o++)n||1!==i.nodeType||C.cleanData(ft(i)),i.parentNode&&(n&&C.contains(i.ownerDocument,i)&&pt(ft(i,"script")),i.parentNode.removeChild(i));return t}C.extend({htmlPrefilter:function(t){return t.replace(Tt,"<$1></$2>")},clone:function(t,e,n){var i,s,o,r,a,l,c,h=t.cloneNode(!0),u=C.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=ft(h),i=0,s=(o=ft(t)).length;i<s;i++)a=o[i],l=r[i],void 0,"input"===(c=l.nodeName.toLowerCase())&&ct.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(n)for(o=o||ft(t),r=r||ft(h),i=0,s=o.length;i<s;i++)Pt(o[i],r[i]);else Pt(t,h);return 0<(r=ft(h,"script")).length&&pt(r,!u&&ft(t,"script")),h},cleanData:function(t){for(var e,n,i,s=C.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[Q.expando]){if(e.events)for(i in e.events)s[i]?C.event.remove(n,i):C.removeEvent(n,i,e.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return F(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return jt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ot(this,t).appendChild(t)})},prepend:function(){return jt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ot(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return jt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return jt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return F(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!dt[(ht.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return jt(this,arguments,function(t){var e=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(ft(this)),e&&e.replaceChild(t,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){C.fn[t]=function(t){for(var e,n=[],i=C(t),s=i.length-1,o=0;o<=s;o++)e=o===s?this:this.clone(!0),C(i[o])[r](e),l.apply(n,e.get());return this.pushStack(n)}});var Lt=new RegExp("^("+et+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=k),e.getComputedStyle(t)},$t=new RegExp(it.join("|"),"i");function Rt(t,e,n){var i,s,o,r,a=t.style;return(n=n||Ht(t))&&(""!==(r=n.getPropertyValue(e)||n[e])||C.contains(t.ownerDocument,t)||(r=C.style(t,e)),!v.pixelBoxStyles()&&Lt.test(r)&&$t.test(e)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=n.width,a.width=i,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function Wt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){a.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",bt.appendChild(a).appendChild(l);var t=k.getComputedStyle(l);n="1%"!==t.top,r=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=36===l.offsetWidth||"absolute",bt.removeChild(a),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,r,a=x.createElement("div"),l=x.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),r},scrollboxSize:function(){return t(),s}}))}();var Ut=/^(none|table(?!-c[ea]).+)/,Ft=/^--/,qt={position:"absolute",visibility:"hidden",display:"block"},Bt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","Moz","ms"],zt=x.createElement("div").style;function Gt(t){var e=C.cssProps[t];return e||(e=C.cssProps[t]=function(t){if(t in zt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Vt.length;n--;)if((t=Vt[n]+e)in zt)return t}(t)||t),e}function Kt(t,e,n){var i=nt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Qt(t,e,n,i,s,o){var r="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(l+=C.css(t,n+it[r],!0,s)),i?("content"===n&&(l-=C.css(t,"padding"+it[r],!0,s)),"margin"!==n&&(l-=C.css(t,"border"+it[r]+"Width",!0,s))):(l+=C.css(t,"padding"+it[r],!0,s),"padding"!==n?l+=C.css(t,"border"+it[r]+"Width",!0,s):a+=C.css(t,"border"+it[r]+"Width",!0,s));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))),l}function Zt(t,e,n){var i=Ht(t),s=Rt(t,e,i),o="border-box"===C.css(t,"boxSizing",!1,i),r=o;if(Lt.test(s)){if(!n)return s;s="auto"}return r=r&&(v.boxSizingReliable()||s===t.style[e]),("auto"===s||!parseFloat(s)&&"inline"===C.css(t,"display",!1,i))&&(s=t["offset"+e[0].toUpperCase()+e.slice(1)],r=!0),(s=parseFloat(s)||0)+Qt(t,e,n||(o?"border":"content"),r,i,s)+"px"}function Xt(t,e,n,i,s){return new Xt.prototype.init(t,e,n,i,s)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Rt(t,"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:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=z(e),l=Ft.test(e),c=t.style;if(l||(e=Gt(a)),r=C.cssHooks[e]||C.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(s=r.get(t,!1,i))?s:c[e];"string"===(o=typeof n)&&(s=nt.exec(n))&&s[1]&&(n=rt(t,e,s),o="number"),null!=n&&n==n&&("number"===o&&(n+=s&&s[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(n=r.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var s,o,r,a=z(e);return Ft.test(e)||(e=Gt(a)),(r=C.cssHooks[e]||C.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,n)),void 0===s&&(s=Rt(t,e,i)),"normal"===s&&e in Bt&&(s=Bt[e]),""===n||n?(o=parseFloat(s),!0===n||isFinite(o)?o||0:s):s}}),C.each(["height","width"],function(t,a){C.cssHooks[a]={get:function(t,e,n){if(e)return!Ut.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Zt(t,a,n):ot(t,qt,function(){return Zt(t,a,n)})},set:function(t,e,n){var i,s=Ht(t),o="border-box"===C.css(t,"boxSizing",!1,s),r=n&&Qt(t,a,n,o,s);return o&&v.scrollboxSize()===s.position&&(r-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(s[a])-Qt(t,a,"border",!1,s)-.5)),r&&(i=nt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[a]=e,e=C.css(t,a)),Kt(0,e,r)}}}),C.cssHooks.marginLeft=Wt(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Rt(t,"marginLeft"))||t.getBoundingClientRect().left-ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(s,o){C.cssHooks[s+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[s+it[e]+o]=i[e]||i[e-2]||i[0];return n}},"margin"!==s&&(C.cssHooks[s+o].set=Kt)}),C.fn.extend({css:function(t,e){return F(this,function(t,e,n){var i,s,o={},r=0;if(Array.isArray(e)){for(i=Ht(t),s=e.length;r<s;r++)o[e[r]]=C.css(t,e[r],!1,i);return o}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,1<arguments.length)}}),((C.Tween=Xt).prototype={constructor:Xt,init:function(t,e,n,i,s,o){this.elem=t,this.prop=n,this.easing=s||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=Xt.propHooks[this.prop];return t&&t.get?t.get(this):Xt.propHooks._default.get(this)},run:function(t){var e,n=Xt.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xt.propHooks._default.set(this),this}}).init.prototype=Xt.prototype,(Xt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[C.cssProps[t.prop]]&&!C.cssHooks[t.prop]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Xt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=Xt.prototype.init,C.fx.step={};var Jt,te,ee,ne,ie=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function oe(){te&&(!1===x.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(oe):k.setTimeout(oe,C.fx.interval),C.fx.tick())}function re(){return k.setTimeout(function(){Jt=void 0}),Jt=Date.now()}function ae(t,e){var n,i=0,s={height:t};for(e=e?1:0;i<4;i+=2-e)s["margin"+(n=it[i])]=s["padding"+n]=t;return e&&(s.opacity=s.width=t),s}function le(t,e,n){for(var i,s=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,r=s.length;o<r;o++)if(i=s[o].call(n,e,t))return i}function ce(o,t,e){var n,r,i=0,s=ce.prefilters.length,a=C.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Jt||re(),e=Math.max(0,c.startTime+c.duration-t),n=1-(e/c.duration||0),i=0,s=c.tweens.length;i<s;i++)c.tweens[i].run(n);return a.notifyWith(o,[c,n,e]),n<1&&s?e:(s||a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:Jt||re(),duration:e.duration,tweens:[],createTween:function(t,e){var n=C.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var e=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;e<n;e++)c.tweens[e].run(1);return t?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,t])):a.rejectWith(o,[c,t]),this}}),h=c.props;for(!function(t,e){var n,i,s,o,r;for(n in t)if(s=e[i=z(n)],o=t[n],Array.isArray(o)&&(s=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(r=C.cssHooks[i])&&"expand"in r)for(n in o=r.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=s);else e[i]=s}(h,c.opts.specialEasing);i<s;i++)if(n=ce.prefilters[i].call(c,o,h,c.opts))return y(n.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return C.map(h,le,c),y(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(ce,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return rt(n.elem,t,nt.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,s=(t=y(t)?(e=t,["*"]):t.match(Y)).length;i<s;i++)n=t[i],ce.tweeners[n]=ce.tweeners[n]||[],ce.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,s,o,r,a,l,c,h,u="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&st(t),g=Q.get(t,"fxshow");for(i in n.queue||(null==(r=C._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always(function(){d.always(function(){r.unqueued--,C.queue(t,"fx").length||r.empty.fire()})})),e)if(s=e[i],ie.test(s)){if(delete e[i],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||C.style(t,i)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(f))for(i in u&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=Q.get(t,"display")),"none"===(h=C.css(t,"display"))&&(c?h=c:(lt([t],!0),c=t.style.display||c,h=C.css(t,"display"),lt([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===C.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(h=p.display,c="none"===h?"":h)),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||(g?"hidden"in g&&(m=g.hidden):g=Q.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&<([t],!0),d.done(function(){for(i in m||lt([t]),Q.remove(t,"fxshow"),f)C.style(t,i,f[i])})),l=le(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),C.speed=function(t,e,n){var i=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var s=C.isEmptyObject(e),o=C.speed(t,n,i),r=function(){var t=ce(this,C.extend({},e),o);(s||Q.get(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(s,t,o){var r=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof s&&(o=t,t=s,s=void 0),t&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",n=C.timers,i=Q.get(this);if(e)i[e]&&i[e].stop&&r(i[e]);else for(e in i)i[e]&&i[e].stop&&se.test(e)&&r(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=s&&n[e].queue!==s||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||C.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=Q.get(this),n=e[r+"queue"],i=e[r+"queueHooks"],s=C.timers,o=n?n.length:0;for(e.finish=!0,C.queue(this,r,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===r&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,i){var s=C.fn[i];C.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(ae(i,!0),t,e,n)}}),C.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){C.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(Jt=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),Jt=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){te||(te=!0,oe())},C.fx.stop=function(){te=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,t){return i=C.fx&&C.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=k.setTimeout(t,i);e.stop=function(){k.clearTimeout(n)}})},ee=x.createElement("input"),ne=x.createElement("select").appendChild(x.createElement("option")),ee.type="checkbox",v.checkOn=""!==ee.value,v.optSelected=ne.selected,(ee=x.createElement("input")).value="t",ee.type="radio",v.radioValue="t"===ee.value;var he,ue=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return F(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var i,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(s=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?he:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):s&&"set"in s&&void 0!==(i=s.set(t,n,e))?i:(t.setAttribute(e,n+""),n):s&&"get"in s&&null!==(i=s.get(t,e))?i:null==(i=C.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,s=e&&e.match(Y);if(s&&1===t.nodeType)for(;n=s[i++];)t.removeAttribute(n)}}),he={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var r=ue[e]||C.find.attr;ue[e]=function(t,e,n){var i,s,o=e.toLowerCase();return n||(s=ue[o],ue[o]=i,i=null!=r(t,e,n)?o:null,ue[o]=s),i}});var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(Y)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}C.fn.extend({prop:function(t,e){return F(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var i,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,s=C.propHooks[e]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(t,n,e))?i:t[e]=n:s&&"get"in s&&null!==(i=s.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,i,s,o,r,a,l=0;if(y(e))return this.each(function(t){C(this).addClass(e.call(this,t,me(this)))});if((t=ge(e)).length)for(;n=this[l++];)if(s=me(n),i=1===n.nodeType&&" "+pe(s)+" "){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s!==(a=pe(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,s,o,r,a,l=0;if(y(e))return this.each(function(t){C(this).removeClass(e.call(this,t,me(this)))});if(!arguments.length)return this.attr("class","");if((t=ge(e)).length)for(;n=this[l++];)if(s=me(n),i=1===n.nodeType&&" "+pe(s)+" "){for(r=0;o=t[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s!==(a=pe(i))&&n.setAttribute("class",a)}return this},toggleClass:function(s,e){var o=typeof s,r="string"===o||Array.isArray(s);return"boolean"==typeof e&&r?e?this.addClass(s):this.removeClass(s):y(s)?this.each(function(t){C(this).toggleClass(s.call(this,t,me(this),e),e)}):this.each(function(){var t,e,n,i;if(r)for(e=0,n=C(this),i=ge(s);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==s&&"boolean"!==o||((t=me(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===s?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+pe(me(n))+" ").indexOf(e))return!0;return!1}});var ve=/\r/g;C.fn.extend({val:function(n){var i,t,s,e=this[0];return arguments.length?(s=y(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=s?n.call(this,t,C(this).val()):n)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=C.map(e,function(t){return null==t?"":t+""})),(i=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=C.valHooks[e.type]||C.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(ve,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:pe(C.text(t))}},select:{get:function(t){var e,n,i,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?o+1:s.length;for(i=o<0?l:r?o:0;i<l;i++)if(((n=s[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=C(n).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var n,i,s=t.options,o=C.makeArray(e),r=s.length;r--;)((i=s[r]).selected=-1<C.inArray(C.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<C.inArray(C(t).val(),e)}},v.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in k;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,n,i){var s,o,r,a,l,c,h,u,d=[n||x],f=g.call(t,"type")?t.type:t,p=g.call(t,"namespace")?t.namespace.split("."):[];if(o=u=r=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!ye.test(f+C.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(t=t[C.expando]?t:new C.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[f]||{},i||!h.trigger||!1!==h.trigger.apply(n,e))){if(!i&&!h.noBubble&&!b(n)){for(a=h.delegateType||f,ye.test(a+f)||(o=o.parentNode);o;o=o.parentNode)d.push(o),r=o;r===(n.ownerDocument||x)&&d.push(r.defaultView||r.parentWindow||k)}for(s=0;(o=d[s++])&&!t.isPropagationStopped();)u=o,t.type=1<s?a:h.bindType||f,(c=(Q.get(o,"events")||{})[t.type]&&Q.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&G(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),e)||!G(n)||l&&y(n[f])&&!b(n)&&((r=n[l])&&(n[l]=null),C.event.triggered=f,t.isPropagationStopped()&&u.addEventListener(f,be),n[f](),t.isPropagationStopped()&&u.removeEventListener(f,be),C.event.triggered=void 0,r&&(n[l]=r)),t.result}},simulate:function(t,e,n){var i=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(i,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){var s=function(t){C.event.simulate(i,t.target,C.event.fix(t))};C.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=Q.access(t,i);e||t.addEventListener(n,s,!0),Q.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Q.access(t,i)-1;e?Q.access(t,i,e):(t.removeEventListener(n,s,!0),Q.remove(t,i))}}});var _e=k.location,we=Date.now(),De=/\?/;C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new k.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var ke=/\[\]$/,xe=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function Te(n,t,i,s){var e;if(Array.isArray(t))C.each(t,function(t,e){i||ke.test(n)?s(n,e):Te(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,s)});else if(i||"object"!==w(t))s(n,t);else for(e in t)Te(n+"["+e+"]",t[e],i,s)}C.param=function(t,e){var n,i=[],s=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){s(this.name,this.value)});else for(n in t)Te(n,t[n],e,s);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Se.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!ct.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(xe,"\r\n")}}):{name:e.name,value:n.replace(xe,"\r\n")}}).get()}});var Ee=/%20/g,Me=/#.*$/,Ae=/([?&])_=[^&]*/,Oe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:GET|HEAD)$/,Ne=/^\/\//,Pe={},je={},Ye="*/".concat("*"),Le=x.createElement("a");function He(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,s=t.toLowerCase().match(Y)||[];if(y(e))for(;n=s[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function $e(e,s,o,r){var a={},l=e===je;function c(t){var i;return a[t]=!0,C.each(e[t]||[],function(t,e){var n=e(s,o,r);return"string"!=typeof n||l||a[n]?l?!(i=n):void 0:(s.dataTypes.unshift(n),c(n),!1)}),i}return c(s.dataTypes[0])||!a["*"]&&c("*")}function Re(t,e){var n,i,s=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((s[n]?t:i||(i={}))[n]=e[n]);return i&&C.extend(!0,t,i),t}Le.href=_e.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Re(Re(t,C.ajaxSettings),e):Re(C.ajaxSettings,t)},ajaxPrefilter:He(Pe),ajaxTransport:He(je),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var h,u,d,n,f,i,p,m,s,o,g=C.ajaxSetup({},e),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?C(v):C.event,b=C.Deferred(),_=C.Callbacks("once memory"),w=g.statusCode||{},r={},a={},l="canceled",D={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=Oe.exec(d);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return p?d:null},setRequestHeader:function(t,e){return null==p&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==p&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(p)D.always(t[D.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||l;return h&&h.abort(e),c(0,e),this}};if(b.promise(D),g.url=((t||g.url||_e.href)+"").replace(Ne,_e.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(Y)||[""],null==g.crossDomain){i=x.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Le.protocol+"//"+Le.host!=i.protocol+"//"+i.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=C.param(g.data,g.traditional)),$e(Pe,g,e,D),p)return D;for(s in(m=C.event&&g.global)&&0==C.active++&&C.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ie.test(g.type),u=g.url.replace(Me,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Ee,"+")):(o=g.url.slice(u.length),g.data&&(g.processData||"string"==typeof g.data)&&(u+=(De.test(u)?"&":"?")+g.data,delete g.data),!1===g.cache&&(u=u.replace(Ae,"$1"),o=(De.test(u)?"&":"?")+"_="+we+++o),g.url=u+o),g.ifModified&&(C.lastModified[u]&&D.setRequestHeader("If-Modified-Since",C.lastModified[u]),C.etag[u]&&D.setRequestHeader("If-None-Match",C.etag[u])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&D.setRequestHeader("Content-Type",g.contentType),D.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Ye+"; q=0.01":""):g.accepts["*"]),g.headers)D.setRequestHeader(s,g.headers[s]);if(g.beforeSend&&(!1===g.beforeSend.call(v,D,g)||p))return D.abort();if(l="abort",_.add(g.complete),D.done(g.success),D.fail(g.error),h=$e(je,g,e,D)){if(D.readyState=1,m&&y.trigger("ajaxSend",[D,g]),p)return D;g.async&&0<g.timeout&&(f=k.setTimeout(function(){D.abort("timeout")},g.timeout));try{p=!1,h.send(r,c)}catch(t){if(p)throw t;c(-1,t)}}else c(-1,"No Transport");function c(t,e,n,i){var s,o,r,a,l,c=e;p||(p=!0,f&&k.clearTimeout(f),h=void 0,d=i||"",D.readyState=0<t?4:0,s=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)o=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}(g,D,n)),a=function(t,e,n,i){var s,o,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=h.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(g,a,D,s),s?(g.ifModified&&((l=D.getResponseHeader("Last-Modified"))&&(C.lastModified[u]=l),(l=D.getResponseHeader("etag"))&&(C.etag[u]=l)),204===t||"HEAD"===g.type?c="nocontent":304===t?c="notmodified":(c=a.state,o=a.data,s=!(r=a.error))):(r=c,!t&&c||(c="error",t<0&&(t=0))),D.status=t,D.statusText=(e||c)+"",s?b.resolveWith(v,[o,c,D]):b.rejectWith(v,[D,c,r]),D.statusCode(w),w=void 0,m&&y.trigger(s?"ajaxSuccess":"ajaxError",[D,g,s?o:r]),_.fireWith(v,[D,c]),m&&(y.trigger("ajaxComplete",[D,g]),--C.active||C.event.trigger("ajaxStop")))}return D},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,s){C[s]=function(t,e,n,i){return y(e)&&(i=i||n,n=e,e=void 0),C.ajax(C.extend({url:t,type:s,dataType:i,data:e,success:n},C.isPlainObject(t)&&t))}}),C._evalUrl=function(t){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(t){C(this).wrapInner(n.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=y(e);return this.each(function(t){C(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Ue=C.ajaxSettings.xhr();v.cors=!!Ue&&"withCredentials"in Ue,v.ajax=Ue=!!Ue,C.ajaxTransport(function(s){var o,r;if(v.cors||Ue&&!s.crossDomain)return{send:function(t,e){var n,i=s.xhr();if(i.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(n in s.xhrFields)i[n]=s.xhrFields[n];for(n in s.mimeType&&i.overrideMimeType&&i.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=r=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(We[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),r=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=r:i.onreadystatechange=function(){4===i.readyState&&k.setTimeout(function(){o&&r()})},o=o("abort");try{i.send(s.hasContent&&s.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(n){var i,s;if(n.crossDomain)return{send:function(t,e){i=C("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",s=function(t){i.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),x.head.appendChild(i[0])},abort:function(){s&&s()}}});var Fe,qe=[],Be=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||C.expando+"_"+we++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var i,s,o,r=!1!==t.jsonp&&(Be.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Be.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Be,"$1"+i):!1!==t.jsonp&&(t.url+=(De.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=k[i],k[i]=function(){o=arguments},n.always(function(){void 0===s?C(k).removeProp(i):k[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,qe.push(i)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),v.createHTMLDocument=((Fe=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Fe.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,e.head.appendChild(i)):e=x),o=!n&&[],(s=M.exec(t))?[e.createElement(s[1])]:(s=yt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],s.childNodes)));var i,s,o},C.fn.load=function(t,e,n){var i,s,o,r=this,a=t.indexOf(" ");return-1<a&&(i=pe(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<r.length&&C.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(i?C("<div>").append(C.parseHTML(t)).find(i):t)}).always(n&&function(t,e){r.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,n){var i,s,o,r,a,l,c=C.css(t,"position"),h=C(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=C.css(t,"top"),l=C.css(t,"left"),s=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(i=h.position()).top,i.left):(r=parseFloat(o)||0,parseFloat(l)||0),y(e)&&(e=e.call(t,n,C.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):h.css(u)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],s={top:0,left:0};if("fixed"===C.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(i,"marginTop",!0),left:e.left-s.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||bt})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return F(this,function(t,e,n){var i;if(b(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[s]:t[e];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Wt(v.pixelPosition,function(t,e){if(e)return e=Rt(t,n),Lt.test(e)?C(t).position()[n]+"px":e})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(i,o){C.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),s=i||(!0===t||!0===e?"margin":"border");return F(this,function(t,e,n){var i;return b(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+r],i["scroll"+r],t.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?C.css(t,e,s):C.style(t,e,n,s)},a,n?t:void 0,n)}})}),C.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(t,n){C.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),C.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),C.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),C.proxy=function(t,e){var n,i,s;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=a.call(arguments,2),(s=function(){return t.apply(e||this,i.concat(a.call(arguments)))}).guid=t.guid=t.guid||C.guid++,s},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=E,C.isFunction=y,C.isWindow=b,C.camelCase=z,C.type=w,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Ve=k.jQuery,ze=k.$;return C.noConflict=function(t){return k.$===C&&(k.$=ze),t&&k.jQuery===C&&(k.jQuery=Ve),C},t||(k.jQuery=k.$=C),C}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,function(t,p){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(s){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n,i;e=s,i=o[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return s}p=p&&p.hasOwnProperty("default")?p.default:p;var e="transitionend";function n(t){var e=this,n=!1;return p(this).one(m.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||m.triggerTransitionEnd(e)},t),this}var m={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=p(t).css("transition-duration"),n=p(t).css("transition-delay"),i=parseFloat(e),s=parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){p(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=n[i],o=e[i],r=o&&m.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(r))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+r+'" but expected type "'+s+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?m.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};p.fn.emulateTransitionEnd=n,p.event.special[m.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(p(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var s="alert",o="bs.alert",a="."+o,c=p.fn[s],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},u="alert",d="fade",f="show",g=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){p.removeData(this._element,o),this._element=null},t._getRootElement=function(t){var e=m.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=p(t).closest("."+u)[0]),n},t._triggerCloseEvent=function(t){var e=p.Event(h.CLOSE);return p(t).trigger(e),e},t._removeElement=function(e){var n=this;if(p(e).removeClass(f),p(e).hasClass(d)){var t=m.getTransitionDurationFromElement(e);p(e).one(m.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){p(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=p(this),e=t.data(o);e||(e=new i(this),t.data(o,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();p(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',g._handleDismiss(new g)),p.fn[s]=g._jQueryInterface,p.fn[s].Constructor=g,p.fn[s].noConflict=function(){return p.fn[s]=c,g._jQueryInterface};var v="button",y="bs.button",b="."+y,_=".data-api",w=p.fn[v],D="active",k="btn",x="focus",C='[data-toggle^="button"]',S='[data-toggle="buttons"]',T='input:not([type="hidden"])',E=".active",M=".btn",A={CLICK_DATA_API:"click"+b+_,FOCUS_BLUR_DATA_API:"focus"+b+_+" blur"+b+_},O=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=p(this._element).closest(S)[0];if(n){var i=this._element.querySelector(T);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(D))t=!1;else{var s=n.querySelector(E);s&&p(s).removeClass(D)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(D),p(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(D)),t&&p(this._element).toggleClass(D)},t.dispose=function(){p.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=p(this).data(y);t||(t=new n(this),p(this).data(y,t)),"toggle"===e&&t[e]()})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();p(document).on(A.CLICK_DATA_API,C,function(t){t.preventDefault();var e=t.target;p(e).hasClass(k)||(e=p(e).closest(M)),O._jQueryInterface.call(p(e),"toggle")}).on(A.FOCUS_BLUR_DATA_API,C,function(t){var e=p(t.target).closest(M)[0];p(e).toggleClass(x,/^focus(in)?$/.test(t.type))}),p.fn[v]=O._jQueryInterface,p.fn[v].Constructor=O,p.fn[v].noConflict=function(){return p.fn[v]=w,O._jQueryInterface};var I="carousel",N="bs.carousel",P="."+N,j=".data-api",Y=p.fn[I],L={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},H={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},$="next",R="prev",W="left",U="right",F={SLIDE:"slide"+P,SLID:"slid"+P,KEYDOWN:"keydown"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P,TOUCHSTART:"touchstart"+P,TOUCHMOVE:"touchmove"+P,TOUCHEND:"touchend"+P,POINTERDOWN:"pointerdown"+P,POINTERUP:"pointerup"+P,DRAG_START:"dragstart"+P,LOAD_DATA_API:"load"+P+j,CLICK_DATA_API:"click"+P+j},q="carousel",B="active",V="slide",z="carousel-item-right",G="carousel-item-left",K="carousel-item-next",Q="carousel-item-prev",Z="pointer-event",X=".active",J=".active.carousel-item",tt=".carousel-item",et=".carousel-item img",nt=".carousel-item-next, .carousel-item-prev",it=".carousel-indicators",st="[data-slide], [data-slide-to]",ot='[data-ride="carousel"]',rt={TOUCH:"touch",PEN:"pen"},at=function(){function o(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(it),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=o.prototype;return t.next=function(){this._isSliding||this._slide($)},t.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(R)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(nt)&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(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))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(J);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)p(this._element).one(F.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?$:R;this._slide(i,this._items[t])}},t.dispose=function(){p(this._element).off(P),p.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},t._getConfig=function(t){return t=l({},L,t),m.typeCheckConfig(I,t,H),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&p(this._element).on(F.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&p(this._element).on(F.MOUSEENTER,function(t){return e.pause(t)}).on(F.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&rt[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&rt[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};p(this._element.querySelectorAll(et)).on(F.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(p(this._element).on(F.POINTERDOWN,function(t){return e(t)}),p(this._element).on(F.POINTERUP,function(t){return i(t)}),this._element.classList.add(Z)):(p(this._element).on(F.TOUCHSTART,function(t){return e(t)}),p(this._element).on(F.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),p(this._element).on(F.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(tt)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===$,i=t===R,s=this._getItemIndex(e),o=this._items.length-1;if((i&&0===s||n&&s===o)&&!this._config.wrap)return e;var r=(s+(t===R?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(J)),s=p.Event(F.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return p(this._element).trigger(s),s},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(X));p(e).removeClass(B);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&p(n).addClass(B)}},t._slide=function(t,e){var n,i,s,o=this,r=this._element.querySelector(J),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),c=this._getItemIndex(l),h=Boolean(this._interval);if(s=t===$?(n=G,i=K,W):(n=z,i=Q,U),l&&p(l).hasClass(B))this._isSliding=!1;else if(!this._triggerSlideEvent(l,s).isDefaultPrevented()&&r&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=p.Event(F.SLID,{relatedTarget:l,direction:s,from:a,to:c});if(p(this._element).hasClass(V)){p(l).addClass(i),m.reflow(l),p(r).addClass(n),p(l).addClass(n);var d=parseInt(l.getAttribute("data-interval"),10);this._config.interval=d?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,d):this._config.defaultInterval||this._config.interval;var f=m.getTransitionDurationFromElement(r);p(r).one(m.TRANSITION_END,function(){p(l).removeClass(n+" "+i).addClass(B),p(r).removeClass(B+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return p(o._element).trigger(u)},0)}).emulateTransitionEnd(f)}else p(r).removeClass(B),p(l).addClass(B),this._isSliding=!1,p(this._element).trigger(u);h&&this.cycle()}},o._jQueryInterface=function(i){return this.each(function(){var t=p(this).data(N),e=l({},L,p(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new o(this,e),p(this).data(N,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e=m.getSelectorFromElement(this);if(e){var n=p(e)[0];if(n&&p(n).hasClass(q)){var i=l({},p(n).data(),p(this).data()),s=this.getAttribute("data-slide-to");s&&(i.interval=!1),o._jQueryInterface.call(p(n),i),s&&p(n).data(N).to(s),t.preventDefault()}}},r(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return L}}]),o}();p(document).on(F.CLICK_DATA_API,st,at._dataApiClickHandler),p(window).on(F.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(ot)),e=0,n=t.length;e<n;e++){var i=p(t[e]);at._jQueryInterface.call(i,i.data())}}),p.fn[I]=at._jQueryInterface,p.fn[I].Constructor=at,p.fn[I].noConflict=function(){return p.fn[I]=Y,at._jQueryInterface};var lt="collapse",ct="bs.collapse",ht="."+ct,ut=p.fn[lt],dt={toggle:!0,parent:""},ft={toggle:"boolean",parent:"(string|element)"},pt={SHOW:"show"+ht,SHOWN:"shown"+ht,HIDE:"hide"+ht,HIDDEN:"hidden"+ht,CLICK_DATA_API:"click"+ht+".data-api"},mt="show",gt="collapse",vt="collapsing",yt="collapsed",bt="width",_t="height",wt=".show, .collapsing",Dt='[data-toggle="collapse"]',kt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Dt)),i=0,s=n.length;i<s;i++){var o=n[i],r=m.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===e});null!==r&&0<a.length&&(this._selector=r,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 t=a.prototype;return t.toggle=function(){p(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!p(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(wt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(gt)})).length&&(t=null),!(t&&(e=p(t).not(this._selector).data(ct))&&e._isTransitioning))){var i=p.Event(pt.SHOW);if(p(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(p(t).not(this._selector),"hide"),e||p(t).data(ct,null));var s=this._getDimension();p(this._element).removeClass(gt).addClass(vt),this._element.style[s]=0,this._triggerArray.length&&p(this._triggerArray).removeClass(yt).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(s[0].toUpperCase()+s.slice(1)),r=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(){p(n._element).removeClass(vt).addClass(gt).addClass(mt),n._element.style[s]="",n.setTransitioning(!1),p(n._element).trigger(pt.SHOWN)}).emulateTransitionEnd(r),this._element.style[s]=this._element[o]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&p(this._element).hasClass(mt)){var e=p.Event(pt.HIDE);if(p(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",m.reflow(this._element),p(this._element).addClass(vt).removeClass(gt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var s=0;s<i;s++){var o=this._triggerArray[s],r=m.getSelectorFromElement(o);if(null!==r)p([].slice.call(document.querySelectorAll(r))).hasClass(mt)||p(o).addClass(yt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(){t.setTransitioning(!1),p(t._element).removeClass(vt).addClass(gt).trigger(pt.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){p.removeData(this._element,ct),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),m.typeCheckConfig(lt,t,ft),t},t._getDimension=function(){return p(this._element).hasClass(bt)?bt:_t},t._getParent=function(){var t,n=this;m.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return p(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=p(t).hasClass(mt);e.length&&p(e).toggleClass(yt,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=m.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=p(this),e=t.data(ct),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ct,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},r(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dt}}]),a}();p(document).on(pt.CLICK_DATA_API,Dt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=p(this),e=m.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));p(i).each(function(){var t=p(this),e=t.data(ct)?"toggle":n.data();kt._jQueryInterface.call(t,e)})}),p.fn[lt]=kt._jQueryInterface,p.fn[lt].Constructor=kt,p.fn[lt].noConflict=function(){return p.fn[lt]=ut,kt._jQueryInterface};for(var xt="undefined"!=typeof window&&"undefined"!=typeof document,Ct=["Edge","Trident","Firefox"],St=0,Tt=0;Tt<Ct.length;Tt+=1)if(xt&&0<=navigator.userAgent.indexOf(Ct[Tt])){St=1;break}var Et=xt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},St))}};function Mt(t){return t&&"[object Function]"==={}.toString.call(t)}function At(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Ot(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function It(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=At(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(n+s+i)?t:It(Ot(t))}var Nt=xt&&!(!window.MSInputMethodContext||!document.documentMode),Pt=xt&&/MSIE 10/.test(navigator.userAgent);function jt(t){return 11===t?Nt:10===t?Pt:Nt||Pt}function Yt(t){if(!t)return document.documentElement;for(var e=jt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===At(n,"position")?Yt(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Lt(t){return null!==t.parentNode?Lt(t.parentNode):t}function Ht(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,s=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(s,0);var r,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(s))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&Yt(r.firstElementChild)!==r?Yt(l):l;var c=Lt(t);return c.host?Ht(c.host,e):Ht(t,Lt(e).host)}function $t(t){var e="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"!==n&&"HTML"!==n)return t[e];var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}function Rt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function Wt(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],jt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Ut(t){var e=t.body,n=t.documentElement,i=jt(10)&&getComputedStyle(n);return{height:Wt("Height",e,n,i),width:Wt("Width",e,n,i)}}var Ft=function(){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}}(),qt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function Vt(t){return Bt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function zt(t){var e={};try{if(jt(10)){e=t.getBoundingClientRect();var n=$t(t,"top"),i=$t(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var s={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?Ut(t.ownerDocument):{},r=o.width||t.clientWidth||s.right-s.left,a=o.height||t.clientHeight||s.bottom-s.top,l=t.offsetWidth-r,c=t.offsetHeight-a;if(l||c){var h=At(t);l-=Rt(h,"x"),c-=Rt(h,"y"),s.width-=l,s.height-=c}return Vt(s)}function Gt(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=jt(10),s="HTML"===e.nodeName,o=zt(t),r=zt(e),a=It(t),l=At(e),c=parseFloat(l.borderTopWidth,10),h=parseFloat(l.borderLeftWidth,10);n&&s&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var u=Vt({top:o.top-r.top-c,left:o.left-r.left-h,width:o.width,height:o.height});if(u.marginTop=0,u.marginLeft=0,!i&&s){var d=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);u.top-=c-d,u.bottom-=c-d,u.left-=h-f,u.right-=h-f,u.marginTop=d,u.marginLeft=f}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=$t(e,"top"),s=$t(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=s*o,t.right+=s*o,t}(u,e)),u}function Kt(t){if(!t||!t.parentElement||jt())return document.documentElement;for(var e=t.parentElement;e&&"none"===At(e,"transform");)e=e.parentElement;return e||document.documentElement}function Qt(t,e,n,i){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},r=s?Kt(t):Ht(t,e);if("viewport"===i)o=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Gt(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:$t(n),a=e?0:$t(n,"left");return Vt({top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:s,height:o})}(r,s);else{var a=void 0;"scrollParent"===i?"BODY"===(a=It(Ot(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=Gt(a,r,s);if("HTML"!==a.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===At(e,"position"))return!0;var i=Ot(e);return!!i&&t(i)}(r))o=l;else{var c=Ut(t.ownerDocument),h=c.height,u=c.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=u+l.left}}var d="number"==typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function Zt(t,e,i,n,s){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=Qt(i,n,o,s),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map(function(t){return Bt({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),h=0<c.length?c[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function Xt(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return Gt(n,i?Kt(e):Ht(e,n),i)}function Jt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function te(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function ee(t,e,n){n=n.split("-")[0];var i=Jt(t),s={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[r]=e[r]+e[l]/2-i[l]/2,s[a]=n===a?e[a]-i[c]:e[te(a)],s}function ne(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ie(t,n,e){return(void 0===e?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=ne(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&Mt(e)&&(n.offsets.popper=Vt(n.offsets.popper),n.offsets.reference=Vt(n.offsets.reference),n=e(n,t))}),n}function se(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function oe(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var s=e[i],o=s?""+s+n:t;if(void 0!==document.body.style[o])return o}return null}function re(t){var e=t.ownerDocument;return e?e.defaultView:window}function ae(t,e,n,i){n.updateBound=i,re(t).addEventListener("resize",n.updateBound,{passive:!0});var s=It(t);return function t(e,n,i,s){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(n,i,{passive:!0}),o||t(It(r.parentNode),n,i,s),s.push(r)}(s,"scroll",n.updateBound,n.scrollParents),n.scrollElement=s,n.eventsEnabled=!0,n}function le(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,re(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function ce(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function he(n,i){Object.keys(i).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&ce(i[t])&&(e="px"),n.style[t]=i[t]+e})}var ue=xt&&/Firefox/i.test(navigator.userAgent);function de(t,e,n){var i=ne(t,function(t){return t.name===e}),s=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!s){var o="`"+e+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return s}var fe=["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"],pe=fe.slice(3);function me(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=pe.indexOf(t),i=pe.slice(n+1).concat(pe.slice(0,n));return e?i.reverse():i}var ge="flip",ve="clockwise",ye="counterclockwise";function be(t,s,o,e){var r=[0,0],a=-1!==["right","left"].indexOf(e),n=t.split(/(\+|\-)/).map(function(t){return t.trim()}),i=n.indexOf(ne(n,function(t){return-1!==t.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];return(c=c.map(function(t,e){var n=(1===e?!a:a)?"height":"width",i=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,i=!0,t):i?(t[t.length-1]+=e,i=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],r=s[2];if(!o)return t;if(0!==r.indexOf("%"))return"vh"!==r&&"vw"!==r?o:("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var a=void 0;switch(r){case"%p":a=n;break;case"%":case"%r":default:a=i}return Vt(a)[e]/100*o}(t,n,s,o)})})).forEach(function(n,i){n.forEach(function(t,e){ce(t)&&(r[i]+=t*("-"===n[e-1]?-1:1))})}),r}var _e={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:qt({},l,o[l]),end:qt({},l,o[l]+o[c]-r[c])};t.offsets.popper=Bt({},r,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,s=t.offsets,o=s.popper,r=s.reference,a=i.split("-")[0],l=void 0;return l=ce(+n)?[+n,0]:be(n,o,r,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,i){var e=i.boundariesElement||Yt(t.instance.popper);t.instance.reference===e&&(e=Yt(e));var n=oe("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[n];s.top="",s.left="",s[n]="";var l=Qt(t.instance.popper,t.instance.reference,i.padding,e,t.positionFixed);s.top=o,s.left=r,s[n]=a,i.boundaries=l;var c=i.priority,h=t.offsets.popper,u={primary:function(t){var e=h[t];return h[t]<l[t]&&!i.escapeWithReference&&(e=Math.max(h[t],l[t])),qt({},t,e)},secondary:function(t){var e="right"===t?"left":"top",n=h[e];return h[t]>l[t]&&!i.escapeWithReference&&(n=Math.min(h[e],l[t]-("right"===t?h.width:h.height))),qt({},e,n)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=Bt({},h,u[e](t))}),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!de(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",p=Jt(i)[c];a[f]-p<r[u]&&(t.offsets.popper[u]-=r[u]-(a[f]-p)),a[u]+p>r[f]&&(t.offsets.popper[u]+=a[u]+p-r[f]),t.offsets.popper=Vt(t.offsets.popper);var m=a[u]+a[c]/2-p/2,g=At(t.instance.popper),v=parseFloat(g["margin"+h],10),y=parseFloat(g["border"+h+"Width"],10),b=m-t.offsets.popper[u]-v-y;return b=Math.max(Math.min(r[c]-p,b),0),t.arrowElement=i,t.offsets.arrow=(qt(n={},u,Math.round(b)),qt(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,m){if(se(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var g=Qt(p.instance.popper,p.instance.reference,m.padding,m.boundariesElement,p.positionFixed),v=p.placement.split("-")[0],y=te(v),b=p.placement.split("-")[1]||"",_=[];switch(m.behavior){case ge:_=[v,y];break;case ve:_=me(v);break;case ye:_=me(v,!0);break;default:_=m.behavior}return _.forEach(function(t,e){if(v!==t||_.length===e+1)return p;v=p.placement.split("-")[0],y=te(v);var n,i=p.offsets.popper,s=p.offsets.reference,o=Math.floor,r="left"===v&&o(i.right)>o(s.left)||"right"===v&&o(i.left)<o(s.right)||"top"===v&&o(i.bottom)>o(s.top)||"bottom"===v&&o(i.top)<o(s.bottom),a=o(i.left)<o(g.left),l=o(i.right)>o(g.right),c=o(i.top)<o(g.top),h=o(i.bottom)>o(g.bottom),u="left"===v&&a||"right"===v&&l||"top"===v&&c||"bottom"===v&&h,d=-1!==["top","bottom"].indexOf(v),f=!!m.flipVariations&&(d&&"start"===b&&a||d&&"end"===b&&l||!d&&"start"===b&&c||!d&&"end"===b&&h);(r||u||f)&&(p.flipped=!0,(r||u)&&(v=_[e+1]),f&&(b="end"===(n=b)?"start":"start"===n?"end":n),p.placement=v+(b?"-"+b:""),p.offsets.popper=Bt({},p.offsets.popper,ee(p.instance.popper,p.offsets.reference,p.placement)),p=ie(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,s=i.popper,o=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return s[r?"left":"top"]=o[n]-(a?s[r?"width":"height"]:0),t.placement=te(e),t.offsets.popper=Vt(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!de(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=ne(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,s=t.offsets.popper,o=ne(t.instance.modifiers,function(t){return"applyStyle"===t.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 r,a,l,c,h,u,d,f,p,m,g,v,y,b,_=void 0!==o?o:e.gpuAcceleration,w=Yt(t.instance.popper),D=zt(w),k={position:s.position},x=(r=t,a=window.devicePixelRatio<2||!ue,l=r.offsets,c=l.popper,h=l.reference,u=Math.round,d=Math.floor,f=function(t){return t},p=u(h.width),m=u(c.width),g=-1!==["left","right"].indexOf(r.placement),v=-1!==r.placement.indexOf("-"),b=a?u:f,{left:(y=a?g||v||p%2==m%2?u:d:f)(p%2==1&&m%2==1&&!v&&a?c.left-1:c.left),top:b(c.top),bottom:b(c.bottom),right:y(c.right)}),C="bottom"===n?"top":"bottom",S="right"===i?"left":"right",T=oe("transform"),E=void 0,M=void 0;if(M="bottom"===C?"HTML"===w.nodeName?-w.clientHeight+x.bottom:-D.height+x.bottom:x.top,E="right"===S?"HTML"===w.nodeName?-w.clientWidth+x.right:-D.width+x.right:x.left,_&&T)k[T]="translate3d("+E+"px, "+M+"px, 0)",k[C]=0,k[S]=0,k.willChange="transform";else{var A="bottom"===C?-1:1,O="right"===S?-1:1;k[C]=M*A,k[S]=E*O,k.willChange=C+", "+S}var I={"x-placement":t.placement};return t.attributes=Bt({},I,t.attributes),t.styles=Bt({},k,t.styles),t.arrowStyles=Bt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return he(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&he(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,s){var o=Xt(s,e,t,n.positionFixed),r=Zt(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),he(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},we=function(){function o(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Et(this.update.bind(this)),this.options=Bt({},o.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(Bt({},o.Defaults.modifiers,i.modifiers)).forEach(function(t){n.options.modifiers[t]=Bt({},o.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Bt({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&Mt(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Ft(o,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Xt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Zt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=ee(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ie(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,se(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[oe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ae(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return le.call(this)}}]),o}();we.Utils=("undefined"!=typeof window?window:global).PopperUtils,we.placements=fe,we.Defaults=_e;var De="dropdown",ke="bs.dropdown",xe="."+ke,Ce=".data-api",Se=p.fn[De],Te=new RegExp("38|40|27"),Ee={HIDE:"hide"+xe,HIDDEN:"hidden"+xe,SHOW:"show"+xe,SHOWN:"shown"+xe,CLICK:"click"+xe,CLICK_DATA_API:"click"+xe+Ce,KEYDOWN_DATA_API:"keydown"+xe+Ce,KEYUP_DATA_API:"keyup"+xe+Ce},Me="disabled",Ae="show",Oe="dropup",Ie="dropright",Ne="dropleft",Pe="dropdown-menu-right",je="position-static",Ye='[data-toggle="dropdown"]',Le=".dropdown form",He=".dropdown-menu",$e=".navbar-nav",Re=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",We="top-start",Ue="top-end",Fe="bottom-start",qe="bottom-end",Be="right-start",Ve="left-start",ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Ge={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Ke=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!p(this._element).hasClass(Me)){var t=c._getParentFromElement(this._element),e=p(this._menu).hasClass(Ae);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=p.Event(Ee.SHOW,n);if(p(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(void 0===we)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=t:m.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&p(t).addClass(je),this._popper=new we(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===p(t).closest($e).length&&p(document.body).children().on("mouseover",null,p.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),p(this._menu).toggleClass(Ae),p(t).toggleClass(Ae).trigger(p.Event(Ee.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||p(this._element).hasClass(Me)||p(this._menu).hasClass(Ae))){var t={relatedTarget:this._element},e=p.Event(Ee.SHOW,t),n=c._getParentFromElement(this._element);p(n).trigger(e),e.isDefaultPrevented()||(p(this._menu).toggleClass(Ae),p(n).toggleClass(Ae).trigger(p.Event(Ee.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!p(this._element).hasClass(Me)&&p(this._menu).hasClass(Ae)){var t={relatedTarget:this._element},e=p.Event(Ee.HIDE,t),n=c._getParentFromElement(this._element);p(n).trigger(e),e.isDefaultPrevented()||(p(this._menu).toggleClass(Ae),p(n).toggleClass(Ae).trigger(p.Event(Ee.HIDDEN,t)))}},t.dispose=function(){p.removeData(this._element,ke),p(this._element).off(xe),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;p(this._element).on(Ee.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,p(this._element).data(),t),m.typeCheckConfig(De,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(He))}return this._menu},t._getPlacement=function(){var t=p(this._element.parentNode),e=Fe;return t.hasClass(Oe)?(e=We,p(this._menu).hasClass(Pe)&&(e=Ue)):t.hasClass(Ie)?e=Be:t.hasClass(Ne)?e=Ve:p(this._menu).hasClass(Pe)&&(e=qe),e},t._detectNavbar=function(){return 0<p(this._element).closest(".navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=p(this).data(ke);if(t||(t=new c(this,"object"==typeof e?e:null),p(this).data(ke,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ye)),n=0,i=e.length;n<i;n++){var s=c._getParentFromElement(e[n]),o=p(e[n]).data(ke),r={relatedTarget:e[n]};if(t&&"click"===t.type&&(r.clickEvent=t),o){var a=o._menu;if(p(s).hasClass(Ae)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&p.contains(s,t.target))){var l=p.Event(Ee.HIDE,r);p(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),e[n].setAttribute("aria-expanded","false"),p(a).removeClass(Ae),p(s).removeClass(Ae).trigger(p.Event(Ee.HIDDEN,r)))}}}},c._getParentFromElement=function(t){var e,n=m.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||p(t.target).closest(He).length)):Te.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!p(this).hasClass(Me))){var e=c._getParentFromElement(this),n=p(e).hasClass(Ae);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Re));if(0!==i.length){var s=i.indexOf(t.target);38===t.which&&0<s&&s--,40===t.which&&s<i.length-1&&s++,s<0&&(s=0),i[s].focus()}}else{if(27===t.which){var o=e.querySelector(Ye);p(o).trigger("focus")}p(this).trigger("click")}}},r(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ze}},{key:"DefaultType",get:function(){return Ge}}]),c}();p(document).on(Ee.KEYDOWN_DATA_API,Ye,Ke._dataApiKeydownHandler).on(Ee.KEYDOWN_DATA_API,He,Ke._dataApiKeydownHandler).on(Ee.CLICK_DATA_API+" "+Ee.KEYUP_DATA_API,Ke._clearMenus).on(Ee.CLICK_DATA_API,Ye,function(t){t.preventDefault(),t.stopPropagation(),Ke._jQueryInterface.call(p(this),"toggle")}).on(Ee.CLICK_DATA_API,Le,function(t){t.stopPropagation()}),p.fn[De]=Ke._jQueryInterface,p.fn[De].Constructor=Ke,p.fn[De].noConflict=function(){return p.fn[De]=Se,Ke._jQueryInterface};var Qe="modal",Ze="bs.modal",Xe="."+Ze,Je=p.fn[Qe],tn={backdrop:!0,keyboard:!0,focus:!0,show:!0},en={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},nn={HIDE:"hide"+Xe,HIDDEN:"hidden"+Xe,SHOW:"show"+Xe,SHOWN:"shown"+Xe,FOCUSIN:"focusin"+Xe,RESIZE:"resize"+Xe,CLICK_DISMISS:"click.dismiss"+Xe,KEYDOWN_DISMISS:"keydown.dismiss"+Xe,MOUSEUP_DISMISS:"mouseup.dismiss"+Xe,MOUSEDOWN_DISMISS:"mousedown.dismiss"+Xe,CLICK_DATA_API:"click"+Xe+".data-api"},sn="modal-dialog-scrollable",on="modal-scrollbar-measure",rn="modal-backdrop",an="modal-open",ln="fade",cn="show",hn=".modal-dialog",un=".modal-body",dn='[data-toggle="modal"]',fn='[data-dismiss="modal"]',pn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mn=".sticky-top",gn=function(){function s(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(hn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=s.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){p(this._element).hasClass(ln)&&(this._isTransitioning=!0);var n=p.Event(nn.SHOW,{relatedTarget:t});p(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),p(this._element).on(nn.CLICK_DISMISS,fn,function(t){return e.hide(t)}),p(this._dialog).on(nn.MOUSEDOWN_DISMISS,function(){p(e._element).one(nn.MOUSEUP_DISMISS,function(t){p(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=p.Event(nn.HIDE);if(p(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=p(this._element).hasClass(ln);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p(document).off(nn.FOCUSIN),p(this._element).removeClass(cn),p(this._element).off(nn.CLICK_DISMISS),p(this._dialog).off(nn.MOUSEDOWN_DISMISS),i){var s=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return p(t).off(Xe)}),p(document).off(nn.FOCUSIN),p.removeData(this._element,Ze),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},tn,t),m.typeCheckConfig(Qe,t,en),t},t._showElement=function(t){var e=this,n=p(this._element).hasClass(ln);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),p(this._dialog).hasClass(sn)?this._dialog.querySelector(un).scrollTop=0:this._element.scrollTop=0,n&&m.reflow(this._element),p(this._element).addClass(cn),this._config.focus&&this._enforceFocus();var i=p.Event(nn.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,p(e._element).trigger(i)};if(n){var o=m.getTransitionDurationFromElement(this._dialog);p(this._dialog).one(m.TRANSITION_END,s).emulateTransitionEnd(o)}else s()},t._enforceFocus=function(){var e=this;p(document).off(nn.FOCUSIN).on(nn.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===p(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?p(this._element).on(nn.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||p(this._element).off(nn.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?p(window).on(nn.RESIZE,function(t){return e.handleUpdate(t)}):p(window).off(nn.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){p(document.body).removeClass(an),t._resetAdjustments(),t._resetScrollbar(),p(t._element).trigger(nn.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=p(this._element).hasClass(ln)?ln:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=rn,n&&this._backdrop.classList.add(n),p(this._backdrop).appendTo(document.body),p(this._element).on(nn.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&m.reflow(this._backdrop),p(this._backdrop).addClass(cn),!t)return;if(!n)return void t();var i=m.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){p(this._backdrop).removeClass(cn);var s=function(){e._removeBackdrop(),t&&t()};if(p(this._element).hasClass(ln)){var o=m.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(m.TRANSITION_END,s).emulateTransitionEnd(o)}else s()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var s=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(pn)),e=[].slice.call(document.querySelectorAll(mn));p(t).each(function(t,e){var n=e.style.paddingRight,i=p(e).css("padding-right");p(e).data("padding-right",n).css("padding-right",parseFloat(i)+s._scrollbarWidth+"px")}),p(e).each(function(t,e){var n=e.style.marginRight,i=p(e).css("margin-right");p(e).data("margin-right",n).css("margin-right",parseFloat(i)-s._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=p(document.body).css("padding-right");p(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}p(document.body).addClass(an)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(pn));p(t).each(function(t,e){var n=p(e).data("padding-right");p(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+mn));p(e).each(function(t,e){var n=p(e).data("margin-right");void 0!==n&&p(e).css("margin-right",n).removeData("margin-right")});var n=p(document.body).data("padding-right");p(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=on,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(n,i){return this.each(function(){var t=p(this).data(Ze),e=l({},tn,p(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new s(this,e),p(this).data(Ze,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},r(s,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return tn}}]),s}();p(document).on(nn.CLICK_DATA_API,dn,function(t){var e,n=this,i=m.getSelectorFromElement(this);i&&(e=document.querySelector(i));var s=p(e).data(Ze)?"toggle":l({},p(e).data(),p(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=p(e).one(nn.SHOW,function(t){t.isDefaultPrevented()||o.one(nn.HIDDEN,function(){p(n).is(":visible")&&n.focus()})});gn._jQueryInterface.call(p(e),s,this)}),p.fn[Qe]=gn._jQueryInterface,p.fn[Qe].Constructor=gn,p.fn[Qe].noConflict=function(){return p.fn[Qe]=Je,gn._jQueryInterface};var vn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],yn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},bn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,_n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function wn(t,r,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(r),l=[].slice.call(n.body.querySelectorAll("*")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var s=[].slice.call(n.attributes),o=[].concat(r["*"]||[],r[i]||[]);s.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===vn.indexOf(n)||Boolean(t.nodeValue.match(bn)||t.nodeValue.match(_n));for(var i=e.filter(function(t){return t instanceof RegExp}),s=0,o=i.length;s<o;s++)if(n.match(i[s]))return!0;return!1})(t,o)||n.removeAttribute(t.nodeName)})},s=0,o=l.length;s<o;s++)i(s);return n.body.innerHTML}var Dn="tooltip",kn="bs.tooltip",xn="."+kn,Cn=p.fn[Dn],Sn="bs-tooltip",Tn=new RegExp("(^|\\s)"+Sn+"\\S+","g"),En=["sanitize","whiteList","sanitizeFn"],Mn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},An={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},On={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:yn},In="show",Nn="out",Pn={HIDE:"hide"+xn,HIDDEN:"hidden"+xn,SHOW:"show"+xn,SHOWN:"shown"+xn,INSERTED:"inserted"+xn,CLICK:"click"+xn,FOCUSIN:"focusin"+xn,FOCUSOUT:"focusout"+xn,MOUSEENTER:"mouseenter"+xn,MOUSELEAVE:"mouseleave"+xn},jn="fade",Yn="show",Ln=".tooltip-inner",Hn=".arrow",$n="hover",Rn="focus",Wn="click",Un="manual",Fn=function(){function i(t,e){if(void 0===we)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=p(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Yn))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var t=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(t);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var s=this.getTipElement(),o=m.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(s).addClass(jn);var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();p(s).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(s).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new we(this.element,s,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Hn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),p(s).addClass(Yn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,p(e.element).trigger(e.constructor.Event.SHOWN),t===Nn&&e._leave(null,e)};if(p(this.tip).hasClass(jn)){var h=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==In&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),p(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(n).removeClass(Yn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Wn]=!1,this._activeTrigger[Rn]=!1,this._activeTrigger[$n]=!1,p(this.tip).hasClass(jn)){var o=m.getTransitionDurationFromElement(n);p(n).one(m.TRANSITION_END,s).emulateTransitionEnd(o)}else s();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){p(this.getTipElement()).addClass(Sn+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(p(t.querySelectorAll(Ln)),this.getTitle()),p(t).removeClass(jn+" "+Yn)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=wn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?p(e).parent().is(t)||t.empty().append(e):t.text(p(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},t._getAttachment=function(t){return An[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Un){var e=t===$n?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===$n?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||p(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Rn:$n]=!0),p(e.getTipElement()).hasClass(Yn)||e._hoverState===In?e._hoverState=In:(clearTimeout(e._timeout),e._hoverState=In,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===In&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||p(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Rn:$n]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Nn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Nn&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=p(this.element).data();return Object.keys(e).forEach(function(t){-1!==En.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(Dn,t,this.constructor.DefaultType),t.sanitize&&(t.template=wn(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=p(this.getTipElement()),e=t.attr("class").match(Tn);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(p(t).removeClass(jn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=p(this).data(kn),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),p(this).data(kn,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return On}},{key:"NAME",get:function(){return Dn}},{key:"DATA_KEY",get:function(){return kn}},{key:"Event",get:function(){return Pn}},{key:"EVENT_KEY",get:function(){return xn}},{key:"DefaultType",get:function(){return Mn}}]),i}();p.fn[Dn]=Fn._jQueryInterface,p.fn[Dn].Constructor=Fn,p.fn[Dn].noConflict=function(){return p.fn[Dn]=Cn,Fn._jQueryInterface};var qn="popover",Bn="bs.popover",Vn="."+Bn,zn=p.fn[qn],Gn="bs-popover",Kn=new RegExp("(^|\\s)"+Gn+"\\S+","g"),Qn=l({},Fn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Zn=l({},Fn.DefaultType,{content:"(string|element|function)"}),Xn="fade",Jn="show",ti=".popover-header",ei=".popover-body",ni={HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn,INSERTED:"inserted"+Vn,CLICK:"click"+Vn,FOCUSIN:"focusin"+Vn,FOCUSOUT:"focusout"+Vn,MOUSEENTER:"mouseenter"+Vn,MOUSELEAVE:"mouseleave"+Vn},ii=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var s=i.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){p(this.getTipElement()).addClass(Gn+"-"+t)},s.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},s.setContent=function(){var t=p(this.getTipElement());this.setElementContent(t.find(ti),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ei),e),t.removeClass(Xn+" "+Jn)},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=p(this.getTipElement()),e=t.attr("class").match(Kn);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=p(this).data(Bn),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),p(this).data(Bn,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Qn}},{key:"NAME",get:function(){return qn}},{key:"DATA_KEY",get:function(){return Bn}},{key:"Event",get:function(){return ni}},{key:"EVENT_KEY",get:function(){return Vn}},{key:"DefaultType",get:function(){return Zn}}]),i}(Fn);p.fn[qn]=ii._jQueryInterface,p.fn[qn].Constructor=ii,p.fn[qn].noConflict=function(){return p.fn[qn]=zn,ii._jQueryInterface};var si="scrollspy",oi="bs.scrollspy",ri="."+oi,ai=p.fn[si],li={offset:10,method:"auto",target:""},ci={offset:"number",method:"string",target:"(string|element)"},hi={ACTIVATE:"activate"+ri,SCROLL:"scroll"+ri,LOAD_DATA_API:"load"+ri+".data-api"},ui="dropdown-item",di="active",fi='[data-spy="scroll"]',pi=".nav, .list-group",mi=".nav-link",gi=".nav-item",vi=".list-group-item",yi=".dropdown",bi=".dropdown-item",_i=".dropdown-toggle",wi="offset",Di="position",ki=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+mi+","+this._config.target+" "+vi+","+this._config.target+" "+bi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(hi.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?wi:Di,s="auto"===this._config.method?t:this._config.method,o=s===Di?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=m.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[p(e)[s]().top+o,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){p.removeData(this._element,oi),p(this._scrollElement).off(ri),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},li,"object"==typeof t&&t?t:{})).target){var e=p(t.target).attr("id");e||(e=m.getUID(si),p(t.target).attr("id",e)),t.target="#"+e}return m.typeCheckConfig(si,t,ci),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=p([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(ui)?(n.closest(yi).find(_i).addClass(di),n.addClass(di)):(n.addClass(di),n.parents(pi).prev(mi+", "+vi).addClass(di),n.parents(pi).prev(gi).children(mi).addClass(di)),p(this._scrollElement).trigger(hi.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(di)}).forEach(function(t){return t.classList.remove(di)})},n._jQueryInterface=function(e){return this.each(function(){var t=p(this).data(oi);if(t||(t=new n(this,"object"==typeof e&&e),p(this).data(oi,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return li}}]),n}();p(window).on(hi.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(fi)),e=t.length;e--;){var n=p(t[e]);ki._jQueryInterface.call(n,n.data())}}),p.fn[si]=ki._jQueryInterface,p.fn[si].Constructor=ki,p.fn[si].noConflict=function(){return p.fn[si]=ai,ki._jQueryInterface};var xi="bs.tab",Ci="."+xi,Si=p.fn.tab,Ti={HIDE:"hide"+Ci,HIDDEN:"hidden"+Ci,SHOW:"show"+Ci,SHOWN:"shown"+Ci,CLICK_DATA_API:"click"+Ci+".data-api"},Ei="dropdown-menu",Mi="active",Ai="disabled",Oi="fade",Ii="show",Ni=".dropdown",Pi=".nav, .list-group",ji=".active",Yi="> li > .active",Li='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Hi=".dropdown-toggle",$i="> .dropdown-menu .active",Ri=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Mi)||p(this._element).hasClass(Ai))){var t,i,e=p(this._element).closest(Pi)[0],s=m.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName||"OL"===e.nodeName?Yi:ji;i=(i=p.makeArray(p(e).find(o)))[i.length-1]}var r=p.Event(Ti.HIDE,{relatedTarget:this._element}),a=p.Event(Ti.SHOW,{relatedTarget:i});if(i&&p(i).trigger(r),p(this._element).trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,e);var l=function(){var t=p.Event(Ti.HIDDEN,{relatedTarget:n._element}),e=p.Event(Ti.SHOWN,{relatedTarget:i});p(i).trigger(t),p(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){p.removeData(this._element,xi),this._element=null},t._activate=function(t,e,n){var i=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?p(e).children(ji):p(e).find(Yi))[0],o=n&&s&&p(s).hasClass(Oi),r=function(){return i._transitionComplete(t,s,n)};if(s&&o){var a=m.getTransitionDurationFromElement(s);p(s).removeClass(Ii).one(m.TRANSITION_END,r).emulateTransitionEnd(a)}else r()},t._transitionComplete=function(t,e,n){if(e){p(e).removeClass(Mi);var i=p(e.parentNode).find($i)[0];i&&p(i).removeClass(Mi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(p(t).addClass(Mi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains(Oi)&&t.classList.add(Ii),t.parentNode&&p(t.parentNode).hasClass(Ei)){var s=p(t).closest(Ni)[0];if(s){var o=[].slice.call(s.querySelectorAll(Hi));p(o).addClass(Mi)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=p(this),e=t.data(xi);if(e||(e=new i(this),t.data(xi,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();p(document).on(Ti.CLICK_DATA_API,Li,function(t){t.preventDefault(),Ri._jQueryInterface.call(p(this),"show")}),p.fn.tab=Ri._jQueryInterface,p.fn.tab.Constructor=Ri,p.fn.tab.noConflict=function(){return p.fn.tab=Si,Ri._jQueryInterface};var Wi="toast",Ui="bs.toast",Fi="."+Ui,qi=p.fn[Wi],Bi={CLICK_DISMISS:"click.dismiss"+Fi,HIDE:"hide"+Fi,HIDDEN:"hidden"+Fi,SHOW:"show"+Fi,SHOWN:"shown"+Fi},Vi="fade",zi="hide",Gi="show",Ki="showing",Qi={animation:"boolean",autohide:"boolean",delay:"number"},Zi={animation:!0,autohide:!0,delay:500},Xi='[data-dismiss="toast"]',Ji=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;p(this._element).trigger(Bi.SHOW),this._config.animation&&this._element.classList.add(Vi);var e=function(){t._element.classList.remove(Ki),t._element.classList.add(Gi),p(t._element).trigger(Bi.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove(zi),this._element.classList.add(Ki),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gi)&&(p(this._element).trigger(Bi.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gi)&&this._element.classList.remove(Gi),p(this._element).off(Bi.CLICK_DISMISS),p.removeData(this._element,Ui),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},Zi,p(this._element).data(),"object"==typeof t&&t?t:{}),m.typeCheckConfig(Wi,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;p(this._element).on(Bi.CLICK_DISMISS,Xi,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add(zi),p(t._element).trigger(Bi.HIDDEN)};if(this._element.classList.remove(Gi),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=p(this),e=t.data(Ui);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Ui,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Qi}},{key:"Default",get:function(){return Zi}}]),i}();p.fn[Wi]=Ji._jQueryInterface,p.fn[Wi].Constructor=Ji,p.fn[Wi].noConflict=function(){return p.fn[Wi]=qi,Ji._jQueryInterface},function(){if(void 0===p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=p.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=m,t.Alert=g,t.Button=O,t.Carousel=at,t.Collapse=kt,t.Dropdown=Ke,t.Modal=gn,t.Popover=ii,t.Scrollspy=ki,t.Tab=Ri,t.Toast=Ji,t.Tooltip=Fn,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,s;function d(){return t.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function c(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function p(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function m(t,e){for(var n in e)p(e,n)&&(t[n]=e[n]);return p(e,"toString")&&(t.toString=e.toString),p(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e,n,i){return Te(t,e,n,i,!0).utc()}function v(t){return null==t._pf&&(t._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}),t._pf}function y(t){if(null==t._isValid){var e=v(t),n=s.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function b(t){var e=g(NaN);return null!=t?m(v(e),t):v(e).userInvalidated=!0,e}s=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var o=d.momentProperties=[];function _(t,e){var n,i,s;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=v(e)),c(e._locale)||(t._locale=e._locale),0<o.length)for(n=0;n<o.length;n++)c(s=e[i=o[n]])||(t[i]=s);return t}var e=!1;function w(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,d.updateOffset(this),e=!1)}function D(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=k(e)),n}function r(t,e,n){var i,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(i=0;i<s;i++)(n&&t[i]!==e[i]||!n&&x(t[i])!==x(e[i]))&&r++;return r+o}function C(t){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(s,o){var r=!0;return m(function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,s),r){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}C(s+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),r=!1}return o.apply(this,arguments)},o)}var i,S={};function T(t,e){null!=d.deprecationHandler&&d.deprecationHandler(t,e),S[t]||(C(e),S[t]=!0)}function E(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t,e){var n,i=m({},t);for(n in e)p(e,n)&&(l(t[n])&&l(e[n])?(i[n]={},m(i[n],t[n]),m(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)p(t,n)&&!p(e,n)&&l(t[n])&&(i[n]=m({},i[n]));return i}function A(t){null!=t&&this.set(t)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,i=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)p(t,e)&&n.push(e);return n};var O={};function I(t,e){var n=t.toLowerCase();O[n]=O[n+"s"]=O[e]=t}function N(t){return"string"==typeof t?O[t]||O[t.toLowerCase()]:void 0}function P(t){var e,n,i={};for(n in t)p(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}var j={};function Y(t,e){j[t]=e}function L(t,e,n){var i=""+Math.abs(t),s=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).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,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function U(t,e,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),t&&(W[t]=s),e&&(W[e[0]]=function(){return L(s.apply(this,arguments),e[1],e[2])}),n&&(W[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function F(t,e){return t.isValid()?(e=q(e,t.localeData()),R[e]=R[e]||function(i){var t,s,e,o=i.match(H);for(t=0,s=o.length;t<s;t++)W[o[t]]?o[t]=W[o[t]]:o[t]=(e=o[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(t){var e,n="";for(e=0;e<s;e++)n+=E(o[e])?o[e].call(t,i):o[e];return n}}(e),R[e](t)):t.localeData().invalidDate()}function q(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for($.lastIndex=0;0<=n&&$.test(t);)t=t.replace($,i),$.lastIndex=0,n-=1;return t}var B=/\d/,V=/\d\d/,z=/\d{3}/,G=/\d{4}/,K=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[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,at={};function lt(t,n,i){at[t]=E(n)?n:function(t,e){return t&&i?i:n}}function ct(t,e){return p(at,t)?at[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s})))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ut={};function dt(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),h(n)&&(i=function(t,e){e[n]=x(t)}),e=0;e<t.length;e++)ut[t[e]]=i}function ft(t,s){dt(t,function(t,e,n,i){n._w=n._w||{},s(t,n._w,n,i)})}var pt=0,mt=1,gt=2,vt=3,yt=4,bt=5,_t=6,wt=7,Dt=8;function kt(t){return xt(t)?366:365}function xt(t){return t%4==0&&t%100!=0||t%400==0}U("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),I("year","y"),Y("year",1),lt("Y",it),lt("YY",Q,V),lt("YYYY",tt,G),lt("YYYYY",et,K),lt("YYYYYY",et,K),dt(["YYYYY","YYYYYY"],pt),dt("YYYY",function(t,e){e[pt]=2===t.length?d.parseTwoDigitYear(t):x(t)}),dt("YY",function(t,e){e[pt]=d.parseTwoDigitYear(t)}),dt("Y",function(t,e){e[pt]=parseInt(t,10)}),d.parseTwoDigitYear=function(t){return x(t)+(68<x(t)?1900:2e3)};var Ct,St=Tt("FullYear",!0);function Tt(e,n){return function(t){return null!=t?(Mt(this,e,t),d.updateOffset(this,n),this):Et(this,e)}}function Et(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Mt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&xt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function At(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?xt(t)?29:28:31-i%7%2}Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),I("month","M"),Y("month",8),lt("M",Q),lt("MM",Q,V),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),dt(["M","MM"],function(t,e){e[mt]=x(t)-1}),dt(["MMM","MMMM"],function(t,e,n,i){var s=n._locale.monthsParse(t,i,n._strict);null!=s?e[mt]=s:v(n).invalidMonth=t});var Ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,It="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Pt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function jt(t){return null!=t?(Pt(this,t),d.updateOffset(this,!0),this):Et(this,"Month")}var Yt=rt;var Lt=rt;function Ht(){function t(t,e){return e.length-t.length}var e,n,i=[],s=[],o=[];for(e=0;e<12;e++)n=g([2e3,e]),i.push(this.monthsShort(n,"")),s.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),s.sort(t),o.sort(t),e=0;e<12;e++)i[e]=ht(i[e]),s[e]=ht(s[e]);for(e=0;e<24;e++)o[e]=ht(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $t(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Rt(t,e,n){var i=7+e-n;return-((7+$t(t,0,i).getUTCDay()-e)%7)+i-1}function Wt(t,e,n,i,s){var o,r,a=1+7*(e-1)+(7+n-i)%7+Rt(t,i,s);return r=a<=0?kt(o=t-1)+a:a>kt(t)?(o=t+1,a-kt(t)):(o=t,a),{year:o,dayOfYear:r}}function Ut(t,e,n){var i,s,o=Rt(t.year(),e,n),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?i=r+Ft(s=t.year()-1,e,n):r>Ft(t.year(),e,n)?(i=r-Ft(t.year(),e,n),s=t.year()+1):(s=t.year(),i=r),{week:i,year:s}}function Ft(t,e,n){var i=Rt(t,e,n),s=Rt(t+1,e,n);return(kt(t)-i+s)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",Q),lt("ww",Q,V),lt("W",Q),lt("WW",Q,V),ft(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=x(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ft(["dd","ddd","dddd"],function(t,e,n,i){var s=n._locale.weekdaysParse(t,i,n._strict);null!=s?e.d=s:v(n).invalidWeekday=t}),ft(["d","e","E"],function(t,e,n,i){e[i]=x(t)});var Bt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Gt=rt;var Kt=rt;var Qt=rt;function Zt(){function t(t,e){return e.length-t.length}var e,n,i,s,o,r=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),i=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),o=this.weekdays(n,""),r.push(i),a.push(s),l.push(o),c.push(i),c.push(s),c.push(o);for(r.sort(t),a.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)a[e]=ht(a[e]),l[e]=ht(l[e]),c[e]=ht(c[e]);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("^("+r.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Xt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Xt.apply(this)+L(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Xt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),I("hour","h"),Y("hour",13),lt("a",te),lt("A",te),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,V),lt("hh",Q,V),lt("kk",Q,V),lt("hmm",Z),lt("hmmss",X),lt("Hmm",Z),lt("Hmmss",X),dt(["H","HH"],vt),dt(["k","kk"],function(t,e,n){var i=x(t);e[vt]=24===i?0:i}),dt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),dt(["h","hh"],function(t,e,n){e[vt]=x(t),v(n).bigHour=!0}),dt("hmm",function(t,e,n){var i=t.length-2;e[vt]=x(t.substr(0,i)),e[yt]=x(t.substr(i)),v(n).bigHour=!0}),dt("hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[vt]=x(t.substr(0,i)),e[yt]=x(t.substr(i,2)),e[bt]=x(t.substr(s)),v(n).bigHour=!0}),dt("Hmm",function(t,e,n){var i=t.length-2;e[vt]=x(t.substr(0,i)),e[yt]=x(t.substr(i))}),dt("Hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[vt]=x(t.substr(0,i)),e[yt]=x(t.substr(i,2)),e[bt]=x(t.substr(s))});var ee,ne=Tt("Hours",!0),ie={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:It,monthsShort:Nt,week:{dow:0,doy:6},weekdays:Bt,weekdaysMin:zt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},se={},oe={};function re(t){return t?t.toLowerCase().replace("_","-"):t}function ae(t){var e=null;if(!se[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ee._abbr,require("./locale/"+t),le(e)}catch(t){}return se[t]}function le(t,e){var n;return t&&((n=c(e)?he(t):ce(t,e))?ee=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ee._abbr}function ce(t,e){if(null===e)return delete se[t],null;var n,i=ie;if(e.abbr=t,null!=se[t])T("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=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])i=se[e.parentLocale]._config;else{if(null==(n=ae(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=n._config}return se[t]=new A(M(i,e)),oe[t]&&oe[t].forEach(function(t){ce(t.name,t.config)}),le(t),se[t]}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!a(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,n,i,s,o=0;o<t.length;){for(e=(s=re(t[o]).split("-")).length,n=(n=re(t[o+1]))?n.split("-"):null;0<e;){if(i=ae(s.slice(0,e).join("-")))return i;if(n&&n.length>=e&&r(s,n,!0)>=e-1)break;e--}o++}return ee}(t)}function ue(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[mt]<0||11<n[mt]?mt:n[gt]<1||n[gt]>At(n[pt],n[mt])?gt:n[vt]<0||24<n[vt]||24===n[vt]&&(0!==n[yt]||0!==n[bt]||0!==n[_t])?vt:n[yt]<0||59<n[yt]?yt:n[bt]<0||59<n[bt]?bt:n[_t]<0||999<n[_t]?_t:-1,v(t)._overflowDayOfYear&&(e<pt||gt<e)&&(e=gt),v(t)._overflowWeeks&&-1===e&&(e=wt),v(t)._overflowWeekday&&-1===e&&(e=Dt),v(t).overflow=e),t}function de(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,i,s,o,r=[];if(!t._d){var a,l;for(a=t,l=new Date(d.now()),i=a._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[gt]&&null==t._a[mt]&&function(t){var e,n,i,s,o,r,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,n=de(e.GG,t._a[pt],Ut(Ee(),1,4).year),i=de(e.W,1),((s=de(e.E,1))<1||7<s)&&(l=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var c=Ut(Ee(),o,r);n=de(e.gg,t._a[pt],c.year),i=de(e.w,c.week),null!=e.d?((s=e.d)<0||6<s)&&(l=!0):null!=e.e?(s=e.e+o,(e.e<0||6<e.e)&&(l=!0)):s=o}i<1||i>Ft(n,o,r)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(a=Wt(n,i,s,o,r),t._a[pt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=de(t._a[pt],i[pt]),(t._dayOfYear>kt(o)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=$t(o,0,t._dayOfYear),t._a[mt]=n.getUTCMonth(),t._a[gt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&0===t._a[_t]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?$t:function(t,e,n,i,s,o,r){var a;return t<100&&0<=t?(a=new Date(t+400,e,n,i,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,s,o,r),a}).apply(null,r),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(v(t).weekdayMismatch=!0)}}var pe=/^\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)?)?$/,me=/^\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)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,ve=[["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}/]],ye=[["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/]],be=/^\/?Date\((\-?\d+)/i;function _e(t){var e,n,i,s,o,r,a=t._i,l=pe.exec(a)||me.exec(a);if(l){for(v(t).iso=!0,e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[1])){s=ve[e][0],i=!1!==ve[e][2];break}if(null==s)return void(t._isValid=!1);if(l[3]){for(e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[3])){o=(l[2]||" ")+ye[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=s+(o||"")+(r||""),Ce(t)}else t._isValid=!1}var we=/^(?:(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}))$/;function De(t,e,n,i,s,o){var r=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Nt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return o&&r.push(parseInt(o,10)),r}var ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,n,i,s=we.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(s){var o=De(s[4],s[3],s[2],s[5],s[6],s[7]);if(e=s[1],n=o,i=t,e&&Vt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(v(i).weekdayMismatch=!0,!(i._isValid=!1)))return;t._a=o,t._tzm=function(t,e,n){if(t)return ke[t];if(e)return 0;var i=parseInt(n,10),s=i%100;return(i-s)/100*60+s}(s[8],s[9],s[10]),t._d=$t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==d.ISO_8601)if(t._f!==d.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,s,o,r,a,l,c=""+t._i,h=c.length,u=0;for(i=q(t._f,t._locale).match(H)||[],e=0;e<i.length;e++)s=i[e],(n=(c.match(ct(s,t))||[])[0])&&(0<(o=c.substr(0,c.indexOf(n))).length&&v(t).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),u+=n.length),W[s]?(n?v(t).empty=!1:v(t).unusedTokens.push(s),r=s,l=t,null!=(a=n)&&p(ut,r)&&ut[r](a,l._a,l,r)):t._strict&&!n&&v(t).unusedTokens.push(s);v(t).charsLeftOver=h-u,0<c.length&&v(t).unusedInput.push(c),t._a[vt]<=12&&!0===v(t).bigHour&&0<t._a[vt]&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[vt],t._meridiem),fe(t),ue(t)}else xe(t);else _e(t)}function Se(t){var e,n,i,s,o=t._i,r=t._f;return t._locale=t._locale||he(t._l),null===o||void 0===r&&""===o?b({nullInput:!0}):("string"==typeof o&&(t._i=o=t._locale.preparse(o)),D(o)?new w(ue(o)):(u(o)?t._d=o:a(r)?function(t){var e,n,i,s,o;if(0===t._f.length)return v(t).invalidFormat=!0,t._d=new Date(NaN);for(s=0;s<t._f.length;s++)o=0,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],Ce(e),y(e)&&(o+=v(e).charsLeftOver,o+=10*v(e).unusedTokens.length,v(e).score=o,(null==i||o<i)&&(i=o,n=e));m(t,n||e)}(t):r?Ce(t):c(n=(e=t)._i)?e._d=new Date(d.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(i=e,null===(s=be.exec(i._i))?(_e(i),!1===i._isValid&&(delete i._isValid,xe(i),!1===i._isValid&&(delete i._isValid,d.createFromInputFallback(i)))):i._d=new Date(+s[1])):a(n)?(e._a=f(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):l(n)?function(t){if(!t._d){var e=P(t._i);t._a=f([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t)}}(e):h(n)?e._d=new Date(n):d.createFromInputFallback(e),y(t)||(t._d=null),t))}function Te(t,e,n,i,s){var o,r={};return!0!==n&&!1!==n||(i=n,n=void 0),(l(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=n,r._i=t,r._f=e,r._strict=i,(o=new w(ue(Se(r))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ee(t,e,n,i){return Te(t,e,n,i,!1)}d.createFromInputFallback=n("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),d.ISO_8601=function(){},d.RFC_2822=function(){};var Me=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()}),Ae=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:b()});function Oe(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Ee();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=P(t),n=e.year||0,i=e.quarter||0,s=e.month||0,o=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ct.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==x(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*c+6e4*l+1e3*a*60*60,this._days=+r+7*o,this._months=+s+3*i+12*n,this._data={},this._locale=he(),this._bubble()}function Pe(t){return t instanceof Ne}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,n){U(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+L(~~(t/60),2)+n+L(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),lt("Z",ot),lt("ZZ",ot),dt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(ot,t)});var Le=/([\+\-]|\d\d)/gi;function He(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Le)||["-",0,0],s=60*i[1]+x(i[2]);return 0===s?0:"+"===i[0]?s:-s}function $e(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(D(t)||u(t)?t.valueOf():Ee(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),d.updateOffset(n,!1),n):Ee(t).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function We(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}d.updateOffset=function(){};var Ue=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(t,e){var n,i,s,o=t,r=null;return Pe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:h(t)?(o={},e?o[e]=t:o.milliseconds=t):(r=Ue.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:x(r[gt])*n,h:x(r[vt])*n,m:x(r[yt])*n,s:x(r[bt])*n,ms:x(je(1e3*r[_t]))*n}):(r=Fe.exec(t))?(n="-"===r[1]?-1:1,o={y:Be(r[2],n),M:Be(r[3],n),w:Be(r[4],n),d:Be(r[5],n),h:Be(r[6],n),m:Be(r[7],n),s:Be(r[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=$e(e,t),t.isBefore(e)?n=Ve(t,e):((n=Ve(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Ee(o.from),Ee(o.to)),(o={}).ms=s.milliseconds,o.M=s.months),i=new Ne(o),Pe(t)&&p(t,"_locale")&&(i._locale=t._locale),i}function Be(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ze(i,s){return function(t,e){var n;return null===e||isNaN(+e)||(T(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ge(this,qe(t="string"==typeof t?+t:t,e),i),this}}function Ge(t,e,n,i){var s=e._milliseconds,o=je(e._days),r=je(e._months);t.isValid()&&(i=null==i||i,r&&Pt(t,Et(t,"Month")+r*n),o&&Mt(t,"Date",Et(t,"Date")+o*n),s&&t._d.setTime(t._d.valueOf()+s*n),i&&d.updateOffset(t,o||r))}qe.fn=Ne.prototype,qe.invalid=function(){return qe(NaN)};var Ke=ze(1,"add"),Qe=ze(-1,"subtract");function Ze(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Xe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=he(t))&&(this._locale=e),this)}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function tn(){return this._locale}var en=126227808e5;function nn(t,e){return(t%e+e)%e}function sn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-en:new Date(t,e,n).valueOf()}function on(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-en:Date.UTC(t,e,n)}function rn(t,e){U(0,[t,t.length],0,e)}function an(t,e,n,i,s){var o;return null==t?Ut(this,i,s).year:((o=Ft(t,i,s))<e&&(e=o),function(t,e,n,i,s){var o=Wt(t,e,n,i,s),r=$t(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,t,e,n,i,s))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",Q,V),lt("gg",Q,V),lt("GGGG",tt,G),lt("gggg",tt,G),lt("GGGGG",et,K),lt("ggggg",et,K),ft(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=x(t)}),ft(["gg","GG"],function(t,e,n,i){e[i]=d.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),I("quarter","Q"),Y("quarter",7),lt("Q",B),dt("Q",function(t,e){e[mt]=3*(x(t)-1)}),U("D",["DD",2],"Do","date"),I("date","D"),Y("date",9),lt("D",Q),lt("DD",Q,V),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),dt(["D","DD"],gt),dt("Do",function(t,e){e[gt]=x(t.match(Q)[0])});var ln=Tt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",J),lt("DDDD",z),dt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),U("m",["mm",2],0,"minute"),I("minute","m"),Y("minute",14),lt("m",Q),lt("mm",Q,V),dt(["m","mm"],yt);var cn=Tt("Minutes",!1);U("s",["ss",2],0,"second"),I("second","s"),Y("second",15),lt("s",Q),lt("ss",Q,V),dt(["s","ss"],bt);var hn,un=Tt("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),Y("millisecond",16),lt("S",J,B),lt("SS",J,V),lt("SSS",J,z),hn="SSSS";hn.length<=9;hn+="S")lt(hn,nt);function dn(t,e){e[_t]=x(1e3*("0."+t))}for(hn="S";hn.length<=9;hn+="S")dt(hn,dn);var fn=Tt("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var pn=w.prototype;function mn(t){return t}pn.add=Ke,pn.calendar=function(t,e){var n=t||Ee(),i=$e(n,this).startOf("day"),s=d.calendarFormat(this,i)||"sameElse",o=e&&(E(e[s])?e[s].call(this,n):e[s]);return this.format(o||this.localeData().calendar(s,this,Ee(n)))},pn.clone=function(){return new w(this)},pn.diff=function(t,e,n){var i,s,o;if(!this.isValid())return NaN;if(!(i=$e(t,this)).isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),e=N(e)){case"year":o=Ze(this,i)/12;break;case"month":o=Ze(this,i);break;case"quarter":o=Ze(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-s)/864e5;break;case"week":o=(this-i-s)/6048e5;break;default:o=this-i}return n?o:k(o)},pn.endOf=function(t){var e;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?on:sn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-nn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-nn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-nn(e,1e3)-1}return this._d.setTime(e),d.updateOffset(this,!0),this},pn.format=function(t){t||(t=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var e=F(this,t);return this.localeData().postformat(e)},pn.from=function(t,e){return this.isValid()&&(D(t)&&t.isValid()||Ee(t).isValid())?qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pn.fromNow=function(t){return this.from(Ee(),t)},pn.to=function(t,e){return this.isValid()&&(D(t)&&t.isValid()||Ee(t).isValid())?qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pn.toNow=function(t){return this.to(Ee(),t)},pn.get=function(t){return E(this[t=N(t)])?this[t]():this},pn.invalidAt=function(){return v(this).overflow},pn.isAfter=function(t,e){var n=D(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},pn.isBefore=function(t,e){var n=D(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},pn.isBetween=function(t,e,n,i){var s=D(t)?t:Ee(t),o=D(e)?e:Ee(e);return!!(this.isValid()&&s.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(s,n):!this.isBefore(s,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},pn.isSame=function(t,e){var n,i=D(t)?t:Ee(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},pn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},pn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},pn.isValid=function(){return y(this)},pn.lang=Je,pn.locale=Xe,pn.localeData=tn,pn.max=Ae,pn.min=Me,pn.parsingFlags=function(){return m({},v(this))},pn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:j[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=P(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(E(this[t=N(t)]))return this[t](e);return this},pn.startOf=function(t){var e;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?on:sn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=nn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=nn(e,6e4);break;case"second":e=this._d.valueOf(),e-=nn(e,1e3)}return this._d.setTime(e),d.updateOffset(this,!0),this},pn.subtract=Qe,pn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},pn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},pn.toDate=function(){return new Date(this.valueOf())},pn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?F(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+s)},pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.year=St,pn.isLeapYear=function(){return xt(this.year())},pn.weekYear=function(t){return an.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(t){return an.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},pn.month=jt,pn.daysInMonth=function(){return At(this.year(),this.month())},pn.week=pn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},pn.isoWeek=pn.isoWeeks=function(t){var e=Ut(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},pn.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},pn.isoWeeksInYear=function(){return Ft(this.year(),1,4)},pn.date=ln,pn.day=pn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},pn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},pn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,i=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},pn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},pn.hour=pn.hours=ne,pn.minute=pn.minutes=cn,pn.second=pn.seconds=un,pn.millisecond=pn.milliseconds=fn,pn.utcOffset=function(t,e,n){var i,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?s:Re(this);if("string"==typeof t){if(null===(t=He(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Re(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==t&&(!e||this._changeInProgress?Ge(this,qe(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this},pn.utc=function(t){return this.utcOffset(0,t)},pn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this},pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},pn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ee(t).utcOffset():0,(this.utcOffset()-t)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=We,pn.isUTC=We,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=n("dates accessor is deprecated. Use date instead.",ln),pn.months=n("months accessor is deprecated. Use month instead",jt),pn.years=n("years accessor is deprecated. Use year instead",St),pn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),pn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),(t=Se(t))._a){var e=t._isUTC?g(t._a):Ee(t._a);this._isDSTShifted=this.isValid()&&0<r(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var gn=A.prototype;function vn(t,e,n,i){var s=he(),o=g().set(i,e);return s[n](o,t)}function yn(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return vn(t,e,n,"month");var i,s=[];for(i=0;i<12;i++)s[i]=vn(t,i,n,"month");return s}function bn(t,e,n,i){e=("boolean"==typeof t?h(e)&&(n=e,e=void 0):(e=t,t=!1,h(n=e)&&(n=e,e=void 0)),e||"");var s,o=he(),r=t?o._week.dow:0;if(null!=n)return vn(e,(n+r)%7,i,"day");var a=[];for(s=0;s<7;s++)a[s]=vn(e,(s+r)%7,i,"day");return a}gn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return E(i)?i.call(e,n):i},gn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(t){return this._ordinal.replace("%d",t)},gn.preparse=mn,gn.postformat=mn,gn.relativeTime=function(t,e,n,i){var s=this._relativeTime[n];return E(s)?s(t,e,n,i):s.replace(/%d/i,t)},gn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)},gn.set=function(t){var e,n;for(n in t)E(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ot).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ot.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(t,e,n){var i,s,o;if(this._monthsParseExact)return function(t,e,n){var i,s,o,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=g([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(s=Ct.call(this._shortMonthsParse,r))?s:null:-1!==(s=Ct.call(this._longMonthsParse,r))?s:null:"MMM"===e?-1!==(s=Ct.call(this._shortMonthsParse,r))?s:-1!==(s=Ct.call(this._longMonthsParse,r))?s:null:-1!==(s=Ct.call(this._longMonthsParse,r))?s:-1!==(s=Ct.call(this._shortMonthsParse,r))?s:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=g([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},gn.monthsRegex=function(t){return this._monthsParseExact?(p(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(t){return this._monthsParseExact?(p(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Yt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},gn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gn.weekdaysParse=function(t,e,n){var i,s,o;if(this._weekdaysParseExact)return function(t,e,n){var i,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=g([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"===e?-1!==(s=Ct.call(this._weekdaysParse,r))?s:null:"ddd"===e?-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:null:"dddd"===e?-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:null:"ddd"===e?-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:null:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=g([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},gn.weekdaysRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Zt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Gt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Zt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Zt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},le("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),d.lang=n("moment.lang is deprecated. Use moment.locale instead.",le),d.langData=n("moment.langData is deprecated. Use moment.localeData instead.",he);var _n=Math.abs;function wn(t,e,n,i){var s=qe(e,n);return t._milliseconds+=i*s._milliseconds,t._days+=i*s._days,t._months+=i*s._months,t._bubble()}function Dn(t){return t<0?Math.floor(t):Math.ceil(t)}function kn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function Cn(t){return function(){return this.as(t)}}var Sn=Cn("ms"),Tn=Cn("s"),En=Cn("m"),Mn=Cn("h"),An=Cn("d"),On=Cn("w"),In=Cn("M"),Nn=Cn("Q"),Pn=Cn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Yn=jn("milliseconds"),Ln=jn("seconds"),Hn=jn("minutes"),$n=jn("hours"),Rn=jn("days"),Wn=jn("months"),Un=jn("years");var Fn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11};var Bn=Math.abs;function Vn(t){return(0<t)-(t<0)||+t}function zn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Bn(this._milliseconds)/1e3,i=Bn(this._days),s=Bn(this._months);e=k((t=k(n/60))/60),n%=60,t%=60;var o=k(s/12),r=s%=12,a=i,l=e,c=t,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var d=u<0?"-":"",f=Vn(this._months)!==Vn(u)?"-":"",p=Vn(this._days)!==Vn(u)?"-":"",m=Vn(this._milliseconds)!==Vn(u)?"-":"";return d+"P"+(o?f+o+"Y":"")+(r?f+r+"M":"")+(a?p+a+"D":"")+(l||c||h?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(h?m+h+"S":"")}var Gn=Ne.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var t=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),t.milliseconds=_n(t.milliseconds),t.seconds=_n(t.seconds),t.minutes=_n(t.minutes),t.hours=_n(t.hours),t.months=_n(t.months),t.years=_n(t.years),this},Gn.add=function(t,e){return wn(this,t,e,1)},Gn.subtract=function(t,e){return wn(this,t,e,-1)},Gn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=N(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+kn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Gn.asMilliseconds=Sn,Gn.asSeconds=Tn,Gn.asMinutes=En,Gn.asHours=Mn,Gn.asDays=An,Gn.asWeeks=On,Gn.asMonths=In,Gn.asQuarters=Nn,Gn.asYears=Pn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var t,e,n,i,s,o=this._milliseconds,r=this._days,a=this._months,l=this._data;return 0<=o&&0<=r&&0<=a||o<=0&&r<=0&&a<=0||(o+=864e5*Dn(xn(a)+r),a=r=0),l.milliseconds=o%1e3,t=k(o/1e3),l.seconds=t%60,e=k(t/60),l.minutes=e%60,n=k(e/60),l.hours=n%24,a+=s=k(kn(r+=k(n/24))),r-=Dn(xn(s)),i=k(a/12),a%=12,l.days=r,l.months=a,l.years=i,this},Gn.clone=function(){return qe(this)},Gn.get=function(t){return t=N(t),this.isValid()?this[t+"s"]():NaN},Gn.milliseconds=Yn,Gn.seconds=Ln,Gn.minutes=Hn,Gn.hours=$n,Gn.days=Rn,Gn.weeks=function(){return k(this.days()/7)},Gn.months=Wn,Gn.years=Un,Gn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,s,o,r,a,l,c,h,u,d=this.localeData(),f=(n=!t,i=d,s=qe(e=this).abs(),o=Fn(s.as("s")),r=Fn(s.as("m")),a=Fn(s.as("h")),l=Fn(s.as("d")),c=Fn(s.as("M")),h=Fn(s.as("y")),(u=o<=qn.ss&&["s",o]||o<qn.s&&["ss",o]||r<=1&&["m"]||r<qn.m&&["mm",r]||a<=1&&["h"]||a<qn.h&&["hh",a]||l<=1&&["d"]||l<qn.d&&["dd",l]||c<=1&&["M"]||c<qn.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=n,u[3]=0<+e,u[4]=i,function(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}.apply(null,u));return t&&(f=d.pastFuture(+this,f)),d.postformat(f)},Gn.toISOString=zn,Gn.toString=zn,Gn.toJSON=zn,Gn.locale=Xe,Gn.localeData=tn,Gn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Gn.lang=Je,U("X",0,0,"unix"),U("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),dt("x",function(t,e,n){n._d=new Date(x(t))}),d.version="2.24.0",t=Ee,d.fn=pn,d.min=function(){return Oe("isBefore",[].slice.call(arguments,0))},d.max=function(){return Oe("isAfter",[].slice.call(arguments,0))},d.now=function(){return Date.now?Date.now():+new Date},d.utc=g,d.unix=function(t){return Ee(1e3*t)},d.months=function(t,e){return yn(t,e,"months")},d.isDate=u,d.locale=le,d.invalid=b,d.duration=qe,d.isMoment=D,d.weekdays=function(t,e,n){return bn(t,e,n,"weekdays")},d.parseZone=function(){return Ee.apply(null,arguments).parseZone()},d.localeData=he,d.isDuration=Pe,d.monthsShort=function(t,e){return yn(t,e,"monthsShort")},d.weekdaysMin=function(t,e,n){return bn(t,e,n,"weekdaysMin")},d.defineLocale=ce,d.updateLocale=function(t,e){if(null!=e){var n,i,s=ie;null!=(i=ae(t))&&(s=i._config),(n=new A(e=M(s,e))).parentLocale=se[t],se[t]=n,le(t)}else null!=se[t]&&(null!=se[t].parentLocale?se[t]=se[t].parentLocale:null!=se[t]&&delete se[t]);return se[t]},d.locales=function(){return i(se)},d.weekdaysShort=function(t,e,n){return bn(t,e,n,"weekdaysShort")},d.normalizeUnits=N,d.relativeTimeRounding=function(t){return void 0===t?Fn:"function"==typeof t&&(Fn=t,!0)},d.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},d.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},d.prototype=pn,d.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},d}),function(E){E.fn.extend({slimScroll:function(S){var T=E.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},S);return this.each(function(){var i,e,s,n,o,r,a,l,c="<div></div>",h=30,u=!1,d=E(this);if(d.parent().hasClass(T.wrapperClass)){var f=d.scrollTop();if(b=d.siblings("."+T.barClass),y=d.siblings("."+T.railClass),k(),E.isPlainObject(S)){if("height"in S&&"auto"==S.height){d.parent().css("height","auto"),d.css("height","auto");var p=d.parent().parent().height();d.parent().css("height",p),d.css("height",p)}else if("height"in S){var m=S.height;d.parent().css("height",m),d.css("height",m)}if("scrollTo"in S)f=parseInt(T.scrollTo);else if("scrollBy"in S)f+=parseInt(T.scrollBy);else if("destroy"in S)return b.remove(),y.remove(),void d.unwrap();D(f,!1,!0)}}else if(!(E.isPlainObject(S)&&"destroy"in S)){T.height="auto"==T.height?d.parent().height():T.height;var g=E(c).addClass(T.wrapperClass).css({position:"relative",overflow:"hidden",width:T.width,height:T.height});d.css({overflow:"hidden",width:T.width,height:T.height});var v,y=E(c).addClass(T.railClass).css({width:T.size,height:"100%",position:"absolute",top:0,display:T.alwaysVisible&&T.railVisible?"block":"none","border-radius":T.railBorderRadius,background:T.railColor,opacity:T.railOpacity,zIndex:90}),b=E(c).addClass(T.barClass).css({background:T.color,width:T.size,position:"absolute",top:0,opacity:T.opacity,display:T.alwaysVisible?"block":"none","border-radius":T.borderRadius,BorderRadius:T.borderRadius,MozBorderRadius:T.borderRadius,WebkitBorderRadius:T.borderRadius,zIndex:99}),_="right"==T.position?{right:T.distance}:{left:T.distance};y.css(_),b.css(_),d.wrap(g),d.parent().append(b),d.parent().append(y),T.railDraggable&&b.bind("mousedown",function(e){var n=E(document);return s=!0,t=parseFloat(b.css("top")),pageY=e.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,b.css("top",currTop),D(0,b.position().top,!1)}),n.bind("mouseup.slimscroll",function(t){s=!1,C(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),y.hover(function(){x()},function(){C()}),b.hover(function(){e=!0},function(){e=!1}),d.hover(function(){i=!0,x(),C()},function(){i=!1,C()}),d.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(o=t.originalEvent.touches[0].pageY)}),d.bind("touchmove",function(t){(u||t.originalEvent.preventDefault(),t.originalEvent.touches.length)&&(D((o-t.originalEvent.touches[0].pageY)/T.touchScrollStep,!0),o=t.originalEvent.touches[0].pageY)}),k(),"bottom"===T.start?(b.css({top:d.outerHeight()-b.outerHeight()}),D(0,!0)):"top"!==T.start&&(D(E(T.start).position().top,null,!0),T.alwaysVisible||b.hide()),v=this,window.addEventListener?(v.addEventListener("DOMMouseScroll",w,!1),v.addEventListener("mousewheel",w,!1)):document.attachEvent("onmousewheel",w)}function w(t){if(i){var e=0;(t=t||window.event).wheelDelta&&(e=-t.wheelDelta/120),t.detail&&(e=t.detail/3);var n=t.target||t.srcTarget||t.srcElement;E(n).closest("."+T.wrapperClass).is(d.parent())&&D(e,!0),t.preventDefault&&!u&&t.preventDefault(),u||(t.returnValue=!1)}}function D(t,e,n){u=!1;var i=t,s=d.outerHeight()-b.outerHeight();if(e&&(i=parseInt(b.css("top"))+t*parseInt(T.wheelStep)/100*b.outerHeight(),i=Math.min(Math.max(i,0),s),i=0<t?Math.ceil(i):Math.floor(i),b.css({top:i+"px"})),i=(a=parseInt(b.css("top"))/(d.outerHeight()-b.outerHeight()))*(d[0].scrollHeight-d.outerHeight()),n){var o=(i=t)/d[0].scrollHeight*d.outerHeight();o=Math.min(Math.max(o,0),s),b.css({top:o+"px"})}d.scrollTop(i),d.trigger("slimscrolling",~~i),x(),C()}function k(){r=Math.max(d.outerHeight()/d[0].scrollHeight*d.outerHeight(),h),b.css({height:r+"px"});var t=r==d.outerHeight()?"none":"block";b.css({display:t})}function x(){if(k(),clearTimeout(n),a==~~a){if(u=T.allowPageScroll,l!=a){var t=0==~~a?"top":"bottom";d.trigger("slimscroll",t)}}else u=!1;l=a,r>=d.outerHeight()?u=!0:(b.stop(!0,!0).fadeIn("fast"),T.railVisible&&y.stop(!0,!0).fadeIn("fast"))}function C(){T.alwaysVisible||(n=setTimeout(function(){T.disableFadeOut&&i||e||s||(b.fadeOut("slow"),y.fadeOut("slow"))},1e3))}}),this}}),E.fn.extend({slimscroll:E.fn.slimScroll})}(jQuery),function(t,n){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,e){return e.fn||(e.fn={}),n(t,e)});else if("object"==typeof module&&module.exports){var e="undefined"!=typeof window?window.jQuery:void 0;e||(e=require("jquery")).fn||(e.fn={});var i="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=n(i,e)}else t.daterangepicker=n(t.moment,t.jQuery)}(this,function(H,$){var i=function(t,e,n){if(this.parentEl="body",this.element=$(t),this.startDate=H().startOf("day"),this.endDate=H().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=H().subtract(100,"year").format("YYYY"),this.maxYear=H().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:H.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:H.weekdaysMin(),monthNames:H.monthsShort(),firstDay:H.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"==typeof(e=$.extend(this.element.data(),e)).template||e.template instanceof $||(e.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=e.parentEl&&$(e.parentEl).length?$(e.parentEl):$(this.parentEl),this.container=$(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.direction&&(this.locale.direction=e.locale.direction),"string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel)){(u=document.createElement("textarea")).innerHTML=e.locale.customRangeLabel;var i=u.value;this.locale.customRangeLabel=i}if(this.container.addClass(this.locale.direction),"string"==typeof e.startDate&&(this.startDate=H(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=H(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=H(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=H(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=H(e.startDate)),"object"==typeof e.endDate&&(this.endDate=H(e.endDate)),"object"==typeof e.minDate&&(this.minDate=H(e.minDate)),"object"==typeof e.maxDate&&(this.maxDate=H(e.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof e.applyButtonClasses&&(this.applyButtonClasses=e.applyButtonClasses),"string"==typeof e.applyClass&&(this.applyButtonClasses=e.applyClass),"string"==typeof e.cancelButtonClasses&&(this.cancelButtonClasses=e.cancelButtonClasses),"string"==typeof e.cancelClass&&(this.cancelButtonClasses=e.cancelClass),"object"==typeof e.maxSpan&&(this.maxSpan=e.maxSpan),"object"==typeof e.dateLimit&&(this.maxSpan=e.dateLimit),"string"==typeof e.opens&&(this.opens=e.opens),"string"==typeof e.drops&&(this.drops=e.drops),"boolean"==typeof e.showWeekNumbers&&(this.showWeekNumbers=e.showWeekNumbers),"boolean"==typeof e.showISOWeekNumbers&&(this.showISOWeekNumbers=e.showISOWeekNumbers),"string"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses),"object"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses.join(" ")),"boolean"==typeof e.showDropdowns&&(this.showDropdowns=e.showDropdowns),"number"==typeof e.minYear&&(this.minYear=e.minYear),"number"==typeof e.maxYear&&(this.maxYear=e.maxYear),"boolean"==typeof e.showCustomRangeLabel&&(this.showCustomRangeLabel=e.showCustomRangeLabel),"boolean"==typeof e.singleDatePicker&&(this.singleDatePicker=e.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof e.timePicker&&(this.timePicker=e.timePicker),"boolean"==typeof e.timePickerSeconds&&(this.timePickerSeconds=e.timePickerSeconds),"number"==typeof e.timePickerIncrement&&(this.timePickerIncrement=e.timePickerIncrement),"boolean"==typeof e.timePicker24Hour&&(this.timePicker24Hour=e.timePicker24Hour),"boolean"==typeof e.autoApply&&(this.autoApply=e.autoApply),"boolean"==typeof e.autoUpdateInput&&(this.autoUpdateInput=e.autoUpdateInput),"boolean"==typeof e.linkedCalendars&&(this.linkedCalendars=e.linkedCalendars),"function"==typeof e.isInvalidDate&&(this.isInvalidDate=e.isInvalidDate),"function"==typeof e.isCustomDate&&(this.isCustomDate=e.isCustomDate),"boolean"==typeof e.alwaysShowCalendars&&(this.alwaysShowCalendars=e.alwaysShowCalendars),0!=this.locale.firstDay)for(var s=this.locale.firstDay;0<s;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),s--;var o,r,a;if(void 0===e.startDate&&void 0===e.endDate&&$(this.element).is(":text")){var l=$(this.element).val(),c=l.split(this.locale.separator);o=r=null,2==c.length?(o=H(c[0],this.locale.format),r=H(c[1],this.locale.format)):this.singleDatePicker&&""!==l&&(o=H(l,this.locale.format),r=H(l,this.locale.format)),null!==o&&null!==r&&(this.setStartDate(o),this.setEndDate(r))}if("object"==typeof e.ranges){for(a in e.ranges){o="string"==typeof e.ranges[a][0]?H(e.ranges[a][0],this.locale.format):H(e.ranges[a][0]),r="string"==typeof e.ranges[a][1]?H(e.ranges[a][1],this.locale.format):H(e.ranges[a][1]),this.minDate&&o.isBefore(this.minDate)&&(o=this.minDate.clone());var h=this.maxDate;if(this.maxSpan&&h&&o.clone().add(this.maxSpan).isAfter(h)&&(h=o.clone().add(this.maxSpan)),h&&r.isAfter(h)&&(r=h.clone()),!(this.minDate&&r.isBefore(this.minDate,this.timepicker?"minute":"day")||h&&o.isAfter(h,this.timepicker?"minute":"day"))){var u;(u=document.createElement("textarea")).innerHTML=a;i=u.value;this.ranges[i]=[o,r]}}var d="<ul>";for(a in this.ranges)d+='<li data-range-key="'+a+'">'+a+"</li>";this.showCustomRangeLabel&&(d+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),d+="</ul>",this.container.find(".ranges").prepend(d)}"function"==typeof n&&(this.callback=n),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof e.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),this.timePicker||this.container.addClass("auto-apply")),(void 0===e.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",$.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",$.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",$.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",$.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",$.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",$.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",$.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",$.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",$.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",$.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":$.proxy(this.show,this),"focus.daterangepicker":$.proxy(this.show,this),"keyup.daterangepicker":$.proxy(this.elementChanged,this),"keydown.daterangepicker":$.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",$.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",$.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(t){"string"==typeof t&&(this.startDate=H(t,this.locale.format)),"object"==typeof t&&(this.startDate=H(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=H(t,this.locale.format)),"object"==typeof t&&(this.endDate=H(t)),this.timePicker||(this.endDate=this.endDate.add(1,"d").startOf("day").subtract(1,"second")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled"):this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,n,i;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(n),this.rightCalendar.month.hour(t).minute(e).second(n)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(t){var e,n=(e="left"==t?this.leftCalendar:this.rightCalendar).month.month(),i=e.month.year(),s=e.month.hour(),o=e.month.minute(),r=e.month.second(),a=H([i,n]).daysInMonth(),l=H([i,n,1]),c=H([i,n,a]),h=H(l).subtract(1,"month").month(),u=H(l).subtract(1,"month").year(),d=H([u,h]).daysInMonth(),f=l.day();(e=[]).firstDay=l,e.lastDay=c;for(var p=0;p<6;p++)e[p]=[];var m=d-f+this.locale.firstDay+1;d<m&&(m-=7),f==this.locale.firstDay&&(m=d-6);for(var g=H([u,h,m,12,o,r]),v=(p=0,0),y=0;p<42;p++,v++,g=H(g).add(24,"hour"))0<p&&v%7==0&&(v=0,y++),e[y][v]=g.clone().hour(s).minute(o).second(r),g.hour(12),this.minDate&&e[y][v].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&e[y][v].isBefore(this.minDate)&&"left"==t&&(e[y][v]=this.minDate.clone()),this.maxDate&&e[y][v].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&e[y][v].isAfter(this.maxDate)&&"right"==t&&(e[y][v]=this.maxDate.clone());"left"==t?this.leftCalendar.calendar=e:this.rightCalendar.calendar=e;var b="left"==t?this.minDate:this.startDate,_=this.maxDate,w=("left"==t?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');w+="<thead>",w+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(w+="<th></th>"),b&&!b.isBefore(e.firstDay)||this.linkedCalendars&&"left"!=t?w+="<th></th>":w+='<th class="prev available"><span></span></th>';var D=this.locale.monthNames[e[1][1].month()]+e[1][1].format(" YYYY");if(this.showDropdowns){for(var k=e[1][1].month(),x=e[1][1].year(),C=_&&_.year()||this.maxYear,S=b&&b.year()||this.minYear,T=x==S,E=x==C,M='<select class="monthselect">',A=0;A<12;A++)(!T||A>=b.month())&&(!E||A<=_.month())?M+="<option value='"+A+"'"+(A===k?" selected='selected'":"")+">"+this.locale.monthNames[A]+"</option>":M+="<option value='"+A+"'"+(A===k?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[A]+"</option>";M+="</select>";for(var O='<select class="yearselect">',I=S;I<=C;I++)O+='<option value="'+I+'"'+(I===x?' selected="selected"':"")+">"+I+"</option>";D=M+(O+="</select>")}if(w+='<th colspan="5" class="month">'+D+"</th>",_&&!_.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker?w+="<th></th>":w+='<th class="next available"><span></span></th>',w+="</tr>",w+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(w+='<th class="week">'+this.locale.weekLabel+"</th>"),$.each(this.locale.daysOfWeek,function(t,e){w+="<th>"+e+"</th>"}),w+="</tr>",w+="</thead>",w+="<tbody>",null==this.endDate&&this.maxSpan){var N=this.startDate.clone().add(this.maxSpan).endOf("day");_&&!N.isBefore(_)||(_=N)}for(y=0;y<6;y++){w+="<tr>",this.showWeekNumbers?w+='<td class="week">'+e[y][0].week()+"</td>":this.showISOWeekNumbers&&(w+='<td class="week">'+e[y][0].isoWeek()+"</td>");for(v=0;v<7;v++){var P=[];e[y][v].isSame(new Date,"day")&&P.push("today"),5<e[y][v].isoWeekday()&&P.push("weekend"),e[y][v].month()!=e[1][1].month()&&P.push("off"),this.minDate&&e[y][v].isBefore(this.minDate,"day")&&P.push("off","disabled"),_&&e[y][v].isAfter(_,"day")&&P.push("off","disabled"),this.isInvalidDate(e[y][v])&&P.push("off","disabled"),e[y][v].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&P.push("active","start-date"),null!=this.endDate&&e[y][v].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&P.push("active","end-date"),null!=this.endDate&&e[y][v]>this.startDate&&e[y][v]<this.endDate&&P.push("in-range");var j=this.isCustomDate(e[y][v]);!1!==j&&("string"==typeof j?P.push(j):Array.prototype.push.apply(P,j));var Y="",L=!1;for(p=0;p<P.length;p++)Y+=P[p]+" ","disabled"==P[p]&&(L=!0);L||(Y+="available"),w+='<td class="'+Y.replace(/^\s+|\s+$/g,"")+'" data-title="r'+y+"c"+v+'">'+e[y][v].date()+"</td>"}w+="</tr>"}w+="</tbody>",w+="</table>",this.container.find(".drp-calendar."+t+" .calendar-table").html(w)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,n,i,s=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isAfter(this.maxDate)||(s=this.startDate.clone().add(this.maxSpan)),"left"==t)n=this.startDate.clone(),i=this.minDate;else if("right"==t){n=this.endDate.clone(),i=this.startDate;var o=this.container.find(".drp-calendar.right .calendar-time");if(""!=o.html()&&(n.hour(n.hour()||o.find(".hourselect option:selected").val()),n.minute(n.minute()||o.find(".minuteselect option:selected").val()),n.second(n.second()||o.find(".secondselect option:selected").val()),!this.timePicker24Hour)){var r=o.find(".ampmselect option:selected").val();"PM"===r&&n.hour()<12&&n.hour(n.hour()+12),"AM"===r&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),s&&n.isAfter(s)&&(n=s.clone())}e='<select class="hourselect">';for(var a=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=a;c<=l;c++){var h=c;this.timePicker24Hour||(h=12<=n.hour()?12==c?12:c+12:12==c?0:c);var u=n.clone().hour(h),d=!1;i&&u.minute(59).isBefore(i)&&(d=!0),s&&u.minute(0).isAfter(s)&&(d=!0),h!=n.hour()||d?e+=d?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":e+='<option value="'+c+'" selected="selected">'+c+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var f=c<10?"0"+c:c;u=n.clone().minute(c),d=!1;i&&u.second(59).isBefore(i)&&(d=!0),s&&u.second(0).isAfter(s)&&(d=!0),n.minute()!=c||d?e+=d?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":e+='<option value="'+c+'" selected="selected">'+f+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(c=0;c<60;c++){f=c<10?"0"+c:c,u=n.clone().second(c),d=!1;i&&u.isBefore(i)&&(d=!0),s&&u.isAfter(s)&&(d=!0),n.second()!=c||d?e+=d?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":e+='<option value="'+c+'" selected="selected">'+f+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var p="",m="";i&&n.clone().hour(12).minute(0).second(0).isBefore(i)&&(p=' disabled="disabled" class="disabled"'),s&&n.clone().hour(0).minute(0).second(0).isAfter(s)&&(m=' disabled="disabled" class="disabled"'),12<=n.hour()?e+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},move:function(){var t,e={top:0,left:0},n=$(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},n=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("drop-up"),"left"==this.opens?(this.container.css({top:t,right:n-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>$(window).width()&&this.container.css({left:"auto",right:0}))},show:function(t){this.isShowing||(this._outsideClickProxy=$.proxy(function(t){this.outsideClick(t)},this),$(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),$(window).on("resize.daterangepicker",$.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),$(document).off(".daterangepicker"),$(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var e=$(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if((this.chosenLabel=e)==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[e];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){$(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){$(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if($(t.target).hasClass("available")){var e=$(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),r=$(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i],a=this.leftCalendar,l=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,e){if(!$(e).hasClass("week")){var n=$(e).attr("data-title"),i=n.substr(1,1),s=n.substr(3,1),o=$(e).parents(".drp-calendar").hasClass("left")?a.calendar[i][s]:l.calendar[i][s];o.isAfter(c)&&o.isBefore(r)||o.isSame(r,"day")?$(e).addClass("in-range"):$(e).removeClass("in-range")}})}},clickDate:function(t){if($(t.target).hasClass("available")){var e=$(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),s=$(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];if(this.endDate||s.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);var r=parseInt(this.container.find(".left .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;s=s.clone().hour(o).minute(r).second(a)}this.endDate=null,this.setStartDate(s.clone())}else if(!this.endDate&&s.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);r=parseInt(this.container.find(".right .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;s=s.clone().hour(o).minute(r).second(a)}this.setEndDate(s.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD hh:mm:ss":"YYYY-MM-DD hh:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var e=$(t.target).closest(".drp-calendar").hasClass("left"),n=e?"left":"right",i=this.container.find(".drp-calendar."+n),s=parseInt(i.find(".monthselect").val(),10),o=i.find(".yearselect").val();e||(o<this.startDate.year()||o==this.startDate.year()&&s<this.startDate.month())&&(s=this.startDate.month(),o=this.startDate.year()),this.minDate&&(o<this.minDate.year()||o==this.minDate.year()&&s<this.minDate.month())&&(s=this.minDate.month(),o=this.minDate.year()),this.maxDate&&(o>this.maxDate.year()||o==this.maxDate.year()&&s>this.maxDate.month())&&(s=this.maxDate.month(),o=this.maxDate.year()),e?(this.leftCalendar.month.month(s).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(s).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=$(t.target).closest(".drp-calendar"),n=e.hasClass("left"),i=parseInt(e.find(".hourselect").val(),10),s=parseInt(e.find(".minuteselect").val(),10),o=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var r=e.find(".ampmselect").val();"PM"===r&&i<12&&(i+=12),"AM"===r&&12===i&&(i=0)}if(n){var a=this.startDate.clone();a.hour(i),a.minute(s),a.second(o),this.setStartDate(a),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==a.format("YYYY-MM-DD")&&this.endDate.isBefore(a)&&this.setEndDate(a.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(i),l.minute(s),l.second(o),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),e=null,n=null;2===t.length&&(e=H(t[0],this.locale.format),n=H(t[1],this.locale.format)),(this.singleDatePicker||null===e||null===n)&&(n=e=H(this.element.val(),this.locale.format)),e.isValid()&&n.isValid()&&(this.setStartDate(e),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},$.fn.daterangepicker=function(t,e){var n=$.extend(!0,{},$.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=$(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,n,e))}),this},i}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):t.metisMenu=e(t.jQuery)}(this,function(t){"use strict";function o(s){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n,i;e=s,i=o[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return s}var a,e,r,n,i,l,c,s,h=function(i){var e="transitionend",s={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd:function(t){i(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)}};function t(t){var e=this,n=!1;return i(this).one(s.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||s.triggerTransitionEnd(e)},t),this}return i.fn.mmEmulateTransitionEnd=t,i.event.special[s.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},s}(t=t&&t.hasOwnProperty("default")?t.default:t);return n="."+(r=e="metisMenu"),i=(a=t).fn[e],l={toggle:!0,preventDefault:!0,activeClass:"active",collapseClass:"collapse",collapseInClass:"in",collapsingClass:"collapsing",triggerElement:"a",parentTrigger:"li",subMenu:"ul"},c={SHOW:"show"+n,SHOWN:"shown"+n,HIDE:"hide"+n,HIDDEN:"hidden"+n,CLICK_DATA_API:"click"+n+".data-api"},s=function(){function s(t,e){this.element=t,this.config=o({},l,e),this.transitioning=null,this.init()}var t=s.prototype;return t.init=function(){var o=this,r=this.config;a(this.element).find(r.parentTrigger+"."+r.activeClass).has(r.subMenu).children(r.subMenu).addClass(r.collapseClass+" "+r.collapseInClass),a(this.element).find(r.parentTrigger).not("."+r.activeClass).has(r.subMenu).children(r.subMenu).addClass(r.collapseClass),a(this.element).find(r.parentTrigger).has(r.subMenu).children(r.triggerElement).on(c.CLICK_DATA_API,function(t){var e=a(this),n=e.parent(r.parentTrigger),i=n.siblings(r.parentTrigger).children(r.triggerElement),s=n.children(r.subMenu);r.preventDefault&&t.preventDefault(),"true"!==e.attr("aria-disabled")&&(n.hasClass(r.activeClass)?(e.attr("aria-expanded",!1),o.hide(s)):(o.show(s),e.attr("aria-expanded",!0),r.toggle&&i.attr("aria-expanded",!1)),r.onTransitionStart&&r.onTransitionStart(t))})},t.show=function(t){var e=this;if(!this.transitioning&&!a(t).hasClass(this.config.collapsingClass)){var n=a(t),i=a.Event(c.SHOW);if(n.trigger(i),!i.isDefaultPrevented()){n.parent(this.config.parentTrigger).addClass(this.config.activeClass),this.config.toggle&&this.hide(n.parent(this.config.parentTrigger).siblings().children(this.config.subMenu+"."+this.config.collapseInClass)),n.removeClass(this.config.collapseClass).addClass(this.config.collapsingClass).height(0),this.setTransitioning(!0);n.height(t[0].scrollHeight).one(h.TRANSITION_END,function(){e.config&&e.element&&(n.removeClass(e.config.collapsingClass).addClass(e.config.collapseClass+" "+e.config.collapseInClass).height(""),e.setTransitioning(!1),n.trigger(c.SHOWN))}).mmEmulateTransitionEnd(350)}}},t.hide=function(t){var e=this;if(!this.transitioning&&a(t).hasClass(this.config.collapseInClass)){var n=a(t),i=a.Event(c.HIDE);if(n.trigger(i),!i.isDefaultPrevented()){n.parent(this.config.parentTrigger).removeClass(this.config.activeClass),n.height(n.height())[0].offsetHeight,n.addClass(this.config.collapsingClass).removeClass(this.config.collapseClass).removeClass(this.config.collapseInClass),this.setTransitioning(!0);var s=function(){e.config&&e.element&&(e.transitioning&&e.config.onTransitionEnd&&e.config.onTransitionEnd(),e.setTransitioning(!1),n.trigger(c.HIDDEN),n.removeClass(e.config.collapsingClass).addClass(e.config.collapseClass))};0===n.height()||"none"===n.css("display")?s():n.height(0).one(h.TRANSITION_END,s).mmEmulateTransitionEnd(350)}}},t.setTransitioning=function(t){this.transitioning=t},t.dispose=function(){a.removeData(this.element,r),a(this.element).find(this.config.parentTrigger).has(this.config.subMenu).children(this.config.triggerElement).off("click"),this.transitioning=null,this.config=null,this.element=null},s.jQueryInterface=function(i){return this.each(function(){var t=a(this),e=t.data(r),n=o({},l,t.data(),"object"==typeof i&&i?i:{});if(!e&&/dispose/.test(i)&&this.dispose(),e||(e=new s(this,n),t.data(r,e)),"string"==typeof i){if(void 0===e[i])throw new Error('No method named "'+i+'"');e[i]()}})},s}(),a.fn[e]=s.jQueryInterface,a.fn[e].Constructor=s,a.fn[e].noConflict=function(){return a.fn[e]=i,s.jQueryInterface},s}),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(i,e,t,n){"use strict";var s={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(t,e){this.prepareOptions(t,i.toast.options),this.process()},prepareOptions:function(t,e){var n={};"string"==typeof t||t instanceof Array?n.text=t:n=t,this.options=i.extend({},e,n)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var t="";if(this._toastEl=this._toastEl||i("<div></div>",{class:"jq-toast-single"}),t+='<span class="jq-toast-loader"></span>',this.options.allowToastClose&&(t+='<span class="close-jq-toast-single">×</span>'),this.options.text instanceof Array){this.options.heading&&(t+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),t+='<ul class="jq-toast-ul">';for(var e=0;e<this.options.text.length;e++)t+='<li class="jq-toast-li" id="jq-toast-item-'+e+'">'+this.options.text[e]+"</li>";t+="</ul>"}else this.options.heading&&(t+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),t+=this.options.text;this._toastEl.html(t),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==i.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon)),!1!==this.options.class&&this._toastEl.addClass(this.options.class)},position:function(){"string"==typeof this.options.position&&-1!==i.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:i(e).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:i(e).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:i(e).outerWidth()/2-this._container.outerWidth()/2,top:i(e).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top?this.options.position.top:"auto",bottom:this.options.position.bottom?this.options.position.bottom:"auto",left:this.options.position.left?this.options.position.left:"auto",right:this.options.position.right?this.options.position.right:"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var e=this;this._toastEl.on("afterShown",function(){e.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(t){t.preventDefault(),"fade"===e.options.showHideTransition?(e._toastEl.trigger("beforeHide"),e._toastEl.fadeOut(function(){e._toastEl.trigger("afterHidden")})):"slide"===e.options.showHideTransition?(e._toastEl.trigger("beforeHide"),e._toastEl.slideUp(function(){e._toastEl.trigger("afterHidden")})):(e._toastEl.trigger("beforeHide"),e._toastEl.hide(function(){e._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){e.options.beforeShow()}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){e.options.afterShown()}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){e.options.beforeHide()}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){e.options.afterHidden()})},addToDom:function(){var t=i(".jq-toast-wrap");if(0===t.length?(t=i("<div></div>",{class:"jq-toast-wrap"}),i("body").append(t)):(!this.options.stack||isNaN(parseInt(this.options.stack,10)))&&t.empty(),t.find(".jq-toast-single:hidden").remove(),t.append(this._toastEl),this.options.stack&&!isNaN(parseInt(this.options.stack),10)){var e=t.find(".jq-toast-single").length-this.options.stack;0<e&&i(".jq-toast-wrap").find(".jq-toast-single").slice(0,e).remove()}this._container=t},canAutoHide:function(){return!1!==this.options.hideAfter&&!isNaN(parseInt(this.options.hideAfter,10))},processLoader:function(){if(!this.canAutoHide()||!1===this.options.loader)return!1;var t=this._toastEl.find(".jq-toast-loader"),e=(this.options.hideAfter-400)/1e3+"s",n=this.options.loaderBg,i=t.attr("style")||"";i=i.substring(0,i.indexOf("-webkit-transition")),i+="-webkit-transition: width "+e+" ease-in; -o-transition: width "+e+" ease-in; transition: width "+e+" ease-in; background-color: "+n+";",t.attr("style",i).addClass("jq-toast-loaded")},animate:function(){var t=this;if(this._toastEl.hide(),this._toastEl.trigger("beforeShow"),"fade"===this.options.showHideTransition.toLowerCase()?this._toastEl.fadeIn(function(){t._toastEl.trigger("afterShown")}):"slide"===this.options.showHideTransition.toLowerCase()?this._toastEl.slideDown(function(){t._toastEl.trigger("afterShown")}):this._toastEl.show(function(){t._toastEl.trigger("afterShown")}),this.canAutoHide()){t=this;e.setTimeout(function(){"fade"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))},this.options.hideAfter)}},reset:function(t){"all"===t?i(".jq-toast-wrap").remove():this._toastEl.remove()},update:function(t){this.prepareOptions(t,this.options),this.setup(),this.bindToast()}};i.toast=function(t){var e=Object.create(s);return e.init(t,this),{reset:function(t){e.reset(t)},update:function(t){e.update(t)}}},i.toast.options={text:"",heading:"",showHideTransition:"fade",allowToastClose:!0,hideAfter:3e3,loader:!0,loaderBg:"#9EC600",stack:5,position:"bottom-left",bgColor:!1,textColor:!1,textAlign:"left",icon:!1,beforeShow:function(){},afterShown:function(){},beforeHide:function(){},afterHidden:function(){}}}(jQuery,window,document),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e),e}:n(jQuery)}(function(n){var t=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var t=n.fn.select2.amd;var e,s,c;return t&&t.requirejs||(t?s=t:t={},function(f){function p(t,e){return n.call(t,e)}function a(t,e){var n,i,s,o,r,a,l,c,h,u,d,f=e&&e.split("/"),p=k.map,m=p&&p["*"]||{};if(t){for(r=(t=t.split("/")).length-1,k.nodeIdCompat&&C.test(t[r])&&(t[r]=t[r].replace(C,"")),"."===t[0].charAt(0)&&f&&(t=f.slice(0,f.length-1).concat(t)),h=0;h<t.length;h++)if("."===(d=t[h]))t.splice(h,1),h-=1;else if(".."===d){if(0===h||1===h&&".."===t[2]||".."===t[h-1])continue;0<h&&(t.splice(h-1,2),h-=2)}t=t.join("/")}if((f||m)&&p){for(h=(n=t.split("/")).length;0<h;h-=1){if(i=n.slice(0,h).join("/"),f)for(u=f.length;0<u;u-=1)if((s=p[f.slice(0,u).join("/")])&&(s=s[i])){o=s,a=h;break}if(o)break;!l&&m&&m[i]&&(l=m[i],c=h)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function m(e,n){return function(){var t=i.call(arguments,0);return"string"!=typeof t[0]&&1===t.length&&t.push(null),r.apply(f,t.concat([e,n]))}}function g(e){return function(t){w[e]=t}}function v(t){if(p(D,t)){var e=D[t];delete D[t],x[t]=!0,o.apply(f,e)}if(!p(w,t)&&!p(x,t))throw new Error("No "+t);return w[t]}function l(t){var e,n=t?t.indexOf("!"):-1;return-1<n&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function y(t){return t?l(t):[]}var o,r,b,_,w={},D={},k={},x={},n=Object.prototype.hasOwnProperty,i=[].slice,C=/\.js$/;b=function(t,e){var n,i,s=l(t),o=s[0],r=e[1];return t=s[1],o&&(n=v(o=a(o,r))),o?t=n&&n.normalize?n.normalize(t,(i=r,function(t){return a(t,i)})):a(t,r):(o=(s=l(t=a(t,r)))[0],t=s[1],o&&(n=v(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},_={require:function(t){return m(t)},exports:function(t){var e=w[t];return void 0!==e?e:w[t]={}},module:function(t){return{id:t,uri:"",exports:w[t],config:(e=t,function(){return k&&k.config&&k.config[e]||{}})};var e}},o=function(t,e,n,i){var s,o,r,a,l,c,h,u=[],d=typeof n;if(c=y(i=i||t),"undefined"===d||"function"===d){for(e=!e.length&&n.length?["require","exports","module"]:e,l=0;l<e.length;l+=1)if("require"===(o=(a=b(e[l],c)).f))u[l]=_.require(t);else if("exports"===o)u[l]=_.exports(t),h=!0;else if("module"===o)s=u[l]=_.module(t);else if(p(w,o)||p(D,o)||p(x,o))u[l]=v(o);else{if(!a.p)throw new Error(t+" missing "+o);a.p.load(a.n,m(i,!0),g(o),{}),u[l]=w[o]}r=n?n.apply(w[t],u):void 0,t&&(s&&s.exports!==f&&s.exports!==w[t]?w[t]=s.exports:r===f&&h||(w[t]=r))}else t&&(w[t]=n)},e=s=r=function(t,e,n,i,s){if("string"==typeof t)return _[t]?_[t](e):v(b(t,y(e)).f);if(!t.splice){if((k=t).deps&&r(k.deps,k.callback),!e)return;e.splice?(t=e,e=n,n=null):t=f}return e=e||function(){},"function"==typeof n&&(n=i,i=s),i?o(f,t,e,n):setTimeout(function(){o(f,t,e,n)},4),r},r.config=function(t){return r(t)},e._defined=w,(c=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),p(w,t)||p(D,t)||(D[t]=[t,e,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=s,t.define=c),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(o){function h(t){var e=t.prototype,n=[];for(var i in e)"function"==typeof e[i]&&"constructor"!==i&&n.push(i);return n}var s={Extend:function(t,e){function n(){this.constructor=t}var i={}.hasOwnProperty;for(var s in e)i.call(e,s)&&(t[s]=e[s]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},Decorate:function(i,s){function o(){var t=Array.prototype.unshift,e=s.prototype.constructor.length,n=i.prototype.constructor;0<e&&(t.call(arguments,i.prototype.constructor),n=s.prototype.constructor),n.apply(this,arguments)}var t=h(s),e=h(i);s.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<e.length;n++){var r=e[n];o.prototype[r]=i.prototype[r]}for(var a=function(t){var e=function(){};t in o.prototype&&(e=o.prototype[t]);var n=s.prototype[t];return function(){return Array.prototype.unshift.call(arguments,e),n.apply(this,arguments)}},l=0;l<t.length;l++){var c=t[l];o.prototype[c]=a(c)}return o}},t=function(){this.listeners={}};t.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},t.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},s.Observable=t,s.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},s.bind=function(t,e){return function(){t.apply(e,arguments)}},s._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var s=0;s<n.length;s++){var o=n[s];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),s==n.length-1&&(i[o]=t[e]),i=i[o]}delete t[e]}}return t},s.hasScroll=function(t,e){var n=o(e),i=e.style.overflowX,s=e.style.overflowY;return(i!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===i||"scroll"===s||n.innerHeight()<e.scrollHeight||n.innerWidth()<e.scrollWidth)},s.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},s.appendMany=function(t,e){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(e,function(t){n=n.add(t)}),e=n}t.append(e)},s.__cache={};var n=0;return s.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++n),e=n.toString())),e},s.StoreData=function(t,e,n){var i=s.GetUniqueElementId(t);s.__cache[i]||(s.__cache[i]={}),s.__cache[i][e]=n},s.GetData=function(t,e){var n=s.GetUniqueElementId(t);return e?s.__cache[n]&&null!=s.__cache[n][e]?s.__cache[n][e]:o(t).data(e):s.__cache[n]},s.RemoveData=function(t){var e=s.GetUniqueElementId(t);null!=s.__cache[e]&&delete s.__cache[e]},s}),t.define("select2/results",["jquery","./utils"],function(d,f){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var t=d('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var e=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);n.append(e(i(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],s=this.option(i);e.push(s)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");0<e.length?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var e=this;this.data.current(function(t){var i=d.map(t,function(t){return t.id.toString()});e.$results.find(".select2-results__option[aria-selected]").each(function(){var t=d(this),e=f.GetData(this,"data"),n=""+e.id;null!=e.element&&e.element.selected||null==e.element&&-1<d.inArray(n,i)?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var e=document.createElement("li");e.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in t.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==t.id&&delete n["aria-selected"],null!=t._resultId&&(e.id=t._resultId),t.title&&(e.title=t.title),t.children&&(n.role="group",n["aria-label"]=t.text,delete n["aria-selected"]),n){var s=n[i];e.setAttribute(i,s)}if(t.children){var o=d(e),r=document.createElement("strong");r.className="select2-results__group",d(r),this.template(t,r);for(var a=[],l=0;l<t.children.length;l++){var c=t.children[l],h=this.option(c);a.push(h)}var u=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});u.append(a),o.append(r),o.append(u)}else this.template(t,e);return f.StoreData(e,"data",t),e},i.prototype.bind=function(e,t){var l=this,n=e.id+"-results";this.$results.attr("id",n),e.on("results:all",function(t){l.clear(),l.append(t.data),e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("results:append",function(t){l.append(t.data),e.isOpen()&&l.setClasses()}),e.on("query",function(t){l.hideMessages(),l.showLoading(t)}),e.on("select",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),e.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=l.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=l.getHighlightedResults();if(0!==t.length){var e=f.GetData(t[0],"data");"true"==t.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var s=e.eq(i);s.trigger("mouseenter");var o=l.$results.offset().top,r=s.offset().top,a=l.$results.scrollTop()+(r-o);0===i?l.$results.scrollTop(0):r-o<0&&l.$results.scrollTop(a)}}),e.on("results:next",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var s=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),r=l.$results.scrollTop()+o-s;0===n?l.$results.scrollTop(0):s<o&&l.$results.scrollTop(r)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){l.displayMessage(t)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-e+t.deltaY,i=0<t.deltaY&&e-t.deltaY<=0,s=t.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):s&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var e=d(this),n=f.GetData(this,"data");"true"!==e.attr("aria-selected")?l.trigger("select",{originalEvent:t,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:t,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var e=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:e,element:d(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,i=t.offset().top,s=this.$results.scrollTop()+(i-n),o=i-n;s-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(s)}},i.prototype.template=function(t,e){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),s=n(t,e);null==s?e.style.display="none":"string"==typeof s?e.innerHTML=i(s):d(e).append(s)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,s){function o(t,e){this.$element=t,this.options=e,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t},o.prototype.bind=function(t,e){var n=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",function(t){n.trigger("focus",t)}),this.$selection.on("blur",function(t){n._handleBlur(t)}),this.$selection.on("keydown",function(t){n.trigger("keypress",t),t.which===s.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){n.update(t.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),window.setTimeout(function(){n.$selection.focus()},0),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),t.on("disable",function(){n.$selection.attr("tabindex","-1")})},o.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||n.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},o.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var e=n(t.target).closest(".select2");n(".select2.select2-container--open").each(function(){n(this),this!=e[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},o.prototype.position=function(t,e){e.find(".selection").append(t)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},o}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,i){function s(){s.__super__.constructor.apply(this,arguments)}return n.Extend(s,e),s.prototype.render=function(){var t=s.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},s.prototype.bind=function(e,t){var n=this;s.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()})},s.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},s.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},s.prototype.selectionContainer=function(){return t("<span></span>")},s.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i),n.attr("title",e.title||e.text)}else this.clear()},s}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,t,a){function n(t,e){n.__super__.constructor.apply(this,arguments)}return a.Extend(n,t),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(t,e){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!i.options.get("disabled")){var e=s(this).parent(),n=a.GetData(e[0],"data");i.trigger("unselect",{originalEvent:t,data:n})}})},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},n.prototype.selectionContainer=function(){return s('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var i=t[n],s=this.selectionContainer(),o=this.display(i,s);s.append(o),s.attr("title",i.title||i.text),a.StoreData(s[0],"data",i),e.push(s)}var r=this.$selection.find(".select2-selection__rendered");a.appendMany(r,e)}},n}),t.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){i._handleClear(t)}),e.on("keypress",function(t){i._handleKeyboardClear(t,e)})},t.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var i=a.GetData(n[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)return void this.$element.val(s);for(var r=0;r<i.length;r++)if(o={data:i[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);this.$element.trigger("change"),this.trigger("toggle",{})}}},t.prototype._handleKeyboardClear=function(t,e,n){n.isOpen()||e.which!=s.DELETE&&e.which!=s.BACKSPACE||this._handleClear(e)},t.prototype.update=function(t,e){if(t.call(this,e),!(0<this.$selection.find(".select2-selection__placeholder").length||0===e.length)){var n=i('<span class="select2-selection__clear">×</span>');a.StoreData(n[0],"data",e),this.$selection.find(".select2-selection__rendered").prepend(n)}},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,r,a){function t(t,e,n){t.call(this,e,n)}return t.prototype.render=function(t){var e=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=e,this.$search=e.find("input");var n=t.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented(),t.which===a.BACKSPACE&&""===i.$search.val()){var e=i.$searchContainer.prev(".select2-selection__choice");if(0<e.length){var n=r.GetData(e[0],"data");i.searchRemoveChoice(n),t.preventDefault()}}});var s=document.documentMode,o=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){o?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(o&&"input"===t.type)i.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=a.SHIFT&&e!=a.CTRL&&e!=a.ALT&&e!=a.TAB&&i.handleSearch(t)}})},t.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},t.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&(this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus())},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},t}),t.define("select2/selection/eventRelay",["jquery"],function(r){function t(){}return t.prototype.bind=function(t,e,n){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,e,n),e.on("*",function(t,e){if(-1!==r.inArray(t,s)){e=e||{};var n=r.Event("select2:"+t,{params:e});i.$element.trigger(n),-1!==r.inArray(t,o)&&(e.prevented=n.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,n){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var e=n(t);i._cache[t]=e}return new i(i._cache[t])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(i){function n(t,e){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(t,e){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(t,e){var n=t.id+"-result-";return n+=i.generateChars(4),null!=e.id?n+="-"+e.id.toString():n+="-"+i.generateChars(4),n},n}),t.define("select2/data/select",["./base","../utils","jquery"],function(t,a,l){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return a.Extend(n,t),n.prototype.current=function(t){var n=[],i=this;this.$element.find(":selected").each(function(){var t=l(this),e=i.item(t);n.push(e)}),t(n)},n.prototype.select=function(s){var o=this;if(s.selected=!0,l(s.element).is("option"))return s.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(t){var e=[];(s=[s]).push.apply(s,t);for(var n=0;n<s.length;n++){var i=s[n].id;-1===l.inArray(i,e)&&e.push(i)}o.$element.val(e),o.$element.trigger("change")});else{var t=s.id;this.$element.val(t),this.$element.trigger("change")}},n.prototype.unselect=function(s){var o=this;if(this.$element.prop("multiple")){if(s.selected=!1,l(s.element).is("option"))return s.element.selected=!1,void this.$element.trigger("change");this.current(function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n].id;i!==s.id&&-1===l.inArray(i,e)&&e.push(i)}o.$element.val(e),o.$element.trigger("change")})}},n.prototype.bind=function(t,e){var n=this;(this.container=t).on("select",function(t){n.select(t.data)}),t.on("unselect",function(t){n.unselect(t.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(i,t){var s=[],o=this;this.$element.children().each(function(){var t=l(this);if(t.is("option")||t.is("optgroup")){var e=o.item(t),n=o.matches(i,e);null!==n&&s.push(n)}}),t({results:s})},n.prototype.addOptions=function(t){a.appendMany(this.$element,t)},n.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=l(e),i=this._normalizeItem(t);return i.element=e,a.StoreData(e,"data",i),n},n.prototype.item=function(t){var e={};if(null!=(e=a.GetData(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),i=[],s=0;s<n.length;s++){var o=l(n[s]),r=this.item(o);i.push(r)}e.children=i}return(e=this._normalizeItem(e)).element=t[0],a.StoreData(t[0],"data",e),e},n.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});return null!=(t=l.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),l.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n}),t.define("select2/data/array",["./select","../utils","jquery"],function(t,p,m){function i(t,e){var n=e.get("data")||[];i.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(n))}return p.Extend(i,t),i.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,e){return e.value==n.id.toString()});0===t.length&&(t=this.option(n),this.addOptions(t)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(t){function e(t){return function(){return m(this).val()==t.id}}for(var n=this,i=this.$element.find("option"),s=i.map(function(){return n.item(m(this)).id}).get(),o=[],r=0;r<t.length;r++){var a=this._normalizeItem(t[r]);if(0<=m.inArray(a.id,s)){var l=i.filter(e(a)),c=this.item(l),h=m.extend(!0,{},a,c),u=this.option(h);l.replaceWith(u)}else{var d=this.option(a);if(a.children){var f=this.convertToOptions(a.children);p.appendMany(d,f)}o.push(d)}}return o},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,o){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return o.extend({},t,{q:t.term})},transport:function(t,e,n){var i=o.ajax(t);return i.then(e),i.fail(n),i}};return o.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(n,i){function t(){var t=e.transport(e,function(t){var e=s.processResults(t,n);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&o.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(e)},function(){"status"in t&&(0===t.status||"0"===t.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=t}var s=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var e=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof e.url&&(e.url=e.url.call(this.$element,n)),"function"==typeof e.data&&(e.data=e.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(t,this.ajaxOptions.delay)):t()},n}),t.define("select2/data/tags",["jquery"],function(h){function t(t,e,n){var i=n.get("tags"),s=n.get("createTag");void 0!==s&&(this.createTag=s);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,e,n),h.isArray(i))for(var r=0;r<i.length;r++){var a=i[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(t,c,h){var u=this;this._removeOldTags(),null!=c.term&&null==c.page?t.call(this,c,function t(e,n){for(var i=e.results,s=0;s<i.length;s++){var o=i[s],r=null!=o.children&&!t({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(e.data=i,void h(e))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-select2-tag",!0),u.addOptions([l]),u.insertTag(i,a)}e.results=i,h(e)}):t.call(this,c,h)},t.prototype.createTag=function(t,e){var n=h.trim(e.term);return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(t,e,n){e.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||h(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(u){function t(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,e,n){var s=this;e.term=e.term||"";var i=this.tokenizer(e,this.options,function(t){var e,n=s._normalizeItem(t);if(!s.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var i=s.option(n);i.attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([i])}e=n,s.trigger("select",{data:e})});i.term!==e.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),e.term=i.term),t.call(this,e,n)},t.prototype.tokenizer=function(t,e,n,i){for(var s=n.get("tokenSeparators")||[],o=e.term,r=0,a=this.createTag||function(t){return{id:t.term,text:t.term}};r<o.length;){var l=o[r];if(-1!==u.inArray(l,s)){var c=o.substr(0,r),h=a(u.extend({},e,{term:c}));null!=h?(i(h),o=o.substr(r+1)||"",r=0):r++}else r++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),t.define("select2/data/maximumInputLength",[],function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),t.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(n,i,s){var o=this;this.current(function(t){var e=null!=t?t.length:0;0<o.maximumSelectionLength&&e>=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):n.call(o,i,s)})},t}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(s,t){function e(){}return e.prototype.render=function(t){var e=t.call(this),n=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),e.prepend(n),e},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(t){s(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),e.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),e.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val(""),i.$search.blur()}),e.on("focus",function(){e.isOpen()||i.$search.focus()}),e.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(i.showSearch(t)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e}),t.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var s=e[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},t}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(s){function t(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",function(t){i.lastParams=t,i.loading=!0}),e.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var t=s.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&t&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=s.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},t.prototype.createLoadingMore=function(){var t=s('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),e=this.options.get("translations").get("loadingMore");return t.html(e(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(p,a){function t(t,e,n){this.$dropdownParent=n.get("dropdownParent")||p(document.body),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this,s=!1;t.call(this,e,n),e.on("open",function(){i._showDropdown(),i._attachPositioningHandler(e),s||(s=!0,e.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),e.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},t.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},t.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},t.prototype.render=function(t){var e=p("<span></span>"),n=t.call(this);return e.append(n),this.$dropdownContainer=e},t.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},t.prototype._attachPositioningHandler=function(t,e){var n=this,i="scroll.select2."+e.id,s="resize.select2."+e.id,o="orientationchange.select2."+e.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){a.StoreData(this,"select2-scroll-position",{x:p(this).scrollLeft(),y:p(this).scrollTop()})}),r.on(i,function(t){var e=a.GetData(this,"select2-scroll-position");p(this).scrollTop(e.y)}),p(window).on(i+" "+s+" "+o,function(t){n._positionDropdown(),n._resizeDropdown()})},t.prototype._detachPositioningHandler=function(t,e){var n="scroll.select2."+e.id,i="resize.select2."+e.id,s="orientationchange.select2."+e.id;this.$container.parents().filter(a.hasScroll).off(n),p(window).off(n+" "+i+" "+s)},t.prototype._positionDropdown=function(){var t=p(window),e=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var r=this.$dropdown.outerHeight(!1),a=t.scrollTop(),l=t.scrollTop()+t.height(),c=a<s.top-r,h=l>s.bottom+r,u={left:s.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var f=d.offset();u.top-=f.top,u.left-=f.left,e||n||(i="below"),h||!c||e?!c&&h&&e&&(i="below"):i="above",("above"==i||e&&"below"!==i)&&(u.top=o.top-f.top-r),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(u)},t.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},t.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i<e.length;i++){var s=e[i];s.children?n+=t(s.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(o){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",function(t){i._handleSelectOnClose(t)})},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var n=e.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var s=o.GetData(i[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",function(t){i._selectTriggered(t)}),e.on("unselect",function(t){i._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(p,m,g,v,y,b,_,w,D,k,x,e,C,S,T,E,M,A,O,I,N,P,j,Y,L,H,$,R,t){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=p.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=T:null!=e.data?e.dataAdapter=S:e.dataAdapter=C,0<e.minimumInputLength&&(e.dataAdapter=k.Decorate(e.dataAdapter,A)),0<e.maximumInputLength&&(e.dataAdapter=k.Decorate(e.dataAdapter,O)),0<e.maximumSelectionLength&&(e.dataAdapter=k.Decorate(e.dataAdapter,I)),e.tags&&(e.dataAdapter=k.Decorate(e.dataAdapter,E)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=k.Decorate(e.dataAdapter,M)),null!=e.query){var t=m(e.amdBase+"compat/query");e.dataAdapter=k.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=m(e.amdBase+"compat/initSelection");e.dataAdapter=k.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=g,null!=e.ajax&&(e.resultsAdapter=k.Decorate(e.resultsAdapter,Y)),null!=e.placeholder&&(e.resultsAdapter=k.Decorate(e.resultsAdapter,j)),e.selectOnClose&&(e.resultsAdapter=k.Decorate(e.resultsAdapter,$))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=N;else{var i=k.Decorate(N,P);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=k.Decorate(e.dropdownAdapter,H)),e.closeOnSelect&&(e.dropdownAdapter=k.Decorate(e.dropdownAdapter,R)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var s=m(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=k.Decorate(e.dropdownAdapter,s)}e.dropdownAdapter=k.Decorate(e.dropdownAdapter,L)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=y:e.selectionAdapter=v,null!=e.placeholder&&(e.selectionAdapter=k.Decorate(e.selectionAdapter,b)),e.allowClear&&(e.selectionAdapter=k.Decorate(e.selectionAdapter,_)),e.multiple&&(e.selectionAdapter=k.Decorate(e.selectionAdapter,w)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=m(e.amdBase+"compat/containerCss");e.selectionAdapter=k.Decorate(e.selectionAdapter,o)}e.selectionAdapter=k.Decorate(e.selectionAdapter,D)}if("string"==typeof e.language)if(0<e.language.indexOf("-")){var r=e.language.split("-")[0];e.language=[e.language,r]}else e.language=[e.language];if(p.isArray(e.language)){var a=new x;e.language.push("en");for(var l=e.language,c=0;c<l.length;c++){var h=l[c],u={};try{u=x.loadPath(h)}catch(t){try{h=this.defaults.amdLanguageBase+h,u=x.loadPath(h)}catch(t){e.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+h+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}e.translations=a}else{var d=x.loadPath(this.defaults.amdLanguageBase+"en"),f=new x(e.language);f.extend(d),e.translations=f}return e},n.prototype.reset=function(){function a(t){return t.replace(/[^\u0000-\u007E]/g,function(t){return e[t]||t})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:k.escapeMarkup,language:t,matcher:function t(e,n){if(""===p.trim(e.term))return n;if(n.children&&0<n.children.length){for(var i=p.extend(!0,{},n),s=n.children.length-1;0<=s;s--)null==t(e,n.children[s])&&i.children.splice(s,1);return 0<i.children.length?i:t(e,i)}var o=a(n.text).toUpperCase(),r=a(e.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},n.prototype.set=function(t,e){var n={};n[p.camelCase(t)]=e;var i=k._convertData(n);p.extend(!0,this.defaults,i)},new n}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(i,o,s,r){function t(t,e){if(this.options=t,null!=e&&this.fromElement(e),this.options=s.apply(this.options),e&&e.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,n)}}return t.prototype.fromElement=function(t){var e=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),r.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),r.StoreData(t[0],"data",r.GetData(t[0],"select2Tags")),r.StoreData(t[0],"tags",!0)),r.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",r.GetData(t[0],"ajaxUrl")),r.StoreData(t[0],"ajax-Url",r.GetData(t[0],"ajaxUrl")));var n;n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&t[0].dataset?o.extend(!0,{},t[0].dataset,r.GetData(t[0])):r.GetData(t[0]);var i=o.extend(!0,{},n);for(var s in i=r._convertData(i))-1<o.inArray(s,e)||(o.isPlainObject(this.options[s])?o.extend(this.options[s],i[s]):this.options[s]=i[s]);return this},t.prototype.get=function(t){return this.options[t]},t.prototype.set=function(t,e){this.options[t]=e},t}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(s,c,h,i){var u=function(t,e){null!=h.GetData(t[0],"select2")&&h.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),e=e||{},this.options=new c(e,t),u.__super__.constructor.call(this);var n=t.attr("tabindex")||0;h.StoreData(t[0],"old-tabindex",n),t.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(t,this.options);var s=this.render();this._placeContainer(s);var o=this.options.get("selectionAdapter");this.selection=new o(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var r=this.options.get("dropdownAdapter");this.dropdown=new r(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var a=this.options.get("resultsAdapter");this.results=new a(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){l.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),h.StoreData(t[0],"select2",this),t.data("select2",this)};return h.Extend(u,h.Observable),u.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+h.generateChars(2):h.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},u.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},u.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var s=t.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"!=e)return e;var o=t.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=h.bind(this._syncAttributes,this),this._syncS=h.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){s.each(t,e._syncA),s.each(t,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,e){n.trigger(t,e)})},u.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(t){n.focus(t)}),this.selection.on("*",function(t,e){-1===s.inArray(t,i)&&n.trigger(t,e)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,e){n.trigger(t,e)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,e){n.trigger(t,e)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(e){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(e,function(t){n.trigger("results:all",{data:t,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(t){n.trigger("results:append",{data:t,query:e})})}),this.on("keypress",function(t){var e=t.which;n.isOpen()?e===i.ESC||e===i.TAB||e===i.UP&&t.altKey?(n.close(),t.preventDefault()):e===i.ENTER?(n.trigger("results:select",{}),t.preventDefault()):e===i.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):e===i.UP?(n.trigger("results:previous",{}),t.preventDefault()):e===i.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(e===i.ENTER||e===i.SPACE||e===i.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(t,e){var n=!1,i=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&0<e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){e.addedNodes[s].selected&&(n=!0)}else e.removedNodes&&0<e.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(t){i.trigger("selection:update",{data:t})})}},u.prototype.trigger=function(t,e){var n=u.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var s=i[t],o={prevented:!1,name:t,args:e};if(n.call(this,s,o),o.prevented)return void(e.prevented=!0)}n.call(this,t,e)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},u.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var e=t[0];s.isArray(e)&&(e=s.map(e,function(t){return t.toString()})),this.$element.val(e).trigger("change")},u.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",h.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),h.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},u.prototype.render=function(){var t=s('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),h.StoreData(t[0],"element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(t){return t}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(s,t,o,e,r){if(null==s.fn.select2){var a=["open","close","destroy"];s.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var t=s.extend(!0,{},e);new o(s(this),t)}),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,i)}),-1<s.inArray(e,a)?this:n}}return null==s.fn.select2.defaults&&(s.fn.select2.defaults=e),o}),{define:t.define,require:t.require}}(),e=t.require("jquery.select2");return n.fn.select2.amd=t,e});var $jscomp={scope:{},findInternal:function(t,e,n){t instanceof String&&(t=String(t));for(var i=t.length,s=0;s<i;s++){var o=t[s];if(e.call(n,o,s,t))return{i:s,v:o}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,i){if(e){for(n=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var s=t[i];s in n||(n[s]={}),n=n[s]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.find",function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).v}},"es6-impl","es3"),function(t,e,n){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(e||n)}(function(r){var a=function(c,b,_){var w={invalid:[],getCaret:function(){try{var t,e=0,n=c.get(0),i=document.selection,s=n.selectionStart;return i&&-1===navigator.appVersion.indexOf("MSIE 10")?((t=i.createRange()).moveStart("character",-w.val().length),e=t.text.length):(s||"0"===s)&&(e=s),e}catch(t){}},setCaret:function(t){try{if(c.is(":focus")){var e,n=c.get(0);n.setSelectionRange?n.setSelectionRange(t,t):((e=n.createTextRange()).collapse(!0),e.moveEnd("character",t),e.moveStart("character",t),e.select())}}catch(t){}},events:function(){c.on("keydown.mask",function(t){c.data("mask-keycode",t.keyCode||t.which),c.data("mask-previus-value",c.val()),c.data("mask-previus-caret-pos",w.getCaret()),w.maskDigitPosMapOld=w.maskDigitPosMap}).on(r.jMaskGlobals.useInput?"input.mask":"keyup.mask",w.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){c.keydown().keyup()},100)}).on("change.mask",function(){c.data("changed",!0)}).on("blur.mask",function(){o===w.val()||c.data("changed")||c.trigger("change"),c.data("changed",!1)}).on("blur.mask",function(){o=w.val()}).on("focus.mask",function(t){!0===_.selectOnFocus&&r(t.target).select()}).on("focusout.mask",function(){_.clearIfNotMatch&&!i.test(w.val())&&w.val("")})},getRegexMask:function(){for(var t,e,n,i,s=[],o=0;o<b.length;o++)(t=D.translation[b.charAt(o)])?(e=t.pattern.toString().replace(/.{1}$|^.{1}/g,""),n=t.optional,(t=t.recursive)?(s.push(b.charAt(o)),i={digit:b.charAt(o),pattern:e}):s.push(n||t?e+"?":e)):s.push(b.charAt(o).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return s=s.join(""),i&&(s=s.replace(new RegExp("("+i.digit+"(.*"+i.digit+")?)"),"($1)?").replace(new RegExp(i.digit,"g"),i.pattern)),new RegExp(s)},destroyEvents:function(){c.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(t){var e=c.is("input")?"val":"text";return e=0<arguments.length?(c[e]()!==t&&c[e](t),c):c[e]()},calculateCaretPosition:function(){var t=c.data("mask-previus-value")||"",e=w.getMasked(),n=w.getCaret();if(t!==e){var i,s=c.data("mask-previus-caret-pos")||0,o=(e=e.length,t.length),r=t=0,a=0,l=0;for(i=n;i<e&&w.maskDigitPosMap[i];i++)r++;for(i=n-1;0<=i&&w.maskDigitPosMap[i];i--)t++;for(i=n-1;0<=i;i--)w.maskDigitPosMap[i]&&a++;for(i=s-1;0<=i;i--)w.maskDigitPosMapOld[i]&&l++;o<n?n=10*e:n<=s&&s!==o?w.maskDigitPosMapOld[n]||(n=(s=n)-(l-a)-t,w.maskDigitPosMap[n]&&(n=s)):s<n&&(n=n+(a-l)+r)}return n},behaviour:function(t){t=t||window.event,w.invalid=[];var e=c.data("mask-keycode");if(-1===r.inArray(e,D.byPassKeys)){e=w.getMasked();var n=w.getCaret();return setTimeout(function(){w.setCaret(w.calculateCaretPosition())},r.jMaskGlobals.keyStrokeCompensation),w.val(e),w.setCaret(n),w.callbacks(t)}},getMasked:function(t,e){var n,i,s,o=[],r=void 0===e?w.val():e+"",a=0,l=b.length,c=0,h=r.length,u=1,d="push",f=-1,p=0,m=[];for(i=_.reverse?(d="unshift",u=-1,n=0,a=l-1,c=h-1,function(){return-1<a&&-1<c}):(n=l-1,function(){return a<l&&c<h});i();){var g=b.charAt(a),v=r.charAt(c),y=D.translation[g];y?(v.match(y.pattern)?(o[d](v),y.recursive&&(-1===f?f=a:a===n&&a!==f&&(a=f-u),n===f&&(a-=u)),a+=u):v===s?(p--,s=void 0):y.optional?(a+=u,c-=u):y.fallback?(o[d](y.fallback),a+=u,c-=u):w.invalid.push({p:c,v:v,e:y.pattern}),c+=u):(t||o[d](g),v===g?(m.push(c),c+=u):(s=g,m.push(c+p),p++),a+=u)}return r=b.charAt(n),l!==h+1||D.translation[r]||o.push(r),o=o.join(""),w.mapMaskdigitPositions(o,m,h),o},mapMaskdigitPositions:function(t,e,n){for(t=_.reverse?t.length-n:0,w.maskDigitPosMap={},n=0;n<e.length;n++)w.maskDigitPosMap[e[n]+t]=1},callbacks:function(t){var e=w.val(),n=e!==o,i=[e,t,c,_],s=function(t,e,n){"function"==typeof _[t]&&e&&_[t].apply(this,n)};s("onChange",!0===n,i),s("onKeyPress",!0===n,i),s("onComplete",e.length===b.length,i),s("onInvalid",0<w.invalid.length,[e,t,c,w.invalid,_])}};c=r(c);var i,D=this,o=w.val();b="function"==typeof b?b(w.val(),void 0,c,_):b,D.mask=b,D.options=_,D.remove=function(){var t=w.getCaret();return D.options.placeholder&&c.removeAttr("placeholder"),c.data("mask-maxlength")&&c.removeAttr("maxlength"),w.destroyEvents(),w.val(D.getCleanVal()),w.setCaret(t),c},D.getCleanVal=function(){return w.getMasked(!0)},D.getMaskedVal=function(t){return w.getMasked(!1,t)},D.init=function(t){if(t=t||!1,_=_||{},D.clearIfNotMatch=r.jMaskGlobals.clearIfNotMatch,D.byPassKeys=r.jMaskGlobals.byPassKeys,D.translation=r.extend({},r.jMaskGlobals.translation,_.translation),D=r.extend(!0,{},D,_),i=w.getRegexMask(),t)w.events(),w.val(w.getMasked());else{_.placeholder&&c.attr("placeholder",_.placeholder),c.data("mask")&&c.attr("autocomplete","off");for(var e=!(t=0);t<b.length;t++){var n=D.translation[b.charAt(t)];if(n&&n.recursive){e=!1;break}}e&&c.attr("maxlength",b.length).data("mask-maxlength",!0),w.destroyEvents(),w.events(),t=w.getCaret(),w.val(w.getMasked()),w.setCaret(t)}},D.init(!c.is("input"))};r.maskWatchers={};var e=function(){var t=r(this),e={},n=t.attr("data-mask");if(t.attr("data-mask-reverse")&&(e.reverse=!0),t.attr("data-mask-clearifnotmatch")&&(e.clearIfNotMatch=!0),"true"===t.attr("data-mask-selectonfocus")&&(e.selectOnFocus=!0),l(t,n,e))return t.data("mask",new a(this,n,e))},l=function(t,e,n){n=n||{};var i=r(t).data("mask"),s=JSON.stringify;t=r(t).val()||r(t).text();try{return"function"==typeof e&&(e=e(t)),"object"!=typeof i||s(i.options)!==s(n)||i.mask!==e}catch(t){}},t=function(t){var e,n=document.createElement("div");return(e=(t="on"+t)in n)||(n.setAttribute(t,"return;"),e="function"==typeof n[t]),e};r.fn.mask=function(t,e){e=e||{};var n=this.selector,i=(s=r.jMaskGlobals).watchInterval,s=e.watchInputs||s.watchInputs,o=function(){if(l(this,t,e))return r(this).data("mask",new a(this,t,e))};return r(this).each(o),n&&""!==n&&s&&(clearInterval(r.maskWatchers[n]),r.maskWatchers[n]=setInterval(function(){r(document).find(n).each(o)},i)),this},r.fn.masked=function(t){return this.data("mask").getMaskedVal(t)},r.fn.unmask=function(){return clearInterval(r.maskWatchers[this.selector]),delete r.maskWatchers[this.selector],this.each(function(){var t=r(this).data("mask");t&&t.remove().removeData("mask")})},r.fn.cleanVal=function(){return this.data("mask").getCleanVal()},r.applyDataMask=function(t){((t=t||r.jMaskGlobals.maskElements)instanceof r?t:r(t)).filter(r.jMaskGlobals.dataMaskAttr).each(e)},t={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&t("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}},r.jMaskGlobals=r.jMaskGlobals||{},(t=r.jMaskGlobals=r.extend(!0,{},t,r.jMaskGlobals)).dataMask&&r.applyDataMask(),setInterval(function(){r.jMaskGlobals.watchDataMask&&r.applyDataMask()},t.watchInterval)},window.jQuery,window.Zepto),function(c){var i=function(e,t){e=c(e);var n=this,i=[],s=c.extend({},c.fn.bootstrapWizard.defaults,t),o=null,r=null;this.rebindClick=function(t,e){t.unbind("click",e).bind("click",e)},this.fixNavigationButtons=function(){if(o.length||(r.find("a:first").tab("show"),o=r.find('li:has([data-toggle="tab"]):first')),c(s.previousSelector,e).toggleClass("disabled",n.firstIndex()>=n.currentIndex()),c(s.nextSelector,e).toggleClass("disabled",n.currentIndex()>=n.navigationLength()),c(s.backSelector,e).toggleClass("disabled",0==i.length),n.rebindClick(c(s.nextSelector,e),n.next),n.rebindClick(c(s.previousSelector,e),n.previous),n.rebindClick(c(s.lastSelector,e),n.last),n.rebindClick(c(s.firstSelector,e),n.first),n.rebindClick(c(s.backSelector,e),n.back),s.onTabShow&&"function"==typeof s.onTabShow&&!1===s.onTabShow(o,r,n.currentIndex()))return!1},this.next=function(t){if(e.hasClass("last")||s.onNext&&"function"==typeof s.onNext&&!1===s.onNext(o,r,n.nextIndex()))return!1;t=n.currentIndex(),$index=n.nextIndex(),$index>n.navigationLength()||(i.push(t),r.find('li:has([data-toggle="tab"]):eq('+$index+") a").tab("show"))},this.previous=function(t){if(e.hasClass("first")||s.onPrevious&&"function"==typeof s.onPrevious&&!1===s.onPrevious(o,r,n.previousIndex()))return!1;t=n.currentIndex(),$index=n.previousIndex(),$index<0||(i.push(t),r.find('li:has([data-toggle="tab"]):eq('+$index+") a").tab("show"))},this.first=function(t){if(s.onFirst&&"function"==typeof s.onFirst&&!1===s.onFirst(o,r,n.firstIndex())||e.hasClass("disabled"))return!1;i.push(n.currentIndex()),r.find('li:has([data-toggle="tab"]):eq(0) a').tab("show")},this.last=function(t){if(s.onLast&&"function"==typeof s.onLast&&!1===s.onLast(o,r,n.lastIndex())||e.hasClass("disabled"))return!1;i.push(n.currentIndex()),r.find('li:has([data-toggle="tab"]):eq('+n.navigationLength()+") a").tab("show")},this.back=function(){if(0==i.length)return null;var t=i.pop();if(s.onBack&&"function"==typeof s.onBack&&!1===s.onBack(o,r,t))return i.push(t),!1;e.find('li:has([data-toggle="tab"]):eq('+t+") a").tab("show")},this.currentIndex=function(){return r.find('li:has([data-toggle="tab"])').index(o)},this.firstIndex=function(){return 0},this.lastIndex=function(){return n.navigationLength()},this.getIndex=function(t){return r.find('li:has([data-toggle="tab"])').index(t)},this.nextIndex=function(){return r.find('li:has([data-toggle="tab"])').index(o)+1},this.previousIndex=function(){return r.find('li:has([data-toggle="tab"])').index(o)-1},this.navigationLength=function(){return r.find('li:has([data-toggle="tab"])').length-1},this.activeTab=function(){return o},this.nextTab=function(){return r.find('li:has([data-toggle="tab"]):eq('+(n.currentIndex()+1)+")").length?r.find('li:has([data-toggle="tab"]):eq('+(n.currentIndex()+1)+")"):null},this.previousTab=function(){return n.currentIndex()<=0?null:r.find('li:has([data-toggle="tab"]):eq('+parseInt(n.currentIndex()-1)+")")},this.show=function(t){0<(t=isNaN(t)?e.find('li:has([data-toggle="tab"]) a[href=#'+t+"]"):e.find('li:has([data-toggle="tab"]):eq('+t+") a")).length&&(i.push(n.currentIndex()),t.tab("show"))},this.disable=function(t){r.find('li:has([data-toggle="tab"]):eq('+t+")").addClass("disabled")},this.enable=function(t){r.find('li:has([data-toggle="tab"]):eq('+t+")").removeClass("disabled")},this.hide=function(t){r.find('li:has([data-toggle="tab"]):eq('+t+")").hide()},this.display=function(t){r.find('li:has([data-toggle="tab"]):eq('+t+")").show()},this.remove=function(t){var e=void 0!==t[1]&&t[1];t=r.find('li:has([data-toggle="tab"]):eq('+t[0]+")"),e&&(e=t.find("a").attr("href"),c(e).remove()),t.remove()};var a=function(t){var e=r.find('li:has([data-toggle="tab"])');if(t=e.index(c(t.currentTarget).parent('li:has([data-toggle="tab"])')),e=c(e[t]),s.onTabClick&&"function"==typeof s.onTabClick&&!1===s.onTabClick(o,r,n.currentIndex(),t,e))return!1},l=function(t){if($element=c(t.target).parent(),t=r.find('li:has([data-toggle="tab"])').index($element),$element.hasClass("disabled")||s.onTabChange&&"function"==typeof s.onTabChange&&!1===s.onTabChange(o,r,n.currentIndex(),t))return!1;o=$element,n.fixNavigationButtons()};this.resetWizard=function(){c('a[data-toggle="tab"]',r).off("click",a),c('a[data-toggle="tab"]',r).off("shown shown.bs.tab",l),r=e.find("ul:first",e),o=r.find('li:has([data-toggle="tab"]).active',e),c('a[data-toggle="tab"]',r).on("click",a),c('a[data-toggle="tab"]',r).on("shown shown.bs.tab",l),n.fixNavigationButtons()},r=e.find("ul:first",e),o=r.find('li:has([data-toggle="tab"]).active',e),r.hasClass(s.tabClass)||r.addClass(s.tabClass),s.onInit&&"function"==typeof s.onInit&&s.onInit(o,r,0),s.onShow&&"function"==typeof s.onShow&&s.onShow(o,r,n.nextIndex()),c('a[data-toggle="tab"]',r).on("click",a),c('a[data-toggle="tab"]',r).on("shown shown.bs.tab",l)};c.fn.bootstrapWizard=function(n){if("string"!=typeof n)return this.each(function(t){if(!(t=c(this)).data("bootstrapWizard")){var e=new i(t,n);t.data("bootstrapWizard",e),e.fixNavigationButtons()}});var t=Array.prototype.slice.call(arguments,1);return 1===t.length&&t.toString(),this.data("bootstrapWizard")[n](t)},c.fn.bootstrapWizard.defaults={tabClass:"nav nav-pills",nextSelector:".wizard li.next",previousSelector:".wizard li.previous",firstSelector:".wizard li.first",lastSelector:".wizard li.last",backSelector:".wizard li.back",onShow:null,onInit:null,onNext:null,onPrevious:null,onLast:null,onFirst:null,onBack:null,onTabChange:null,onTabClick:null,onTabShow:null}}(jQuery),function(p,m,i){"use strict";var o=function(t,e){this.widget="",this.$element=p(t),this.defaultTime=e.defaultTime,this.disableFocus=e.disableFocus,this.disableMousewheel=e.disableMousewheel,this.isOpen=e.isOpen,this.minuteStep=e.minuteStep,this.modalBackdrop=e.modalBackdrop,this.orientation=e.orientation,this.secondStep=e.secondStep,this.snapToStep=e.snapToStep,this.showInputs=e.showInputs,this.showMeridian=e.showMeridian,this.showSeconds=e.showSeconds,this.template=e.template,this.appendWidgetTo=e.appendWidgetTo,this.showWidgetOnAddonClick=e.showWidgetOnAddonClick,this.icons=e.icons,this.maxHours=e.maxHours,this.explicitMode=e.explicitMode,this.handleDocumentClick=function(t){var e=t.data.scope;e.$element.parent().find(t.target).length||e.$widget.is(t.target)||e.$widget.find(t.target).length||e.hideWidget()},this._init()};o.prototype={constructor:o,_init:function(){var t=this;this.showWidgetOnAddonClick&&this.$element.parent().hasClass("input-group")&&this.$element.parent().hasClass("bootstrap-timepicker")?(this.$element.parent(".input-group.bootstrap-timepicker").find(".input-group-addon").on({"click.timepicker":p.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":p.proxy(this.highlightUnit,this),"click.timepicker":p.proxy(this.highlightUnit,this),"keydown.timepicker":p.proxy(this.elementKeydown,this),"blur.timepicker":p.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":p.proxy(this.mousewheel,this)})):this.template?this.$element.on({"focus.timepicker":p.proxy(this.showWidget,this),"click.timepicker":p.proxy(this.showWidget,this),"blur.timepicker":p.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":p.proxy(this.mousewheel,this)}):this.$element.on({"focus.timepicker":p.proxy(this.highlightUnit,this),"click.timepicker":p.proxy(this.highlightUnit,this),"keydown.timepicker":p.proxy(this.elementKeydown,this),"blur.timepicker":p.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":p.proxy(this.mousewheel,this)}),!1!==this.template?this.$widget=p(this.getTemplate()).on("click",p.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&!1!==this.$widget&&this.$widget.find("input").each(function(){p(this).on({"click.timepicker":function(){p(this).select()},"keydown.timepicker":p.proxy(t.widgetKeydown,t),"keyup.timepicker":p.proxy(t.widgetKeyup,t)})}),this.setDefaultTime(this.defaultTime)},blurElement:function(){this.highlightedUnit=null,this.updateFromElementVal()},clear:function(){this.hour="",this.minute="",this.second="",this.meridian="",this.$element.val("")},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else this.hour<=0?this.hour=this.maxHours-1:this.hour--},decrementMinute:function(t){var e;e=t?this.minute-t:this.minute-this.minuteStep,this.minute=e<0?(this.decrementHour(),e+60):e},decrementSecond:function(){var t=this.second-this.secondStep;this.second=t<0?(this.decrementMinute(!0),t+60):t},elementKeydown:function(t){switch(t.which){case 9:if(t.shiftKey){if("hour"===this.highlightedUnit){this.hideWidget();break}this.highlightPrevUnit()}else{if(this.showMeridian&&"meridian"===this.highlightedUnit||this.showSeconds&&"second"===this.highlightedUnit||!this.showMeridian&&!this.showSeconds&&"minute"===this.highlightedUnit){this.hideWidget();break}this.highlightNextUnit()}t.preventDefault(),this.updateFromElementVal();break;case 27:this.updateFromElementVal();break;case 37:t.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.incrementHour(),this.highlightHour();break;case"minute":this.incrementMinute(),this.highlightMinute();break;case"second":this.incrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update();break;case 39:t.preventDefault(),this.highlightNextUnit(),this.updateFromElementVal();break;case 40:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.decrementHour(),this.highlightHour();break;case"minute":this.decrementMinute(),this.highlightMinute();break;case"second":this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update()}},getCursorPosition:function(){var t=this.$element.get(0);if("selectionStart"in t)return t.selectionStart;if(i.selection){t.focus();var e=i.selection.createRange(),n=i.selection.createRange().text.length;return e.moveStart("character",-t.value.length),e.text.length-n}},getTemplate:function(){var t,e,n,i,s,o;switch(s=this.showInputs?(e='<input type="text" class="bootstrap-timepicker-hour" maxlength="2"/>',n='<input type="text" class="bootstrap-timepicker-minute" maxlength="2"/>',i='<input type="text" class="bootstrap-timepicker-second" maxlength="2"/>','<input type="text" class="bootstrap-timepicker-meridian" maxlength="2"/>'):(e='<span class="bootstrap-timepicker-hour"></span>',n='<span class="bootstrap-timepicker-minute"></span>',i='<span class="bootstrap-timepicker-second"></span>','<span class="bootstrap-timepicker-meridian"></span>'),o='<table><tr><td><a href="#" data-action="incrementHour"><span class="'+this.icons.up+'"></span></a></td><td class="separator"> </td><td><a href="#" data-action="incrementMinute"><span class="'+this.icons.up+'"></span></a></td>'+(this.showSeconds?'<td class="separator"> </td><td><a href="#" data-action="incrementSecond"><span class="'+this.icons.up+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator"> </td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><span class="'+this.icons.up+'"></span></a></td>':"")+"</tr><tr><td>"+e+'</td> <td class="separator">:</td><td>'+n+"</td> "+(this.showSeconds?'<td class="separator">:</td><td>'+i+"</td>":"")+(this.showMeridian?'<td class="separator"> </td><td>'+s+"</td>":"")+'</tr><tr><td><a href="#" data-action="decrementHour"><span class="'+this.icons.down+'"></span></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><span class="'+this.icons.down+'"></span></a></td>'+(this.showSeconds?'<td class="separator"> </td><td><a href="#" data-action="decrementSecond"><span class="'+this.icons.down+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator"> </td><td><a href="#" data-action="toggleMeridian"><span class="'+this.icons.down+'"></span></a></td>':"")+"</tr></table>",this.template){case"modal":t='<div class="bootstrap-timepicker-widget modal hide fade in" data-backdrop="'+(this.modalBackdrop?"true":"false")+'"><div class="modal-header"><a href="#" class="close" data-dismiss="modal">×</a><h3>Pick a Time</h3></div><div class="modal-content">'+o+'</div><div class="modal-footer"><a href="#" class="btn btn-primary" data-dismiss="modal">OK</a></div></div>';break;case"dropdown":t='<div class="bootstrap-timepicker-widget dropdown-menu">'+o+"</div>"}return t},getTime:function(){return""===this.hour?"":this.hour+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")},hideWidget:function(){!1!==this.isOpen&&(this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),p(i).off("mousedown.timepicker, touchend.timepicker",this.handleDocumentClick),this.isOpen=!1,this.$widget.detach())},highlightUnit:function(){this.position=this.getCursorPosition(),0<=this.position&&this.position<=2?this.highlightHour():3<=this.position&&this.position<=5?this.highlightMinute():6<=this.position&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():9<=this.position&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.showMeridian?this.highlightMeridian():this.showSeconds?this.highlightSecond():this.highlightMinute();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},highlightHour:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="hour",t.setSelectionRange&&setTimeout(function(){e.hour<10?t.setSelectionRange(0,1):t.setSelectionRange(0,2)},0)},highlightMinute:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="minute",t.setSelectionRange&&setTimeout(function(){e.hour<10?t.setSelectionRange(2,4):t.setSelectionRange(3,5)},0)},highlightSecond:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="second",t.setSelectionRange&&setTimeout(function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)},0)},highlightMeridian:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="meridian",t.setSelectionRange&&(this.showSeconds?setTimeout(function(){e.hour<10?t.setSelectionRange(8,10):t.setSelectionRange(9,11)},0):setTimeout(function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)},0))},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}return this.hour===this.maxHours-1?void(this.hour=0):void this.hour++},incrementMinute:function(t){var e;e=t?this.minute+t:this.minute+this.minuteStep-this.minute%this.minuteStep,this.minute=59<e?(this.incrementHour(),e-60):e},incrementSecond:function(){var t=this.second+this.secondStep-this.second%this.secondStep;this.second=59<t?(this.incrementMinute(!0),t-60):t},mousewheel:function(t){if(!this.disableMousewheel){t.preventDefault(),t.stopPropagation();var e=t.originalEvent.wheelDelta||-t.originalEvent.detail,n=null;switch("mousewheel"===t.type?n=-1*t.originalEvent.wheelDelta:"DOMMouseScroll"===t.type&&(n=40*t.originalEvent.detail),n&&(t.preventDefault(),p(this).scrollTop(n+p(this).scrollTop())),this.highlightedUnit){case"minute":0<e?this.incrementMinute():this.decrementMinute(),this.highlightMinute();break;case"second":0<e?this.incrementSecond():this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian();break;default:0<e?this.incrementHour():this.decrementHour(),this.highlightHour()}return!1}},changeToNearestStep:function(t,e){return t%e==0?t:Math.round(t%e/e)?(t+(e-t%e))%60:t-t%e},place:function(){if(!this.isInline){var t=this.$widget.outerWidth(),e=this.$widget.outerHeight(),n=p(m).width(),i=p(m).height(),s=p(m).scrollTop(),o=parseInt(this.$element.parents().filter(function(){return"auto"!==p(this).css("z-index")}).first().css("z-index"),10)+10,r=this.component?this.component.parent().offset():this.$element.offset(),a=this.component?this.component.outerHeight(!0):this.$element.outerHeight(!1),l=this.component?this.component.outerWidth(!0):this.$element.outerWidth(!1),c=r.left,h=r.top;this.$widget.removeClass("timepicker-orient-top timepicker-orient-bottom timepicker-orient-right timepicker-orient-left"),"auto"!==this.orientation.x?(this.$widget.addClass("timepicker-orient-"+this.orientation.x),"right"===this.orientation.x&&(c-=t-l)):(this.$widget.addClass("timepicker-orient-left"),r.left<0?c-=r.left-10:r.left+t>n&&(c=n-t-10));var u,d,f=this.orientation.y;"auto"===f&&(u=-s+r.top-e,d=s+i-(r.top+a+e),f=Math.max(u,d)===d?"top":"bottom"),this.$widget.addClass("timepicker-orient-"+f),"top"===f?h+=a:h-=e+parseInt(this.$widget.css("padding-top"),10),this.$widget.css({top:h,left:c,zIndex:o})}},remove:function(){p("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(t){if(this.$element.val())this.updateFromElementVal();else if("current"===t){var e=new Date,n=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),o="AM";0!==s&&(60===(s=Math.ceil(e.getSeconds()/this.secondStep)*this.secondStep)&&(i+=1,s=0)),0!==i&&(60===(i=Math.ceil(e.getMinutes()/this.minuteStep)*this.minuteStep)&&(n+=1,i=0)),this.showMeridian&&(0===n?n=12:o=12<=n?(12<n&&(n-=12),"PM"):"AM"),this.hour=n,this.minute=i,this.second=s,this.meridian=o,this.update()}else!1===t?(this.hour=0,this.minute=0,this.second=0,this.meridian="AM"):this.setTime(t)},setTime:function(t,e){if(t){var n,i,s,o,r,a;if("object"==typeof t&&t.getMonth)s=t.getHours(),o=t.getMinutes(),r=t.getSeconds(),this.showMeridian&&(a="AM",12<s&&(a="PM",s%=12),12===s&&(a="PM"));else{if(2<(n=(/a/i.test(t)?1:0)+(/p/i.test(t)?2:0)))return void this.clear();if(s=(i=t.replace(/[^0-9\:]/g,"").split(":"))[0]?i[0].toString():i.toString(),this.explicitMode&&2<s.length&&s.length%2!=0)return void this.clear();o=i[1]?i[1].toString():"",r=i[2]?i[2].toString():"",4<s.length&&(r=s.slice(-2),s=s.slice(0,-2)),2<s.length&&(o=s.slice(-2),s=s.slice(0,-2)),2<o.length&&(r=o.slice(-2),o=o.slice(0,-2)),s=parseInt(s,10),o=parseInt(o,10),r=parseInt(r,10),isNaN(s)&&(s=0),isNaN(o)&&(o=0),isNaN(r)&&(r=0),59<r&&(r=59),59<o&&(o=59),s>=this.maxHours&&(s=this.maxHours-1),this.showMeridian?(12<s&&(n=2,s-=12),n||(n=1),0===s&&(s=12),a=1===n?"AM":"PM"):s<12&&2===n?s+=12:s>=this.maxHours?s=this.maxHours-1:(s<0||12===s&&1===n)&&(s=0)}this.hour=s,this.snapToStep?(this.minute=this.changeToNearestStep(o,this.minuteStep),this.second=this.changeToNearestStep(r,this.secondStep)):(this.minute=o,this.second=r),this.meridian=a,this.update(e)}else this.clear()},showWidget:function(){this.isOpen||this.$element.is(":disabled")||(this.$widget.appendTo(this.appendWidgetTo),p(i).on("mousedown.timepicker, touchend.timepicker",{scope:this},this.handleDocumentClick),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.place(),this.disableFocus&&this.$element.blur(),""===this.hour&&(this.defaultTime?this.setDefaultTime(this.defaultTime):this.setTime("0:0:0")),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",p.proxy(this.hideWidget,this)):!1===this.isOpen&&this.$widget.addClass("open"),this.isOpen=!0)},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM"},update:function(t){this.updateElement(),t||this.updateWidget(),this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}})},updateElement:function(){this.$element.val(this.getTime()).change()},updateFromElementVal:function(){this.setTime(this.$element.val())},updateWidget:function(){if(!1!==this.$widget){var t=this.hour,e=1===this.minute.toString().length?"0"+this.minute:this.minute,n=1===this.second.toString().length?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.bootstrap-timepicker-hour").val(t),this.$widget.find("input.bootstrap-timepicker-minute").val(e),this.showSeconds&&this.$widget.find("input.bootstrap-timepicker-second").val(n),this.showMeridian&&this.$widget.find("input.bootstrap-timepicker-meridian").val(this.meridian)):(this.$widget.find("span.bootstrap-timepicker-hour").text(t),this.$widget.find("span.bootstrap-timepicker-minute").text(e),this.showSeconds&&this.$widget.find("span.bootstrap-timepicker-second").text(n),this.showMeridian&&this.$widget.find("span.bootstrap-timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(!1!==this.$widget){var t=this.$widget.find("input.bootstrap-timepicker-hour").val()+":"+this.$widget.find("input.bootstrap-timepicker-minute").val()+(this.showSeconds?":"+this.$widget.find("input.bootstrap-timepicker-second").val():"")+(this.showMeridian?this.$widget.find("input.bootstrap-timepicker-meridian").val():"");this.setTime(t,!0)}},widgetClick:function(t){t.stopPropagation(),t.preventDefault();var e=p(t.target),n=e.closest("a").data("action");n&&this[n](),this.update(),e.is("input")&&e.get(0).setSelectionRange(0,2)},widgetKeydown:function(t){var e=p(t.target),n=e.attr("class").replace("bootstrap-timepicker-","");switch(t.which){case 9:if(t.shiftKey){if("hour"===n)return this.hideWidget()}else if(this.showMeridian&&"meridian"===n||this.showSeconds&&"second"===n||!this.showMeridian&&!this.showSeconds&&"minute"===n)return this.hideWidget();break;case 27:this.hideWidget();break;case 38:switch(t.preventDefault(),n){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),e.get(0).setSelectionRange(0,2);break;case 40:switch(t.preventDefault(),n){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),e.get(0).setSelectionRange(0,2)}},widgetKeyup:function(t){(65===t.which||77===t.which||80===t.which||46===t.which||8===t.which||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105)&&this.updateFromWidgetInputs()}},p.fn.timepicker=function(i){var s=Array.apply(null,arguments);return s.shift(),this.each(function(){var t=p(this),e=t.data("timepicker"),n="object"==typeof i&&i;e||t.data("timepicker",e=new o(this,p.extend({},p.fn.timepicker.defaults,n,p(this).data()))),"string"==typeof i&&e[i].apply(e,s)})},p.fn.timepicker.defaults={defaultTime:"current",disableFocus:!1,disableMousewheel:!1,isOpen:!1,minuteStep:15,modalBackdrop:!1,orientation:{x:"auto",y:"auto"},secondStep:15,snapToStep:!1,showSeconds:!1,showInputs:!0,showMeridian:!0,template:"dropdown",appendWidgetTo:"body",showWidgetOnAddonClick:!0,icons:{up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},maxHours:24,explicitMode:!1},p.fn.timepicker.Constructor=o,p(i).on("focus.timepicker.data-api click.timepicker.data-api",'[data-provide="timepicker"]',function(t){var e=p(this);e.data("timepicker")||(t.preventDefault(),e.timepicker())})}(jQuery,window,document),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e),e}:n(jQuery)}(function(C){"use strict";var S=0;C.fn.TouchSpin=function(D){var k={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"+",verticaldown:"-",verticalupclass:"",verticaldownclass:"",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-primary",buttonup_class:"btn btn-primary",buttondown_txt:"-",buttonup_txt:"+",callback_before_calculation:function(t){return t},callback_after_calculation:function(t){return t}},x={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){var a,o,r,l,c,n,t,e,i,s,h=C(this),u=h.data(),d=0,f=!1;function p(){""===a.prefix&&(o=c.prefix.detach()),""===a.postfix&&(r=c.postfix.detach())}function m(){var t,e,n;""!==(t=a.callback_before_calculation(h.val()))?0<a.decimals&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==a.replacementval?a.replacementval:0),(n=e).toString()!==t&&(n=e),null!==a.min&&e<a.min&&(n=a.min),null!==a.max&&e>a.max&&(n=a.max),n=function(t){switch(a.forcestepdivisibility){case"round":return(Math.round(t/a.step)*a.step).toFixed(a.decimals);case"floor":return(Math.floor(t/a.step)*a.step).toFixed(a.decimals);case"ceil":return(Math.ceil(t/a.step)*a.step).toFixed(a.decimals);default:return t}}(n),Number(t).toString()!==n.toString()&&(h.val(n),h.trigger("change"))):""!==a.replacementval&&(h.val(a.replacementval),h.trigger("change"))}function g(){if(a.booster){var t=Math.pow(2,Math.floor(d/a.boostat))*a.step;return a.maxboostedstep&&t>a.maxboostedstep&&(t=a.maxboostedstep,n=Math.round(n/t)*t),Math.max(a.step,t)}return a.step}function v(){m(),n=parseFloat(a.callback_before_calculation(c.input.val())),isNaN(n)&&(n=0);var t=n,e=g();n+=e,null!==a.max&&n>a.max&&(n=a.max,h.trigger("touchspin.on.max"),w()),c.input.val(a.callback_after_calculation(Number(n).toFixed(a.decimals))),t!==n&&h.trigger("change")}function y(){m(),n=parseFloat(a.callback_before_calculation(c.input.val())),isNaN(n)&&(n=0);var t=n,e=g();n-=e,null!==a.min&&n<a.min&&(n=a.min,h.trigger("touchspin.on.min"),w()),c.input.val(a.callback_after_calculation(Number(n).toFixed(a.decimals))),t!==n&&h.trigger("change")}function b(){w(),d=0,f="down",h.trigger("touchspin.on.startspin"),h.trigger("touchspin.on.startdownspin"),i=setTimeout(function(){t=setInterval(function(){d++,y()},a.stepinterval)},a.stepintervaldelay)}function _(){w(),d=0,f="up",h.trigger("touchspin.on.startspin"),h.trigger("touchspin.on.startupspin"),s=setTimeout(function(){e=setInterval(function(){d++,v()},a.stepinterval)},a.stepintervaldelay)}function w(){switch(clearTimeout(i),clearTimeout(s),clearInterval(t),clearInterval(e),f){case"up":h.trigger("touchspin.on.stopupspin"),h.trigger("touchspin.on.stopspin");break;case"down":h.trigger("touchspin.on.stopdownspin"),h.trigger("touchspin.on.stopspin")}d=0,f=!1}!function(){var t,e,n,i,s;if(!h.data("alreadyinitialized"))h.data("alreadyinitialized",!0),S+=1,h.data("spinnerid",S),h.is("input")?(""!==(a=C.extend({},k,u,(s={},C.each(x,function(t,e){var n="bts-"+e;h.is("[data-"+n+"]")&&(s[t]=h.data(n))}),s),D)).initval&&""===h.val()&&h.val(a.initval),m(),n=h.val(),i=h.parent(),""!==n&&(n=a.callback_after_calculation(Number(n).toFixed(a.decimals))),h.data("initvalue",n).val(n),h.addClass("form-control"),i.hasClass("input-group")?function(t){t.addClass("bootstrap-touchspin");var e,n,i=h.prev(),s=h.next(),o='<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected"><span class="input-group-text">'+a.prefix+"</span></span>",r='<span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected"><span class="input-group-text">'+a.postfix+"</span></span>";i.hasClass("input-group-btn")||i.hasClass("input-group-prepend")?(e='<button class="'+a.buttondown_class+' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">'+a.buttondown_txt+"</button>",i.append(e)):(e='<span class="input-group-btn input-group-prepend bootstrap-touchspin-injected"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+"</button></span>",C(e).insertBefore(h)),s.hasClass("input-group-btn")||s.hasClass("input-group-append")?(n='<button class="'+a.buttonup_class+' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">'+a.buttonup_txt+"</button>",s.prepend(n)):(n='<span class="input-group-btn input-group-append bootstrap-touchspin-injected"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span>",C(n).insertAfter(h)),C(o).insertBefore(h),C(r).insertAfter(h),l=t}(i):(e="",h.hasClass("input-sm")&&(e="input-group-sm"),h.hasClass("input-lg")&&(e="input-group-lg"),t=a.verticalbuttons?'<div class="input-group '+e+' bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix"><span class="input-group-text">'+a.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+a.postfix+'</span></span><span class="input-group-btn-vertical"><button class="'+a.buttondown_class+" bootstrap-touchspin-up "+a.verticalupclass+'" type="button">'+a.verticalup+'</button><button class="'+a.buttonup_class+" bootstrap-touchspin-down "+a.verticaldownclass+'" type="button">'+a.verticaldown+"</button></span></div>":'<div class="input-group bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-btn input-group-prepend"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend"><span class="input-group-text">'+a.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+a.postfix+'</span></span><span class="input-group-btn input-group-append"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span></div>",l=C(t).insertBefore(h),C(".bootstrap-touchspin-prefix",l).after(h),h.hasClass("input-sm")?l.addClass("input-group-sm"):h.hasClass("input-lg")&&l.addClass("input-group-lg")),c={down:C(".bootstrap-touchspin-down",l),up:C(".bootstrap-touchspin-up",l),input:C("input",l),prefix:C(".bootstrap-touchspin-prefix",l).addClass(a.prefix_extraclass),postfix:C(".bootstrap-touchspin-postfix",l).addClass(a.postfix_extraclass)},p(),h.on("keydown.touchspin",function(t){var e=t.keyCode||t.which;38===e?("up"!==f&&(v(),_()),t.preventDefault()):40===e&&("down"!==f&&(y(),b()),t.preventDefault())}),h.on("keyup.touchspin",function(t){var e=t.keyCode||t.which;38===e?w():40===e&&w()}),h.on("blur.touchspin",function(){m(),h.val(a.callback_after_calculation(h.val()))}),c.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==f&&(y(),b()),t.preventDefault())}),c.down.on("keyup.touchspin",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||w()}),c.up.on("keydown.touchspin",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==f&&(v(),_()),t.preventDefault())}),c.up.on("keyup.touchspin",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||w()}),c.down.on("mousedown.touchspin",function(t){c.down.off("touchstart.touchspin"),h.is(":disabled")||(y(),b(),t.preventDefault(),t.stopPropagation())}),c.down.on("touchstart.touchspin",function(t){c.down.off("mousedown.touchspin"),h.is(":disabled")||(y(),b(),t.preventDefault(),t.stopPropagation())}),c.up.on("mousedown.touchspin",function(t){c.up.off("touchstart.touchspin"),h.is(":disabled")||(v(),_(),t.preventDefault(),t.stopPropagation())}),c.up.on("touchstart.touchspin",function(t){c.up.off("mousedown.touchspin"),h.is(":disabled")||(v(),_(),t.preventDefault(),t.stopPropagation())}),c.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(t){f&&(t.stopPropagation(),w())}),c.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(t){f&&(t.stopPropagation(),w())}),c.down.on("mousemove.touchspin touchmove.touchspin",function(t){f&&(t.stopPropagation(),t.preventDefault())}),c.up.on("mousemove.touchspin touchmove.touchspin",function(t){f&&(t.stopPropagation(),t.preventDefault())}),h.on("mousewheel.touchspin DOMMouseScroll.touchspin",function(t){if(a.mousewheel&&h.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?y():v()}}),h.on("touchspin.destroy",function(){var t;t=h.parent(),w(),h.off(".touchspin"),t.hasClass("bootstrap-touchspin-injected")?(h.siblings().remove(),h.unwrap()):(C(".bootstrap-touchspin-injected",t).remove(),t.removeClass("bootstrap-touchspin")),h.data("alreadyinitialized",!1)}),h.on("touchspin.uponce",function(){w(),v()}),h.on("touchspin.downonce",function(){w(),y()}),h.on("touchspin.startupspin",function(){_()}),h.on("touchspin.startdownspin",function(){b()}),h.on("touchspin.stopspin",function(){w()}),h.on("touchspin.updatesettings",function(t,n){!function(t){(function(t){(a=C.extend({},a,t),t.postfix)&&(0===h.parent().find(".bootstrap-touchspin-postfix").length&&r.insertAfter(h),h.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(t.postfix));t.prefix&&(0===h.parent().find(".bootstrap-touchspin-prefix").length&&o.insertBefore(h),h.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(t.prefix));p()})(n),m();var e=c.input.val();""!==e&&(e=Number(a.callback_before_calculation(c.input.val())),c.input.val(a.callback_after_calculation(Number(e).toFixed(a.decimals))))}()})):console.log("Must be an input.")}()})}}),function(v){"use strict";v.event.special.destroyed||(v.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}),v.fn.extend({maxlength:function(h,t){function c(t){var e=t.val();e=h.twoCharLinebreak?e.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"):e.replace(new RegExp("\r?\n","g"),"\n");return h.utf8?function(t){for(var e=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e++:e+=127<i&&i<2048?2:3}return e}(e):e.length}function u(t,e){return e-c(t)}function d(t,e){e.css({display:"block"}),t.trigger("maxlength.shown")}function f(t,e,n){var i="";return h.message?i="function"==typeof h.message?h.message(t,e):h.message.replace("%charsTyped%",n).replace("%charsRemaining%",e-n).replace("%charsTotal%",e):(h.preText&&(i+=h.preText),i+=h.showCharsTyped?n:e-n,h.showMaxLength&&(i+=h.separator+e),h.postText&&(i+=h.postText)),i}function p(t,e,n,i){var s,o,r,a,l;i&&(i.html(f(e.val(),n,n-t)),0<t?(o=e,r=h.threshold,a=n,l=!0,!h.alwaysShow&&a-c(o)>r&&(l=!1),l?d(e,i.removeClass(h.limitReachedClass).addClass(h.warningClass)):(s=e,i.css({display:"none"}),s.trigger("maxlength.hidden"))):d(e,i.removeClass(h.warningClass).addClass(h.limitReachedClass))),h.allowOverMax&&(t<0?e.addClass("overmax"):e.removeClass("overmax"))}function m(t,e){var n,i,s=(i=(n=t)[0],v.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():{width:i.offsetWidth,height:i.offsetHeight},n.offset()));if("function"!==v.type(h.placement))if(v.isPlainObject(h.placement))!function(t,e){if(t&&e){var i={};v.each(["top","bottom","left","right","position"],function(t,e){var n=h.placement[e];void 0!==n&&(i[e]=n)}),e.css(i)}}(h.placement,e);else{var o=t.outerWidth(),r=e.outerWidth(),a=e.width(),l=e.height();switch(h.appendToParent&&(s.top-=t.parent().offset().top,s.left-=t.parent().offset().left),h.placement){case"bottom":e.css({top:s.top+s.height,left:s.left+s.width/2-a/2});break;case"top":e.css({top:s.top-l,left:s.left+s.width/2-a/2});break;case"left":e.css({top:s.top+s.height/2-l/2,left:s.left-a});break;case"right":e.css({top:s.top+s.height/2-l/2,left:s.left+s.width});break;case"bottom-right":e.css({top:s.top+s.height,left:s.left+s.width});break;case"top-right":e.css({top:s.top-l,left:s.left+o});break;case"top-left":e.css({top:s.top-l,left:s.left-r});break;case"bottom-left":e.css({top:s.top+t.outerHeight(),left:s.left-r});break;case"centered-right":e.css({top:s.top+l/2,left:s.left+o-r-3});break;case"bottom-right-inside":e.css({top:s.top+s.height,left:s.left+s.width-r});break;case"top-right-inside":e.css({top:s.top-l,left:s.left+o-r});break;case"top-left-inside":e.css({top:s.top-l,left:s.left});break;case"bottom-left-inside":e.css({top:s.top+t.outerHeight(),left:s.left})}}else h.placement(t,e,s)}function g(t){var e="maxlength";return h.allowOverMax&&(e="data-bs-mxl"),t.attr(e)||t.attr("size")}var e=v("body");return v.isFunction(h)&&!t&&(t=h,h={}),h=v.extend({showOnReady:!1,alwaysShow:!1,threshold:10,warningClass:"label label-success",limitReachedClass:"label label-important label-danger",separator:" / ",preText:"",postText:"",showMaxLength:!0,placement:"bottom",message:null,showCharsTyped:!0,validate:!1,utf8:!1,appendToParent:!1,twoCharLinebreak:!0,allowOverMax:!1},h),this.each(function(){function t(){var t=f(c.val(),a,"0");a=g(c),l||(l=v('<span class="bootstrap-maxlength"></span>').css({display:"none",position:"absolute",whiteSpace:"nowrap",zIndex:1099}).html(t)),c.is("textarea")&&(c.data("maxlenghtsizex",c.outerWidth()),c.data("maxlenghtsizey",c.outerHeight()),c.mouseup(function(){(c.outerWidth()!==c.data("maxlenghtsizex")||c.outerHeight()!==c.data("maxlenghtsizey"))&&m(c,l),c.data("maxlenghtsizex",c.outerWidth()),c.data("maxlenghtsizey",c.outerHeight())})),h.appendToParent?(c.parent().append(l),c.parent().css("position","relative")):e.append(l),p(u(c,g(c)),c,a,l),m(c,l)}var a,l,c=v(this);v(window).resize(function(){l&&m(c,l)}),h.allowOverMax&&(v(this).attr("data-bs-mxl",v(this).attr("maxlength")),v(this).removeAttr("maxlength")),h.showOnReady?c.ready(function(){t()}):c.focus(function(){t()}),c.on("maxlength.reposition",function(){m(c,l)}),c.on("destroyed",function(){l&&l.remove()}),c.on("blur",function(){l&&!h.showOnReady&&l.remove()}),c.on("input",function(){var t,e,n,i,s=g(c),o=u(c,s),r=!0;return h.validate&&o<0?(e=s,n=(t=c).val(),i=0,h.twoCharLinebreak&&"\n"===(n=n.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n")).substr(n.length-1)&&n.length%2==1&&(i=1),t.val(n.substr(0,e-i)),r=!1):p(o,c,a,l),("bottom-right-inside"===h.placement||"top-right-inside"===h.placement)&&m(c,l),r})})}})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(S,T){function E(){return new Date(Date.UTC.apply(Date,arguments))}function w(){var t=new Date;return E(t.getFullYear(),t.getMonth(),t.getDate())}function o(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function t(t,e){return function(){return e!==T&&S.fn.datepicker.deprecated(e),this[t].apply(this,arguments)}}var e,n=(e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;n<i;n++)if(0<=this[n].valueOf()-e&&this[n].valueOf()-e<864e5)return n;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(S.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new n;return t.replace(this),t}},function(){var t=[];return t.push.apply(t,arguments),S.extend(t,e),t}),D=function(t,e){S.data(t,"datepicker",this),this._process_options(e),this.dates=new n,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=S(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=S(A.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};D.prototype={constructor:D,_resolveViewName:function(n){return S.each(A.viewModes,function(t,e){if(n===t||-1!==S.inArray(n,e.names))return n=t,!1}),n},_resolveDaysOfWeek:function(t){return S.isArray(t)||(t=t.split(/[,\s]*/)),S.map(t,Number)},_check_template:function(t){try{return t!==T&&""!==t&&((t.match(/[<>]/g)||[]).length<=0||0<S(t).length)}catch(t){return!1}},_process_options:function(t){this._o=S.extend({},this._o,t);var e=this.o=S.extend({},this._o),n=e.language;M[n]||(n=n.split("-")[0],M[n]||(n=h.language)),e.language=n,e.startView=this._resolveViewName(e.startView),e.minViewMode=this._resolveViewName(e.minViewMode),e.maxViewMode=this._resolveViewName(e.maxViewMode),e.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,e.startView)),!0!==e.multidate&&(e.multidate=Number(e.multidate)||!1,!1!==e.multidate&&(e.multidate=Math.max(0,e.multidate))),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var i=A.parseFormat(e.format);e.startDate!==-1/0&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=A.parseDate(e.startDate,i,e.language,e.assumeNearbyYear):e.startDate=-1/0),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=A.parseDate(e.endDate,i,e.language,e.assumeNearbyYear):e.endDate=1/0),e.daysOfWeekDisabled=this._resolveDaysOfWeek(e.daysOfWeekDisabled||[]),e.daysOfWeekHighlighted=this._resolveDaysOfWeek(e.daysOfWeekHighlighted||[]),e.datesDisabled=e.datesDisabled||[],S.isArray(e.datesDisabled)||(e.datesDisabled=e.datesDisabled.split(",")),e.datesDisabled=S.map(e.datesDisabled,function(t){return A.parseDate(t,i,e.language,e.assumeNearbyYear)});var s=String(e.orientation).toLowerCase().split(/\s+/g),o=e.orientation.toLowerCase();if(s=S.grep(s,function(t){return/^auto|left|right|top|bottom$/.test(t)}),e.orientation={x:"auto",y:"auto"},o&&"auto"!==o)if(1===s.length)switch(s[0]){case"top":case"bottom":e.orientation.y=s[0];break;case"left":case"right":e.orientation.x=s[0]}else o=S.grep(s,function(t){return/^left|right$/.test(t)}),e.orientation.x=o[0]||"auto",o=S.grep(s,function(t){return/^top|bottom$/.test(t)}),e.orientation.y=o[0]||"auto";if(e.defaultViewDate instanceof Date||"string"==typeof e.defaultViewDate)e.defaultViewDate=A.parseDate(e.defaultViewDate,i,e.language,e.assumeNearbyYear);else if(e.defaultViewDate){var r=e.defaultViewDate.year||(new Date).getFullYear(),a=e.defaultViewDate.month||0,l=e.defaultViewDate.day||1;e.defaultViewDate=E(r,a,l)}else e.defaultViewDate=w()},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,n,i,s=0;s<t.length;s++)e=t[s][0],2===t[s].length?(n=T,i=t[s][1]):3===t[s].length&&(n=t[s][1],i=t[s][2]),e.on(i,n)},_unapplyEvents:function(t){for(var e,n,i,s=0;s<t.length;s++)e=t[s][0],2===t[s].length?(i=T,n=t[s][1]):3===t[s].length&&(i=t[s][1],n=t[s][2]),e.off(n,i)},_buildEvents:function(){var t={keyup:S.proxy(function(t){-1===S.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:S.proxy(this.keydown,this),paste:S.proxy(this.paste,this)};!0===this.o.showOnFocus&&(t.focus=S.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:S.proxy(this.show,this)}]]:this._events=[[this.element,{click:S.proxy(this.show,this),keydown:S.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:S.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:S.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":S.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:S.proxy(this.click,this)}],[this.picker,".prev, .next",{click:S.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:S.proxy(this.dayCellClick,this)}],[S(window),{resize:S.proxy(this.place,this)}],[S(document),{"mousedown touchstart":S.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,e){var n=e||this.dates.get(-1),i=this._utc_to_local(n);this.element.trigger({type:t,date:i,viewMode:this.viewMode,dates:S.map(this.dates,this._utc_to_local),format:S.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var n=this.dates.get(t);return A.formatDate(n,e,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&S(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var e;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==S.inArray("text/plain",t.originalEvent.clipboardData.types))e=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;e=window.clipboardData.getData("Text")}this.setDate(e),this.update(),t.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&E(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return S.map(this.dates,this._utc_to_local)},getUTCDates:function(){return S.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==T?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=S.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=S.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,S.map(t,this._utc_to_local)),this},setDate:t("setDates"),setUTCDate:t("setUTCDates"),remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(e){e===T&&(e=this.o.format);var n=this.o.language;return S.map(this.dates,function(t){return A.formatDate(t,e,n)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),e=this.picker.outerHeight(),n=S(this.o.container),i=n.width(),s="body"===this.o.container?S(document).scrollTop():n.scrollTop(),o=n.offset(),r=[0];this.element.parents().each(function(){var t=S(this).css("z-index");"auto"!==t&&0!==Number(t)&&r.push(Number(t))});var a=Math.max.apply(Math,r)+this.o.zIndexOffset,l=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),u=l.left-o.left,d=l.top-o.top;"body"!==this.o.container&&(d+=s),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(u-=t-h)):l.left<0?(this.picker.addClass("datepicker-orient-left"),u-=l.left-10):i<u+t?(this.picker.addClass("datepicker-orient-right"),u+=h-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-s+d-e<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?d-=e+parseInt(this.picker.css("padding-top")):d+=c,this.o.rtl){var p=i-(u+h);this.picker.css({top:d,right:p,zIndex:a})}else this.picker.css({top:d,left:u,zIndex:a});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],e=!1;return arguments.length?(S.each(arguments,S.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)},this)),e=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=S.map(n,S.proxy(function(t){return A.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=S.grep(n,S.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),e?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&e&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="<tr>";for(this.o.calendarWeeks&&(e+='<th class="cw"> </th>');t<this.o.weekStart+7;)e+='<th class="dow',-1!==S.inArray(t,this.o.daysOfWeekDisabled)&&(e+=" disabled"),e+='">'+M[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+='<span class="month'+(t&&t.getMonth()===n?" focused":"")+'">'+M[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=S.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s=w();return t.getUTCFullYear()<n||t.getUTCFullYear()===n&&t.getUTCMonth()<i?e.push("old"):(t.getUTCFullYear()>n||t.getUTCFullYear()===n&&t.getUTCMonth()>i)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&o(t,s)&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),-1!==S.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&e.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&e.push("range"),-1!==S.inArray(t.valueOf(),this.range)&&e.push("selected"),t.valueOf()===this.range[0]&&e.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&e.push("range-end")),e},_fill_yearsView:function(t,e,n,i,s,o,r){for(var a,l,c,h="",u=n/10,d=this.picker.find(t),f=Math.floor(i/n)*n,p=f+9*u,m=Math.floor(this.viewDate.getFullYear()/u)*u,g=S.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/u)*u}),v=f-u;v<=p+u;v+=u)a=[e],l=null,v===f-u?a.push("old"):v===p+u&&a.push("new"),-1!==S.inArray(v,g)&&a.push("active"),(v<s||o<v)&&a.push("disabled"),v===m&&a.push("focused"),r!==S.noop&&((c=r(new Date(v,0,1)))===T?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),!1===c.enabled&&a.push("disabled"),c.classes&&(a=a.concat(c.classes.split(/\s+/))),c.tooltip&&(l=c.tooltip)),h+='<span class="'+a.join(" ")+'"'+(l?' title="'+l+'"':"")+">"+v+"</span>";d.find(".datepicker-switch").text(f+"-"+p),d.find("td").html(h)},fill:function(){var t,e,n=new Date(this.viewDate),s=n.getUTCFullYear(),i=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=M[this.o.language].today||M.en.today||"",h=M[this.o.language].clear||M.en.clear||"",u=M[this.o.language].titleFormat||M.en.titleFormat;if(!isNaN(s)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(A.formatDate(n,u,this.o.language)),this.picker.find("tfoot .today").text(c).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(h).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var d=E(s,i,0),f=d.getUTCDate();d.setUTCDate(f-(d.getUTCDay()-this.o.weekStart+7)%7);var p=new Date(d);d.getUTCFullYear()<100&&p.setUTCFullYear(d.getUTCFullYear()),p.setUTCDate(p.getUTCDate()+42),p=p.valueOf();for(var m,g,v=[];d.valueOf()<p;){if((m=d.getUTCDay())===this.o.weekStart&&(v.push("<tr>"),this.o.calendarWeeks)){var y=new Date(+d+(this.o.weekStart-m-7)%7*864e5),b=new Date(Number(y)+(11-y.getUTCDay())%7*864e5),_=new Date(Number(_=E(b.getUTCFullYear(),0,1))+(11-_.getUTCDay())%7*864e5),w=(b-_)/864e5/7+1;v.push('<td class="cw">'+w+"</td>")}(g=this.getClassNames(d)).push("day");var D=d.getUTCDate();this.o.beforeShowDay!==S.noop&&((e=this.o.beforeShowDay(this._utc_to_local(d)))===T?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),!1===e.enabled&&g.push("disabled"),e.classes&&(g=g.concat(e.classes.split(/\s+/))),e.tooltip&&(t=e.tooltip),e.content&&(D=e.content)),g=S.isFunction(S.uniqueSort)?S.uniqueSort(g):S.unique(g),v.push('<td class="'+g.join(" ")+'"'+(t?' title="'+t+'"':"")+' data-date="'+d.getTime().toString()+'">'+D+"</td>"),t=null,m===this.o.weekEnd&&v.push("</tr>"),d.setUTCDate(d.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(v.join(""));var k=M[this.o.language].monthsTitle||M.en.monthsTitle||"Months",x=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:s).end().find("tbody span").removeClass("active");if(S.each(this.dates,function(t,e){e.getUTCFullYear()===s&&x.eq(e.getUTCMonth()).addClass("active")}),(s<o||a<s)&&x.addClass("disabled"),s===o&&x.slice(0,r).addClass("disabled"),s===a&&x.slice(l+1).addClass("disabled"),this.o.beforeShowMonth!==S.noop){var C=this;S.each(x,function(t,e){var n=new Date(s,t,1),i=C.o.beforeShowMonth(n);i===T?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1!==i.enabled||S(e).hasClass("disabled")||S(e).addClass("disabled"),i.classes&&S(e).addClass(i.classes),i.tooltip&&S(e).prop("title",i.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,s,o,a,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,o,a,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,o,a,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),s=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<o,e=Math.floor(i/c)*c+c>a;break;case 0:t=i<=o&&s<r,e=a<=i&&l<s}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(t){var e,n,i;t.preventDefault(),t.stopPropagation(),(e=S(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),e.hasClass("today")&&!e.hasClass("day")&&(this.setViewMode(0),this._setDate(w(),"linked"===this.o.todayBtn?null:"view")),e.hasClass("clear")&&this.clearDates(),e.hasClass("disabled")||(e.hasClass("month")||e.hasClass("year")||e.hasClass("decade")||e.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(i=e.parent().find("span").index(e),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(i)):(i=0,n=Number(e.text()),this.viewDate.setUTCFullYear(n)),this._trigger(A.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(E(n,i,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var e=S(t.currentTarget).data("date"),n=new Date(e);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(t){var e=S(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(e*=12*A.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,e),this._trigger(A.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||1<this.o.multidate||this.o.toggleActive)&&this.dates.remove(e):(!1===this.o.multidate&&this.dates.clear(),this.dates.push(t)),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(n=t)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!e)return t;var i,s,o=new Date(t.valueOf()),r=o.getUTCDate(),a=o.getUTCMonth(),l=Math.abs(e);if(e=0<e?1:-1,1===l)s=-1===e?function(){return o.getUTCMonth()===a}:function(){return o.getUTCMonth()!==i},i=a+e,o.setUTCMonth(i),i=(i+12)%12;else{for(var c=0;c<l;c++)o=this.moveMonth(o,e);i=o.getUTCMonth(),o.setUTCDate(r),s=function(){return i!==o.getUTCMonth()}}for(;s();)o.setUTCDate(--r),o.setUTCMonth(i);return o},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,n){do{if(t=this[n](t,e),!this.dateWithinRange(t))return!1;n="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(t){return-1!==S.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||0<S.grep(this.o.datesDisabled,function(t){return o(e,t)}).length},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(n=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(s,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+A.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(t,e){S.data(t,"datepicker",this),this.element=S(t),this.inputs=S.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,s.call(S(this.inputs),e).on("changeDate",S.proxy(this.dateUpdated,this)),this.pickers=S.map(this.inputs,function(t){return S.data(t,"datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=S.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=S.map(this.dates,function(t){return t.valueOf()});S.each(this.pickers,function(t,e){e.setRange(n)})},clearDates:function(){S.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=S.data(t.target,"datepicker");if(n!==T){var i=n.getUTCDate(),s=this.keepEmptyValues,e=S.inArray(t.target,this.inputs),o=e-1,r=e+1,a=this.inputs.length;if(-1!==e){if(S.each(this.pickers,function(t,e){e.getUTCDate()||e!==n&&s||e.setUTCDate(i)}),i<this.dates[o])for(;0<=o&&i<this.dates[o];)this.pickers[o--].setUTCDate(i);else if(i>this.dates[r])for(;r<a&&i>this.dates[r];)this.pickers[r++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){S.map(this.pickers,function(t){t.destroy()}),S(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var i=S.fn.datepicker,s=function(r){var a,l=Array.apply(null,arguments);if(l.shift(),this.each(function(){var t=S(this),e=t.data("datepicker"),n="object"==typeof r&&r;if(!e){var i=function(t,e){function n(t,e){return e.toLowerCase()}var i=S(t).data(),s={},o=new RegExp("^"+e.toLowerCase()+"([A-Z])");for(var r in e=new RegExp("^"+e.toLowerCase()),i)e.test(r)&&(s[r.replace(o,n)]=i[r]);return s}(this,"date"),s=function(t){var n={};if(M[t]||(t=t.split("-")[0],M[t])){var i=M[t];return S.each(u,function(t,e){e in i&&(n[e]=i[e])}),n}}(S.extend({},h,i,n).language),o=S.extend({},h,s,i,n);e=t.hasClass("input-daterange")||o.inputs?(S.extend(o,{inputs:o.inputs||t.find("input").toArray()}),new c(this,o)):new D(this,o),t.data("datepicker",e)}"string"==typeof r&&"function"==typeof e[r]&&(a=e[r].apply(e,l))}),a===T||a instanceof D||a instanceof c)return this;if(1<this.length)throw new Error("Using only allowed for the collection of a single element ("+r+" function)");return a};S.fn.datepicker=s;var h=S.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:S.noop,beforeShowMonth:S.noop,beforeShowYear:S.noop,beforeShowDecade:S.noop,beforeShowCentury:S.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},u=S.fn.datepicker.locale_opts=["format","rtl","weekStart"];S.fn.datepicker.Constructor=D;var M=S.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},A={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(t,e,n,s){function i(){var t=this.slice(0,o[l].length),e=o[l].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!t)return T;if(t instanceof Date)return t;if("string"==typeof e&&(e=A.parseFormat(e)),e.toValue)return e.toValue(t,e,n);var o,r,a,l,c,h={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},u={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(t in u&&(t=u[t]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(t)){for(o=t.match(/([\-+]\d+)([dmwy])/gi),t=new Date,l=0;l<o.length;l++)r=o[l].match(/([\-+]\d+)([dmwy])/i),a=Number(r[1]),c=h[r[2].toLowerCase()],t=D.prototype[c](t,a);return D.prototype._zero_utc_time(t)}o=t&&t.match(this.nonpunctuation)||[];var d,f,p={},m=["yyyy","yy","M","MM","m","mm","d","dd"],g={yyyy:function(t,e){return t.setUTCFullYear(s?(!0===(i=s)&&(i=10),(n=e)<100&&(n+=2e3)>(new Date).getFullYear()+i&&(n-=100),n):e);var n,i},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};g.yy=g.yyyy,g.M=g.MM=g.mm=g.m,g.dd=g.d,t=w();var v=e.parts.slice();if(o.length!==v.length&&(v=S(v).filter(function(t,e){return-1!==S.inArray(e,m)}).toArray()),o.length===v.length){var y,b,_;for(l=0,y=v.length;l<y;l++){if(d=parseInt(o[l],10),r=v[l],isNaN(d))switch(r){case"MM":f=S(M[n].months).filter(i),d=S.inArray(f[0],M[n].months)+1;break;case"M":f=S(M[n].monthsShort).filter(i),d=S.inArray(f[0],M[n].monthsShort)+1}p[r]=d}for(l=0;l<m.length;l++)(_=m[l])in p&&!isNaN(p[_])&&(b=new Date(t),g[_](b,p[_]),isNaN(b)||(t=b))}return t},formatDate:function(t,e,n){if(!t)return"";if("string"==typeof e&&(e=A.parseFormat(e)),e.toDisplay)return e.toDisplay(t,e,n);var i={d:t.getUTCDate(),D:M[n].daysShort[t.getUTCDay()],DD:M[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:M[n].monthsShort[t.getUTCMonth()],MM:M[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};i.dd=(i.d<10?"0":"")+i.d,i.mm=(i.m<10?"0":"")+i.m,t=[];for(var s=S.extend([],e.separators),o=0,r=e.parts.length;o<=r;o++)s.length&&t.push(s.shift()),t.push(i[e.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+h.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+h.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};A.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+A.headTemplate+"<tbody></tbody>"+A.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+"</table></div></div>",S.fn.datepicker.DPGlobal=A,S.fn.datepicker.noConflict=function(){return S.fn.datepicker=i,this},S.fn.datepicker.version="1.8.0",S.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},S(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=S(this);e.data("datepicker")||(t.preventDefault(),s.call(e,"show"))}),S(function(){s.call(S('[data-provide="datepicker-inline"]'))})}),function(s){"use strict";var t=function(){this.$body=s("body"),this.$portletIdentifier=".card",this.$portletCloser='.card a[data-toggle="remove"]',this.$portletRefresher='.card a[data-toggle="reload"]'};t.prototype.init=function(){var i=this;s(document).on("click",this.$portletCloser,function(t){t.preventDefault();var e=s(this).closest(i.$portletIdentifier),n=e.parent();e.remove(),0==n.children().length&&n.remove()}),s(document).on("click",this.$portletRefresher,function(t){t.preventDefault();var e=s(this).closest(i.$portletIdentifier);e.append('<div class="card-disabled"><div class="card-portlets-loader"></div></div>');var n=e.find(".card-disabled");setTimeout(function(){n.fadeOut("fast",function(){n.remove()})},500+5*Math.random()*300)})},s.Portlet=new t,s.Portlet.Constructor=t}(window.jQuery),function(o){"use strict";var t=function(){this.$body=o("body"),this.$window=o(window)};t.prototype.initSelect2=function(){o('[data-toggle="select2"]').select2()},t.prototype.initMask=function(){o('[data-toggle="input-mask"]').each(function(t,e){var n=o(e).data("maskFormat"),i=o(e).data("reverse");null!=i?o(e).mask(n,{reverse:i}):o(e).mask(n)})},t.prototype.initDateRange=function(){var i={cancelClass:"btn-light",applyButtonClasses:"btn-success"};o('[data-toggle="date-picker"]').each(function(t,e){var n=o.extend({},i,o(e).data());o(e).daterangepicker(n)});var s={startDate:moment().subtract(29,"days"),endDate:moment(),ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]}};o('[data-toggle="date-picker-range"]').each(function(t,e){var n=o.extend({},s,o(e).data()),i=n.targetDisplay;o(e).daterangepicker(n,function(t,e){i&&o(i).html(t.format("MMMM D, YYYY")+" - "+e.format("MMMM D, YYYY"))})})},t.prototype.initTimePicker=function(){var i={showSeconds:!0,icons:{up:"mdi mdi-chevron-up",down:"mdi mdi-chevron-down"}};o('[data-toggle="timepicker"]').each(function(t,e){var n=o.extend({},i,o(e).data());o(e).timepicker(n)})},t.prototype.initTouchspin=function(){var i={};o('[data-toggle="touchspin"]').each(function(t,e){var n=o.extend({},i,o(e).data());o(e).TouchSpin(n)})},t.prototype.initMaxlength=function(){var i={warningClass:"badge badge-success",limitReachedClass:"badge badge-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",placement:"bottom"};o('[data-toggle="maxlength"]').each(function(t,e){var n=o.extend({},i,o(e).data());o(e).maxlength(n)})},t.prototype.init=function(){this.initSelect2(),this.initMask(),this.initDateRange(),this.initTimePicker(),this.initTouchspin(),this.initMaxlength()},o.AdvanceFormApp=new t,o.AdvanceFormApp.Constructor=t}(window.jQuery),function(c){"use strict";var t=function(){};t.prototype.send=function(t,e,n,i,s,o,r,a){o||(o=3e3),r||(r=1);var l={heading:t,text:e,position:n,loaderBg:i,icon:s,hideAfter:o,stack:r};l.showHideTransition=a||"fade",c.toast().reset("all"),c.toast(l)},c.NotificationApp=new t,c.NotificationApp.Constructor=t}(window.jQuery),function(e){"use strict";var t=function(){};t.prototype.initTooltipPlugin=function(){e.fn.tooltip&&e('[data-toggle="tooltip"]').tooltip()},t.prototype.initPopoverPlugin=function(){e.fn.popover&&e('[data-toggle="popover"]').popover()},t.prototype.initToastPlugin=function(){e.fn.toast&&e('[data-toggle="toast"]').toast()},t.prototype.initSlimScrollPlugin=function(){e.fn.slimScroll&&e(".slimscroll").slimScroll({height:"auto",position:"right",size:"8px",touchScrollStep:20,color:"#9ea5ab"})},t.prototype.initFormValidation=function(){e(".needs-validation").on("submit",function(t){return e(this).addClass("was-validated"),!1!==e(this)[0].checkValidity()||(t.preventDefault(),t.stopPropagation(),!1)})},t.prototype.init=function(){this.initTooltipPlugin(),this.initPopoverPlugin(),this.initToastPlugin(),this.initSlimScrollPlugin(),this.initFormValidation()},e.Components=new t,e.Components.Constructor=t}(window.jQuery),function(n){"use strict";var t=function(){this.$body=n("body"),this.$window=n(window)};t.prototype._resetSidebarScroll=function(){n(".slimscroll-menu").slimscroll({height:"auto",position:"right",size:"8px",color:"#9ea5ab",wheelStep:5,touchScrollStep:20})},t.prototype.initMenu=function(){var e=this;n(".button-menu-mobile").on("click",function(t){t.preventDefault(),e.$body.toggleClass("sidebar-enable"),768<=e.$window.width()?e.$body.toggleClass("enlarged"):e.$body.removeClass("enlarged"),e._resetSidebarScroll()}),n(".side-nav").metisMenu(),this.$body.hasClass("scrollable-layout")&&n("#left-side-menu-container").removeClass("slimscroll-menu"),e._resetSidebarScroll(),n(".right-bar-toggle").on("click",function(t){n("body").toggleClass("right-bar-enabled")}),n(document).on("click","body",function(t){0<n(t.target).closest(".right-bar-toggle, .right-bar").length||0<n(t.target).closest(".left-side-menu, .side-nav").length||n(t.target).hasClass("button-menu-mobile")||0<n(t.target).closest(".button-menu-mobile").length||(n("body").removeClass("right-bar-enabled"),n("body").removeClass("sidebar-enable"))}),n(".side-nav a").each(function(){var t=window.location.href.split(/[?#]/)[0];this.href==t&&(n(this).addClass("active"),n(this).parent().addClass("active"),n(this).parent().parent().addClass("in"),n(this).parent().parent().prev().addClass("active"),n(this).parent().parent().parent().addClass("active"),n(this).parent().parent().parent().parent().addClass("in"),n(this).parent().parent().parent().parent().parent().addClass("active"))}),n(".topnav-menu li a").each(function(){var t=window.location.href.split(/[?#]/)[0];this.href==t&&(n(this).addClass("active"),n(this).parent().parent().addClass("active"),n(this).parent().parent().parent().parent().addClass("active"))}),n(".navbar-toggle").on("click",function(t){n(this).toggleClass("open"),n("#navigation").slideToggle(400)}),n(".dropdown-menu a.dropdown-toggle").on("click",function(t){return n(this).next().hasClass("show")||n(this).parents(".dropdown-menu").first().find(".show").removeClass("show"),n(this).next(".dropdown-menu").toggleClass("show"),!1})},t.prototype.initLayout=function(){768<=this.$window.width()&&this.$window.width()<=1028?this.$body.addClass("enlarged"):1!=this.$body.data("keep-enlarged")&&this.$body.removeClass("enlarged")},t.prototype.init=function(){var e=this;this.initLayout(),this.initMenu(),n.Portlet.init(),n.AdvanceFormApp.init(),n.Components.init(),e.$window.on("resize",function(t){t.preventDefault(),e.initLayout(),e._resetSidebarScroll()})},n.App=new t,n.App.Constructor=t}(window.jQuery),function(t){"use strict";window.jQuery.App.init()}(); //# sourceMappingURL=app.min.js.map