mappe per georeferenziazione
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

8 righe
361 KiB

/*!
* Bootstrap Italia è un tema Bootstrap 4 per la creazione di applicazioni web nel pieno rispetto delle Linee guida di design per i servizi web della PA
* @version v1.3.8
* @link https://italia.github.io/bootstrap-italia/
* @license BSD-3-Clause
*/
function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass2(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function showCapsLockMsg(t){$(".password-caps").remove(),t.parents(".form-group").append('<small class="password-caps form-text text-warning position-absolute bg-white w-100">CAPS LOCK inserito</small>')}function isIe(){return 0<window.navigator.userAgent.indexOf("MSIE ")||!!navigator.userAgent.match(/Trident.*rv\:11\./)}!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(C,t){"use strict";function m(t){return null!=t&&t===t.window}var e=[],k=C.document,n=Object.getPrototypeOf,a=e.slice,g=e.concat,l=e.push,s=e.indexOf,i={},o=i.toString,v=i.hasOwnProperty,r=v.toString,c=r.call(Object),y={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},h={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,i){var n,s,o=(i=i||k).createElement("script");if(o.text=t,e)for(n in h)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t}var d="3.4.1",E=function t(e,i){return new t.fn.init(e,i)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function p(t){var e=!!t&&"length"in t&&t.length,i=w(t);return!b(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}E.fn=E.prototype={jquery:d,constructor:E,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=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(i){return this.pushStack(E.map(this,function(t,e){return i.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,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},E.extend=E.fn.extend=function(){var t,e,i,n,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||b(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(c&&n&&(E.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[e],o=s&&!Array.isArray(i)?[]:s||E.isPlainObject(i)?i:{},s=!1,r[e]=E.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},E.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==o.call(t))&&(!(e=n(t))||"function"==typeof(i=v.call(e,"constructor")&&e.constructor)&&r.call(i)===c)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){_(t,{nonce:e&&e.nonce})},each:function(t,e){var i,n=0;if(p(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(u,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(p(Object(t))?E.merge(i,"string"==typeof t?[t]:t):l.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!=r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,r=[];if(p(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&r.push(s);return g.apply([],r)},guid:1,support:y}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=e[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var f=function(i){function d(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320)}function s(){x()}var t,p,_,o,r,f,u,m,w,l,c,x,C,a,k,g,h,v,y,E="sizzle"+1*new Date,b=i.document,T=0,n=0,$=lt(),D=lt(),A=lt(),S=lt(),I=function(t,e){return t===e&&(c=!0),0},L={}.hasOwnProperty,e=[],O=e.pop,N=e.push,P=e.push,M=e.slice,B=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",U="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",j="\\["+F+"*("+U+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+F+"*\\]",R=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",W=new RegExp(F+"+","g"),z=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),q=new RegExp("^"+F+"*,"+F+"*"),Y=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),K=new RegExp(F+"|>"),V=new RegExp(R),G=new RegExp("^"+U+"$"),Q={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,nt=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),st=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"<EFBFBD>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(e=M.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){P={apply:e.length?function(t,e){N.apply(t,M.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(e,t,i,n){var s,o,r,a,l,c,h,d=t&&t.ownerDocument,u=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&((t?t.ownerDocument||t:b)!==C&&x(t),t=t||C,k)){if(11!==u&&(l=et.exec(e)))if(s=l[1]){if(9===u){if(!(r=t.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(d&&(r=d.getElementById(s))&&y(t,r)&&r.id===s)return i.push(r),i}else{if(l[2])return P.apply(i,t.getElementsByTagName(e)),i;if((s=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(s)),i}if(p.qsa&&!S[e+" "]&&(!g||!g.test(e))&&(1!==u||"object"!==t.nodeName.toLowerCase())){if(h=e,d=t,1===u&&K.test(e)){for((a=t.getAttribute("id"))?a=a.replace(st,ot):t.setAttribute("id",a=E),o=(c=f(e)).length;o--;)c[o]="#"+a+" "+bt(c[o]);h=c.join(","),d=it.test(e)&&vt(t.parentNode)||t}try{return P.apply(i,d.querySelectorAll(h)),i}catch(t){S(e,!0)}finally{a===E&&t.removeAttribute("id")}}}return m(e.replace(z,"$1"),t,i,n)}function lt(){var n=[];return function t(e,i){return n.push(e+" ")>_.cacheLength&&delete t[n.shift()],t[e+" "]=i}}function ct(t){return t[E]=!0,t}function ht(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var i=t.split("|"),n=i.length;n--;)_.attrHandle[i[n]]=e}function ut(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ft(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function mt(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&&rt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function gt(r){return ct(function(o){return o=+o,ct(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=at.support={},r=at.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!X.test(e||i&&i.nodeName||"HTML")},x=at.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:b;return n!==C&&9===n.nodeType&&n.documentElement&&(a=(C=n).documentElement,k=!r(C),b!==C&&(i=C.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",s,!1):i.attachEvent&&i.attachEvent("onunload",s)),p.attributes=ht(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=ht(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=tt.test(C.getElementsByClassName),p.getById=ht(function(t){return a.appendChild(t).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),p.getById?(_.filter.ID=function(t){var e=t.replace(nt,d);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i=e.getElementById(t);return i?[i]:[]}}):(_.filter.ID=function(t){var i=t.replace(nt,d);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),_.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},_.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},h=[],g=[],(p.qsa=tt.test(C.querySelectorAll))&&(ht(function(t){a.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+E+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||g.push(".#.+[+~]")}),ht(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=tt.test(v=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ht(function(t){p.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),h.push("!=",R)}),g=g.length&&new RegExp(g.join("|")),h=h.length&&new RegExp(h.join("|")),e=tt.test(a.compareDocumentPosition),y=e||tt.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},I=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===i?t===C||t.ownerDocument===b&&y(b,t)?-1:e===C||e.ownerDocument===b&&y(b,e)?1:l?B(l,t)-B(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===C?-1:e===C?1:s?-1:o?1:l?B(l,t)-B(l,e):0;if(s===o)return ut(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ut(r[n],a[n]):r[n]===b?-1:a[n]===b?1:0}),C},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&x(t),p.matchesSelector&&k&&!S[e+" "]&&(!h||!h.test(e))&&(!g||!g.test(e)))try{var i=v.call(t,e);if(i||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){S(e,!0)}return 0<at(e,C,null,[t]).length},at.contains=function(t,e){return(t.ownerDocument||t)!==C&&x(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==C&&x(t);var i=_.attrHandle[e.toLowerCase()],n=i&&L.call(_.attrHandle,e.toLowerCase())?i(t,e,!k):void 0;return void 0!==n?n:p.attributes||!k?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},at.escape=function(t){return(t+"").replace(st,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],n=0,s=0;if(c=!p.detectDuplicates,l=!p.sortStable&&t.slice(0),t.sort(I),c){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return l=null,t},o=at.getText=function(t){var e,i="",n=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)i+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(_=at.selectors={cacheLength:50,createPseudo:ct,match:Q,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(nt,d),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,d),"~="===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]||at.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]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=$[t+" "];return e||(e=new RegExp("(^|"+F+")"+t+"("+F+"|$)"))&&$(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=at.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1<e.indexOf(s):"$="===n?s&&e.slice(-s.length)===s:"~="===n?-1<(" "+e.replace(W," ")+" ").indexOf(s):"|="===n&&(e===s||e.slice(0,s.length+1)===s+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,i){var n,s,o,r,a,l,c=v!=y?"nextSibling":"previousSibling",h=t.parentNode,d=b&&t.nodeName.toLowerCase(),u=!i&&!b,p=!1;if(h){if(v){for(;c;){for(r=t;r=r[c];)if(b?r.nodeName.toLowerCase()===d:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?h.firstChild:h.lastChild],y&&u){for(p=(a=(n=(s=(o=(r=h)[E]||(r[E]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===T&&n[1])&&n[2],r=a&&h.childNodes[a];r=++a&&r&&r[c]||(p=a=0)||l.pop();)if(1===r.nodeType&&++p&&r===t){s[f]=[T,a,p];break}}else if(u&&(p=a=(n=(s=(o=(r=t)[E]||(r[E]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===T&&n[1]),!1===p)for(;(r=++a&&r&&r[c]||(p=a=0)||l.pop())&&((b?r.nodeName.toLowerCase()!==d:1!==r.nodeType)||!++p||(u&&((s=(o=r[E]||(r[E]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]=[T,p]),r!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[E]?r(o):1<r.length?(e=[t,t,"",o],_.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,e){for(var i,n=r(t,o),s=n.length;s--;)t[i=B(t,n[s])]=!(e[i]=n[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:ct(function(t){var n=[],s=[],a=u(t.replace(z,"$1"));return a[E]?ct(function(t,e,i,n){for(var s,o=a(t,null,n,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,e,i){return n[0]=t,a(n,null,i,s),n[0]=null,!s.pop()}}),has:ct(function(e){return function(t){return 0<at(e,t).length}}),contains:ct(function(e){return e=e.replace(nt,d),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:ct(function(i){return G.test(i||"")||at.error("unsupported lang: "+i),i=i.replace(nt,d).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!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 J.test(t.nodeName)},input:function(t){return Z.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:gt(function(){return[0]}),last:gt(function(t,e){return[e-1]}),eq:gt(function(t,e,i){return[i<0?i+e:i]}),even:gt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:gt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:gt(function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t}),gt:gt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=ft(t);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function _t(a,t,e){var l=t.dir,c=t.next,h=c||l,d=e&&"parentNode"===h,u=n++;return t.first?function(t,e,i){for(;t=t[l];)if(1===t.nodeType||d)return a(t,e,i);return!1}:function(t,e,i){var n,s,o,r=[T,u];if(i){for(;t=t[l];)if((1===t.nodeType||d)&&a(t,e,i))return!0}else for(;t=t[l];)if(1===t.nodeType||d)if(s=(o=t[E]||(t[E]={}))[t.uniqueID]||(o[t.uniqueID]={}),c&&c===t.nodeName.toLowerCase())t=t[l]||t;else{if((n=s[h])&&n[0]===T&&n[1]===u)return r[2]=n[2];if((s[h]=r)[2]=a(t,e,i))return!0}return!1}}function wt(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function xt(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function Ct(p,f,m,g,v,t){return g&&!g[E]&&(g=Ct(g)),v&&!v[E]&&(v=Ct(v,t)),ct(function(t,e,i,n){var s,o,r,a=[],l=[],c=e.length,h=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)at(t,e[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!t&&f?h:xt(h,a,p,i,n),u=m?v||(t?p:c||g)?[]:e:d;if(m&&m(d,u,i,n),g)for(s=xt(u,l),g(s,[],i,n),o=s.length;o--;)(r=s[o])&&(u[l[o]]=!(d[l[o]]=r));if(t){if(v||p){if(v){for(s=[],o=u.length;o--;)(r=u[o])&&s.push(d[o]=r);v(null,u=[],s,n)}for(o=u.length;o--;)(r=u[o])&&-1<(s=v?B(t,r):a[o])&&(t[s]=!(e[s]=r))}}else u=xt(u===e?u.splice(c,u.length):u),v?v(null,e,u,n):P.apply(e,u)})}function kt(t){for(var s,e,i,n=t.length,o=_.relative[t[0].type],r=o||_.relative[" "],a=o?1:0,l=_t(function(t){return t===s},r,!0),c=_t(function(t){return-1<B(s,t)},r,!0),h=[function(t,e,i){var n=!o&&(i||e!==w)||((s=e).nodeType?l(t,e,i):c(t,e,i));return s=null,n}];a<n;a++)if(e=_.relative[t[a].type])h=[_t(wt(h),e)];else{if((e=_.filter[t[a].type].apply(null,t[a].matches))[E]){for(i=++a;i<n&&!_.relative[t[i].type];i++);return Ct(1<a&&wt(h),1<a&&bt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(z,"$1"),e,a<i&&kt(t.slice(a,i)),i<n&&kt(t=t.slice(i)),i<n&&bt(t))}h.push(e)}return wt(h)}return yt.prototype=_.filters=_.pseudos,_.setFilters=new yt,f=at.tokenize=function(t,e){var i,n,s,o,r,a,l,c=D[t+" "];if(c)return e?0:c.slice(0);for(r=t,a=[],l=_.preFilter;r;){for(o in i&&!(n=q.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=Y.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(z," ")}),r=r.slice(i.length)),_.filter)!(n=Q[o].exec(r))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),r=r.slice(i.length));if(!i)break}return e?r.length:r?at.error(t):D(t,a).slice(0)},u=at.compile=function(t,e){var i,n=[],s=[],o=A[t+" "];if(!o){for(i=(e=e||f(t)).length;i--;)(o=kt(e[i]))[E]?n.push(o):s.push(o);(o=A(t,function(g,v){function t(t,e,i,n,s){var o,r,a,l=0,c="0",h=t&&[],d=[],u=w,p=t||b&&_.find.TAG("*",s),f=T+=null==u?1:Math.random()||.1,m=p.length;for(s&&(w=e===C||e||s);c!==m&&null!=(o=p[c]);c++){if(b&&o){for(r=0,e||o.ownerDocument===C||(x(o),i=!k);a=g[r++];)if(a(o,e||C,i)){n.push(o);break}s&&(T=f)}y&&((o=!a&&o)&&l--,t&&h.push(o))}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(h,d,e,i);if(t){if(0<l)for(;c--;)h[c]||d[c]||(d[c]=O.call(n));d=xt(d)}P.apply(n,d),s&&!t&&0<d.length&&1<l+v.length&&at.uniqueSort(n)}return s&&(T=f,w=u),h}var y=0<v.length,b=0<g.length;return y?ct(t):t}(s,n))).selector=t}return o},m=at.select=function(t,e,i,n){var s,o,r,a,l,c="function"==typeof t&&t,h=!n&&f(t=c.selector||t);if(i=i||[],1===h.length){if(2<(o=h[0]=h[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===e.nodeType&&k&&_.relative[o[1].type]){if(!(e=(_.find.ID(r.matches[0].replace(nt,d),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=Q.needsContext.test(t)?0:o.length;s--&&(r=o[s],!_.relative[a=r.type]);)if((l=_.find[a])&&(n=l(r.matches[0].replace(nt,d),it.test(o[0].type)&&vt(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&bt(o)))return P.apply(i,n),i;break}}return(c||u(t,h))(n,e,!k,i,!e||it.test(t)&&vt(e.parentNode)||e),i},p.sortStable=E.split("").sort(I).join("")===E,p.detectDuplicates=!!c,x(),p.sortDetached=ht(function(t){return 1&t.compareDocumentPosition(C.createElement("fieldset"))}),ht(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&ht(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ht(function(t){return null==t.getAttribute("disabled")})||dt(H,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),at}(C);E.find=f,E.expr=f.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=f.uniqueSort,E.text=f.getText,E.isXMLDoc=f.isXML,E.contains=f.contains,E.escapeSelector=f.escape;function x(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&E(t).is(i))break;n.push(t)}return n}function T(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var $=E.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(t,i,n){return b(i)?E.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?E.grep(t,function(t){return t===i!==n}):"string"!=typeof i?E.grep(t,function(t){return-1<s.call(i,t)!==n}):E.filter(i,t,n)}E.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?E.find.matchesSelector(n,t)?[n]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<n;e++)if(E.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)E.find(t,s[e],i);return 1<n?E.uniqueSort(i):i},filter:function(t){return this.pushStack(S(this,t||[],!1))},not:function(t){return this.pushStack(S(this,t||[],!0))},is:function(t){return!!S(this,"string"==typeof t&&$.test(t)?E(t):t||[],!1).length}});var I,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||I,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==i.ready?i.ready(t):t(E):E.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:L.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),A.test(n[1])&&E.isPlainObject(e))for(n in e)b(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=k.getElementById(n[2]))&&(this[0]=s,this.length=1),this}).prototype=E.fn,I=E(k);var O=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&E(t);if(!$.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&E.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(E(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(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return x(t,"parentNode")},parentsUntil:function(t,e,i){return x(t,"parentNode",i)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return x(t,"nextSibling")},prevAll:function(t){return x(t,"previousSibling")},nextUntil:function(t,e,i){return x(t,"nextSibling",i)},prevUntil:function(t,e,i){return x(t,"previousSibling",i)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(D(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(n,s){E.fn[n]=function(t,e){var i=E.map(this,s,t);return"Until"!==n.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=E.filter(e,i)),1<this.length&&(N[n]||E.uniqueSort(i),O.test(n)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function B(t){return t}function H(t){throw t}function F(t,e,i,n){var s;try{t&&b(s=t.promise)?s.call(t).done(e).fail(i):t&&b(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}E.Callbacks=function(n){n="string"==typeof n?function(t){var i={};return E.each(t.match(M)||[],function(t,e){i[e]=!0}),i}(n):E.extend({},n);function i(){for(o=o||n.once,e=s=!0;a.length;l=-1)for(t=a.shift();++l<r.length;)!1===r[l].apply(t[0],t[1])&&n.stopOnFalse&&(l=r.length,t=!1);n.memory||(t=!1),s=!1,o&&(r=t?[]:"")}var s,t,e,o,r=[],a=[],l=-1,c={add:function(){return r&&(t&&!s&&(l=r.length-1,a.push(t)),function i(t){E.each(t,function(t,e){b(e)?n.unique&&c.has(e)||r.push(e):e&&e.length&&"string"!==w(e)&&i(e)})}(arguments),t&&!s&&i()),this},remove:function(){return E.each(arguments,function(t,e){for(var i;-1<(i=E.inArray(e,r,i));)r.splice(i,1),i<=l&&l--}),this},has:function(t){return t?-1<E.inArray(t,r):0<r.length},empty:function(){return r=r&&[],this},disable:function(){return o=a=[],r=t="",this},disabled:function(){return!r},lock:function(){return o=a=[],t||s||(r=t=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),s||i()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!e}};return c},E.extend({Deferred:function(t){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.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 E.Deferred(function(n){E.each(o,function(t,e){var i=b(s[e[4]])&&s[e[4]];a[e[1]](function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),s=null}).promise()},then:function(e,i,n){var l=0;function c(s,o,r,a){return function(){function t(){var t,e;if(!(s<l)){if((t=r.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?a?e.call(t,c(l,o,B,a),c(l,o,H,a)):(l++,e.call(t,c(l,o,B,a),c(l,o,H,a),c(l,o,B,o.notifyWith))):(r!==B&&(i=void 0,n=[t]),(a||o.resolveWith)(i,n))}}var i=this,n=arguments,e=a?t:function(){try{t()}catch(t){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(t,e.stackTrace),l<=s+1&&(r!==H&&(i=void 0,n=[t]),o.rejectWith(i,n))}};s?e():(E.Deferred.getStackHook&&(e.stackTrace=E.Deferred.getStackHook()),C.setTimeout(e))}}return E.Deferred(function(t){o[0][3].add(c(0,t,b(n)?n:B,t.notifyWith)),o[1][3].add(c(0,t,b(e)?e:B)),o[2][3].add(c(0,t,b(i)?i:H))}).promise()},promise:function(t){return null!=t?E.extend(t,r):r}},a={};return E.each(o,function(t,e){var i=e[2],n=e[5];r[e[1]]=i.add,n&&i.add(function(){s=n},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),i.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=i.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){s[e]=this,o[e]=1<arguments.length?a.call(arguments):t,--i||r.resolveWith(s,o)}}var i=arguments.length,n=i,s=Array(n),o=a.call(arguments),r=E.Deferred();if(i<=1&&(F(t,r.done(e(n)).resolve,r.reject,!i),"pending"===r.state()||b(o[n]&&o[n].then)))return r.then();for(;n--;)F(o[n],e(n),r.reject);return r.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){C.console&&C.console.warn&&t&&U.test(t.name)&&C.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){C.setTimeout(function(){throw t})};var j=E.Deferred();function R(){k.removeEventListener("DOMContentLoaded",R),C.removeEventListener("load",R),E.ready()}E.fn.ready=function(t){return j.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0)!==t&&0<--E.readyWait||j.resolveWith(k,[E])}}),E.ready.then=j.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?C.setTimeout(E.ready):(k.addEventListener("DOMContentLoaded",R),C.addEventListener("load",R));function W(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===w(i))for(a in s=!0,i)W(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,b(n)||(r=!0),c&&(e=r?(e.call(t,n),null):(c=e,function(t,e,i){return c.call(E(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):o}var z=/^-ms-/,q=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function K(t){return t.replace(z,"ms-").replace(q,Y)}function V(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function G(){this.expando=E.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[K(e)]=i;else for(n in e)s[K(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][K(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(K):(e=K(e))in n?[e]:e.match(M)||[]).length;for(;i--;)delete n[e[i]]}void 0!==e&&!E.isEmptyObject(n)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var Q=new G,X=new G,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function tt(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(i)}catch(t){}X.set(t,e,i)}else i=void 0;return i}E.extend({hasData:function(t){return X.hasData(t)||Q.hasData(t)},data:function(t,e,i){return X.access(t,e,i)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,i){return Q.access(t,e,i)},_removeData:function(t,e){Q.remove(t,e)}}),E.fn.extend({data:function(i,t){var e,n,s,o=this[0],r=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){X.set(this,i)}):W(this,function(t){var e;if(o&&void 0===t)return void 0!==(e=X.get(o,i))?e:void 0!==(e=tt(o,i))?e:void 0;this.each(function(){X.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=X.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(e=r.length;e--;)r[e]&&0===(n=r[e].name).indexOf("data-")&&(n=K(n.slice(5)),tt(o,n,s[n]));Q.set(o,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){X.remove(this,t)})}}),E.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Q.get(t,e),i&&(!n||Array.isArray(i)?n=Q.access(t,e,E.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=E.queue(t,e),n=i.length,s=i.shift(),o=E._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){E.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Q.get(t,i)||Q.access(t,i,{empty:E.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",i])})})}}),E.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===i?this:this.each(function(){var t=E.queue(this,e,i);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--s||o.resolveWith(r,[r])}var n,s=1,o=E.Deferred(),r=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Q.get(r[a],t+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),o.promise(e)}});var et=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+et+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],st=k.documentElement,ot=function(t){return E.contains(t.ownerDocument,t)},rt={composed:!0};st.getRootNode&&(ot=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});function at(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s}var lt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ot(t)&&"none"===E.css(t,"display")};function ct(t,e,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return E.css(t,e,"")},l=a(),c=i&&i[3]||(E.cssNumber[e]?"":"px"),h=t.nodeType&&(E.cssNumber[e]||"px"!==c&&+l)&&it.exec(E.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;r--;)E.style(t,e,h+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),h/=o;h*=2,E.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var ht={};function dt(t,e){for(var i,n,s,o,r,a,l,c=[],h=0,d=t.length;h<d;h++)(n=t[h]).style&&(i=n.style.display,e?("none"===i&&(c[h]=Q.get(n,"display")||null,c[h]||(n.style.display="")),""===n.style.display&&lt(n)&&(c[h]=(l=r=o=void 0,r=(s=n).ownerDocument,a=s.nodeName,(l=ht[a])||(o=r.body.appendChild(r.createElement(a)),l=E.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ht[a]=l)))):"none"!==i&&(c[h]="none",Q.set(n,"display",i)));for(h=0;h<d;h++)null!=c[h]&&(t[h].style.display=c[h]);return t}E.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){lt(this)?E(this).show():E(this).hide()})}});var ut=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i,mt={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 gt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?E.merge([t],i):i}function vt(t,e){for(var i=0,n=t.length;i<n;i++)Q.set(t[i],"globalEval",!e||Q.get(e[i],"globalEval"))}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var yt,bt,_t=/<|&#?\w+;/;function wt(t,e,i,n,s){for(var o,r,a,l,c,h,d=e.createDocumentFragment(),u=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===w(o))E.merge(u,o.nodeType?[o]:o);else if(_t.test(o)){for(r=r||d.appendChild(e.createElement("div")),a=(pt.exec(o)||["",""])[1].toLowerCase(),l=mt[a]||mt._default,r.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;E.merge(u,r.childNodes),(r=d.firstChild).textContent=""}else u.push(e.createTextNode(o));for(d.textContent="",p=0;o=u[p++];)if(n&&-1<E.inArray(o,n))s&&s.push(o);else if(c=ot(o),r=gt(d.appendChild(o),"script"),c&&vt(r),i)for(h=0;o=r[h++];)ft.test(o.type||"")&&i.push(o);return d}yt=k.createDocumentFragment().appendChild(k.createElement("div")),(bt=k.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),yt.appendChild(bt),y.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked,yt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue;var xt=/^key/,Ct=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kt=/^([^.]*)(?:\.(.+)|)/;function Et(){return!0}function Tt(){return!1}function $t(t,e){return t===function(){try{return k.activeElement}catch(t){}}()==("focus"===e)}function Dt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Dt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Tt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return E().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=E.guid++)),t.each(function(){E.event.add(this,e,s,n,i)})}function At(t,s,o){o?(Q.set(t,s,!1),E.event.add(t,s,{namespace:!1,handler:function(t){var e,i,n=Q.get(this,s);if(1&t.isTrigger&&this[s]){if(n.length)(E.event.special[s]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),Q.set(this,s,n),e=o(this,s),this[s](),n!==(i=Q.get(this,s))||e?Q.set(this,s,!1):i={},n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else n.length&&(Q.set(this,s,{value:E.event.trigger(E.extend(n[0],E.Event.prototype),n.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,s)&&E.event.add(t,s,Et)}E.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,c,h,d,u,p,f,m,g=Q.get(e);if(g)for(i.handler&&(i=(o=i).handler,s=o.selector),s&&E.find.matchesSelector(st,s),i.guid||(i.guid=E.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(M)||[""]).length;c--;)p=m=(a=kt.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=E.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=E.event.special[p]||{},h=E.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&E.expr.match.needsContext.test(s),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),d.add&&(d.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,h):u.push(h),E.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,h,d,u,p,f,m,g=Q.hasData(t)&&Q.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(M)||[""]).length;c--;)if(p=m=(a=kt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=E.event.special[p]||{},u=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)h=u[o],!s&&m!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(u.splice(o,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));r&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||E.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)E.event.remove(t,p+e[c],i,n,!0);E.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=E.event.fix(t),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[a.type]||[],h=E.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=E.event.handlers.call(this,a,c),e=0;(s=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(n=((E.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,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={},i=0;i<l;i++)void 0===r[s=(n=e[i]).selector+" "]&&(r[s]=n.needsContext?-1<E(s,this).index(c):E.find(s,this,null,[c]).length),r[s]&&o.push(n);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(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(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[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ut.test(e.type)&&e.click&&D(e,"input")&&At(e,"click",Et),!1},trigger:function(t){var e=this||t;return ut.test(e.type)&&e.click&&D(e,"input")&&At(e,"click"),!0},_default:function(t){var e=t.target;return ut.test(e.type)&&e.click&&D(e,"input")&&Q.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Et:Tt,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&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Et,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Et,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Et,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.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,code:!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&&xt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Ct.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return At(this,t,$t),!1},trigger:function(){return At(this,t),!0},delegateType:e}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){E.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||E.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),E.fn.extend({on:function(t,e,i,n){return Dt(this,t,e,i,n)},one:function(t,e,i,n){return Dt(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,E(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Tt),this.each(function(){E.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s]);return this}});var St=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,It=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Nt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Bt(t,e){var i,n,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(i=0,n=c[s].length;i<n;i++)E.event.add(e,s,c[s][i]);X.hasData(t)&&(a=X.access(t),l=E.extend({},a),X.set(e,l))}}function Ht(i,n,s,o){n=g.apply([],n);var t,e,r,a,l,c,h=0,d=i.length,u=d-1,p=n[0],f=b(p);if(f||1<d&&"string"==typeof p&&!y.checkClone&&Lt.test(p))return i.each(function(t){var e=i.eq(t);f&&(n[0]=p.call(this,t,e.html())),Ht(e,n,s,o)});if(d&&(e=(t=wt(n,i[0].ownerDocument,!1,i,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(a=(r=E.map(gt(t,"script"),Pt)).length;h<d;h++)l=t,h!==u&&(l=E.clone(l,!0,!0),a&&E.merge(r,gt(l,"script"))),s.call(i[h],l,h);if(a)for(c=r[r.length-1].ownerDocument,E.map(r,Mt),h=0;h<a;h++)l=r[h],ft.test(l.type||"")&&!Q.access(l,"globalEval")&&E.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?E._evalUrl&&!l.noModule&&E._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):_(l.textContent.replace(Ot,""),l,c))}return i}function Ft(t,e,i){for(var n,s=e?E.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||E.cleanData(gt(n)),n.parentNode&&(i&&ot(n)&&vt(gt(n,"script")),n.parentNode.removeChild(n));return t}E.extend({htmlPrefilter:function(t){return t.replace(St,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a,l,c,h=t.cloneNode(!0),d=ot(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(r=gt(h),n=0,s=(o=gt(t)).length;n<s;n++)a=o[n],l=r[n],void 0,"input"===(c=l.nodeName.toLowerCase())&&ut.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(o=o||gt(t),r=r||gt(h),n=0,s=o.length;n<s;n++)Bt(o[n],r[n]);else Bt(t,h);return 0<(r=gt(h,"script")).length&&vt(r,!d&&gt(t,"script")),h},cleanData:function(t){for(var e,i,n,s=E.event.special,o=0;void 0!==(i=t[o]);o++)if(V(i)){if(e=i[Q.expando]){if(e.events)for(n in e.events)s[n]?E.event.remove(i,n):E.removeEvent(i,n,e.handle);i[Q.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return W(this,function(t){return void 0===t?E.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 Ht(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Nt(this,t).appendChild(t)})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Nt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(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&&(E.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!mt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(E.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Ht(this,arguments,function(t){var e=this.parentNode;E.inArray(this,i)<0&&(E.cleanData(gt(this)),e&&e.replaceChild(t,this))},i)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){E.fn[t]=function(t){for(var e,i=[],n=E(t),s=n.length-1,o=0;o<=s;o++)e=o===s?this:this.clone(!0),E(n[o])[r](e),l.apply(i,e.get());return this.pushStack(i)}});var Ut,jt,Rt,Wt,zt,qt,Yt,Kt=new RegExp("^("+et+")(?!px)[a-z%]+$","i"),Vt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=C),e.getComputedStyle(t)},Gt=new RegExp(nt.join("|"),"i");function Qt(){if(Yt){qt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Yt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(qt).appendChild(Yt);var t=C.getComputedStyle(Yt);Ut="1%"!==t.top,zt=12===Xt(t.marginLeft),Yt.style.right="60%",Wt=36===Xt(t.right),jt=36===Xt(t.width),Yt.style.position="absolute",Rt=12===Xt(Yt.offsetWidth/3),st.removeChild(qt),Yt=null}}function Xt(t){return Math.round(parseFloat(t))}function Zt(t,e,i){var n,s,o,r,a=t.style;return(i=i||Vt(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||ot(t)||(r=E.style(t,e)),!y.pixelBoxStyles()&&Kt.test(r)&&Gt.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function Jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}qt=k.createElement("div"),(Yt=k.createElement("div")).style&&(Yt.style.backgroundClip="content-box",Yt.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Yt.style.backgroundClip,E.extend(y,{boxSizingReliable:function(){return Qt(),jt},pixelBoxStyles:function(){return Qt(),Wt},pixelPosition:function(){return Qt(),Ut},reliableMarginLeft:function(){return Qt(),zt},scrollboxSize:function(){return Qt(),Rt}}));var te=["Webkit","Moz","ms"],ee=k.createElement("div").style,ie={};function ne(t){var e=E.cssProps[t]||ie[t];return e||(t in ee?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=te.length;i--;)if((t=te[i]+e)in ee)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe=/^--/,re={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,i){var n=it.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ce(t,e,i,n,s,o){var r="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=E.css(t,i+nt[r],!0,s)),n?("content"===i&&(l-=E.css(t,"padding"+nt[r],!0,s)),"margin"!==i&&(l-=E.css(t,"border"+nt[r]+"Width",!0,s))):(l+=E.css(t,"padding"+nt[r],!0,s),"padding"!==i?l+=E.css(t,"border"+nt[r]+"Width",!0,s):a+=E.css(t,"border"+nt[r]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function he(t,e,i){var n=Vt(t),s=(!y.boxSizingReliable()||i)&&"border-box"===E.css(t,"boxSizing",!1,n),o=s,r=Zt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(r)){if(!i)return r;r="auto"}return(!y.boxSizingReliable()&&s||"auto"===r||!parseFloat(r)&&"inline"===E.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===E.css(t,"boxSizing",!1,n),(o=a in t)&&(r=t[a])),(r=parseFloat(r)||0)+ce(t,e,i||(s?"border":"content"),o,n,r)+"px"}function de(t,e,i,n,s){return new de.prototype.init(t,e,i,n,s)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=K(e),l=oe.test(e),c=t.style;if(l||(e=ne(a)),r=E.cssHooks[e]||E.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:c[e];"string"===(o=typeof i)&&(s=it.exec(i))&&s[1]&&(i=ct(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(E.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var s,o,r,a=K(e);return oe.test(e)||(e=ne(a)),(r=E.cssHooks[e]||E.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Zt(t,e,n)),"normal"===s&&e in ae&&(s=ae[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),E.each(["height","width"],function(t,l){E.cssHooks[l]={get:function(t,e,i){if(e)return!se.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,l,i):at(t,re,function(){return he(t,l,i)})},set:function(t,e,i){var n,s=Vt(t),o=!y.scrollboxSize()&&"absolute"===s.position,r=(o||i)&&"border-box"===E.css(t,"boxSizing",!1,s),a=i?ce(t,l,i,r,s):0;return r&&o&&(a-=Math.ceil(t["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(s[l])-ce(t,l,"border",!1,s)-.5)),a&&(n=it.exec(e))&&"px"!==(n[3]||"px")&&(t.style[l]=e,e=E.css(t,l)),le(0,e,a)}}}),E.cssHooks.marginLeft=Jt(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-at(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(s,o){E.cssHooks[s+o]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+nt[e]+o]=n[e]||n[e-2]||n[0];return i}},"margin"!==s&&(E.cssHooks[s+o].set=le)}),E.fn.extend({css:function(t,e){return W(this,function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=Vt(t),s=e.length;r<s;r++)o[e[r]]=E.css(t,e[r],!1,n);return o}return void 0!==i?E.style(t,e,i):E.css(t,e)},t,e,1<arguments.length)}}),((E.Tween=de).prototype={constructor:de,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(E.cssNumber[i]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,i=de.propHooks[this.prop];return this.options.duration?this.pos=e=E.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),i&&i.set?i.set(this):de.propHooks._default.set(this),this}}).init.prototype=de.prototype,(de.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=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[ne(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=de.prototype.init,E.fx.step={};var ue,pe,fe,me,ge=/^(?:toggle|show|hide)$/,ve=/queueHooks$/;function ye(){pe&&(!1===k.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ye):C.setTimeout(ye,E.fx.interval),E.fx.tick())}function be(){return C.setTimeout(function(){ue=void 0}),ue=Date.now()}function _e(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=nt[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function we(t,e,i){for(var n,s=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function xe(o,t,e){var i,r,n=0,s=xe.prefilters.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=ue||be(),e=Math.max(0,c.startTime+c.duration-t),i=1-(e/c.duration||0),n=0,s=c.tweens.length;n<s;n++)c.tweens[n].run(i);return a.notifyWith(o,[c,i,e]),i<1&&s?e:(s||a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:t,originalOptions:e,startTime:ue||be(),duration:e.duration,tweens:[],createTween:function(t,e){var i=E.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var e=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;e<i;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 i,n,s,o,r;for(i in t)if(s=e[n=K(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=E.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(h,c.opts.specialEasing);n<s;n++)if(i=xe.prefilters[n].call(c,o,h,c.opts))return b(i.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return E.map(h,we,c),b(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),E.fx.timer(E.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(xe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ct(i.elem,t,it.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,s=(t=b(t)?(e=t,["*"]):t.match(M)).length;n<s;n++)i=t[n],xe.tweeners[i]=xe.tweeners[i]||[],xe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,c,h,d="width"in e||"height"in e,u=this,p={},f=t.style,m=t.nodeType&&lt(t),g=Q.get(t,"fxshow");for(n in i.queue||(null==(r=E._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,E.queue(t,"fx").length||r.empty.fire()})})),e)if(s=e[n],ge.test(s)){if(delete e[n],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||E.style(t,n)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(p))for(n in d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Q.get(t,"display")),"none"===(h=E.css(t,"display"))&&(c?h=c:(dt([t],!0),c=t.style.display||c,h=E.css(t,"display"),dt([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===E.css(t,"float")&&(l||(u.done(function(){f.display=c}),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Q.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&&dt([t],!0),u.done(function(){for(n in m||dt([t]),Q.remove(t,"fxshow"),p)E.style(t,n,p[n])})),l=we(m?g[n]:0,n,u),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),E.speed=function(t,e,i){var n=t&&"object"==typeof t?E.extend({},t):{complete:i||!i&&e||b(t)&&t,duration:t,easing:i&&e||e&&!b(e)&&e};return E.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in E.fx.speeds?n.duration=E.fx.speeds[n.duration]:n.duration=E.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&E.dequeue(this,n.queue)},n},E.fn.extend({fadeTo:function(t,e,i,n){return this.filter(lt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){function s(){var t=xe(this,E.extend({},e),r);(o||Q.get(this,"finish"))&&t.stop(!0)}var o=E.isEmptyObject(e),r=E.speed(t,i,n);return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(s,t,o){function r(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",i=E.timers,n=Q.get(this);if(e)n[e]&&n[e].stop&&r(n[e]);else for(e in n)n[e]&&n[e].stop&&ve.test(e)&&r(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||E.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=Q.get(this),i=e[r+"queue"],n=e[r+"queueHooks"],s=E.timers,o=i?i.length:0;for(e.finish=!0,E.queue(this,r,[]),n&&n.stop&&n.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++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,n){var s=E.fn[n];E.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(_e(n,!0),t,e,i)}}),E.each({slideDown:_e("show"),slideUp:_e("hide"),slideToggle:_e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){E.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),E.timers=[],E.fx.tick=function(){var t,e=0,i=E.timers;for(ue=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||E.fx.stop(),ue=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){pe||(pe=!0,ye())},E.fx.stop=function(){pe=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(n,t){return n=E.fx&&E.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,e){var i=C.setTimeout(t,n);e.stop=function(){C.clearTimeout(i)}})},fe=k.createElement("input"),me=k.createElement("select").appendChild(k.createElement("option")),fe.type="checkbox",y.checkOn=""!==fe.value,y.optSelected=me.selected,(fe=k.createElement("input")).value="t",fe.type="radio",y.radioValue="t"===fe.value;var Ce,ke=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return W(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,i):(1===o&&E.isXMLDoc(t)||(s=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?Ce:void 0)),void 0!==i?null===i?void E.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=E.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(M);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),Ce={set:function(t,e,i){return!1===e?E.removeAttr(t,i):t.setAttribute(i,i),i}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var r=ke[e]||E.find.attr;ke[e]=function(t,e,i){var n,s,o=e.toLowerCase();return i||(s=ke[o],ke[o]=n,n=null!=r(t,e,i)?o:null,ke[o]=s),n}});var Ee=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function $e(t){return(t.match(M)||[]).join(" ")}function De(t){return t.getAttribute&&t.getAttribute("class")||""}function Ae(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}E.fn.extend({prop:function(t,e){return W(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,s=E.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,i,n,s,o,r,a,l=0;if(b(e))return this.each(function(t){E(this).addClass(e.call(this,t,De(this)))});if((t=Ae(e)).length)for(;i=this[l++];)if(s=De(i),n=1===i.nodeType&&" "+$e(s)+" "){for(r=0;o=t[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=$e(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,s,o,r,a,l=0;if(b(e))return this.each(function(t){E(this).removeClass(e.call(this,t,De(this)))});if(!arguments.length)return this.attr("class","");if((t=Ae(e)).length)for(;i=this[l++];)if(s=De(i),n=1===i.nodeType&&" "+$e(s)+" "){for(r=0;o=t[r++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");s!==(a=$e(n))&&i.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):b(s)?this.each(function(t){E(this).toggleClass(s.call(this,t,De(this),e),e)}):this.each(function(){var t,e,i,n;if(r)for(e=0,i=E(this),n=Ae(s);t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==s&&"boolean"!=o||((t=De(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===s?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+$e(De(i))+" ").indexOf(e))return!0;return!1}});var Se=/\r/g;E.fn.extend({val:function(i){var n,t,s,e=this[0];return arguments.length?(s=b(i),this.each(function(t){var e;1===this.nodeType&&(null==(e=s?i.call(this,t,E(this).val()):i)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=E.map(e,function(t){return null==t?"":t+""})),(n=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):e?(n=E.valHooks[e.type]||E.valHooks[e.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(Se,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:$e(E.text(t))}},select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n<l;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=E(i).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var i,n,s=t.options,o=E.makeArray(e),r=s.length;r--;)((n=s[r]).selected=-1<E.inArray(E.valHooks.option.get(n),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<E.inArray(E(t).val(),e)}},y.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in C;function Ie(t){t.stopPropagation()}var Le=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(t,e,i,n){var s,o,r,a,l,c,h,d,u=[i||k],p=v.call(t,"type")?t.type:t,f=v.call(t,"namespace")?t.namespace.split("."):[];if(o=d=r=i=i||k,3!==i.nodeType&&8!==i.nodeType&&!Le.test(p+E.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),l=p.indexOf(":")<0&&"on"+p,(t=t[E.expando]?t:new E.Event(p,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:E.makeArray(e,[t]),h=E.event.special[p]||{},n||!h.trigger||!1!==h.trigger.apply(i,e))){if(!n&&!h.noBubble&&!m(i)){for(a=h.delegateType||p,Le.test(a+p)||(o=o.parentNode);o;o=o.parentNode)u.push(o),r=o;r===(i.ownerDocument||k)&&u.push(r.defaultView||r.parentWindow||C)}for(s=0;(o=u[s++])&&!t.isPropagationStopped();)d=o,t.type=1<s?a:h.bindType||p,(c=(Q.get(o,"events")||{})[t.type]&&Q.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&V(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=p,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(u.pop(),e)||!V(i)||l&&b(i[p])&&!m(i)&&((r=i[l])&&(i[l]=null),E.event.triggered=p,t.isPropagationStopped()&&d.addEventListener(p,Ie),i[p](),t.isPropagationStopped()&&d.removeEventListener(p,Ie),E.event.triggered=void 0,r&&(i[l]=r)),t.result}},simulate:function(t,e,i){var n=E.extend(new E.Event,i,{type:t,isSimulated:!0});E.event.trigger(n,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return E.event.trigger(t,e,i,!0)}}),y.focusin||E.each({focus:"focusin",blur:"focusout"},function(i,n){function s(t){E.event.simulate(n,t.target,E.event.fix(t))}E.event.special[n]={setup:function(){var t=this.ownerDocument||this,e=Q.access(t,n);e||t.addEventListener(i,s,!0),Q.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Q.access(t,n)-1;e?Q.access(t,n,e):(t.removeEventListener(i,s,!0),Q.remove(t,n))}}});var Oe=C.location,Ne=Date.now(),Pe=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new C.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var Me=/\[\]$/,Be=/\r?\n/g,He=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Ue(i,t,n,s){var e;if(Array.isArray(t))E.each(t,function(t,e){n||Me.test(i)?s(i,e):Ue(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,s)});else if(n||"object"!==w(t))s(i,t);else for(e in t)Ue(i+"["+e+"]",t[e],n,s)}E.param=function(t,e){function i(t,e){var i=b(e)?e():e;s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)}var n,s=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){i(this.name,this.value)});else for(n in t)Ue(n,t[n],e,i);return s.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Fe.test(this.nodeName)&&!He.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var i=E(this).val();return null==i?null:Array.isArray(i)?E.map(i,function(t){return{name:e.name,value:t.replace(Be,"\r\n")}}):{name:e.name,value:i.replace(Be,"\r\n")}}).get()}});var je=/%20/g,Re=/#.*$/,We=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,Ye=/^\/\//,Ke={},Ve={},Ge="*/".concat("*"),Qe=k.createElement("a");function Xe(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(M)||[];if(b(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function Ze(e,s,o,r){var a={},l=e===Ve;function c(t){var n;return a[t]=!0,E.each(e[t]||[],function(t,e){var i=e(s,o,r);return"string"!=typeof i||l||a[i]?l?!(n=i):void 0:(s.dataTypes.unshift(i),c(i),!1)}),n}return c(s.dataTypes[0])||!a["*"]&&c("*")}function Je(t,e){var i,n,s=E.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n=n||{})[i]=e[i]);return n&&E.extend(!0,t,n),t}Qe.href=Oe.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,E.ajaxSettings),e):Je(E.ajaxSettings,t)},ajaxPrefilter:Xe(Ke),ajaxTransport:Xe(Ve),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var h,d,u,i,p,n,f,m,s,o,g=E.ajaxSetup({},e),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?E(v):E.event,b=E.Deferred(),_=E.Callbacks("once memory"),w=g.statusCode||{},r={},a={},l="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(f){if(!i)for(i={};e=ze.exec(u);)i[e[1].toLowerCase()+" "]=(i[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=i[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return f?u:null},setRequestHeader:function(t,e){return null==f&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==f&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(f)x.always(t[x.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(x),g.url=((t||g.url||Oe.href)+"").replace(Ye,Oe.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(M)||[""],null==g.crossDomain){n=k.createElement("a");try{n.href=g.url,n.href=n.href,g.crossDomain=Qe.protocol+"//"+Qe.host!=n.protocol+"//"+n.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=E.param(g.data,g.traditional)),Ze(Ke,g,e,x),f)return x;for(s in(m=E.event&&g.global)&&0==E.active++&&E.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!qe.test(g.type),d=g.url.replace(Re,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(je,"+")):(o=g.url.slice(d.length),g.data&&(g.processData||"string"==typeof g.data)&&(d+=(Pe.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(d=d.replace(We,"$1"),o=(Pe.test(d)?"&":"?")+"_="+Ne+++o),g.url=d+o),g.ifModified&&(E.lastModified[d]&&x.setRequestHeader("If-Modified-Since",E.lastModified[d]),E.etag[d]&&x.setRequestHeader("If-None-Match",E.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&x.setRequestHeader("Content-Type",g.contentType),x.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Ge+"; q=0.01":""):g.accepts["*"]),g.headers)x.setRequestHeader(s,g.headers[s]);if(g.beforeSend&&(!1===g.beforeSend.call(v,x,g)||f))return x.abort();if(l="abort",_.add(g.complete),x.done(g.success),x.fail(g.error),h=Ze(Ve,g,e,x)){if(x.readyState=1,m&&y.trigger("ajaxSend",[x,g]),f)return x;g.async&&0<g.timeout&&(p=C.setTimeout(function(){x.abort("timeout")},g.timeout));try{f=!1,h.send(r,c)}catch(t){if(f)throw t;c(-1,t)}}else c(-1,"No Transport");function c(t,e,i,n){var s,o,r,a,l,c=e;f||(f=!0,p&&C.clearTimeout(p),h=void 0,u=n||"",x.readyState=0<t?4:0,s=200<=t&&t<300||304===t,i&&(a=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){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),i[o]}(g,x,i)),a=function(t,e,i,n){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]&&(i[t.responseFields[o]]=e),!l&&n&&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,x,s),s?(g.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(E.lastModified[d]=l),(l=x.getResponseHeader("etag"))&&(E.etag[d]=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))),x.status=t,x.statusText=(e||c)+"",s?b.resolveWith(v,[o,c,x]):b.rejectWith(v,[x,c,r]),x.statusCode(w),w=void 0,m&&y.trigger(s?"ajaxSuccess":"ajaxError",[x,g,s?o:r]),_.fireWith(v,[x,c]),m&&(y.trigger("ajaxComplete",[x,g]),--E.active||E.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,i){return E.get(t,e,i,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,s){E[s]=function(t,e,i,n){return b(e)&&(n=n||i,i=e,e=void 0),E.ajax(E.extend({url:t,type:s,dataType:n,data:e,success:i},E.isPlainObject(t)&&t))}}),E._evalUrl=function(t,e){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=E(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(i){return b(i)?this.each(function(t){E(this).wrapInner(i.call(this,t))}):this.each(function(){var t=E(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=b(e);return this.each(function(t){E(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(t){}};var ti={0:200,1223:204},ei=E.ajaxSettings.xhr();y.cors=!!ei&&"withCredentials"in ei,y.ajax=ei=!!ei,E.ajaxTransport(function(s){var o,r;if(y.cors||ei&&!s.crossDomain)return{send:function(t,e){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);o=function(t){return function(){o&&(o=r=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(ti[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),r=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&C.setTimeout(function(){o&&r()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.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 E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(i){var n,s;if(i.crossDomain||i.scriptAttrs)return{send:function(t,e){n=E("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var ii,ni=[],si=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ni.pop()||E.expando+"_"+Ne++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(si.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&si.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(si,"$1"+n):!1!==t.jsonp&&(t.url+=(Pe.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||E.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=C[n],C[n]=function(){o=arguments},i.always(function(){void 0===s?E(C).removeProp(n):C[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,ni.push(n)),o&&b(s)&&s(o[0]),o=s=void 0}),"script"}),y.createHTMLDocument=((ii=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ii.childNodes.length),E.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(y.createHTMLDocument?((n=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(n)):e=k),o=!i&&[],(s=A.exec(t))?[e.createElement(s[1])]:(s=wt([t],e,o),o&&o.length&&E(o).remove(),E.merge([],s.childNodes)));var n,s,o},E.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return-1<a&&(n=$e(t.slice(a)),t=t.slice(0,a)),b(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<r.length&&E.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?E("<div>").append(E.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=E.css(t,"position"),h=E(t),d={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=E.css(t,"top"),l=E.css(t,"left"),s=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(n=h.position()).top,n.left):(r=parseFloat(o)||0,parseFloat(l)||0),b(e)&&(e=e.call(t,i,E.extend({},a))),null!=e.top&&(d.top=e.top-a.top+r),null!=e.left&&(d.left=e.left-a.left+s),"using"in e?e.using.call(t,d):h.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===E.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),s.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-E.css(n,"marginTop",!0),left:e.left-s.left-E.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||st})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;E.fn[e]=function(t){return W(this,function(t,e,i){var n;if(m(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i)return n?n[s]:t[e];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),E.each(["top","left"],function(t,i){E.cssHooks[i]=Jt(y.pixelPosition,function(t,e){if(e)return e=Zt(t,i),Kt.test(e)?E(t).position()[i]+"px":e})}),E.each({Height:"height",Width:"width"},function(r,a){E.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){E.fn[o]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return W(this,function(t,e,i){var n;return m(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+r],n["scroll"+r],t.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?E.css(t,e,s):E.style(t,e,i,s)},a,i?t:void 0,i)}})}),E.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,i){E.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),E.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),E.proxy=function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),b(t))return n=a.call(arguments,2),(s=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||E.guid++,s},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=D,E.isFunction=b,E.isWindow=m,E.camelCase=K,E.type=w,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var oi=C.jQuery,ri=C.$;return E.noConflict=function(t){return C.$===E&&(C.$=ri),t&&C.jQuery===E&&(C.jQuery=oi),E},t||(C.jQuery=C.$=E),E}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";for(var t="undefined"!=typeof window&&"undefined"!=typeof document,e=["Edge","Trident","Firefox"],i=0,n=0;n<e.length;n+=1)if(t&&0<=navigator.userAgent.indexOf(e[n])){i=1;break}var o=t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},i))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function _(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function f(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function m(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=_(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?t:m(f(t))}var s=t&&!(!window.MSInputMethodContext||!document.documentMode),a=t&&/MSIE 10/.test(navigator.userAgent);function g(t){return 11===t?s:10===t?a:s||a}function b(t){if(!t)return document.documentElement;for(var e=g(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===_(i,"position")?b(i):i:t?t.ownerDocument.documentElement:document.documentElement}function l(t){return null!==t.parentNode?l(t.parentNode):t}function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,s=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(s,0);var r=o.commonAncestorContainer;if(t!==r&&e!==r||n.contains(s))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||b(t.firstElementChild)===t)}(r)?r:b(r);var a=l(t);return a.host?v(a.host,e):v(t,l(e).host)}function y(t,e){var i="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"!==n&&"HTML"!==n)return t[i];var s=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||s)[i]}function d(t,e){var i="x"===e?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function c(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],g(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,i=t.documentElement,n=g(10)&&getComputedStyle(i);return{height:c("Height",e,i,n),width:c("Width",e,i,n)}}var h=function(t,e,i){return e&&u(t.prototype,e),i&&u(t,i),t};function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var C=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function k(t){return C({},t,{right:t.left+t.width,bottom:t.top+t.height})}function E(t){var e={};try{if(g(10)){e=t.getBoundingClientRect();var i=y(t,"top"),n=y(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}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?w(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=_(t);l-=d(h,"x"),c-=d(h,"y"),s.width-=l,s.height-=c}return k(s)}function T(t,e,i){var n=2<arguments.length&&void 0!==i&&i,s=g(10),o="HTML"===e.nodeName,r=E(t),a=E(e),l=m(t),c=_(e),h=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=k({top:r.top-a.top-h,left:r.left-a.left-d,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!s&&o){var p=parseFloat(c.marginTop,10),f=parseFloat(c.marginLeft,10);u.top-=h-p,u.bottom-=h-p,u.left-=d-f,u.right-=d-f,u.marginTop=p,u.marginLeft=f}return(s&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(u=function(t,e,i){var n=2<arguments.length&&void 0!==i&&i,s=y(e,"top"),o=y(e,"left"),r=n?-1:1;return t.top+=s*r,t.bottom+=s*r,t.left+=o*r,t.right+=o*r,t}(u,e)),u}function $(t){if(!t||!t.parentElement||g())return document.documentElement;for(var e=t.parentElement;e&&"none"===_(e,"transform");)e=e.parentElement;return e||document.documentElement}function D(t,e,i,n,s){var o=4<arguments.length&&void 0!==s&&s,r={top:0,left:0},a=o?$(t):v(t,e);if("viewport"===n)r=function(t,e){var i=1<arguments.length&&void 0!==e&&e,n=t.ownerDocument.documentElement,s=T(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=i?0:y(n),l=i?0:y(n,"left");return k({top:a-s.top+s.marginTop,left:l-s.left+s.marginLeft,width:o,height:r})}(a,o);else{var l=void 0;"scrollParent"===n?"BODY"===(l=m(f(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===n?t.ownerDocument.documentElement:n;var c=T(l,a,o);if("HTML"!==l.nodeName||function t(e){var i=e.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===_(e,"position"))return!0;var n=f(e);return!!n&&t(n)}(a))r=c;else{var h=w(t.ownerDocument),d=h.height,u=h.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=u+c.left}}var p="number"==typeof(i=i||0);return r.left+=p?i:i.left||0,r.top+=p?i:i.top||0,r.right-=p?i:i.right||0,r.bottom-=p?i:i.bottom||0,r}function p(t,e,n,i,s,o){var r=5<arguments.length&&void 0!==o?o:0;if(-1===t.indexOf("auto"))return t;var a=D(n,i,r,s),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(function(t){return C({key:t},l[t],{area:function(t){return t.width*t.height}(l[t])})}).sort(function(t,e){return e.area-t.area}),h=c.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),d=0<h.length?h[0].key:c[0].key,u=t.split("-")[1];return d+(u?"-"+u:"")}function A(t,e,i,n){var s=3<arguments.length&&void 0!==n?n:null;return T(i,s?$(e):v(e,i),s)}function S(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function I(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 L(t,e,i){i=i.split("-")[0];var n=S(t),s={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[r]=e[r]+e[l]/2-n[l]/2,s[a]=i===a?e[a]-n[c]:e[I(a)],s}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function N(t,i,e){return(void 0===e?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=O(t,function(t){return t[e]===i});return t.indexOf(n)}(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&&r(e)&&(i.offsets.popper=k(i.offsets.popper),i.offsets.reference=k(i.offsets.reference),i=e(i,t))}),i}function P(t,i){return t.some(function(t){var e=t.name;return t.enabled&&e===i})}function M(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var s=e[n],o=s?""+s+i:t;if(void 0!==document.body.style[o])return o}return null}function B(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,i,n){i.updateBound=n,B(t).addEventListener("resize",i.updateBound,{passive:!0});var s=m(t);return function t(e,i,n,s){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(i,n,{passive:!0}),o||t(m(r.parentNode),i,n,s),s.push(r)}(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}function F(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return B(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}(this.reference,this.state))}function U(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function j(i,n){Object.keys(n).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&U(n[t])&&(e="px"),i.style[t]=n[t]+e})}var R=t&&/Firefox/i.test(navigator.userAgent);function W(t,e,i){var n=O(t,function(t){return t.name===e}),s=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!s){var o="`"+e+"`",r="`"+i+"`";console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return s}var z=["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"],q=z.slice(3);function Y(t,e){var i=1<arguments.length&&void 0!==e&&e,n=q.indexOf(t),s=q.slice(n+1).concat(q.slice(0,n));return i?s.reverse():s}var K="flip",V="clockwise",G="counterclockwise";function Q(t,s,o,e){var r=[0,0],a=-1!==["right","left"].indexOf(e),i=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=i.indexOf(O(i,function(t){return-1!==t.search(/,|\s/)}));i[n]&&-1===i[n].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==n?[i.slice(0,n).concat([i[n].split(l)[0]]),[i[n].split(l)[1]].concat(i.slice(n+1))]:[i];return(c=c.map(function(t,e){var i=(1===e?!a:a)?"height":"width",n=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,n=!0,t):n?(t[t.length-1]+=e,n=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,i,n){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=i;break;case"%":case"%r":default:a=n}return k(a)[e]/100*o}(t,i,s,o)})})).forEach(function(i,n){i.forEach(function(t,e){U(t)&&(r[n]+=t*("-"===i[e-1]?-1:1))})}),r}var X={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,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",h={start:x({},l,o[l]),end:x({},l,o[l]+o[c]-r[c])};t.offsets.popper=C({},r,h[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,s=t.offsets,o=s.popper,r=s.reference,a=n.split("-")[0],l=void 0;return l=U(+i)?[+i,0]:Q(i,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,n){var e=n.boundariesElement||b(t.instance.popper);t.instance.reference===e&&(e=b(e));var i=M("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[i];s.top="",s.left="",s[i]="";var l=D(t.instance.popper,t.instance.reference,n.padding,e,t.positionFixed);s.top=o,s.left=r,s[i]=a,n.boundaries=l;var c=n.priority,h=t.offsets.popper,d={primary:function(t){var e=h[t];return h[t]<l[t]&&!n.escapeWithReference&&(e=Math.max(h[t],l[t])),x({},t,e)},secondary:function(t){var e="right"===t?"left":"top",i=h[e];return h[t]>l[t]&&!n.escapeWithReference&&(i=Math.min(h[e],l[t]-("right"===t?h.width:h.height))),x({},e,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=C({},h,d[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,i=e.popper,n=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 i[a]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[c]),i[l]>o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!W(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))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",d=h.toLowerCase(),u=l?"left":"top",p=l?"bottom":"right",f=S(n)[c];a[p]-f<r[d]&&(t.offsets.popper[d]-=r[d]-(a[p]-f)),a[d]+f>r[p]&&(t.offsets.popper[d]+=a[d]+f-r[p]),t.offsets.popper=k(t.offsets.popper);var m=a[d]+a[c]/2-f/2,g=_(t.instance.popper),v=parseFloat(g["margin"+h],10),y=parseFloat(g["border"+h+"Width"],10),b=m-t.offsets.popper[d]-v-y;return b=Math.max(Math.min(r[c]-f,b),0),t.arrowElement=n,t.offsets.arrow=(x(i={},d,Math.round(b)),x(i,u,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,f){if(P(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var m=D(p.instance.popper,p.instance.reference,f.padding,f.boundariesElement,p.positionFixed),g=p.placement.split("-")[0],v=I(g),y=p.placement.split("-")[1]||"",b=[];switch(f.behavior){case K:b=[g,v];break;case V:b=Y(g);break;case G:b=Y(g,!0);break;default:b=f.behavior}return b.forEach(function(t,e){if(g!==t||b.length===e+1)return p;g=p.placement.split("-")[0],v=I(g);var i=p.offsets.popper,n=p.offsets.reference,s=Math.floor,o="left"===g&&s(i.right)>s(n.left)||"right"===g&&s(i.left)<s(n.right)||"top"===g&&s(i.bottom)>s(n.top)||"bottom"===g&&s(i.top)<s(n.bottom),r=s(i.left)<s(m.left),a=s(i.right)>s(m.right),l=s(i.top)<s(m.top),c=s(i.bottom)>s(m.bottom),h="left"===g&&r||"right"===g&&a||"top"===g&&l||"bottom"===g&&c,d=-1!==["top","bottom"].indexOf(g),u=!!f.flipVariations&&(d&&"start"===y&&r||d&&"end"===y&&a||!d&&"start"===y&&l||!d&&"end"===y&&c);(o||h||u)&&(p.flipped=!0,(o||h)&&(g=b[e+1]),u&&(y=function(t){return"end"===t?"start":"start"===t?"end":t}(y)),p.placement=g+(y?"-"+y:""),p.offsets.popper=C({},p.offsets.popper,L(p.instance.popper,p.offsets.reference,p.placement)),p=N(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return s[r?"left":"top"]=o[i]-(a?s[r?"width":"height"]:0),t.placement=I(e),t.offsets.popper=k(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!W(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.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 i=e.x,n=e.y,s=t.offsets.popper,o=O(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=void 0!==o?o:e.gpuAcceleration,a=b(t.instance.popper),l=E(a),c={position:s.position},h=function(t,e){function i(t){return t}var n=t.offsets,s=n.popper,o=n.reference,r=Math.round,a=Math.floor,l=r(o.width),c=r(s.width),h=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),u=e?h||d||l%2==c%2?r:a:i,p=e?r:i;return{left:u(l%2==1&&c%2==1&&!d&&e?s.left-1:s.left),top:p(s.top),bottom:p(s.bottom),right:u(s.right)}}(t,window.devicePixelRatio<2||!R),d="bottom"===i?"top":"bottom",u="right"===n?"left":"right",p=M("transform"),f=void 0,m=void 0;if(m="bottom"==d?"HTML"===a.nodeName?-a.clientHeight+h.bottom:-l.height+h.bottom:h.top,f="right"==u?"HTML"===a.nodeName?-a.clientWidth+h.right:-l.width+h.right:h.left,r&&p)c[p]="translate3d("+f+"px, "+m+"px, 0)",c[d]=0,c[u]=0,c.willChange="transform";else{var g="bottom"==d?-1:1,v="right"==u?-1:1;c[d]=m*g,c[u]=f*v,c.willChange=d+", "+u}var y={"x-placement":t.placement};return t.attributes=C({},y,t.attributes),t.styles=C({},c,t.styles),t.arrowStyles=C({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return j(t.instance.popper,t.styles),function(e,i){Object.keys(i).forEach(function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&j(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,s){var o=A(s,e,t,i.positionFixed),r=p(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),j(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},Z=(h(J,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=p(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=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=N(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,P(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[M("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=H(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),J);function J(t,e){var i=this,n=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,J),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=C({},J.Defaults,n),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(C({},J.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=C({},J.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return C({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Z.Utils=("undefined"!=typeof window?window:global).PopperUtils,Z.placements=z,Z.Defaults=X,Z}),function(l,i,s,a){function c(t,e){this.settings=null,this.options=l.extend({},c.Defaults,e),this.$element=l(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(t,e){this._handlers[e]=l.proxy(this[e],this)},this)),l.each(c.Plugins,l.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(c.Workers,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};i||this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,n=Math.max(2*i.items,4),s=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?n:Math.max(n,s):0,r="",a="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,o-=1;this._clones=t,l(r).addClass("cloned").appendTo(this.$stage),l(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var t,e,i;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(l.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(n=l.extend({},this.options,t[i])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):n=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},c.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),n={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(n),t++;this._invalidated={},this.is("valid")||this.enter("valid")},c.prototype.width=function(t){switch(t=t||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=l.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(l.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),l(s).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(s).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));l(s).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},c.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,n=0<e.x^this.settings.rtl?"left":"right";l(s).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(i,n){var s=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||l.each(r,l.proxy(function(t,e){return"left"===n&&e-30<i&&i<e+30?s=t:"right"===n&&e-o-30<i&&i<e-o+30?s=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]!==a?r[t+1]:e-o)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},c.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},c.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},c.prototype.current=function(t){if(t===a)return this._current;if(0===this._items.length)return a;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},c.prototype.invalidate=function(t){return"string"===l.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),l.map(this._invalidated,function(t,e){return e})},c.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},c.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=a:(t<0||i+n<=t)&&(t=((t-n/2)%i+i)%i+n/2),t},c.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},c.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){if(e=this._items.length)for(i=this._items[--e].width(),n=this.$element.width();e--&&!(n<(i+=this._items[e].width()+this.settings.margin)););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},c.prototype.minimum=function(t){return t?0:this._clones.length/2},c.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},c.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},c.prototype.clones=function(i){function n(t){return t%2==0?s+t/2:e-(t+1)/2}var e=this._clones.length/2,s=e+this._items.length;return i===a?l.map(this._clones,function(t,e){return n(e)}):l.map(this._clones,function(t,e){return t===i?n(e):null})},c.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},c.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,e=Math.ceil(e))},c.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},c.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(0<s)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&0<n-s&&(i=n-s,t=n,this.reset(i))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},c.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},c.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},c.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==i?t=l(this.options.responsiveBaseElement).width():i.innerWidth?t=i.innerWidth:s.documentElement&&s.documentElement.clientWidth?t=s.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},c.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(t,e){var i=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:l(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},c.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},c.prototype.preloadAutoWidthImages=function(t){t.each(l.proxy(function(t,e){this.enter("pre-loading"),e=l(e),l(new Image).one("load",l.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(s).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?i<t:t<i;case">":return n?t<i:i<t;case">=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},c.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},c.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},c.prototype.trigger=function(t,e,i,n,s){var o={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:c.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},c.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},c.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},c.prototype.register=function(i){if(i.type===c.Type.Event){if(l.event.special[i.name]||(l.event.special[i.name]={}),!l.event.special[i.name].owl){var e=l.event.special[i.name]._default;l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},l.event.special[i.name].owl=!0}}else i.type===c.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=l.grep(this._states.tags[i.name],l.proxy(function(t,e){return l.inArray(t,this._states.tags[i.name])===e},this)))},c.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},c.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},c.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},c.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},c.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},l.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=l(this),i=t.data("owl.carousel");i||(i=new c(this,"object"==typeof e&&e),t.data("owl.carousel",i),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:c.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",l.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,n)})},l.fn.owlCarousel.Constructor=c}(window.Zepto||window.jQuery,window,document),function(e,i){function n(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)}n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(a,o){function e(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,n=e.center&&-1*i||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+n,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(s-=e.lazyLoadEager,i++));n++<i;)this.load(o/2+this._core.relative(s)),o&&a.each(this._core.clones(this._core.relative(s)),r),s++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<a.inArray(e.get(0),this._loaded)||(i.each(a.proxy(function(t,e){var i,n=a(e),s=1<o.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:s},"lazy"),n.is("img")?n.one("load.owl.lazy",a.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("src",s):n.is("source")?n.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("srcset",s):((i=new Image).onload=a.proxy(function(){n.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:s},"lazy")},this),i.src=s)},this)),this._loaded.push(e.get(0)))},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(r,i){function n(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=r.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;r(i).on("load",function(){e._core.settings.autoHeight&&e.update()}),r(i).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})}n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(t,e),s=[],o=0;r.each(n,function(t,e){s.push(r(e).height())}),(o=Math.max.apply(null,s))<=1&&i&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(h,t,e){function i(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":h.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":h.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":h.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":h.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":h.proxy(function(t){if(t.namespace){var e=h(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,h(t.content)))}},this)},this._core.options=h.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",h.proxy(function(t){this.play(t)},this))}i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<n[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<n[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},i.prototype.thumbnail=function(e,t){function i(t){'<div class="owl-video-play-icon"></div>',n=c.lazyLoad?h("<div/>",{class:"owl-video-tn "+l,srcType:t}):h("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(n),e.after('<div class="owl-video-play-icon"></div>')}var n,s,o=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",r=e.find("img"),a="src",l="",c=this._core.settings;if(e.wrap(h("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return i(r.attr(a)),r.remove(),!1;"youtube"===t.type?(s="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(s)):"vimeo"===t.type?h.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,i(s)}}):"vzaar"===t.type&&h.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,i(s)}})},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},i.prototype.play=function(t){var e,i=h(t.target).closest("."+this._core.settings.itemClass),n=this._videos[i.attr("data-video")],s=n.width||"100%",o=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=h('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",s),"youtube"===n.type?e.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?e.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&e.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),h(e).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},i.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&h(t).parent().hasClass("owl-video-frame")},i.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},h.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(r){function e(t){this.core=t,this.core.options=r.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&n.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(s))}},e.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(n,s,e){function i(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":n.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)}i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=s.setTimeout(n.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=s.setTimeout(n.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o){"use strict";function e(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$absolute)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=o.proxy(this[t],this)},e.prototype.destroy=function(){var t,e,i,n,s;for(t in s=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&s.navContainer?this._controls[e].html(""):this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,s=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<n;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),s=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!s&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(1+t).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},e.prototype.getPosition=function(t){var e,i,n=this._core.settings;return"page"==n.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=n.slideBy:e-=n.slideBy),e},e.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){var n;!i&&this._pages.length?(n=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e)):o.proxy(this._overrides.to,this._core)(t,e)},o.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(n,s){"use strict";function e(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&n(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var e=n(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":n.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=n.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||s.location.hash.slice(1)===e)return;s.location.hash=e}},this)},this._core.options=n.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),n(s).on("hashchange.owl.navigation",n.proxy(function(t){var e=s.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[e]&&i.index(this._hashes[e]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))}e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in n(s).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(s,t,e,o){var r=s("<support>").get(0).style,a="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},n=function(){return!!h("transform")},l=function(){return!!h("perspective")},c=function(){return!!h("animation")};function h(t,i){var n=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return s.each((t+" "+a.join(e+" ")+e).split(" "),function(t,e){if(r[e]!==o)return n=!i||e,!1}),n}function d(t){return h(t,!0)}!function(){return!!h("transition")}()||(s.support.transition=new String(d("transition")),s.support.transition.end=i.transition.end[s.support.transition]),c()&&(s.support.animation=new String(d("animation")),s.support.animation.end=i.animation.end[s.support.animation]),n()&&(s.support.transform=new String(d("transform")),s.support.transform3d=l())}(window.Zepto||window.jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,f,d){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),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,i,n;e=s,n=o[i=t],i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n})}return s}f=f&&f.hasOwnProperty("default")?f.default:f,d=d&&d.hasOwnProperty("default")?d.default:d;var e="transitionend";function i(t){var e=this,i=!1;return f(this).one(m.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||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 i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=f(t).css("transition-duration"),i=f(t).css("transition-delay"),n=parseFloat(e),s=parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){f(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],o=e[n],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 "'+n+'" 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}};f.fn.emulateTransitionEnd=i,f.event.special[m.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(f(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var s="alert",o="bs.alert",a="."+o,c=f.fn[s],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},u="alert",p="fade",g="show",v=function(){function n(t){this._element=t}var t=n.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(){f.removeData(this._element,o),this._element=null},t._getRootElement=function(t){var e=m.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i=i||f(t).closest("."+u)[0]},t._triggerCloseEvent=function(t){var e=f.Event(h.CLOSE);return f(t).trigger(e),e},t._removeElement=function(e){var i=this;if(f(e).removeClass(g),f(e).hasClass(p)){var t=m.getTransitionDurationFromElement(e);f(e).one(m.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){f(t).detach().trigger(h.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(o);e||(e=new n(this),t.data(o,e)),"close"===i&&e[i](this)})},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();f(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),f.fn[s]=v._jQueryInterface,f.fn[s].Constructor=v,f.fn[s].noConflict=function(){return f.fn[s]=c,v._jQueryInterface};var y="button",b="bs.button",_="."+b,w=".data-api",x=f.fn[y],C="active",k="btn",E="focus",T='[data-toggle^="button"]',$='[data-toggle="buttons"]',D='input:not([type="hidden"])',A=".active",S=".btn",I={CLICK_DATA_API:"click"+_+w,FOCUS_BLUR_DATA_API:"focus"+_+w+" blur"+_+w},L=function(){function i(t){this._element=t}var t=i.prototype;return t.toggle=function(){var t=!0,e=!0,i=f(this._element).closest($)[0];if(i){var n=this._element.querySelector(D);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(C))t=!1;else{var s=i.querySelector(A);s&&f(s).removeClass(C)}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(C),f(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(C)),t&&f(this._element).toggleClass(C)},t.dispose=function(){f.removeData(this._element,b),this._element=null},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(b);t||(t=new i(this),f(this).data(b,t)),"toggle"===e&&t[e]()})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();f(document).on(I.CLICK_DATA_API,T,function(t){t.preventDefault();var e=t.target;f(e).hasClass(k)||(e=f(e).closest(S)),L._jQueryInterface.call(f(e),"toggle")}).on(I.FOCUS_BLUR_DATA_API,T,function(t){var e=f(t.target).closest(S)[0];f(e).toggleClass(E,/^focus(in)?$/.test(t.type))}),f.fn[y]=L._jQueryInterface,f.fn[y].Constructor=L,f.fn[y].noConflict=function(){return f.fn[y]=x,L._jQueryInterface};var O="carousel",N="bs.carousel",P="."+N,M=".data-api",B=f.fn[O],H={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},U="next",j="prev",R="left",W="right",z={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+M,CLICK_DATA_API:"click"+P+M},q="carousel",Y="active",K="slide",V="carousel-item-right",G="carousel-item-left",Q="carousel-item-next",X="carousel-item-prev",Z="pointer-event",J=".active",tt=".active.carousel-item",et=".carousel-item",it=".carousel-item img",nt=".carousel-item-next, .carousel-item-prev",st=".carousel-indicators",ot="[data-slide], [data-slide-to]",rt='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=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(st),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(U)},t.nextWhenVisible=function(){!document.hidden&&f(this._element).is(":visible")&&"hidden"!==f(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(j)},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(tt);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)f(this._element).one(z.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i<t?U:j;this._slide(n,this._items[t])}},t.dispose=function(){f(this._element).off(P),f.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({},H,t),m.typeCheckConfig(O,t,F),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&&f(this._element).on(z.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&f(this._element).on(z.MOUSEENTER,function(t){return e.pause(t)}).on(z.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var i=function(t){e._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};f(this._element.querySelectorAll(it)).on(z.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(f(this._element).on(z.POINTERDOWN,function(t){return i(t)}),f(this._element).on(z.POINTERUP,function(t){return n(t)}),this._element.classList.add(Z)):(f(this._element).on(z.TOUCHSTART,function(t){return i(t)}),f(this._element).on(z.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&1<t.originalEvent.touches.length?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),f(this._element).on(z.TOUCHEND,function(t){return n(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(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var i=t===U,n=t===j,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;var r=(s+(t===j?-1:1))%this._items.length;return-1==r?this._items[this._items.length-1]:this._items[r]},t._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(tt)),s=f.Event(z.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return f(this._element).trigger(s),s},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(J));f(e).removeClass(Y);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&f(i).addClass(Y)}},t._slide=function(t,e){var i,n,s,o=this,r=this._element.querySelector(tt),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),c=this._getItemIndex(l),h=Boolean(this._interval);if(s=t===U?(i=G,n=Q,R):(i=V,n=X,W),l&&f(l).hasClass(Y))this._isSliding=!1;else if(!this._triggerSlideEvent(l,s).isDefaultPrevented()&&r&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var d=f.Event(z.SLID,{relatedTarget:l,direction:s,from:a,to:c});if(f(this._element).hasClass(K)){f(l).addClass(n),m.reflow(l),f(r).addClass(i),f(l).addClass(i);var u=parseInt(l.getAttribute("data-interval"),10);u?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=u):this._config.interval=this._config.defaultInterval||this._config.interval;var p=m.getTransitionDurationFromElement(r);f(r).one(m.TRANSITION_END,function(){f(l).removeClass(i+" "+n).addClass(Y),f(r).removeClass(Y+" "+n+" "+i),o._isSliding=!1,setTimeout(function(){return f(o._element).trigger(d)},0)}).emulateTransitionEnd(p)}else f(r).removeClass(Y),f(l).addClass(Y),this._isSliding=!1,f(this._element).trigger(d);h&&this.cycle()}},o._jQueryInterface=function(n){return this.each(function(){var t=f(this).data(N),e=l({},H,f(this).data());"object"==typeof n&&(e=l({},e,n));var i="string"==typeof n?n:e.slide;if(t||(t=new o(this,e),f(this).data(N,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e=m.getSelectorFromElement(this);if(e){var i=f(e)[0];if(i&&f(i).hasClass(q)){var n=l({},f(i).data(),f(this).data()),s=this.getAttribute("data-slide-to");s&&(n.interval=!1),o._jQueryInterface.call(f(i),n),s&&f(i).data(N).to(s),t.preventDefault()}}},r(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return H}}]),o}();f(document).on(z.CLICK_DATA_API,ot,lt._dataApiClickHandler),f(window).on(z.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(rt)),e=0,i=t.length;e<i;e++){var n=f(t[e]);lt._jQueryInterface.call(n,n.data())}}),f.fn[O]=lt._jQueryInterface,f.fn[O].Constructor=lt,f.fn[O].noConflict=function(){return f.fn[O]=B,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",dt="."+ht,ut=f.fn[ct],pt={toggle:!0,parent:""},ft={toggle:"boolean",parent:"(string|element)"},mt={SHOW:"show"+dt,SHOWN:"shown"+dt,HIDE:"hide"+dt,HIDDEN:"hidden"+dt,CLICK_DATA_API:"click"+dt+".data-api"},gt="show",vt="collapse",yt="collapsing",bt="collapsed",_t="width",wt="height",xt=".show, .collapsing",Ct='[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 i=[].slice.call(document.querySelectorAll(Ct)),n=0,s=i.length;n<s;n++){var o=i[n],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(){f(this._element).hasClass(gt)?this.hide():this.show()},t.show=function(){var t,e,i=this;if(!this._isTransitioning&&!f(this._element).hasClass(gt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(xt)).filter(function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(vt)})).length&&(t=null),!(t&&(e=f(t).not(this._selector).data(ht))&&e._isTransitioning))){var n=f.Event(mt.SHOW);if(f(this._element).trigger(n),!n.isDefaultPrevented()){t&&(a._jQueryInterface.call(f(t).not(this._selector),"hide"),e||f(t).data(ht,null));var s=this._getDimension();f(this._element).removeClass(vt).addClass(yt),this._element.style[s]=0,this._triggerArray.length&&f(this._triggerArray).removeClass(bt).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(s[0].toUpperCase()+s.slice(1)),r=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){f(i._element).removeClass(yt).addClass(vt).addClass(gt),i._element.style[s]="",i.setTransitioning(!1),f(i._element).trigger(mt.SHOWN)}).emulateTransitionEnd(r),this._element.style[s]=this._element[o]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&f(this._element).hasClass(gt)){var e=f.Event(mt.HIDE);if(f(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",m.reflow(this._element),f(this._element).addClass(yt).removeClass(vt).removeClass(gt);var n=this._triggerArray.length;if(0<n)for(var s=0;s<n;s++){var o=this._triggerArray[s],r=m.getSelectorFromElement(o);if(null!==r)f([].slice.call(document.querySelectorAll(r))).hasClass(gt)||f(o).addClass(bt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[i]="";var a=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){t.setTransitioning(!1),f(t._element).removeClass(yt).addClass(vt).trigger(mt.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){f.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},pt,t)).toggle=Boolean(t.toggle),m.typeCheckConfig(ct,t,ft),t},t._getDimension=function(){return f(this._element).hasClass(_t)?_t:wt},t._getParent=function(){var t,i=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+'"]',n=[].slice.call(t.querySelectorAll(e));return f(n).each(function(t,e){i._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var i=f(t).hasClass(gt);e.length&&f(e).toggleClass(bt,!i).attr("aria-expanded",i)},a._getTargetFromElement=function(t){var e=m.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(n){return this.each(function(){var t=f(this),e=t.data(ht),i=l({},pt,t.data(),"object"==typeof n&&n?n:{});if(!e&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),e||(e=new a(this,i),t.data(ht,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return pt}}]),a}();f(document).on(mt.CLICK_DATA_API,Ct,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=f(this),e=m.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(e));f(n).each(function(){var t=f(this),e=t.data(ht)?"toggle":i.data();kt._jQueryInterface.call(t,e)})}),f.fn[ct]=kt._jQueryInterface,f.fn[ct].Constructor=kt,f.fn[ct].noConflict=function(){return f.fn[ct]=ut,kt._jQueryInterface};var Et="dropdown",Tt="bs.dropdown",$t="."+Tt,Dt=".data-api",At=f.fn[Et],St=new RegExp("38|40|27"),It={HIDE:"hide"+$t,HIDDEN:"hidden"+$t,SHOW:"show"+$t,SHOWN:"shown"+$t,CLICK:"click"+$t,CLICK_DATA_API:"click"+$t+Dt,KEYDOWN_DATA_API:"keydown"+$t+Dt,KEYUP_DATA_API:"keyup"+$t+Dt},Lt="disabled",Ot="show",Nt="dropup",Pt="dropright",Mt="dropleft",Bt="dropdown-menu-right",Ht="position-static",Ft='[data-toggle="dropdown"]',Ut=".dropdown form",jt=".dropdown-menu",Rt=".navbar-nav",Wt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",zt="top-start",qt="top-end",Yt="bottom-start",Kt="bottom-end",Vt="right-start",Gt="left-start",Qt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Xt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Zt=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&&!f(this._element).hasClass(Lt)){var t=c._getParentFromElement(this._element),e=f(this._menu).hasClass(Ot);if(c._clearMenus(),!e){var i={relatedTarget:this._element},n=f.Event(It.SHOW,i);if(f(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===d)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&&f(t).addClass(Ht),this._popper=new d(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===f(t).closest(Rt).length&&f(document.body).children().on("mouseover",null,f.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),f(this._menu).toggleClass(Ot),f(t).toggleClass(Ot).trigger(f.Event(It.SHOWN,i))}}}},t.show=function(){if(!(this._element.disabled||f(this._element).hasClass(Lt)||f(this._menu).hasClass(Ot))){var t={relatedTarget:this._element},e=f.Event(It.SHOW,t),i=c._getParentFromElement(this._element);f(i).trigger(e),e.isDefaultPrevented()||(f(this._menu).toggleClass(Ot),f(i).toggleClass(Ot).trigger(f.Event(It.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!f(this._element).hasClass(Lt)&&f(this._menu).hasClass(Ot)){var t={relatedTarget:this._element},e=f.Event(It.HIDE,t),i=c._getParentFromElement(this._element);f(i).trigger(e),e.isDefaultPrevented()||(f(this._menu).toggleClass(Ot),f(i).toggleClass(Ot).trigger(f.Event(It.HIDDEN,t)))}},t.dispose=function(){f.removeData(this._element,Tt),f(this._element).off($t),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;f(this._element).on(It.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,f(this._element).data(),t),m.typeCheckConfig(Et,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(jt))}return this._menu},t._getPlacement=function(){var t=f(this._element.parentNode),e=Yt;return t.hasClass(Nt)?(e=zt,f(this._menu).hasClass(Bt)&&(e=qt)):t.hasClass(Pt)?e=Vt:t.hasClass(Mt)?e=Gt:f(this._menu).hasClass(Bt)&&(e=Kt),e},t._detectNavbar=function(){return 0<f(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=f(this).data(Tt);if(t||(t=new c(this,"object"==typeof e?e:null),f(this).data(Tt,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(Ft)),i=0,n=e.length;i<n;i++){var s=c._getParentFromElement(e[i]),o=f(e[i]).data(Tt),r={relatedTarget:e[i]};if(t&&"click"===t.type&&(r.clickEvent=t),o){var a=o._menu;if(f(s).hasClass(Ot)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&f.contains(s,t.target))){var l=f.Event(It.HIDE,r);f(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),e[i].setAttribute("aria-expanded","false"),f(a).removeClass(Ot),f(s).removeClass(Ot).trigger(f.Event(It.HIDDEN,r)))}}}},c._getParentFromElement=function(t){var e,i=m.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),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||f(t.target).closest(jt).length)):St.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!f(this).hasClass(Lt))){var e=c._getParentFromElement(this),i=f(e).hasClass(Ot);if(i&&(!i||27!==t.which&&32!==t.which)){var n=[].slice.call(e.querySelectorAll(Wt));if(0!==n.length){var s=n.indexOf(t.target);38===t.which&&0<s&&s--,40===t.which&&s<n.length-1&&s++,s<0&&(s=0),n[s].focus()}}else{if(27===t.which){var o=e.querySelector(Ft);f(o).trigger("focus")}f(this).trigger("click")}}},r(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Qt}},{key:"DefaultType",get:function(){return Xt}}]),c}();f(document).on(It.KEYDOWN_DATA_API,Ft,Zt._dataApiKeydownHandler).on(It.KEYDOWN_DATA_API,jt,Zt._dataApiKeydownHandler).on(It.CLICK_DATA_API+" "+It.KEYUP_DATA_API,Zt._clearMenus).on(It.CLICK_DATA_API,Ft,function(t){t.preventDefault(),t.stopPropagation(),Zt._jQueryInterface.call(f(this),"toggle")}).on(It.CLICK_DATA_API,Ut,function(t){t.stopPropagation()}),f.fn[Et]=Zt._jQueryInterface,f.fn[Et].Constructor=Zt,f.fn[Et].noConflict=function(){return f.fn[Et]=At,Zt._jQueryInterface};var Jt="modal",te="bs.modal",ee="."+te,ie=f.fn[Jt],ne={backdrop:!0,keyboard:!0,focus:!0,show:!0},se={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},oe={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},re="modal-dialog-scrollable",ae="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",de="show",ue=".modal-dialog",pe=".modal-body",fe='[data-toggle="modal"]',me='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ve=".sticky-top",ye=function(){function s(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ue),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){f(this._element).hasClass(he)&&(this._isTransitioning=!0);var i=f.Event(oe.SHOW,{relatedTarget:t});f(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),f(this._element).on(oe.CLICK_DISMISS,me,function(t){return e.hide(t)}),f(this._dialog).on(oe.MOUSEDOWN_DISMISS,function(){f(e._element).one(oe.MOUSEUP_DISMISS,function(t){f(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 i=f.Event(oe.HIDE);if(f(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=f(this._element).hasClass(he);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),f(document).off(oe.FOCUSIN),f(this._element).removeClass(de),f(this._element).off(oe.CLICK_DISMISS),f(this._dialog).off(oe.MOUSEDOWN_DISMISS),n){var s=m.getTransitionDurationFromElement(this._element);f(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 f(t).off(ee)}),f(document).off(oe.FOCUSIN),f.removeData(this._element,te),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({},ne,t),m.typeCheckConfig(Jt,t,se),t},t._showElement=function(t){var e=this,i=f(this._element).hasClass(he);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),f(this._dialog).hasClass(re)?this._dialog.querySelector(pe).scrollTop=0:this._element.scrollTop=0,i&&m.reflow(this._element),f(this._element).addClass(de),this._config.focus&&this._enforceFocus();function n(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,f(e._element).trigger(s)}var s=f.Event(oe.SHOWN,{relatedTarget:t});if(i){var o=m.getTransitionDurationFromElement(this._dialog);f(this._dialog).one(m.TRANSITION_END,n).emulateTransitionEnd(o)}else n()},t._enforceFocus=function(){var e=this;f(document).off(oe.FOCUSIN).on(oe.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===f(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?f(this._element).on(oe.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||f(this._element).off(oe.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?f(window).on(oe.RESIZE,function(t){return e.handleUpdate(t)}):f(window).off(oe.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(){f(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),f(t._element).trigger(oe.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(f(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,i=f(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,i&&this._backdrop.classList.add(i),f(this._backdrop).appendTo(document.body),f(this._element).on(oe.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),i&&m.reflow(this._backdrop),f(this._backdrop).addClass(de),!t)return;if(!i)return void t();var n=m.getTransitionDurationFromElement(this._backdrop);f(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){f(this._backdrop).removeClass(de);var s=function(){e._removeBackdrop(),t&&t()};if(f(this._element).hasClass(he)){var o=m.getTransitionDurationFromElement(this._backdrop);f(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(ge)),e=[].slice.call(document.querySelectorAll(ve));f(t).each(function(t,e){var i=e.style.paddingRight,n=f(e).css("padding-right");f(e).data("padding-right",i).css("padding-right",parseFloat(n)+s._scrollbarWidth+"px")}),f(e).each(function(t,e){var i=e.style.marginRight,n=f(e).css("margin-right");f(e).data("margin-right",i).css("margin-right",parseFloat(n)-s._scrollbarWidth+"px")});var i=document.body.style.paddingRight,n=f(document.body).css("padding-right");f(document.body).data("padding-right",i).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}f(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ge));f(t).each(function(t,e){var i=f(e).data("padding-right");f(e).removeData("padding-right"),e.style.paddingRight=i||""});var e=[].slice.call(document.querySelectorAll(""+ve));f(e).each(function(t,e){var i=f(e).data("margin-right");void 0!==i&&f(e).css("margin-right",i).removeData("margin-right")});var i=f(document.body).data("padding-right");f(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(i,n){return this.each(function(){var t=f(this).data(te),e=l({},ne,f(this).data(),"object"==typeof i&&i?i:{});if(t||(t=new s(this,e),f(this).data(te,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](n)}else e.show&&t.show(n)})},r(s,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ne}}]),s}();f(document).on(oe.CLICK_DATA_API,fe,function(t){var e,i=this,n=m.getSelectorFromElement(this);n&&(e=document.querySelector(n));var s=f(e).data(te)?"toggle":l({},f(e).data(),f(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=f(e).one(oe.SHOW,function(t){t.isDefaultPrevented()||o.one(oe.HIDDEN,function(){f(i).is(":visible")&&i.focus()})});ye._jQueryInterface.call(f(e),s,this)}),f.fn[Jt]=ye._jQueryInterface,f.fn[Jt].Constructor=ye,f.fn[Jt].noConflict=function(){return f.fn[Jt]=ie,ye._jQueryInterface};var be=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],_e={"*":["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:[]},we=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,xe=/^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 Ce(t,r,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(r),l=[].slice.call(i.body.querySelectorAll("*")),n=function(t,e){var i=l[t],n=i.nodeName.toLowerCase();if(-1===a.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),o=[].concat(r["*"]||[],r[n]||[]);s.forEach(function(t){!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===be.indexOf(i)||Boolean(t.nodeValue.match(we)||t.nodeValue.match(xe));for(var n=e.filter(function(t){return t instanceof RegExp}),s=0,o=n.length;s<o;s++)if(i.match(n[s]))return!0;return!1}(t,o)&&i.removeAttribute(t.nodeName)})},s=0,o=l.length;s<o;s++)n(s);return i.body.innerHTML}var ke="tooltip",Ee="bs.tooltip",Te="."+Ee,$e=f.fn[ke],De="bs-tooltip",Ae=new RegExp("(^|\\s)"+De+"\\S+","g"),Se=["sanitize","whiteList","sanitizeFn"],Ie={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"},Le={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Oe={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:_e},Ne="show",Pe="out",Me={HIDE:"hide"+Te,HIDDEN:"hidden"+Te,SHOW:"show"+Te,SHOWN:"shown"+Te,INSERTED:"inserted"+Te,CLICK:"click"+Te,FOCUSIN:"focusin"+Te,FOCUSOUT:"focusout"+Te,MOUSEENTER:"mouseenter"+Te,MOUSELEAVE:"mouseleave"+Te},Be="fade",He="show",Fe=".tooltip-inner",Ue=".arrow",je="hover",Re="focus",We="click",ze="manual",qe=function(){function n(t,e){if(void 0===d)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=n.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,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(He))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&f(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"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=m.findShadowRoot(this.element),n=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)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&&f(s).addClass(Be);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();f(s).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(s).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,s,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Ue},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),f(s).addClass(He),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),t===Pe&&e._leave(null,e)};if(f(this.tip).hasClass(Be)){var h=m.getTransitionDurationFromElement(this.tip);f(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){function e(){i._hoverState!==Ne&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),f(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var i=this,n=this.getTipElement(),s=f.Event(this.constructor.Event.HIDE);if(f(this.element).trigger(s),!s.isDefaultPrevented()){if(f(n).removeClass(He),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger[We]=!1,this._activeTrigger[Re]=!1,this._activeTrigger[je]=!1,f(this.tip).hasClass(Be)){var o=m.getTransitionDurationFromElement(n);f(n).one(m.TRANSITION_END,e).emulateTransitionEnd(o)}else e();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){f(this.getTipElement()).addClass(De+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(Fe)),this.getTitle()),f(t).removeClass(Be+" "+He)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Ce(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(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._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)?f(this.config.container):f(document).find(this.config.container)},t._getAttachment=function(t){return Le[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==ze){var e=t===je?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===je?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;f(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),f(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.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 i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Re:je]=!0),f(e.getTipElement()).hasClass(He)||e._hoverState===Ne?e._hoverState=Ne:(clearTimeout(e._timeout),e._hoverState=Ne,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Ne&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Re:je]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Pe,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Pe&&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=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==Se.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(ke,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ce(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=f(this.getTipElement()),e=t.attr("class").match(Ae);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")&&(f(t).removeClass(Be),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Ee),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Ee,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Oe}},{key:"NAME",get:function(){return ke}},{key:"DATA_KEY",get:function(){return Ee}},{key:"Event",get:function(){return Me}},{key:"EVENT_KEY",get:function(){return Te}},{key:"DefaultType",get:function(){return Ie}}]),n}();f.fn[ke]=qe._jQueryInterface,f.fn[ke].Constructor=qe,f.fn[ke].noConflict=function(){return f.fn[ke]=$e,qe._jQueryInterface};var Ye="popover",Ke="bs.popover",Ve="."+Ke,Ge=f.fn[Ye],Qe="bs-popover",Xe=new RegExp("(^|\\s)"+Qe+"\\S+","g"),Ze=l({},qe.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>'}),Je=l({},qe.DefaultType,{content:"(string|element|function)"}),ti="fade",ei="show",ii=".popover-header",ni=".popover-body",si={HIDE:"hide"+Ve,HIDDEN:"hidden"+Ve,SHOW:"show"+Ve,SHOWN:"shown"+Ve,INSERTED:"inserted"+Ve,CLICK:"click"+Ve,FOCUSIN:"focusin"+Ve,FOCUSOUT:"focusout"+Ve,MOUSEENTER:"mouseenter"+Ve,MOUSELEAVE:"mouseleave"+Ve},oi=function(t){function n(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(n,t);var e=n.prototype;return e.isWithContent=function(){return this.getTitle()||this._getContent()},e.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Qe+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},e.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(ii),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ni),e),t.removeClass(ti+" "+ei)},e._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},e._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Xe);null!==e&&0<e.length&&t.removeClass(e.join(""))},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Ke),e="object"==typeof i?i:null;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Ke,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Ze}},{key:"NAME",get:function(){return Ye}},{key:"DATA_KEY",get:function(){return Ke}},{key:"Event",get:function(){return si}},{key:"EVENT_KEY",get:function(){return Ve}},{key:"DefaultType",get:function(){return Je}}]),n}(qe);f.fn[Ye]=oi._jQueryInterface,f.fn[Ye].Constructor=oi,f.fn[Ye].noConflict=function(){return f.fn[Ye]=Ge,oi._jQueryInterface};var ri="scrollspy",ai="bs.scrollspy",li="."+ai,ci=f.fn[ri],hi={offset:10,method:"auto",target:""},di={offset:"number",method:"string",target:"(string|element)"},ui={ACTIVATE:"activate"+li,SCROLL:"scroll"+li,LOAD_DATA_API:"load"+li+".data-api"},pi="dropdown-item",fi="active",mi='[data-spy="scroll"]',gi=".nav, .list-group",vi=".nav-link",yi=".nav-item",bi=".list-group-item",_i=".dropdown",wi=".dropdown-item",xi=".dropdown-toggle",Ci="offset",ki="position",Ei=function(){function i(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vi+","+this._config.target+" "+bi+","+this._config.target+" "+wi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,f(this._scrollElement).on(ui.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var t=i.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?Ci:ki,s="auto"===this._config.method?t:this._config.method,o=s===ki?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,i=m.getSelectorFromElement(t);if(i&&(e=document.querySelector(i)),e){var n=e.getBoundingClientRect();if(n.width||n.height)return[f(e)[s]().top+o,i]}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(){f.removeData(this._element,ai),f(this._scrollElement).off(li),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({},hi,"object"==typeof t&&t?t:{})).target){var e=f(t.target).attr("id");e||(e=m.getUID(ri),f(t.target).attr("id",e)),t.target="#"+e}return m.typeCheckConfig(ri,t,di),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(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}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+'"]'}),i=f([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass(pi)?(i.closest(_i).find(xi).addClass(fi),i.addClass(fi)):(i.addClass(fi),i.parents(gi).prev(vi+", "+bi).addClass(fi),i.parents(gi).prev(yi).children(vi).addClass(fi)),f(this._scrollElement).trigger(ui.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(fi)}).forEach(function(t){return t.classList.remove(fi)})},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(ai);if(t||(t=new i(this,"object"==typeof e&&e),f(this).data(ai,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return hi}}]),i}();f(window).on(ui.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mi)),e=t.length;e--;){var i=f(t[e]);Ei._jQueryInterface.call(i,i.data())}}),f.fn[ri]=Ei._jQueryInterface,f.fn[ri].Constructor=Ei,f.fn[ri].noConflict=function(){return f.fn[ri]=ci,Ei._jQueryInterface};var Ti="bs.tab",$i="."+Ti,Di=f.fn.tab,Ai={HIDE:"hide"+$i,HIDDEN:"hidden"+$i,SHOW:"show"+$i,SHOWN:"shown"+$i,CLICK_DATA_API:"click"+$i+".data-api"},Si="dropdown-menu",Ii="active",Li="disabled",Oi="fade",Ni="show",Pi=".dropdown",Mi=".nav, .list-group",Bi=".active",Hi="> li > .active",Fi='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Ui=".dropdown-toggle",ji="> .dropdown-menu .active",Ri=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(){var i=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&f(this._element).hasClass(Ii)||f(this._element).hasClass(Li))){var t,n,e=f(this._element).closest(Mi)[0],s=m.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName||"OL"===e.nodeName?Hi:Bi;n=(n=f.makeArray(f(e).find(o)))[n.length-1]}var r=f.Event(Ai.HIDE,{relatedTarget:this._element}),a=f.Event(Ai.SHOW,{relatedTarget:n});if(n&&f(n).trigger(r),f(this._element).trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,e);var l=function(){var t=f.Event(Ai.HIDDEN,{relatedTarget:i._element}),e=f.Event(Ai.SHOWN,{relatedTarget:n});f(n).trigger(t),f(i._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){f.removeData(this._element,Ti),this._element=null},t._activate=function(t,e,i){function n(){return s._transitionComplete(t,o,i)}var s=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?f(e).children(Bi):f(e).find(Hi))[0],r=i&&o&&f(o).hasClass(Oi);if(o&&r){var a=m.getTransitionDurationFromElement(o);f(o).removeClass(Ni).one(m.TRANSITION_END,n).emulateTransitionEnd(a)}else n()},t._transitionComplete=function(t,e,i){if(e){f(e).removeClass(Ii);var n=f(e.parentNode).find(ji)[0];n&&f(n).removeClass(Ii),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(f(t).addClass(Ii),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains(Oi)&&t.classList.add(Ni),t.parentNode&&f(t.parentNode).hasClass(Si)){var s=f(t).closest(Pi)[0];if(s){var o=[].slice.call(s.querySelectorAll(Ui));f(o).addClass(Ii)}t.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(Ti);if(e||(e=new n(this),t.data(Ti,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();f(document).on(Ai.CLICK_DATA_API,Fi,function(t){t.preventDefault(),Ri._jQueryInterface.call(f(this),"show")}),f.fn.tab=Ri._jQueryInterface,f.fn.tab.Constructor=Ri,f.fn.tab.noConflict=function(){return f.fn.tab=Di,Ri._jQueryInterface};var Wi="toast",zi="bs.toast",qi="."+zi,Yi=f.fn[Wi],Ki={CLICK_DISMISS:"click.dismiss"+qi,HIDE:"hide"+qi,HIDDEN:"hidden"+qi,SHOW:"show"+qi,SHOWN:"shown"+qi},Vi="fade",Gi="hide",Qi="show",Xi="showing",Zi={animation:"boolean",autohide:"boolean",delay:"number"},Ji={animation:!0,autohide:!0,delay:500},tn='[data-dismiss="toast"]',en=function(){function n(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=n.prototype;return t.show=function(){var t=this;f(this._element).trigger(Ki.SHOW),this._config.animation&&this._element.classList.add(Vi);function e(){t._element.classList.remove(Xi),t._element.classList.add(Qi),f(t._element).trigger(Ki.SHOWN),t._config.autohide&&t.hide()}if(this._element.classList.remove(Gi),this._element.classList.add(Xi),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Qi)&&(f(this._element).trigger(Ki.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(Qi)&&this._element.classList.remove(Qi),f(this._element).off(Ki.CLICK_DISMISS),f.removeData(this._element,zi),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},Ji,f(this._element).data(),"object"==typeof t&&t?t:{}),m.typeCheckConfig(Wi,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;f(this._element).on(Ki.CLICK_DISMISS,tn,function(){return t.hide(!0)})},t._close=function(){function t(){e._element.classList.add(Gi),f(e._element).trigger(Ki.HIDDEN)}var e=this;if(this._element.classList.remove(Qi),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,t).emulateTransitionEnd(i)}else t()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(zi);if(e||(e=new n(this,"object"==typeof i&&i),t.data(zi,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Zi}},{key:"Default",get:function(){return Ji}}]),n}();f.fn[Wi]=en._jQueryInterface,f.fn[Wi].Constructor=en,f.fn[Wi].noConflict=function(){return f.fn[Wi]=Yi,en._jQueryInterface},function(){if(void 0===f)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=f.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=v,t.Button=L,t.Carousel=lt,t.Collapse=kt,t.Dropdown=Zt,t.Modal=ye,t.Popover=oi,t.Scrollspy=Ei,t.Tab=Ri,t.Toast=en,t.Tooltip=qe,Object.defineProperty(t,"__esModule",{value:!0})}),function(N){"use strict";var h=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^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 g(t,e){var i=t.nodeName.toLowerCase();if(-1!==N.inArray(i,e))return-1===N.inArray(i,r)||Boolean(t.nodeValue.match(a)||t.nodeValue.match(l));for(var n=N(e).filter(function(t,e){return e instanceof RegExp}),s=0,o=n.length;s<o;s++)if(i.match(n[s]))return!0;return!1}function P(t,e,i){if(i&&"function"==typeof i)return i(t);for(var n=Object.keys(e),s=0,o=t.length;s<o;s++)for(var r=t[s].querySelectorAll("*"),a=0,l=r.length;a<l;a++){var c=r[a],h=c.nodeName.toLowerCase();if(-1!==n.indexOf(h))for(var d=[].slice.call(c.attributes),u=[].concat(e["*"]||[],e[h]||[]),p=0,f=d.length;p<f;p++){var m=d[p];g(m,u)||c.removeAttribute(m.nodeName)}else c.parentNode.removeChild(c)}}"classList"in document.createElement("_")||function(t){if("Element"in t){var e="classList",i=t.Element.prototype,n=Object,s=function(){var i=N(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),i.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),i.removeClass(t)},toggle:function(t,e){return i.toggleClass(t,e)},contains:function(t){return i.hasClass(t)}}};if(n.defineProperty){var o={get:s,enumerable:!0,configurable:!0};try{n.defineProperty(i,e,o)}catch(t){void 0!==t.number&&-2146823252!==t.number||(o.enumerable=!1,n.defineProperty(i,e,o))}}else n.prototype.__defineGetter__&&i.__defineGetter__(e,s)}}(window);var e,d,i=document.createElement("_");if(i.classList.add("c1","c2"),!i.classList.contains("c2")){var n=DOMTokenList.prototype.add,s=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,n.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,s.bind(this))}}if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:o.call(this,t)}}function c(t,e){if(null==this)throw new TypeError;var i=String(this);if(t&&"[object RegExp]"==d.call(t))throw new TypeError;var n=i.length,s=String(t),o=s.length,r=1<arguments.length?e:void 0,a=r?Number(r):0;a!=a&&(a=0);var l=Math.min(Math.max(a,0),n);if(n<o+l)return!1;for(var c=-1;++c<o;)if(i.charCodeAt(l+c)!=s.charCodeAt(c))return!1;return!0}function D(t,e){for(var i,n=[],s=e||t.selectedOptions,o=0,r=s.length;o<r;o++)(i=s[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||n.push(i.value||i.text);return t.multiple?n:n.length?n[0]:null}i=null,String.prototype.startsWith||(e=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),d={}.toString,e?e(String.prototype,"startsWith",{value:c,configurable:!0,writable:!0}):String.prototype.startsWith=c),Object.keys||(Object.keys=function(t,e,i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var u={useDefault:!1,_set:N.valHooks.select.set};N.valHooks.select.set=function(t,e){return e&&!u.useDefault&&N(t).data("selected",!0),u._set.apply(this,arguments)};var A=null,p=function(){try{return new Event("change"),!0}catch(t){return!1}}();function x(t,e,i,n){for(var s=["display","subtext","tokens"],o=!1,r=0;r<s.length;r++){var a=s[r],l=t[a];if(l&&(l=l.toString(),"display"===a&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=b(l)),l=l.toUpperCase(),o="contains"===i?0<=l.indexOf(e):l.startsWith(e)))break}return o}function S(t){return parseInt(t,10)||0}N.fn.triggerNative=function(t){var e,i=this[0];i.dispatchEvent?(p?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),i.dispatchEvent(e)):i.fireEvent?((e=document.createEventObject()).eventType=t,i.fireEvent("on"+t,e)):this.trigger(t)};var f={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},m=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,v=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function y(t){return f[t]}function b(t){return(t=t.toString())&&t.replace(m,y).replace(v,"")}var _,w,C,k,E=(_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w="(?:"+Object.keys(_).join("|")+")",C=RegExp(w),k=RegExp(w,"g"),function(t){return t=null==t?"":""+t,C.test(t)?t.replace(k,T):t});function T(t){return _[t]}var $={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},I=27,L=13,O=32,M=9,B=38,H=40,F={success:!1,major:"3"};try{F.full=(N.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),F.major=F.full[0],F.success=!0}catch(t){}var U=0,j=".bs.select",R={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},W={MENU:"."+R.MENU},z={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};z.a.setAttribute("role","option"),z.subtext.className="text-muted",z.text=z.span.cloneNode(!1),z.text.className="text",z.checkMark=z.span.cloneNode(!1);function q(t,e){var i=this;u.useDefault||(N.valHooks.select.set=u._set,u.useDefault=!0),this.$element=N(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=e,this.selectpicker={main:{},search:{},current:{},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){i.selectpicker.keydown.keyHistory=""},800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var n=this.options.windowPadding;"number"==typeof n&&(this.options.windowPadding=[n,n,n,n]),this.val=q.prototype.val,this.render=q.prototype.render,this.refresh=q.prototype.refresh,this.setStyle=q.prototype.setStyle,this.selectAll=q.prototype.selectAll,this.deselectAll=q.prototype.deselectAll,this.destroy=q.prototype.destroy,this.remove=q.prototype.remove,this.show=q.prototype.show,this.hide=q.prototype.hide,this.init()}var Y=new RegExp(B+"|"+H),K=new RegExp("^"+M+"$|"+I),V=function(t,e,i){var n=z.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?n.appendChild(t):n.innerHTML=t),void 0!==e&&""!==e&&(n.className=e),null!=i&&n.classList.add("optgroup-"+i),n},G=function(t,e,i){var n=z.a.cloneNode(!0);return t&&(11===t.nodeType?n.appendChild(t):n.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&(n.className=e),"4"===F.major&&n.classList.add("dropdown-item"),i&&n.setAttribute("style",i),n},Q=function(t,e){var i,n,s=z.text.cloneNode(!1);if(t.content)s.innerHTML=t.content;else{if(s.textContent=t.text,t.icon){var o=z.whitespace.cloneNode(!1);(n=(!0===e?z.i:z.span).cloneNode(!1)).className=t.iconBase+" "+t.icon,z.fragment.appendChild(n),z.fragment.appendChild(o)}t.subtext&&((i=z.subtext.cloneNode(!1)).textContent=t.subtext,s.appendChild(i))}if(!0===e)for(;0<s.childNodes.length;)z.fragment.appendChild(s.childNodes[0]);else z.fragment.appendChild(s);return z.fragment},X=function(t){var e,i,n=z.text.cloneNode(!1);if(n.innerHTML=t.label,t.icon){var s=z.whitespace.cloneNode(!1);(i=z.span.cloneNode(!1)).className=t.iconBase+" "+t.icon,z.fragment.appendChild(i),z.fragment.appendChild(s)}return t.subtext&&((e=z.subtext.cloneNode(!1)).textContent=t.subtext,n.appendChild(e)),z.fragment.appendChild(n),z.fragment};function Z(t){var a,l=arguments,c=t;if([].shift.apply(l),!F.success){try{F.full=(N.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){q.BootstrapVersion?F.full=q.BootstrapVersion.split(" ")[0].split("."):(F.full=[F.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",t))}F.major=F.full[0],F.success=!0}if("4"===F.major){var e=[];q.DEFAULTS.style===R.BUTTONCLASS&&e.push({name:"style",className:"BUTTONCLASS"}),q.DEFAULTS.iconBase===R.ICONBASE&&e.push({name:"iconBase",className:"ICONBASE"}),q.DEFAULTS.tickIcon===R.TICKICON&&e.push({name:"tickIcon",className:"TICKICON"}),R.DIVIDER="dropdown-divider",R.SHOW="show",R.BUTTONCLASS="btn-light",R.POPOVERHEADER="popover-header",R.ICONBASE="",R.TICKICON="bs-ok-default";for(var i=0;i<e.length;i++){t=e[i];q.DEFAULTS[t.name]=R[t.className]}}var n=this.each(function(){var t=N(this);if(t.is("select")){var e=t.data("selectpicker"),i="object"==typeof c&&c;if(e){if(i)for(var n in i)i.hasOwnProperty(n)&&(e.options[n]=i[n])}else{var s=t.data();for(var o in s)s.hasOwnProperty(o)&&-1!==N.inArray(o,h)&&delete s[o];var r=N.extend({},q.DEFAULTS,N.fn.selectpicker.defaults||{},s,i);r.template=N.extend({},q.DEFAULTS.template,N.fn.selectpicker.defaults?N.fn.selectpicker.defaults.template:{},s.template,i.template),t.data("selectpicker",e=new q(this,r))}"string"==typeof c&&(a=e[c]instanceof Function?e[c].apply(e,l):e.options[c])}});return void 0!==a?a:n}q.VERSION="1.13.10",q.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:R.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:R.ICONBASE,tickIcon:R.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:t},q.prototype={constructor:q,init:function(){var i=this,t=this.$element.attr("id");U++,this.selectId="bs-select-"+U,this.$element[0].classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(W.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element[0].classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(R.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+j,function(){if(i.isVirtual()){var t=i.$menuInner[0],e=t.firstChild.cloneNode(!1);t.replaceChild(e,t.firstChild),t.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){i.$element.trigger("hide"+j,t)},"hidden.bs.dropdown":function(t){i.$element.trigger("hidden"+j,t)},"show.bs.dropdown":function(t){i.$element.trigger("show"+j,t)},"shown.bs.dropdown":function(t){i.$element.trigger("shown"+j,t)}}),i.$element[0].hasAttribute("required")&&this.$element.on("invalid"+j,function(){i.$button[0].classList.add("bs-invalid"),i.$element.on("shown"+j+".invalid",function(){i.$element.val(i.$element.val()).off("shown"+j+".invalid")}).on("rendered"+j,function(){this.validity.valid&&i.$button[0].classList.remove("bs-invalid"),i.$element.off("rendered"+j)}),i.$button.on("blur"+j,function(){i.$element.trigger("focus").trigger("blur"),i.$button.off("blur"+j)})}),setTimeout(function(){i.createLi(),i.$element.trigger("loaded"+j)})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",e=this.multiple?' aria-multiselectable="true"':"",i="",n=this.autofocus?" autofocus":"";F.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var s,o="",r="",a="",l="";return this.options.header&&(o='<div class="'+R.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>"),this.options.liveSearch&&(r='<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+E(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(a='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+R.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+R.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(l='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+R.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),s='<div class="dropdown bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+n+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===F.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+R.MENU+" "+("4"===F.major?"":R.SHOW)+'">'+o+r+a+'<div class="inner '+R.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+e+'><ul class="'+R.MENU+" inner "+("4"===F.major?R.SHOW:"")+'" role="presentation"></ul></div>'+l+"</div></div>",N(s)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var t=this.selectpicker.view.size=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],i=!0;"divider"===e.type?(i=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(i=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(A,t,e){var S,I,L=this,i=0,O=[];if(this.selectpicker.current=A?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),t)if(e)i=this.$menuInner[0].scrollTop;else if(!L.multiple){var n=L.$element[0],s=(n.options[n.selectedIndex]||{}).liIndex;if("number"==typeof s&&!1!==L.options.size){var o=L.selectpicker.main.data[s],r=o&&o.position;r&&(i=r-(L.sizeInfo.menuInnerHeight+L.sizeInfo.liHeight)/2)}}function a(t,e){var i,n,s,o,r,a,l,c,h=L.selectpicker.current.elements.length,d=[],u=!0,p=L.isVirtual();L.selectpicker.view.scrollTop=t,!0===p&&L.sizeInfo.hasScrollBar&&L.$menu[0].offsetWidth>L.sizeInfo.totalMenuWidth&&(L.sizeInfo.menuWidth=L.$menu[0].offsetWidth,L.sizeInfo.totalMenuWidth=L.sizeInfo.menuWidth+L.sizeInfo.scrollBarWidth,L.$menu.css("min-width",L.sizeInfo.menuWidth)),i=Math.ceil(L.sizeInfo.menuInnerHeight/L.sizeInfo.liHeight*1.5),n=Math.round(h/i)||1;for(var f=0;f<n;f++){var m=(f+1)*i;if(f===n-1&&(m=h),d[f]=[f*i+(f?1:0),m],!h)break;void 0===r&&t<=L.selectpicker.current.data[m-1].position-L.sizeInfo.menuInnerHeight&&(r=f)}if(void 0===r&&(r=0),a=[L.selectpicker.view.position0,L.selectpicker.view.position1],s=Math.max(0,r-1),o=Math.min(n-1,r+1),L.selectpicker.view.position0=!1===p?0:Math.max(0,d[s][0])||0,L.selectpicker.view.position1=!1===p?h:Math.min(h,d[o][1])||0,l=a[0]!==L.selectpicker.view.position0||a[1]!==L.selectpicker.view.position1,void 0!==L.activeIndex&&(I=L.selectpicker.main.elements[L.prevActiveIndex],O=L.selectpicker.main.elements[L.activeIndex],S=L.selectpicker.main.elements[L.selectedIndex],e&&(L.activeIndex!==L.selectedIndex&&L.defocusItem(O),L.activeIndex=void 0),L.activeIndex&&L.activeIndex!==L.selectedIndex&&L.defocusItem(S)),void 0!==L.prevActiveIndex&&L.prevActiveIndex!==L.activeIndex&&L.prevActiveIndex!==L.selectedIndex&&L.defocusItem(I),(e||l)&&(c=L.selectpicker.view.visibleElements?L.selectpicker.view.visibleElements.slice():[],L.selectpicker.view.visibleElements=!1===p?L.selectpicker.current.elements:L.selectpicker.current.elements.slice(L.selectpicker.view.position0,L.selectpicker.view.position1),L.setOptionStatus(),(A||!1===p&&e)&&(u=!function(t,i){return t.length===i.length&&t.every(function(t,e){return t===i[e]})}(c,L.selectpicker.view.visibleElements)),(e||!0===p)&&u)){var g,v,y=L.$menuInner[0],b=document.createDocumentFragment(),_=y.firstChild.cloneNode(!1),w=L.selectpicker.view.visibleElements,x=[];y.replaceChild(_,y.firstChild);f=0;for(var C=w.length;f<C;f++){var k,E,T=w[f];L.options.sanitize&&(k=T.lastChild)&&(E=L.selectpicker.current.data[f+L.selectpicker.view.position0])&&E.content&&!E.sanitized&&(x.push(k),E.sanitized=!0),b.appendChild(T)}L.options.sanitize&&x.length&&P(x,L.options.whiteList,L.options.sanitizeFn),!0===p?(g=0===L.selectpicker.view.position0?0:L.selectpicker.current.data[L.selectpicker.view.position0-1].position,v=L.selectpicker.view.position1>h-1?0:L.selectpicker.current.data[h-1].position-L.selectpicker.current.data[L.selectpicker.view.position1-1].position,y.firstChild.style.marginTop=g+"px",y.firstChild.style.marginBottom=v+"px"):(y.firstChild.style.marginTop=0,y.firstChild.style.marginBottom=0),y.firstChild.appendChild(b)}if(L.prevActiveIndex=L.activeIndex,L.options.liveSearch){if(A&&e){var $,D=0;L.selectpicker.view.canHighlight[D]||(D=1+L.selectpicker.view.canHighlight.slice(1).indexOf(!0)),$=L.selectpicker.view.visibleElements[D],L.defocusItem(L.selectpicker.view.currentActive),L.activeIndex=(L.selectpicker.current.data[D]||{}).index,L.focusItem($)}}else L.$menuInner.trigger("focus")}a(i,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(t,e){L.noScroll||a(this.scrollTop,e),L.noScroll=!1}),N(window).off("resize"+j+"."+this.selectId+".createView").on("resize"+j+"."+this.selectId+".createView",function(){L.$newElement.hasClass(R.SHOW)&&a(L.$menuInner[0].scrollTop)})},focusItem:function(t,e,i){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var n=t.firstChild;n&&(n.setAttribute("aria-setsize",this.selectpicker.view.size),n.setAttribute("aria-posinset",e.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",n.id),t.classList.add("active"),n.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var e=this.$element[0],i=!1,n=!this.selectpicker.view.titleOption.parentNode;if(n)this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=void 0===N(e.options[e.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected");!n&&0===this.selectpicker.view.titleOption.index||e.insertBefore(this.selectpicker.view.titleOption,e.firstChild),i&&(e.selectedIndex=0)}return t},createLi:function(){var c=this,f=this.options.iconBase,m=':not([hidden]):not([data-hidden="true"])',g=[],v=[],h=0,y=0,t=this.setPlaceholder()?1:0;this.options.hideDisabled&&(m+=":not(:disabled)"),!c.options.showTick&&!c.multiple||z.checkMark.parentNode||(z.checkMark.className=f+" "+c.options.tickIcon+" check-mark",z.a.appendChild(z.checkMark));var e=this.$element[0].querySelectorAll("select > *"+m);function b(t){var e=v[v.length-1];e&&"divider"===e.type&&(e.optID||t.optID)||((t=t||{}).type="divider",g.push(V(!1,R.DIVIDER,t.optID?t.optID+"div":void 0)),v.push(t))}function _(t,e){if((e=e||{}).divider="true"===t.getAttribute("data-divider"),e.divider)b({optID:e.optID});else{var i=v.length,n=t.style.cssText,s=n?E(n):"",o=(t.className||"")+(e.optgroupClass||"");e.optID&&(o="opt "+o),e.text=t.textContent,e.content=t.getAttribute("data-content"),e.tokens=t.getAttribute("data-tokens"),e.subtext=t.getAttribute("data-subtext"),e.icon=t.getAttribute("data-icon"),e.iconBase=f;var r=Q(e),a=V(G(r,o,s),"",e.optID);a.firstChild&&(a.firstChild.id=c.selectId+"-"+i),g.push(a),t.liIndex=i,e.display=e.content||e.text,e.type="option",e.index=i,e.option=t,e.disabled=e.disabled||t.disabled,v.push(e);var l=0;e.display&&(l+=e.display.length),e.subtext&&(l+=e.subtext.length),e.icon&&(l+=1),h<l&&(h=l,c.selectpicker.view.widestOption=g[g.length-1])}}function i(t,e){var i=e[t],n=e[t-1],s=e[t+1],o=i.querySelectorAll("option"+m);if(o.length){var r,a,l={label:E(i.label),subtext:i.getAttribute("data-subtext"),icon:i.getAttribute("data-icon"),iconBase:f},c=" "+(i.className||"");y++,n&&b({optID:y});var h=X(l);g.push(V(h,"dropdown-header"+c,y)),v.push({display:l.label,subtext:l.subtext,type:"optgroup-label",optID:y});for(var d=0,u=o.length;d<u;d++){var p=o[d];0===d&&(a=(r=v.length-1)+u),_(p,{headerIndex:r,lastIndex:a,optID:y,optgroupClass:c,disabled:i.disabled})}s&&b({optID:y})}}for(var n=e.length;t<n;t++){var s=e[t];"OPTGROUP"!==s.tagName?_(s,{}):i(t,e)}this.selectpicker.main.elements=g,this.selectpicker.main.data=v,this.selectpicker.current=this.selectpicker.main},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){this.setPlaceholder();var t,e=this.$element[0],i=function(t,e){var i,n=t.selectedOptions,s=[];if(e){for(var o=0,r=n.length;o<r;o++)(i=n[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||s.push(i);return s}return n}(e,this.options.hideDisabled),n=i.length,s=this.$button[0],o=s.querySelector(".filter-option-inner-inner"),r=document.createTextNode(this.options.multipleSeparator),a=z.fragment.cloneNode(!1),l=!1;if(s.classList.toggle("bs-placeholder",this.multiple?!n:!D(e,i)),this.tabIndex(),"static"===this.options.selectedTextFormat)a=Q({text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<n&&(1<(t=this.options.selectedTextFormat.split(">")).length&&n>t[1]||1===t.length&&2<=n))){for(var c=0;c<n&&c<50;c++){var h=i[c],d={},u={content:h.getAttribute("data-content"),subtext:h.getAttribute("data-subtext"),icon:h.getAttribute("data-icon")};this.multiple&&0<c&&a.appendChild(r.cloneNode(!1)),h.title?d.text=h.title:u.content&&this.options.showContent?(d.content=u.content.toString(),l=!0):(this.options.showIcon&&(d.icon=u.icon,d.iconBase=this.options.iconBase),this.options.showSubtext&&!this.multiple&&u.subtext&&(d.subtext=" "+u.subtext),d.text=h.textContent.trim()),a.appendChild(Q(d,!0))}49<n&&a.appendChild(document.createTextNode("..."))}else{var p=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(p+=":not(:disabled)");var f=this.$element[0].querySelectorAll("select > option"+p+", optgroup"+p+" option"+p).length,m="function"==typeof this.options.countSelectedText?this.options.countSelectedText(n,f):this.options.countSelectedText;a=Q({text:m.replace("{0}",n.toString()).replace("{1}",f.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),a.childNodes.length||(a=Q({text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),s.title=a.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&l&&P([a],this.options.whiteList,this.options.sanitizeFn),o.innerHTML="",o.appendChild(a),F.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var g=s.querySelector(".filter-expand"),v=o.cloneNode(!0);v.className="filter-expand",g?s.replaceChild(v,g):s.appendChild(v)}this.$element.trigger("rendered"+j)},setStyle:function(t,e){var i,n=this.$button[0],s=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),F.major<4&&(s.classList.add("bs3"),s.parentNode.classList.contains("input-group")&&(s.previousElementSibling||s.nextElementSibling)&&(s.previousElementSibling||s.nextElementSibling).classList.contains("input-group-addon")&&s.classList.add("bs3-has-addon")),i=t?t.trim():o,"add"==e?i&&n.classList.add.apply(n.classList,i.split(" ")):"remove"==e?i&&n.classList.remove.apply(n.classList,i.split(" ")):(o&&n.classList.remove.apply(n.classList,o.split(" ")),i&&n.classList.add.apply(n.classList,i.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var e=document.createElement("div"),i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("ul"),o=document.createElement("li"),r=document.createElement("li"),a=document.createElement("li"),l=document.createElement("a"),c=document.createElement("span"),h=this.options.header&&0<this.$menu.find("."+R.POPOVERHEADER).length?this.$menu.find("."+R.POPOVERHEADER)[0].cloneNode(!0):null,d=this.options.liveSearch?document.createElement("div"):null,u=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,f=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,c.className="text",l.className="dropdown-item "+(f?f.className:""),e.className=this.$menu[0].parentNode.className+" "+R.SHOW,e.style.width=this.sizeInfo.selectWidth+"px","auto"===this.options.width&&(i.style.minWidth=0),i.className=R.MENU+" "+R.SHOW,n.className="inner "+R.SHOW,s.className=R.MENU+" inner "+("4"===F.major?R.SHOW:""),o.className=R.DIVIDER,r.className="dropdown-header",c.appendChild(document.createTextNode("")),l.appendChild(c),a.appendChild(l),r.appendChild(c.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(a),s.appendChild(o),s.appendChild(r),h&&i.appendChild(h),d){var m=document.createElement("input");d.className="bs-searchbox",m.className="form-control",d.appendChild(m),i.appendChild(d)}u&&i.appendChild(u),n.appendChild(s),i.appendChild(n),p&&i.appendChild(p),e.appendChild(i),document.body.appendChild(e);var g,v=a.offsetHeight,y=r?r.offsetHeight:0,b=h?h.offsetHeight:0,_=d?d.offsetHeight:0,w=u?u.offsetHeight:0,x=p?p.offsetHeight:0,C=N(o).outerHeight(!0),k=!!window.getComputedStyle&&window.getComputedStyle(i),E=i.offsetWidth,T=k?null:N(i),$={vert:S(k?k.paddingTop:T.css("paddingTop"))+S(k?k.paddingBottom:T.css("paddingBottom"))+S(k?k.borderTopWidth:T.css("borderTopWidth"))+S(k?k.borderBottomWidth:T.css("borderBottomWidth")),horiz:S(k?k.paddingLeft:T.css("paddingLeft"))+S(k?k.paddingRight:T.css("paddingRight"))+S(k?k.borderLeftWidth:T.css("borderLeftWidth"))+S(k?k.borderRightWidth:T.css("borderRightWidth"))},D={vert:$.vert+S(k?k.marginTop:T.css("marginTop"))+S(k?k.marginBottom:T.css("marginBottom"))+2,horiz:$.horiz+S(k?k.marginLeft:T.css("marginLeft"))+S(k?k.marginRight:T.css("marginRight"))+2};n.style.overflowY="scroll",g=i.offsetWidth-E,document.body.removeChild(e),this.sizeInfo.liHeight=v,this.sizeInfo.dropdownHeaderHeight=y,this.sizeInfo.headerHeight=b,this.sizeInfo.searchHeight=_,this.sizeInfo.actionsHeight=w,this.sizeInfo.doneButtonHeight=x,this.sizeInfo.dividerHeight=C,this.sizeInfo.menuPadding=$,this.sizeInfo.menuExtras=D,this.sizeInfo.menuWidth=E,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=g,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,e=N(window),i=this.$newElement.offset(),n=N(this.options.container);this.options.container&&n.length&&!n.is("body")?((t=n.offset()).top+=parseInt(n.css("borderTopWidth")),t.left+=parseInt(n.css("borderLeftWidth"))):t={top:0,left:0};var s=this.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-t.top-e.scrollTop(),this.sizeInfo.selectOffsetBot=e.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-s[2],this.sizeInfo.selectOffsetLeft=i.left-t.left-e.scrollLeft(),this.sizeInfo.selectOffsetRight=e.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-s[1],this.sizeInfo.selectOffsetTop-=s[0],this.sizeInfo.selectOffsetLeft-=s[3]},setMenuSize:function(t){this.getSelectPosition();var e,i,n,s,o,r,a,l=this.sizeInfo.selectWidth,c=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,d=this.sizeInfo.searchHeight,u=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,f=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(a=c*this.selectpicker.current.elements.length+m.vert,this.$newElement.toggleClass(R.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&a+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)s=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=s+h+d+u+p,r=Math.max(s-m.vert,0),this.$newElement.hasClass(R.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),e=(o=i)-h-d-u-p-m.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;v<this.options.size;v++)"divider"===this.selectpicker.current.data[v].type&&g++;e=(i=c*this.options.size+g*f+m.vert)-m.vert,o=i+h+d+u+p,n=r=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(R.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-l),this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":r+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var e=this,i=N(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return e.setMenuSize()}),"auto"===this.options.size?i.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize").on("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize",function(){return e.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&i.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize"),e.createView(!1,!0,t)}},setWidth:function(){var i=this;"auto"===this.options.width?requestAnimationFrame(function(){i.$menu.css("min-width","0"),i.$element.on("loaded"+j,function(){i.liHeight(),i.setMenuSize();var t=i.$newElement.clone().appendTo("body"),e=t.css("width","auto").children("button").outerWidth();t.remove(),i.sizeInfo.selectWidth=Math.max(i.sizeInfo.totalMenuWidth,e),i.$newElement.css("width",i.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=N('<div class="bs-container" />');function t(t){var e={},i=r.options.display||!!N.fn.dropdown.Constructor.Default&&N.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(R.DROPUP,t.hasClass(R.DROPUP)),n=t.offset(),a.is("body")?s={top:0,left:0}:((s=a.offset()).top+=parseInt(a.css("borderTopWidth"))-a.scrollTop(),s.left+=parseInt(a.css("borderLeftWidth"))-a.scrollLeft()),o=t.hasClass(R.DROPUP)?0:t[0].offsetHeight,(F.major<4||"static"===i)&&(e.top=n.top-s.top+o,e.left=n.left-s.left),e.width=t[0].offsetWidth,r.$bsContainer.css(e)}var n,s,o,r=this,a=N(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(t(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(R.SHOW,!r.$button.hasClass(R.SHOW)).append(r.$menu))}),N(window).off("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId).on("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId,function(){r.$newElement.hasClass(R.SHOW)&&t(r.$newElement)}),this.$element.on("hide"+j,function(){r.$menu.data("height",r.$menu.height()),r.$bsContainer.detach()})},setOptionStatus:function(t){if(this.noScroll=!1,this.selectpicker.view.visibleElements&&this.selectpicker.view.visibleElements.length)for(var e=0;e<this.selectpicker.view.visibleElements.length;e++){var i=this.selectpicker.current.data[e+this.selectpicker.view.position0],n=i.option;n&&(!0!==t&&this.setDisabled(i.index,i.disabled),this.setSelected(i.index,n.selected))}},setSelected:function(t,e){var i,n,s=this.selectpicker.main.elements[t],o=this.selectpicker.main.data[t],r=void 0!==this.activeIndex,a=this.activeIndex===t||e&&!this.multiple&&!r;o.selected=e,n=s.firstChild,e&&(this.selectedIndex=t),s.classList.toggle("selected",e),a?(this.focusItem(s,o),this.selectpicker.view.currentActive=s,this.activeIndex=t):this.defocusItem(s),n&&(n.classList.toggle("selected",e),e?n.setAttribute("aria-selected",!0):this.multiple?n.setAttribute("aria-selected",!1):n.removeAttribute("aria-selected")),a||r||!e||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i))},setDisabled:function(t,e){var i,n=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,i=n.firstChild,n.classList.toggle(R.DISABLED,e),i&&("4"===F.major&&i.classList.toggle(R.DISABLED,e),e?(i.setAttribute("aria-disabled",e),i.setAttribute("tabindex",-1)):(i.removeAttribute("aria-disabled"),i.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement[0].classList.add(R.DISABLED),this.$button.addClass(R.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button[0].classList.contains(R.DISABLED)&&(this.$newElement[0].classList.remove(R.DISABLED),this.$button.removeClass(R.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.on("click",function(){return!t.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var $=this,e=N(document);function t(){$.options.liveSearch?$.$searchbox.trigger("focus"):$.$menuInner.trigger("focus")}function i(){$.dropdown&&$.dropdown._popper&&$.dropdown._popper.state.isCreated?t():requestAnimationFrame(i)}e.data("spaceSelect",!1),this.$button.on("keyup",function(t){/(32)/.test(t.keyCode.toString(10))&&e.data("spaceSelect")&&(t.preventDefault(),e.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<F.major&&!$.dropdown&&($.dropdown=$.$button.data("bs.dropdown"),$.dropdown._menu=$.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){$.$newElement.hasClass(R.SHOW)||$.setSize()}),this.$element.on("shown"+j,function(){$.$menuInner[0].scrollTop!==$.selectpicker.view.scrollTop&&($.$menuInner[0].scrollTop=$.selectpicker.view.scrollTop),3<F.major?requestAnimationFrame(i):t()}),this.$menuInner.on("mouseenter","li a",function(t){var e=this.parentElement,i=$.isVirtual()?$.selectpicker.view.position0:0,n=Array.prototype.indexOf.call(e.parentElement.children,e),s=$.selectpicker.current.data[n+i];$.focusItem(e,s,!0)}),this.$menuInner.on("click","li a",function(t,e){var i=N(this),n=$.$element[0],s=$.isVirtual()?$.selectpicker.view.position0:0,o=$.selectpicker.current.data[i.parent().index()+s],r=o.index,a=D(n),l=n.selectedIndex,c=n.options[l],h=!0;if($.multiple&&1!==$.options.maxOptions&&t.stopPropagation(),t.preventDefault(),!$.isDisabled()&&!i.parent().hasClass(R.DISABLED)){var d=$.$element.find("option"),u=o.option,p=N(u),f=u.selected,m=p.parent("optgroup"),g=m.find("option"),v=$.options.maxOptions,y=m.data("maxOptions")||!1;if(r===$.activeIndex&&(e=!0),e||($.prevActiveIndex=$.activeIndex,$.activeIndex=void 0),$.multiple){if(u.selected=!f,$.setSelected(r,!f),i.trigger("blur"),!1!==v||!1!==y){var b=v<d.filter(":selected").length,_=y<m.find("option:selected").length;if(v&&b||y&&_)if(v&&1==v){d.prop("selected",!1),p.prop("selected",!0);for(var w=0;w<d.length;w++)$.setSelected(w,!1);$.setSelected(r,!0)}else if(y&&1==y){m.find("option:selected").prop("selected",!1),p.prop("selected",!0);for(w=0;w<g.length;w++){u=g[w];$.setSelected(d.index(u),!1)}$.setSelected(r,!0)}else{var x="string"==typeof $.options.maxOptionsText?[$.options.maxOptionsText,$.options.maxOptionsText]:$.options.maxOptionsText,C="function"==typeof x?x(v,y):x,k=C[0].replace("{n}",v),E=C[1].replace("{n}",y),T=N('<div class="notify"></div>');C[2]&&(k=k.replace("{var}",C[2][1<v?0:1]),E=E.replace("{var}",C[2][1<y?0:1])),p.prop("selected",!1),$.$menu.append(T),v&&b&&(T.append(N("<div>"+k+"</div>")),h=!1,$.$element.trigger("maxReached"+j)),y&&_&&(T.append(N("<div>"+E+"</div>")),h=!1,$.$element.trigger("maxReachedGrp"+j)),setTimeout(function(){$.setSelected(r,!1)},10),T.delay(750).fadeOut(300,function(){N(this).remove()})}}}else c.selected=!1,u.selected=!0,$.setSelected(r,!0);!$.multiple||$.multiple&&1===$.options.maxOptions?$.$button.trigger("focus"):$.options.liveSearch&&$.$searchbox.trigger("focus"),h&&(!$.multiple&&l===n.selectedIndex||(A=[u.index,p.prop("selected"),a],$.$element.triggerNative("change")))}}),this.$menu.on("click","li."+R.DISABLED+" a, ."+R.POPOVERHEADER+", ."+R.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),$.options.liveSearch&&!N(t.target).hasClass("close")?$.$searchbox.trigger("focus"):$.$button.trigger("focus"))}),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),$.options.liveSearch?$.$searchbox.trigger("focus"):$.$button.trigger("focus")}),this.$menu.on("click","."+R.POPOVERHEADER+" .close",function(){$.$button.trigger("click")}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(t){$.options.liveSearch?$.$searchbox.trigger("focus"):$.$button.trigger("focus"),t.preventDefault(),t.stopPropagation(),N(this).hasClass("bs-select-all")?$.selectAll():$.deselectAll()}),this.$element.on("change"+j,function(){$.render(),$.$element.trigger("changed"+j,A),A=null}).on("focus"+j,function(){$.options.mobile||$.$button.trigger("focus")})},liveSearchListener:function(){var p=this,f=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){p.$searchbox.val()&&p.$searchbox.val("")}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var t=p.$searchbox.val();if(p.selectpicker.search.elements=[],p.selectpicker.search.data=[],t){var e=[],i=t.toUpperCase(),n={},s=[],o=p._searchStyle(),r=p.options.liveSearchNormalize;r&&(i=b(i)),p._$lisSelected=p.$menuInner.find(".selected");for(var a=0;a<p.selectpicker.main.data.length;a++){var l=p.selectpicker.main.data[a];n[a]||(n[a]=x(l,i,o,r)),n[a]&&void 0!==l.headerIndex&&-1===s.indexOf(l.headerIndex)&&(0<l.headerIndex&&(n[l.headerIndex-1]=!0,s.push(l.headerIndex-1)),n[l.headerIndex]=!0,s.push(l.headerIndex),n[l.lastIndex+1]=!0),n[a]&&"optgroup-label"!==l.type&&s.push(a)}a=0;for(var c=s.length;a<c;a++){var h=s[a],d=s[a-1],u=(l=p.selectpicker.main.data[h],p.selectpicker.main.data[d]);("divider"!==l.type||"divider"===l.type&&u&&"divider"!==u.type&&c-1!==a)&&(p.selectpicker.search.data.push(l),e.push(p.selectpicker.main.elements[h]))}p.activeIndex=void 0,p.noScroll=!0,p.$menuInner.scrollTop(0),p.selectpicker.search.elements=e,p.createView(!0),e.length||(f.className="no-results",f.innerHTML=p.options.noneResultsText.replace("{0}",'"'+E(t)+'"'),p.$menuInner[0].firstChild.appendChild(f))}else p.$menuInner.scrollTop(0),p.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if(void 0===t)return this.$element.val();var i=D(e);if(A=[null,null,i],this.$element.val(t).trigger("changed"+j,A),this.$newElement.hasClass(R.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var n=(e.options[e.selectedIndex]||{}).liIndex;"number"==typeof n&&(this.setSelected(this.selectedIndex,!1),this.setSelected(n,!0))}return this.render(),A=null,this.$element},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element[0],i=0,n=0,s=D(e);e.classList.add("bs-select-hidden");for(var o=0,r=this.selectpicker.current.elements.length;o<r;o++){var a=this.selectpicker.current.data[o],l=a.option;l&&!a.disabled&&"divider"!==a.type&&(a.selected&&i++,(l.selected=t)&&n++)}e.classList.remove("bs-select-hidden"),i!==n&&(this.setOptionStatus(),A=[null,null,s],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(t){var e,i,n,s,o,r=N(this),a=r.hasClass("dropdown-toggle"),l=(a?r.closest(".dropdown"):r.closest(W.MENU)).data("this"),c=l.findLis(),h=!1,d=t.which===M&&!a&&!l.options.selectOnTab,u=Y.test(t.which)||d,p=l.$menuInner[0].scrollTop,f=!0===l.isVirtual()?l.selectpicker.view.position0:0;if(!(i=l.$newElement.hasClass(R.SHOW))&&(u||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105||65<=t.which&&t.which<=90)&&(l.$button.trigger("click.bs.dropdown.data-api"),l.options.liveSearch))l.$searchbox.trigger("focus");else{if(t.which===I&&i&&(t.preventDefault(),l.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),u){if(!c.length)return;-1!==(e=(n=l.selectpicker.main.elements[l.activeIndex])?Array.prototype.indexOf.call(n.parentElement.children,n):-1)&&l.defocusItem(n),t.which===B?(-1!==e&&e--,e+f<0&&(e+=c.length),l.selectpicker.view.canHighlight[e+f]||-1===(e=l.selectpicker.view.canHighlight.slice(0,e+f).lastIndexOf(!0)-f)&&(e=c.length-1)):t.which!==H&&!d||(++e+f>=l.selectpicker.view.canHighlight.length&&(e=0),l.selectpicker.view.canHighlight[e+f]||(e=e+1+l.selectpicker.view.canHighlight.slice(e+f+1).indexOf(!0))),t.preventDefault();var m=f+e;t.which===B?0===f&&e===c.length-1?(l.$menuInner[0].scrollTop=l.$menuInner[0].scrollHeight,m=l.selectpicker.current.elements.length-1):h=(o=(s=l.selectpicker.current.data[m]).position-s.height)<p:t.which!==H&&!d||(0===e?m=l.$menuInner[0].scrollTop=0:h=p<(o=(s=l.selectpicker.current.data[m]).position-l.sizeInfo.menuInnerHeight)),n=l.selectpicker.current.elements[m],l.activeIndex=l.selectpicker.current.data[m].index,l.focusItem(n),l.selectpicker.view.currentActive=n,h&&(l.$menuInner[0].scrollTop=o),l.options.liveSearch?l.$searchbox.trigger("focus"):r.trigger("focus")}else if(!r.is("input")&&!K.test(t.which)||t.which===O&&l.selectpicker.keydown.keyHistory){var g,v,y=[];t.preventDefault(),l.selectpicker.keydown.keyHistory+=$[t.which],l.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(l.selectpicker.keydown.resetKeyHistory.cancel),l.selectpicker.keydown.resetKeyHistory.cancel=l.selectpicker.keydown.resetKeyHistory.start(),v=l.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(v)&&(v=v.charAt(0));for(var b=0;b<l.selectpicker.current.data.length;b++){var _=l.selectpicker.current.data[b];x(_,v,"startsWith",!0)&&l.selectpicker.view.canHighlight[b]&&y.push(_.index)}if(y.length){var w=0;c.removeClass("active").find("a").removeClass("active"),1===v.length&&(-1===(w=y.indexOf(l.activeIndex))||w===y.length-1?w=0:w++),g=y[w],h=0<p-(s=l.selectpicker.main.data[g]).position?(o=s.position-s.height,!0):(o=s.position-l.sizeInfo.menuInnerHeight,s.position>p+l.sizeInfo.menuInnerHeight),n=l.selectpicker.main.elements[g],l.activeIndex=y[w],l.focusItem(n),n&&n.firstChild.focus(),h&&(l.$menuInner[0].scrollTop=o),r.trigger("focus")}}i&&(t.which===O&&!l.selectpicker.keydown.keyHistory||t.which===L||t.which===M&&l.options.selectOnTab)&&(t.which!==O&&t.preventDefault(),l.options.liveSearch&&t.which===O||(l.$menuInner.find(".active a").trigger("click",!0),r.trigger("focus"),l.options.liveSearch||(t.preventDefault(),N(document).data("spaceSelect",!0))))}},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=N.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.setStyle(),this.render(),this.createLi(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+j)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(j).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),N(window).off(j+"."+this.selectId)}};var J=N.fn.selectpicker;N.fn.selectpicker=Z,N.fn.selectpicker.Constructor=q,N.fn.selectpicker.noConflict=function(){return N.fn.selectpicker=J,this},N(document).off("keydown.bs.dropdown.data-api").on("keydown"+j,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',q.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(t){t.stopPropagation()}),N(window).on("load"+j+".data-api",function(){N(".selectpicker").each(function(){var t=N(this);Z.call(t,t.data())})})}(jQuery),jQuery.fn.selectpicker.defaults={noneSelectedText:"Nessuna selezione",noneResultsText:"Nessun risultato per {0}",countSelectedText:function(t,e){return 1==t?"Selezionato {0} di {1}":"Selezionati {0} di {1}"},maxOptionsText:["Limite raggiunto ({n} {var} max)","Limite del gruppo raggiunto ({n} {var} max)",["elementi","elemento"]],multipleSeparator:", ",selectAllText:"Seleziona Tutto",deselectAllText:"Deseleziona Tutto"},function(){"use strict";if("undefined"!=typeof window&&window.addEventListener){var t,e,i,_=Object.create(null),w=function(){clearTimeout(e),e=setTimeout(t,100)},x=function(){},C="http://www.w3.org/1999/xlink";t=function(){var t,e,i,n,s,o,r,a,l,c,h,d,u,p,f=0;function m(){0===(f-=1)&&(x(),function(){var t;window.addEventListener("resize",w,!1),window.addEventListener("orientationchange",w,!1),x=window.MutationObserver?((t=new MutationObserver(w)).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),function(){try{t.disconnect(),window.removeEventListener("resize",w,!1),window.removeEventListener("orientationchange",w,!1)}catch(t){}}):(document.documentElement.addEventListener("DOMSubtreeModified",w,!1),function(){document.documentElement.removeEventListener("DOMSubtreeModified",w,!1),window.removeEventListener("resize",w,!1),window.removeEventListener("orientationchange",w,!1)})}())}function g(t){return function(){!0!==_[t.base]&&(t.useEl.setAttributeNS(C,"xlink:href","#"+t.hash),t.useEl.hasAttribute("href")&&t.useEl.setAttribute("href","#"+t.hash))}}function v(n){return function(){var t,e=document.body,i=document.createElement("x");n.onload=null,i.innerHTML=n.responseText,(t=i.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",e.insertBefore(t,e.firstChild)),m()}}function y(t){return function(){t.onerror=null,t.ontimeout=null,m()}}for(x(),l=document.getElementsByTagName("use"),s=0;s<l.length;s+=1){try{e=l[s].getBoundingClientRect()}catch(t){e=!1}t=(a=(n=l[s].getAttribute("href")||l[s].getAttributeNS(C,"href")||l[s].getAttribute("xlink:href"))&&n.split?n.split("#"):["",""])[0],i=a[1],o=e&&0===e.left&&0===e.right&&0===e.top&&0===e.bottom,e&&0===e.width&&0===e.height&&!o?(l[s].hasAttribute("href")&&l[s].setAttributeNS(C,"xlink:href",n),t.length&&(!0!==(c=_[t])&&setTimeout(g({useEl:l[s],base:t,hash:i}),0),void 0===c&&(h=t,p=u=d=void 0,window.XMLHttpRequest&&(d=new XMLHttpRequest,u=b(location),p=b(h),d=void 0===d.withCredentials&&""!==p&&p!==u?XDomainRequest||void 0:XMLHttpRequest),void 0!==(r=d)&&(c=new r,(_[t]=c).onload=v(c),c.onerror=y(c),c.ontimeout=y(c),c.open("GET",t),c.send(),f+=1)))):o?t.length&&_[t]&&setTimeout(g({useEl:l[s],base:t,hash:i}),0):void 0===_[t]?_[t]=!0:_[t].onload&&(_[t].abort(),delete _[t].onload,_[t]=!0)}function b(t){var e;return void 0!==t.protocol?e=t:(e=document.createElement("a")).href=t,e.protocol.replace(/:/g,"")+e.host}l="",f+=1,m()},i=function(){window.removeEventListener("load",i,!1),e=setTimeout(t,0)},"complete"!==document.readyState?window.addEventListener("load",i,!1):i()}}(),Array.from||(Array.from=function(){function h(t){return"function"==typeof t||"[object Function]"===e.call(t)}function d(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(0<e?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),i)}var e=Object.prototype.toString,i=Math.pow(2,53)-1;return function(t,e,i){var n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var s,o=1<arguments.length?e:void 0;if(void 0!==o){if(!h(o))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(s=i)}for(var r,a=d(n.length),l=h(this)?Object(new this(a)):new Array(a),c=0;c<a;)r=n[c],l[c]=o?void 0===s?o(r,c):o.call(s,r,c):r,c+=1;return l.length=a,l}}()),function(p){function l(t){return t*Math.PI/180}function f(t,e,i){var n=p("#"+i+"canvas")[0],s=p("#"+i+"canvas"),o=n.getContext("2d"),r=n.width/2,a=n.height/2;o.beginPath(),o.arc(r,a,p(s).attr("data-radius"),0,2*Math.PI,!1),o.fillStyle="transparent",o.fill(),o.lineWidth=p(s).attr("data-width"),o.strokeStyle=p(s).attr("data-progressBarBackground"),o.stroke(),o.closePath(),o.beginPath(),o.arc(r,a,p(s).attr("data-radius"),-l(90),-l(90)+l(t/100*360),!1),o.fillStyle="transparent",o.fill(),o.lineWidth=p(s).attr("data-width"),o.strokeStyle=p(s).attr("data-stroke"),o.stroke(),o.closePath(),"true"==p(s).attr("data-text").toLocaleLowerCase()&&p("#"+i+" .clProg").val(e+("true"==p(s).attr("data-percent").toLocaleLowerCase()?"%":""))}p.fn.circularloader=function(t){var e=this[0],i=e.id;if(0==p("#"+i+"canvas").length){var n=p.extend({backgroundColor:"#ffffff",fontColor:"#000000",fontSize:"40px",radius:70,progressBarBackground:"#cdcdcd",progressBarColor:"#aaaaaa",progressBarWidth:25,progressPercent:0,progressValue:0,showText:!0,title:""},t),s=parseInt(n.radius),o=parseInt(n.progressBarWidth),r=parseInt(0<parseInt(n.progressValue)?n.progressValue:n.progressPercent),a=parseInt(n.progressPercent),l="color:"+n.fontColor+";font-size:"+parseInt(n.fontSize)+"px;width:"+2*(s+o)+"px;vertical-align:middle;position:relative;background-color:transparent;border:0 none;transform:translateY(-48%);-webkit-transform: translateY(-48%);-ms-transform: translateY(-48%);height:"+2*(s+o)+"px;margin-left:-"+2*(s+o)+"px;text-align:center;padding:0;"+(n.showText?"":"display:none;");p('<canvas data-width="'+o+'" data-radius="'+s+'" data-stroke="'+n.progressBarColor+'" data-progressBarBackground="'+n.progressBarBackground+'" data-backgroundColor="'+n.backgroundColor+'" data-text='+n.showText+" data-percent="+(null==t.progressValue)+' id="'+i+'canvas" width='+2*(s+o)+" height="+2*(s+o)+"></canvas>").appendTo(e),p('<input class="clProg" style="'+l+'" value="'+r+(null==t.progressValue?"%":"")+'" aria-hidden="true"></input>').appendTo(e),""==n.title?p("#"+i).css("height",2*(s+o)):(p("#"+i).css("height",2*(s+o)+20),p("#"+i+"canvas").before("<div class='titleCircularLoader' style='height:19px;text-align:center;'>"+n.title+"</div>"),p(".titleCircularLoader").css("width",2*(s+o)));var c=p("#"+i+"canvas")[0],h=c.getContext("2d"),d=c.width/2,u=c.height/2;p("#"+i+"canvas").offset().left,p("#"+i+"canvas").offset().top,h.beginPath(),h.arc(d,u,s,0,2*Math.PI,!1),h.fillStyle=n.backgroundColor,h.fill(),h.lineWidth=o,h.strokeStyle=n.progressBarBackground,h.stroke(),h.closePath(),0<a&&f(a,r,i)}else if(null!=t.progressPercent||null!=t.progressValue){a=0,r=0;a=null==t.progressPercent?100<parseInt(t.progressValue)?100:parseInt(t.progressValue):100<parseInt(t.progressPercent)?100:parseInt(t.progressPercent),r=null==t.progressValue?100<parseInt(t.progressPercent)?100:parseInt(t.progressPercent):parseInt(t.progressValue),f(a,r,i)}return this}}(jQuery),function(c){"use strict";function t(o,r){function a(t){return-1===t?"danger":-2===t?"muted":(t=t<0?0:t)<26?"danger":t<51?"warning":"success"}function l(t,e){for(var i="",n=!1,s=0;s<e.length;s++){n=!0;for(var o=0;o<t&&o+s+t<e.length;o++)n=n&&e.charAt(o+s)===e.charAt(o+s+t);o<t&&(n=!1),n?(s+=t-1,n=!1):i+=e.charAt(s)}return i}return r=c.extend({},{shortPass:"Password molto debole",badPass:"Password debole",goodPass:"Password sicura",strongPass:"Password molto sicura",enterPass:"Inserisci almeno 8 caratteri e una lettera maiuscola",showText:!0,minimumLength:4},r),function(){var n=r.showText,t=c("<div>").addClass("password-meter progress rounded-0 position-absolute");t.append('<div class="row position-absolute w-100 m-0">\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n </div>');var s=c("<div>").attr({class:"progress-bar",role:"progressbar","aria-valuenow":"0","aria-valuemin":"0","aria-valuemax":"100"}),e=c("<div>").attr({class:"password-strength-meter"}).append(t.append(s));return r.showText&&(n=c("<small>").addClass("form-text text-muted").html(r.enterPass),e.prepend(n)),o.after(e),o.keyup(function(){var t=function(t){var e=0;if(0===t.trim().length)return-2;if(t.length<r.minimumLength)return-1;e+=4*t.length,e+=l(1,t).length-t.length,e+=l(2,t).length-t.length,e+=l(3,t).length-t.length,e+=l(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),100<e&&(e=100),e<0&&(e=0),e}(o.val());o.trigger("password.score",[t]);var e=t<0?0:t;if(s.removeClass(function(t,e){return(e.match(/(^|\s)bg-\S+/g)||[]).join(" ")}),s.addClass("bg-"+a(t)),s.css({width:e+"%"}),s.attr("aria-valuenow",e),r.showText){var i=function(t){return-1===t?r.shortPass:(t=t<0?0:t)<26?r.shortPass:t<51?r.badPass:t<76?r.goodPass:r.strongPass}(t);!o.val().length&&t<=0&&(i=r.enterPass),n.html()!==c("<div>").html(i).html()&&(n.html(i),n.removeClass(function(t,e){return(e.match(/(^|\s)text-\S+/g)||[]).join(" ")}),n.addClass("text-"+a(t)),o.trigger("password.text",[i,t]))}}),this}.call(this)}c.fn.password=function(){return this.each(function(){new t(c(this),c(this).data())})}}(jQuery),$(function(){var i=!1,n=null;$(".input-password").on("keydown",function(t){16==(t.keyCode?t.keyCode:t.which)&&(i=!0)}).on("keyup",function(t){var e=t.keyCode?t.keyCode:t.which;16==e&&(i=!1),20==e&&(n?(n=!1,$(".password-caps").remove()):(n=!0,$("input:focus").each(function(t){showCapsLockMsg($(this))})))}).on("keypress",function(t){var e=t.keyCode?t.keyCode:t.which;65<=e&&e<=90&&!i&&(n=!0,showCapsLockMsg($(this)))}),$(".input-password-strength-meter").password(),$(".password-icon").on("click",function(t){$(this).find('[class^="password-icon"]').toggleClass("d-none");var e=$(this).siblings(".input-password"),i="password"===e.attr("type")?"text":"password";e.attr("type",i)})}),function(){"use strict";void 0===Date.dp_locales&&(Date.dp_locales={texts:{buttonTitle:"Scegli la data ...",buttonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per aprire il calendario",prevButtonLabel:"Vai al mese precedente",nextButtonLabel:"Vai al mese successivo",closeButtonTitle:"Chiudere",closeButtonLabel:"Chiudere il calendario",prevMonthButtonLabel:"Vai all'anno precedente",prevYearButtonLabel:"Vai a vent'anni precedenti",nextMonthButtonLabel:"Vai al prossimo anno",nextYearButtonLabel:"Vai ai prossimi 20 anni",changeMonthButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per cambiare il mese",changeYearButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per cambiare l'anno",changeRangeButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per andare ai prossimi 20 anni",calendarHelp:"- Freccia e Freccia giù - va allo stesso giorno della settimana in settimana precedente o successiva, rispettivamente. Se viene raggiunta la fine del mese, continua nel mese precedente o successivo a seconda dei casi.\r\n- Freccia Sinistra e Freccia destra - avanza un giorno all'altro, anche in un continuum. Visivamente fuoco viene spostato da un giorno all'altro e avvolge da riga a riga nella griglia di giorni.\r\n- Control + Pagina Su - Passa alla stessa data dell'anno precedente.\r\n- Control + Pagina giù - Passa alla stessa data nel prossimo anno.\r\n- Home - Passa al primo giorno del mese in corso.\r\n- End - Passa l'ultimo giorno del mese corrente.\r\n- Pagina Su - Passa alla stessa data del mese precedente.\r\n- Pagina giù - Passa alla stessa data del mese successivo.\r\n- Invio o Espace - chiude il calendario e la data selezionata viene visualizzata nella casella di testo associato.\r\n- Escape - chiude il calendario senza alcuna azione."},directionality:"LTR",month_names:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],month_names_abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],month_names_narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],day_names:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],day_names_abbreviated:["dom","lun","mar","mer","gio","ven","sab"],day_names_short:["dom","lun","mar","mer","gio","ven","sab"],day_names_narrow:["D","L","M","M","G","V","S"],day_periods:{am:"AM",noon:"mezzogiorno",pm:"PM"},day_periods_abbreviated:{am:"AM",noon:"mezzogiorno",pm:"PM"},day_periods_narrow:{am:"m.",noon:"n",pm:"p."},quarter_names:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],quarter_names_abbreviated:["T1","T2","T3","T4"],quarter_names_narrow:["1","2","3","4"],era_names:["a.C.","d.C."],era_names_abbreviated:["aC","dC"],era_names_narrow:["aC","dC"],full_format:"EEEE d MMMM y",long_format:"d MMMM y",medium_format:"dd MMM y",short_format:"dd/MM/yy",firstday_of_week:1})}(),function(){"use strict";void 0===Date.dp_locales&&(Date.dp_locales={texts:{buttonTitle:"Select date ...",buttonLabel:"Click or press the Enter key or the spacebar to open the calendar",prevButtonLabel:"Go to previous month",prevMonthButtonLabel:"Go to the previous year",prevYearButtonLabel:"Go to the previous twenty years",nextButtonLabel:"Go to next month",nextMonthButtonLabel:"Go to the next year",nextYearButtonLabel:"Go to the next twenty years",changeMonthButtonLabel:"Click or press the Enter key or the spacebar to change the month",changeYearButtonLabel:"Click or press the Enter key or the spacebar to change the year",changeRangeButtonLabel:"Click or press the Enter key or the spacebar to go to the next twenty years",closeButtonTitle:"Close",closeButtonLabel:"Close the calendar",calendarHelp:"- Up Arrow and Down Arrow - goes to the same day of the week in the previous or next week respectively. If the end of the month is reached, continues into the next or previous month as appropriate.\r\n- Left Arrow and Right Arrow - advances one day to the next, also in a continuum. Visually focus is moved from day to day and wraps from row to row in the grid of days.\r\n- Control+Page Up - Moves to the same date in the previous year.\r\n- Control+Page Down - Moves to the same date in the next year.\r\n- Home - Moves to the first day of the current month.\r\n- End - Moves to the last day of the current month.\r\n- Page Up - Moves to the same date in the previous month.\r\n- Page Down - Moves to the same date in the next month.\r\n- Enter or Espace - closes the calendar, and the selected date is shown in the associated text box.\r\n- Escape - closes the calendar without any action."},directionality:"LTR",month_names:["January","February","March","April","May","June","July","August","September","October","November","December"],month_names_abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],month_names_narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_names_abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],day_names_short:["Su","Mo","Tu","We","Th","Fr","Sa"],day_names_narrow:["S","M","T","W","T","F","S"],day_periods:{am:"AM",noon:"noon",pm:"PM"},day_periods_abbreviated:{am:"AM",noon:"noon",pm:"PM"},day_periods_narrow:{am:"a",noon:"n",pm:"p"},quarter_names:["1st quarter","2nd quarter","3rd quarter","4th quarter"],quarter_names_abbreviated:["Q1","Q2","Q3","Q4"],quarter_names_narrow:["1","2","3","4"],era_names:["Before Christ","Anno Domini"],era_names_abbreviated:["BC","AD"],era_names_narrow:["B","A"],full_format:"EEEE, MMMM d, y",long_format:"MMMM d, y",medium_format:"MMM d, y",short_format:"M/d/yy",firstday_of_week:0})}(),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof exports)t(require("jquery"));else{if("undefined"==typeof jQuery)throw new Error("Datepicker's JavaScript requires jQuery");t(jQuery)}}(function(y,d){"use strict";function o(t,e){var n=this;this.$target=y(t),this.options=y.extend({},o.DEFAULTS,e),this.locales=Date.dp_locales,this.startview(this.options.startView),"string"==typeof this.options.inputFormat&&(this.options.inputFormat=[this.options.inputFormat]),y.isArray(this.options.datesDisabled)||(this.options.datesDisabled=[this.options.datesDisabled]),y.each(this.options.datesDisabled,function(t,e){if("string"==typeof e){var i=n.parseDate(e);n.options.datesDisabled[t]=null===i?null:n.format(i)}else e instanceof Date&&!isNaN(e.valueOf())?n.options.datesDisabled[t]=n.format(e):n.options.datesDisabled[t]=null}),null!=this.options.min?this.options.min=this.parseDate(this.options.min):this.$target.attr("min")&&(this.options.min=this.parseDate(this.$target.attr("min"))),null!=this.options.max?this.options.max=this.parseDate(this.options.max):this.$target.attr("max")&&(this.options.max=this.parseDate(this.$target.attr("max"))),"string"==typeof this.options.previous?this.options.previous=y(this.options.previous):this.options.previous instanceof jQuery||(this.options.previous=null),"string"==typeof this.options.next?this.options.next=y(this.options.next):this.options.next instanceof jQuery||(this.options.next=null),this.id=this.$target.attr("id")||"datepicker-"+Math.floor(1e5*Math.random());var i=a.join("");i=i.replace(/CALENDARID/g,this.id+""),0==this.$target.parent(".input-group").length&&this.$target.wrap('<div class="input-group"></div>'),this.$label=this.$target.parents().find("label[for="+this.id+"]"),this.$group=this.$target.parent(".input-group"),this.$target.attr("aria-autocomplete","none"),this.$target.css("min-width","7em"),this.$target.addClass("form-control"),this.$target.attr("placeholder")||this.$target.attr("placeholder",this.options.inputFormat[0]);var s=r.join("");s=s.replace(/CALENDARID/g,this.id+""),this.$button=y(s),this.$button.addClass(this.options.theme),this.$calendar=y(i),this.$calendar.addClass(this.options.theme),this.$target.after(this.$button),"static"===this.$calendar.parent().css("position")&&this.$calendar.parent().css("position","relative"),this.$calendar.find(".datepicker-bn-open-label").html(this.options.buttonLabel),this.$target.attr("id")&&this.$calendar.attr("aria-controls",this.$target.attr("id")),this.$button.find("span").attr("title",this.options.buttonTitle),this.$calendar.css("left",this.$target.parent().position().left+"px"),this.$monthObj=this.$calendar.find(".datepicker-month"),this.$prev=this.$calendar.find(".datepicker-month-prev"),this.$next=this.$calendar.find(".datepicker-month-next"),this.$fastprev=this.$calendar.find(".datepicker-month-fast-prev"),this.$fastnext=this.$calendar.find(".datepicker-month-fast-next"),this.$grid=this.$calendar.find(".datepicker-grid"),"RTL"===this.locales.directionality&&this.$grid.addClass("rtl"),this.$grid.find("th.datepicker-day abbr"),this.drawCalendarHeader(),0==this.options.inline&&1==this.options.modal?(this.$close=this.$calendar.find(".datepicker-close"),this.$close.html(this.options.closeButtonTitle).attr("title",this.options.closeButtonLabel),this.$calendar.find(".datepicker-bn-close-label").html(this.options.closeButtonLabel)):(this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label"))),0!=this.options.inline?(this.hideObject(this.$button),("string"==typeof this.options.inline?y("#"+this.options.inline):this.options.inline).append(this.$calendar),this.$calendar.css({position:"relative",left:"0px"}),this.initializeDate()):(this.$calendar.css({display:"none"}),this.$target.parent().after(this.$calendar),this.hide(!this.options.gainFocusOnConstruction)),this.keys={tab:9,enter:13,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40},this.bindHandlers(),this.$button.click(function(t){return y(this).hasClass("disabled")||("true"===n.$calendar.attr("aria-hidden")?(n.initializeDate(),n.show()):n.hide(),n.selectGridCell(n.$grid.attr("aria-activedescendant"))),t.stopPropagation(),!1}),this.$button.keydown(function(t){var e=t||event;if(e.keyCode==n.keys.enter||e.keyCode==n.keys.space)return y(this).trigger("click"),!1}),this.$calendar.on("blur",function(t){"false"===n.$calendar.attr("aria-hidden")&&n.hide()})}var r=['<a class="datepicker-button input-group-addon btn" role="button" aria-haspopup="true" tabindex="0" aria-labelledby="datepicker-bn-open-label-CALENDARID">','\t<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>it-calendar</title><g><path d="M21,9V8a3,3,0,0,0-3-3h-.55V4a1,1,0,0,0-2,0V5h-7V4a1,1,0,1,0-2,0V5H6A3,3,0,0,0,3,8V18a3,3,0,0,0,3,3H18a3,3,0,0,0,3-3V9ZM15.46,5h2V6a1,1,0,1,1-2,0Zm-9,0h2V6a1,1,0,1,1-2,0ZM20,18a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V10H20Z"/></g></svg>',"</a>"],a=['<div class="datepicker-calendar" id="datepicker-calendar-CALENDARID" aria-hidden="false">','\t<div class="datepicker-month-wrap">','\t\t<div class="datepicker-month-fast-next pull-right" role="button" aria-labelledby="datepicker-bn-fast-next-label-CALENDARID" tabindex="0"><span class="icon-right"></span><span class="icon-right"></span></div>','\t\t<div class="datepicker-month-next pull-right" role="button" aria-labelledby="datepicker-bn-next-label-CALENDARID" tabindex="0"><span class="icon-right"></span></div>','\t\t<div class="datepicker-month-fast-prev pull-left" role="button" aria-labelledby="datepicker-bn-fast-prev-label-CALENDARID" tabindex="0"><span class="icon-left"></span><span class="icon-left"></span></div>','\t\t<div class="datepicker-month-prev pull-left" role="button" aria-labelledby="datepicker-bn-prev-label-CALENDARID" tabindex="0"><span class="icon-left"></span></div>','\t\t<div id="datepicker-month-CALENDARID" class="datepicker-month" tabindex="0" role="heading" aria-live="assertive" aria-atomic="true" title="Click or press the Enter key or the spacebar to change the month">July 2015</div>',"\t</div>",'\t<table class="datepicker-grid" role="grid" aria-readonly="true" aria-activedescendant="datepicker-err-msg-CALENDARID" aria-labelledby="datepicker-month-CALENDARID" tabindex="0">',"\t\t<thead>",'\t\t\t<tr class="datepicker-weekdays" role="row">','\t\t\t\t<th scope="col" id="day0-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Sunday"><abbr title="Sunday">Su</abbr></th>','\t\t\t\t<th scope="col" id="day1-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Monday"><abbr title="Monday">Mo</abbr></th>','\t\t\t\t<th scope="col" id="day2-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Tuesday"><abbr title="Tuesday">Tu</abbr></th>','\t\t\t\t<th scope="col" id="day3-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Wednesday"><abbr title="Wednesday">We</abbr></th>','\t\t\t\t<th scope="col" id="day4-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Thursday"><abbr title="Thursday">Th</abbr></th>','\t\t\t\t<th scope="col" id="day5-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Friday"><abbr title="Friday">Fr</abbr></th>','\t\t\t\t<th scope="col" id="day6-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Saturday"><abbr title="Saturday">Sa</abbr></th>',"\t\t\t</tr>","\t\t</thead>","\t\t<tbody>","\t\t\t<tr>",'\t\t\t\t<td id="datepicker-err-msg-CALENDARID" colspan="7"><span>Javascript must be enabled</span></td>',"\t\t\t</tr>","\t\t</tbody>","\t</table>",'\t<div class="datepicker-close-wrap">','\t\t<button class="datepicker-close" id="datepicker-close-CALENDARID" aria-labelledby="datepicker-bn-close-label-CALENDARID">Close</button>',"\t</div>",'\t<div id="datepicker-bn-open-label-CALENDARID" class="datepicker-bn-open-label offscreen">Click or press the Enter key or the spacebar to open the calendar</div>','\t<div id="datepicker-bn-prev-label-CALENDARID" class="datepicker-bn-prev-label offscreen">Go to previous month</div>','\t<div id="datepicker-bn-next-label-CALENDARID" class="datepicker-bn-next-label offscreen">Go to next month</div>','\t<div id="datepicker-bn-fast-prev-label-CALENDARID" class="datepicker-bn-fast-prev-label offscreen">Go to previous year</div>','\t<div id="datepicker-bn-fast-next-label-CALENDARID" class="datepicker-bn-fast-next-label offscreen">Go to next year</div>','\t<div id="datepicker-bn-close-label-CALENDARID" class="datepicker-bn-close-label offscreen">Close the date picker</div>',"</div>"];o.VERSION="2.1.10",o.DEFAULTS={firstDayOfWeek:Date.dp_locales.firstday_of_week,weekDayFormat:"short",startView:0,daysOfWeekDisabled:[],datesDisabled:[],isDateDisabled:null,isMonthDisabled:null,isYearDisabled:null,inputFormat:[Date.dp_locales.short_format],outputFormat:Date.dp_locales.short_format,titleFormat:Date.dp_locales.full_format,buttonTitle:Date.dp_locales.texts.buttonTitle,buttonLabel:Date.dp_locales.texts.buttonLabel,prevButtonLabel:Date.dp_locales.texts.prevButtonLabel,prevMonthButtonLabel:Date.dp_locales.texts.prevMonthButtonLabel,prevYearButtonLabel:Date.dp_locales.texts.prevYearButtonLabel,nextButtonLabel:Date.dp_locales.texts.nextButtonLabel,nextMonthButtonLabel:Date.dp_locales.texts.nextMonthButtonLabel,nextYearButtonLabel:Date.dp_locales.texts.nextYearButtonLabel,changeMonthButtonLabel:Date.dp_locales.texts.changeMonthButtonLabel,changeYearButtonLabel:Date.dp_locales.texts.changeYearButtonLabel,changeRangeButtonLabel:Date.dp_locales.texts.changeRangeButtonLabel,closeButtonTitle:Date.dp_locales.texts.closeButtonTitle,closeButtonLabel:Date.dp_locales.texts.closeButtonLabel,onUpdate:function(t){},previous:null,next:null,theme:"default",modal:!1,inline:!1,gainFocusOnConstruction:!1,min:null,max:null},o.prototype.initializeDate=function(){var t=this.$target.val(),e=""===t?new Date:this.parseDate(t);this.setDate(e,!0)},o.prototype.getDate=function(){var t=this.$target.val();return""===t?new Date:this.parseDate(t)},o.prototype.setDate=function(t,e){switch(this.dateObj=t,e=void 0!==e&&e,null==this.dateObj&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=new Date,this.dateObj.setHours(0,0,0,0)),null!=this.options.min&&this.dateObj<this.options.min?(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.min):null!=this.options.max&&this.dateObj>this.options.max&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.max),e&&""==this.$target.val()||this.$target.val(this.format(this.dateObj)),this.curYear=this.dateObj.getFullYear(),this.year=this.curYear,this.curMonth=this.dateObj.getMonth(),this.month=this.curMonth,this.date=this.dateObj.getDate(),this.options.startView){case 1:this.populateMonthsCalendar(),this.$grid.attr("aria-activedescendant",this.$grid.find(".curMonth").attr("id"));break;case 2:this.populateYearsCalendar(),this.$grid.attr("aria-activedescendant",this.$grid.find(".curYear").attr("id"));break;default:this.populateDaysCalendar(),this.$grid.attr("aria-activedescendant",this.$grid.find(".curDay").attr("id"))}},o.prototype.drawCalendarHeader=function(){for(var t=this.$grid.find("th.datepicker-day"),e=this.options.firstDayOfWeek,i=0;i<7;i++)t.eq(i).attr("aria-label",this.locales.day_names[e]),t.children("abbr").eq(i).attr("title",this.locales.day_names[e]).text("short"===this.options.weekDayFormat?this.locales.day_names_short[e]:this.locales.day_names_narrow[e]),e=(e+1)%7},o.prototype.populateDaysCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextButtonLabel),this.$calendar.find(".datepicker-bn-fast-prev-label").html(this.options.prevMonthButtonLabel),this.$calendar.find(".datepicker-bn-fast-next-label").html(this.options.nextMonthButtonLabel),null!=this.options.min&&(this.year-1<this.options.min.getFullYear()||this.year-1==this.options.min.getFullYear()&&this.month<this.options.min.getMonth())?(this.$fastprev.attr("title",""),this.$fastprev.addClass("disabled"),this.$fastprev.removeClass("enabled")):(this.$fastprev.attr("title",this.options.prevMonthButtonLabel),this.$fastprev.addClass("enabled"),this.$fastprev.removeClass("disabled"));var t=this.previousMonth(this.year,this.month);null!=this.options.min&&(t.year<this.options.min.getFullYear()||t.year==this.options.min.getFullYear()&&t.month<this.options.min.getMonth())?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeMonthButtonLabel);var e=this.nextMonth(this.year,this.month);null!=this.options.max&&(e.year>this.options.max.getFullYear()||e.year==this.options.max.getFullYear()&&e.month>this.options.max.getMonth())?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled")),null!=this.options.max&&(this.year+1>this.options.max.getFullYear()||this.year+1==this.options.max.getFullYear()&&this.month>this.options.max.getMonth())?(this.$fastnext.attr("title",""),this.$fastnext.addClass("disabled"),this.$fastnext.removeClass("enabled")):(this.$fastnext.attr("title",this.options.nextMonthButtonLabel),this.$fastnext.addClass("enabled"),this.$fastnext.removeClass("disabled")),this.showObject(this.$fastprev),this.showObject(this.$fastnext);var i=this.getDaysInMonth(this.year,this.month),n=this.getDaysInMonth(t.year,t.month),s=new Date(this.year,this.month,1).getDay(),o=(this.options.firstDayOfWeek+6)%7,r=1,a=1;this.$monthObj.html(this.locales.month_names[this.month]+" "+this.year),this.showObject(this.$grid.find("thead"));for(var l='\t<tr id="row0-'+this.id+'" role="row">\n',c=0,h=this.options.firstDayOfWeek;h!=s;)c++,h=(h+1)%7;for(;0<c;c--)l+='\t\t<td class="empty">'+(n-c+1)+"</td>\n";var d=this.options.isYearDisabled&&this.options.isYearDisabled(this.year),u=this.options.isMonthDisabled&&this.options.isMonthDisabled(this.year,this.month+1);for(r=1;r<=i;r++){var p=new Date(this.year,this.month,r,0,0,0,0),f=this.formatDate(p,this.options.titleFormat),m=r==this.date&&this.month==this.curMonth&&this.year==this.curYear?" curDay":"";d||u?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':-1<y.inArray(h,this.options.daysOfWeekDisabled)?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':null!=this.options.min&&p<this.options.min?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':null!=this.options.max&&p>this.options.max?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':-1<y.inArray(this.format(p),this.options.datesDisabled)?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':this.options.isDateDisabled&&this.options.isDateDisabled(p)?l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day unselectable'+m+'"':l+='\t\t<td id="cell'+r+"-"+this.id+'" class="day selectable'+m+'"',l+=' data-value="'+r+'"',l+=' title="'+f+'"',l+=' aria-label="'+f+'"',l+=' headers="day'+h+"-header-"+this.id+'" role="gridcell" tabindex="-1" aria-selected="false"><span>'+r+"</span>",l+="</td>",h==o&&r<i&&(l+='\t</tr>\n\t<tr id="row'+a+"-"+this.id+'" role="row">\n',a++),r<i&&(h=(h+1)%7)}for(;h!=o;)l+='\t\t<td class="empty">'+ ++c+"</td>\n",h=(h+1)%7;l+="\t</tr>";var g=this.$grid.find("tbody");g.empty(),g.append(l),this.gridType=0},o.prototype.populateMonthsCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevMonthButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextMonthButtonLabel),this.hideObject(this.$fastprev),this.hideObject(this.$fastnext),null!=this.options.min&&this.year-1<this.options.min.getFullYear()?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevMonthButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeYearButtonLabel),null!=this.options.max&&this.year+1>this.options.max.getFullYear()?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextMonthButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled"));var t=0,e=1,i=this.$grid.find("tbody");this.$monthObj.html(this.year),this.hideObject(this.$grid.find("thead")),i.empty(),y("#datepicker-err-msg-"+this.id).empty();var n='\t<tr id="row0-'+this.id+'" role="row">\n',s=this.options.isYearDisabled&&this.options.isYearDisabled(this.year);for(t=0;t<12;t++)s?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':t==this.month&&this.year==this.curYear?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month curMonth selectable"':null!=this.options.min&&(this.year<this.options.min.getFullYear()||this.year==this.options.min.getFullYear()&&t<this.options.min.getMonth())?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':null!=this.options.max&&(this.year>this.options.max.getFullYear()||this.year==this.options.max.getFullYear()&&t>this.options.max.getMonth())?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':this.options.isMonthDisabled&&this.options.isMonthDisabled(this.year,t+1)?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month selectable"',n+=' data-value="'+t+'"',n+=' title="'+this.locales.month_names[t]+" "+this.year+'"',n+=' aria-label="'+this.locales.month_names[t]+" "+this.year+'"',n+=' role="gridcell" tabindex="-1" aria-selected="false">'+this.locales.month_names_abbreviated[t],n+="</td>",3!=t&&7!=t||(n+='\t</tr>\n\t<tr id="row'+e+"-"+this.id+'" role="row">\n',e++);n+="\t</tr>",i.append(n),this.gridType=1},o.prototype.populateYearsCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevYearButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextYearButtonLabel),this.hideObject(this.$fastprev),this.hideObject(this.$fastnext),null!=this.options.min&&this.year-20<this.options.min.getFullYear()?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevYearButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeRangeButtonLabel),null!=this.options.max&&this.year+20>this.options.max.getFullYear()?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextYearButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled"));var t=10*Math.floor(this.year/10),e=19+t,i=1,n=this.$grid.find("tbody");this.$monthObj.html(t+"-"+e),this.hideObject(this.$grid.find("thead")),n.empty(),y("#datepicker-err-msg-"+this.id).empty();for(var s='\t<tr id="row0-'+this.id+'" role="row">\n',o=t;o<=e;o++){o==this.year?s+='\t\t<td id="cell'+(o-t+1)+"-"+this.id+'" class="year curYear selectable"':null!=this.options.min&&o<this.options.min.getFullYear()?s+='\t\t<td id="cell'+(o-t+1)+"-"+this.id+'" class="year unselectable"':null!=this.options.max&&o>this.options.max.getFullYear()?s+='\t\t<td id="cell'+(o-t+1)+"-"+this.id+'" class="year unselectable"':this.options.isYearDisabled&&this.options.isYearDisabled(o)?s+='\t\t<td id="cell'+(o-t+1)+"-"+this.id+'" class="year unselectable"':s+='\t\t<td id="cell'+(o-t+1)+"-"+this.id+'" class="year selectable"',s+=' data-value="'+o+'"',s+=' title="'+o+'"',s+=' role="gridcell" tabindex="-1" aria-selected="false">'+o,s+="</td>";var r=o-t;4!=r&&9!=r&&14!=r||(s+='\t</tr>\n\t<tr id="row'+i+"-"+this.id+'" role="row">\n',i++)}s+="\t</tr>",n.append(s),this.gridType=2},o.prototype.showDaysOfPrevMonth=function(t){var e=this.previousMonth(this.year,this.month);if(null!=this.options.min&&(e.year<this.options.min.getFullYear()||e.year==this.options.min.getFullYear()&&e.month<this.options.min.getMonth()))return!1;if(this.month=e.month,this.year=e.year,this.populateDaysCalendar(),null!=t){var i="cell"+(this.getDaysInMonth(this.year,this.month)-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",i),this.selectGridCell(i)}return!0},o.prototype.showDaysOfMonth=function(t){if(null!=this.options.min&&(this.year<this.options.min.getFullYear()||this.year==this.options.min.getFullYear()&&t<this.options.min.getMonth()))return!1;if(null!=this.options.max&&(this.year>this.options.max.getFullYear()||this.year==this.options.max.getFullYear()&&t>this.options.max.getMonth()))return!1;this.month=t,this.date=Math.min(this.date,this.getDaysInMonth(this.year,this.month)),this.populateDaysCalendar();var e=this.$grid.find("tbody td[data-value='"+this.date+"']");return this.selectGridCell(e.attr("id")),!0},o.prototype.showMonthsOfPrevYear=function(t){if(null!=this.options.min&&this.year-1<this.options.min.getFullYear())return!1;if(this.year--,this.populateMonthsCalendar(),null!=t){var e="cell"+(12-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},o.prototype.showMonthsOfYear=function(t){if(null!=this.options.min&&t<this.options.min.getFullYear())return!1;if(null!=this.options.max&&t>this.options.max.getFullYear())return!1;this.year=t,this.populateMonthsCalendar();var e=this.$grid.find("tbody td[data-value='"+this.month+"']");return this.$grid.attr("aria-activedescendant",e.attr("id")),this.selectGridCell(e.attr("id")),!0},o.prototype.showYearsOfPrevRange=function(t){if(null!=this.options.min&&this.year-20<this.options.min.getFullYear())return!1;if(this.year-=20,this.populateYearsCalendar(),null!=t){var e="cell"+(20-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},o.prototype.showDaysOfNextMonth=function(t){var e=this.nextMonth(this.year,this.month);if(null!=this.options.max&&(e.year>this.options.max.getFullYear()||e.year==this.options.max.getFullYear()&&e.month>this.options.max.getMonth()))return!1;if(this.month=e.month,this.year=e.year,this.populateDaysCalendar(),null!=t){var i="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",i),this.selectGridCell(i)}return!0},o.prototype.showMonthsOfNextYear=function(t){if(null!=this.options.max&&this.year+1>this.options.max.getFullYear())return!1;if(this.year++,this.populateMonthsCalendar(),null!=t){var e="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},o.prototype.showYearsOfNextRange=function(t){if(null!=this.options.max&&this.year+20>this.options.max.getFullYear())return!1;if(this.year+=20,this.populateYearsCalendar(),null!=t){var e="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},o.prototype.showDaysOfPrevYear=function(){return(null==this.options.min||!(this.year-1<this.options.min.getFullYear()||this.year-1==this.options.min.getFullYear()&&this.month<this.options.min.getMonth()))&&(this.year--,this.populateDaysCalendar(),!0)},o.prototype.showDaysOfNextYear=function(){return(null==this.options.max||!(this.year+1>this.options.max.getFullYear()||this.year+1==this.options.max.getFullYear()&&this.month>this.options.max.getMonth()))&&(this.year++,this.populateDaysCalendar(),!0)},o.prototype.bindHandlers=function(){var i=this;this.$fastprev.click(function(t){return i.handleFastPrevClick(t)}),this.$prev.click(function(t){return i.handlePrevClick(t)}),this.$next.click(function(t){return i.handleNextClick(t)}),this.$fastnext.click(function(t){return i.handleFastNextClick(t)}),this.$monthObj.click(function(t){return i.handleMonthClick(t)}),this.$monthObj.keydown(function(t){return i.handleMonthKeyDown(t)}),this.$fastprev.keydown(function(t){return i.handleFastPrevKeyDown(t)}),this.$prev.keydown(function(t){return i.handlePrevKeyDown(t)}),this.$next.keydown(function(t){return i.handleNextKeyDown(t)}),this.$fastnext.keydown(function(t){return i.handleFastNextKeyDown(t)}),1==this.options.modal&&(this.$close.click(function(t){return i.handleCloseClick(t)}),this.$close.keydown(function(t){return i.handleCloseKeyDown(t)})),this.$grid.keydown(function(t){return i.handleGridKeyDown(t)}),this.$grid.keypress(function(t){return i.handleGridKeyPress(t)}),this.$grid.focus(function(t){return i.handleGridFocus(t)}),this.$grid.blur(function(t){return i.handleGridBlur(t)}),this.$grid.delegate("td","click",function(t){return i.handleGridClick(this,t)}),this.$target.change(function(t){var e=i.parseDate(y(this).val());i.updateLinked(e)})},o.prototype.handleFastPrevClick=function(t){if(this.showDaysOfPrevYear()){var e=this.$grid.attr("aria-activedescendant");this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e))}return t.stopPropagation(),!1},o.prototype.handlePrevClick=function(t){var e=this.$grid.attr("aria-activedescendant");switch(this.gridType){case 0:(t.ctrlKey?this.showDaysOfPrevYear():this.showDaysOfPrevMonth())&&(this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 1:this.showMonthsOfPrevYear()&&(this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 2:this.showYearsOfPrevRange()&&(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id))}return t.stopPropagation(),!1},o.prototype.handleMonthClick=function(t){return this.changeGrid(t),t.stopPropagation(),!1},o.prototype.handleNextClick=function(t){var e=this.$grid.attr("aria-activedescendant");switch(this.gridType){case 0:(t.ctrlKey?this.showDaysOfNextYear():this.showDaysOfNextMonth())&&(this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 1:this.showMonthsOfNextYear()&&(this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 2:this.showYearsOfNextRange()&&(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id))}return t.stopPropagation(),!1},o.prototype.handleFastNextClick=function(t){if(this.showDaysOfNextYear()){var e=this.$grid.attr("aria-activedescendant");this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e))}return t.stopPropagation(),!1},o.prototype.handleCloseClick=function(t){return this.hide(),t.stopPropagation(),!1},o.prototype.handleFastPrevKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$close.focus():this.$prev.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return!(!t.shiftKey&&!t.ctrlKey)||(this.showDaysOfPrevYear(),t.stopPropagation(),!1);case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},o.prototype.handlePrevKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?0==this.gridType?this.$fastprev.focus():this.$close.focus():this.$monthObj.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:if(t.shiftKey)return!0;switch(this.gridType){case 0:t.ctrlKey?this.showDaysOfPrevYear():this.showDaysOfPrevMonth();break;case 1:this.showMonthsOfPrevYear();break;case 2:this.showYearsOfPrevRange()}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},o.prototype.handleMonthKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$prev.focus():this.$next.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return this.changeGrid(t),t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},o.prototype.handleNextKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$monthObj.focus():0==this.gridType?this.$fastnext.focus():this.$grid.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:switch(this.gridType){case 0:t.ctrlKey?this.showDaysOfNextYear():this.showDaysOfNextMonth();break;case 1:this.showMonthsOfNextYear();break;case 2:this.showYearsOfNextRange()}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},o.prototype.handleFastNextKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$next.focus():this.$grid.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return this.showDaysOfNextYear(),t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},o.prototype.handleCloseKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!!t.ctrlKey||(t.shiftKey?this.$grid.focus():0==this.gridType?this.$fastprev.focus():this.$prev.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.esc:case this.keys.space:return!(!t.shiftKey&&!t.ctrlKey)||(this.hide(),t.stopPropagation(),!1)}return!0},o.prototype.handleGridKeyDown=function(t){var e=y("#"+this.$grid.attr("aria-activedescendant")),i=this.$grid.find("td.selectable"),n=this.$grid.find("tbody tr").eq(0).find("td").length;if(t.altKey&&t.keyCode!=this.keys.pageup&&t.keyCode!=this.keys.pagedown)return!0;switch(t.keyCode){case this.keys.tab:return 1==this.options.modal?t.shiftKey?0==this.gridType?this.$fastnext.focus():this.$next.focus():this.$close.focus():(this.hide(),this.handleTabOut(t)),t.stopPropagation(),!1;case this.keys.enter:case this.keys.space:if(t.ctrlKey)return!0;switch(this.gridType){case 0:this.update(),this.hide();break;case 1:this.showDaysOfMonth(parseInt(e.attr("data-value"),10));break;case 2:this.showMonthsOfYear(parseInt(e.attr("data-value"),10))}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1;case this.keys.left:case this.keys.right:if(t.keyCode==this.keys.left&&"LTR"===this.locales.directionality||t.keyCode==this.keys.right&&"RTL"===this.locales.directionality){if(t.ctrlKey||t.shiftKey)return!0;var s=null;if(0<=(r=i.index(e)-1))s=i.eq(r),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",s.attr("id")),this.selectGridCell(s.attr("id"));else switch(this.gridType){case 0:this.showDaysOfPrevMonth(0);break;case 1:this.showMonthsOfPrevYear(0);break;case 2:this.showYearsOfPrevRange(0)}return t.stopPropagation(),!1}if(t.ctrlKey||t.shiftKey)return!0;var o=null;if((r=i.index(e)+1)<i.length)o=i.eq(r),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",o.attr("id")),this.selectGridCell(o.attr("id"));else switch(this.gridType){case 0:this.showDaysOfNextMonth(1);break;case 1:this.showMonthsOfNextYear(1);break;case 2:this.showYearsOfNextRange(1)}return t.stopPropagation(),!1;case this.keys.up:if(t.ctrlKey||t.shiftKey)return!0;s=null;if(0<=(r=i.index(e)-n))s=i.eq(r),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",s.attr("id")),this.selectGridCell(s.attr("id"));else switch(r=n-1-i.index(e),this.gridType){case 0:this.showDaysOfPrevMonth(r);break;case 1:this.showMonthsOfPrevYear(r);break;case 2:this.showYearsOfPrevRange(r)}return t.stopPropagation(),!1;case this.keys.down:if(t.ctrlKey||t.shiftKey)return!0;var r;o=null;if((r=i.index(e)+n)<i.length)o=i.eq(r),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",o.attr("id")),this.selectGridCell(o.attr("id"));else switch(r=n+1-(i.length-i.index(e)),this.gridType){case 0:this.showDaysOfNextMonth(r);break;case 1:this.showMonthsOfNextYear(r);break;case 2:this.showYearsOfNextRange(r)}return t.stopPropagation(),!1;case this.keys.pageup:var a=this.$grid.attr("aria-activedescendant");if(t.shiftKey||t.ctrlKey)return!0;t.preventDefault();var l=!1;switch(this.gridType){case 0:l=t.altKey?(t.stopImmediatePropagation(),this.showDaysOfPrevYear()):this.showDaysOfPrevMonth();break;case 1:l=this.showMonthsOfPrevYear();break;case 2:l=this.showYearsOfPrevRange()}if(l)if(y("#"+a).attr("id")==d){var c=(i=this.$grid.find("td.selectable")).eq(i.length-1);this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id"))}else this.selectGridCell(a);return t.stopPropagation(),!1;case this.keys.pagedown:a=this.$grid.attr("aria-activedescendant");if(t.shiftKey||t.ctrlKey)return!0;t.preventDefault();l=!1;switch(this.gridType){case 0:l=t.altKey?(t.stopImmediatePropagation(),this.showDaysOfNextYear()):this.showDaysOfNextMonth();break;case 1:l=this.showMonthsOfNextYear();break;case 2:l=this.showYearsOfNextRange()}if(l)if(y("#"+a).attr("id")==d){c=(i=this.$grid.find("td.selectable")).eq(i.length-1);this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id"))}else this.selectGridCell(a);return t.stopPropagation(),!1;case this.keys.home:if(t.ctrlKey||t.shiftKey)return!0;var h=i.eq(0);return this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",h.attr("id")),this.selectGridCell(h.attr("id")),t.stopPropagation(),!1;case this.keys.end:if(t.ctrlKey||t.shiftKey)return!0;c=i.eq(i.length-1);return this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id")),t.stopPropagation(),!1}return!0},o.prototype.handleGridKeyPress=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:case this.keys.enter:case this.keys.space:case this.keys.esc:case this.keys.left:case this.keys.right:case this.keys.up:case this.keys.down:case this.keys.pageup:case this.keys.pagedown:case this.keys.home:case this.keys.end:return t.stopPropagation(),!1}return!0},o.prototype.handleGridClick=function(t,e){var i=y(t);if(i.is(".empty")||i.is(".unselectable"))return!0;switch(this.$grid.find(".focus").removeClass("focus").attr("aria-selected","false").attr("tabindex",-1),this.gridType){case 0:this.$grid.attr("aria-activedescendant",i.attr("id")),this.selectGridCell(i.attr("id")),this.update(),this.hide();break;case 1:this.showDaysOfMonth(parseInt(i.attr("data-value"),10));break;case 2:this.showMonthsOfYear(parseInt(i.attr("data-value"),10))}return e.stopPropagation(),!1},o.prototype.handleGridFocus=function(t){var e=this.$grid.attr("aria-activedescendant");if(y("#"+e).attr("id")==d){var i=this.$grid.find("td.selectable"),n=i.eq(i.length-1);this.$grid.attr("aria-activedescendant",n.attr("id")),this.selectGridCell(n.attr("id"))}else this.selectGridCell(e);return!0},o.prototype.handleGridBlur=function(t){return this.unSelectGridCell(this.$grid.attr("aria-activedescendant")),!0},o.prototype.handleTabOut=function(t){var e=y("body").find("input:visible,textarea:visible,select:visible"),i=e.index(this.$target);return-1<i&&i<e.length&&(t.shiftKey?0<i&&i--:i+1<e.length&&i++,e.eq(i).focus()),!0},o.prototype.changeGrid=function(t){switch(this.gridType){case 0:if(this.populateMonthsCalendar(),this.year!=this.curYear){var e=this.$grid.find("td.selectable");this.$grid.attr("aria-activedescendant",e.eq(0).attr("id"))}else this.$grid.attr("aria-activedescendant",this.$grid.find(".curMonth").attr("id"));this.selectGridCell(this.$grid.attr("aria-activedescendant"));break;case 2:t.shiftKey?this.year-=20:this.year+=20;case 1:if(this.populateYearsCalendar(),this.year!=this.curYear){e=this.$grid.find("td.selectable");this.$grid.attr("aria-activedescendant",e.eq(0).attr("id"))}else this.$grid.attr("aria-activedescendant",this.$grid.find(".curYear").attr("id"));this.selectGridCell(this.$grid.attr("aria-activedescendant"))}return!0},o.prototype.selectGridCell=function(t){y("#"+t).addClass("focus").attr("aria-selected","true").attr("tabindex",0).focus()},o.prototype.unSelectGridCell=function(t){y("#"+t).removeClass("focus").attr("aria-selected","false").attr("tabindex",-1)},o.prototype.update=function(){var t=y("#"+this.$grid.attr("aria-activedescendant")),e=new Date(this.year,this.month,parseInt(t.attr("data-value"),10)),i=this.formatDate(e,this.options.outputFormat);this.$target.val(i),this.$target.removeAttr("aria-invalid"),this.$target.parents(".form-group").removeClass("has-error"),this.$target.trigger("change"),this.options.onUpdate&&this.options.onUpdate(i)},o.prototype.updateLinked=function(t){if(null!==this.options.previous&&""!==this.options.previous.val()&&t<this.options.previous.datepicker("getDate")){var e=this.formatDate(t,this.options.previous.datepicker("outputFormat"));this.options.previous.val(e)}if(null!==this.options.next&&""!==this.options.next.val()&&this.options.next.datepicker("getDate")<t){var i=this.formatDate(t,this.options.next.datepicker("outputFormat"));this.options.next.val(i)}},o.prototype.hideObject=function(t){t.attr("aria-hidden",!0),t.fadeOut(100)},o.prototype.showObject=function(t){t.attr("aria-hidden",!1),t.fadeIn(100)},o.prototype.show=function(){var i=this;if(y(".datepicker-calendar").trigger("ab.datepicker.opening",[i.id]),1==this.options.modal){this.modalEventHandler||(this.modalEventHandler=function(t){return i.$grid.focus(),t.stopPropagation,!1}),y(document).on("click mousedown mouseup",this.modalEventHandler),this.greyOut(!0);var t=parseInt(y("#datepicker-overlay").css("z-index"),10)||40;this.$calendar.css("z-index",t+1)}else y(document).on("click",y.proxy(this.handleDocumentClick,this)),this.$calendar.on("ab.datepicker.opening",function(t,e){e!=i.id?i.hide():i.$grid.focus()});this.$calendar.on("ab.datepicker.opened",function(t,e){e==i.id&&i.$grid.focus()});var e=Math.max(0,Math.floor(this.$group.offset().top-this.$label.offset().top)),n=Math.max(0,Math.floor(this.$group.offset().left-this.$label.offset().left)),s=parseInt(this.$calendar.parent().css("padding-left"),10),o=this.$calendar.outerHeight(),r=this.$group.offset().top,a=(this.$group.offset().left,this.$group.outerHeight(!0)),l=Math.floor(r-y(window).scrollTop()),c=Math.floor(y(window).height()-(r+a-y(window).scrollTop()));c<o&&c<l?(this.$calendar.addClass("above"),this.$calendar.css({top:e-o+"px",left:n+s+"px"})):(this.$calendar.addClass("below"),this.$calendar.css({top:a+e+"px",left:n+s+"px"})),this.$calendar.attr("aria-hidden","false"),this.$calendar.fadeIn(100),y(".datepicker-calendar").trigger("ab.datepicker.opened",[i.id])},o.prototype.refresh=function(){switch(this.drawCalendarHeader(),this.gridType){case 0:this.populateDaysCalendar();break;case 1:this.populateMonthsCalendar();break;case 2:this.populateYearsCalendar()}},o.prototype.handleDocumentClick=function(t){return 0==y(t.target).parents("#datepicker-calendar-"+this.id).length?(this.hide(),!0):(this.$grid.focus(),t.stopPropagation,!1)},o.prototype.hide=function(t){if(0==this.options.inline){1==this.options.modal?(this.modalEventHandler&&y(document).off("click mousedown mouseup",this.modalEventHandler),this.greyOut(!1)):(y(document).off("click",this.handleDocumentClick),this.$calendar.off("ab.datepicker.opening")),this.$calendar.removeClass("above below"),this.$calendar.attr("aria-hidden","true"),this.$calendar.fadeOut(100),y(".datepicker-calendar").trigger("ab.datepicker.closed",[this.id]),t||this.$target.focus()}},o.prototype.greyOut=function(t){var e=y("#datepicker-overlay");0==e.length&&t&&(y("body").append('<div id="datepicker-overlay" class="datepicker-overlay"></div>'),e=y("#datepicker-overlay")),t?e.fadeIn(100):e.fadeOut(100)},o.prototype.absolutePosition=function(t){var e=0,i=0;if(t.getBoundingClientRect){var n=t.getBoundingClientRect(),s=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||s.scrollTop,a=window.pageXOffset||o.scrollLeft||s.scrollLeft,l=o.clientTop||s.clientTop||0,c=o.clientLeft||s.clientLeft||0;e=Math.round(n.top+r-l),i=Math.round(n.left+a-c)}else for(;t;)e+=parseInt(t.offsetTop,10),i+=parseInt(t.offsetLeft,10),t=t.offsetParent;return{top:e,left:i}},o.prototype.getDaysInMonth=function(t,e){return 32-new Date(t,e,32).getDate()},o.prototype.previousMonth=function(t,e){return 0==e?(e=11,t--):e--,{year:t,month:e}},o.prototype.nextMonth=function(t,e){return 11==e?(e=0,t++):e++,{year:t,month:e}},o.prototype.formatDate=function(t,e){function i(t){return(t<0||9<t?"":"0")+t}function n(t){var e=new Date(t.getTime());return e.setHours(0),t-e}var s,o,r,a,l,c=t.getFullYear()+"",h=t.getMonth()+1,d=t.getDate(),u=(s=t,o=new Date(s.getFullYear(),0,0),Math.floor((s-o)/864e5)),p=t.getDay(),f=t.getHours(),m=t.getMinutes(),g=t.getSeconds(),v=(r=t,a=new Date(r.getFullYear(),0,1),Math.ceil(((r-a)/864e5+a.getDay()+1)/7)),y=(l=t,Math.ceil((l.getDate()-1-l.getDay())/7)),b=Math.floor(t.getDate()/7)+1,_=Math.ceil((t.getMonth()+1)/3),w=t.getFullYear()<1?0:1,x={y:""+c,yyyy:c,yy:c.substring(2,4),L:h,LL:i(h),LLL:this.locales.month_names_abbreviated[h-1],LLLL:this.locales.month_names[h-1],LLLLL:this.locales.month_names_narrow[h-1],M:h,MM:i(h),MMM:this.locales.month_names_abbreviated[h-1],MMMM:this.locales.month_names[h-1],MMMMM:this.locales.month_names_narrow[h-1],d:d,dd:i(d),D:u,DD:u,DDD:u,A:Math.round(n(t)*Math.pow(10,-2)),AA:Math.round(n(t)*Math.pow(10,-1)),AAA:Math.round(n(t)*Math.pow(10,0)),AAAA:Math.round(n(t)*Math.pow(10,1)),AAAAA:Math.round(n(t)*Math.pow(10,2)),AAAAAA:Math.round(n(t)*Math.pow(10,3)),E:this.locales.day_names_abbreviated[p],EE:this.locales.day_names_abbreviated[p],EEE:this.locales.day_names_abbreviated[p],EEEE:this.locales.day_names[p],EEEEE:this.locales.day_names_narrow[p],EEEEEE:this.locales.day_names_short[p],e:p,ee:p,eee:this.locales.day_names_abbreviated[p],eeee:this.locales.day_names[p],eeeee:this.locales.day_names_narrow[p],eeeeee:this.locales.day_names_short[p],c:p,cc:p,ccc:this.locales.day_names_abbreviated[p],cccc:this.locales.day_names[p],ccccc:this.locales.day_names_narrow[p],cccccc:this.locales.day_names_short[p],F:b,G:this.locales.era_names_abbreviated[w],GG:this.locales.era_names_abbreviated[w],GGG:this.locales.era_names_abbreviated[w],GGGG:this.locales.era_names[w],GGGGG:this.locales.era_names_narrow[w],Q:_,QQ:i(_),QQQ:this.locales.quarter_names_abbreviated[_-1],QQQQ:this.locales.quarter_names[_-1],QQQQQ:this.locales.quarter_names_narrow[_-1],q:_,qq:i(_),qqq:this.locales.quarter_names_abbreviated[_-1],qqqq:this.locales.quarter_names[_-1],qqqqq:this.locales.quarter_names_narrow[_-1],H:f,HH:i(f),h:0==f?12:12<f?f-12:f,hh:i(0==f?12:12<f?f-12:f),K:11<f?f-12:f,k:f+1,KK:i(11<f?f-12:f),kk:i(f+1),a:11<f?this.locales.day_periods.pm:this.locales.day_periods.am,m:m,mm:i(m),s:g,ss:i(g),w:v,ww:i(v),W:y};return e.replace(/('[^']+'|y{1,4}|L{1,5}|M{1,5}|c{1,6}|d{1,2}|D{1,3}|E{1,6}|e{1,6}|F{1,1}|G{1,5}|Q{1,5}|q{1,5}|H{1,2}|h{1,2}|K{1,2}|k{1,2}|m{1,2}|s{1,2}|w{1,2}|W{1,1}|A{1,6})/g,function(t){return"'"===t.charAt(0)?t.substr(1,t.length-2):x[t]||t})},o.prototype.createDateFromFormat=function(t,r){function a(t,e,i,n){for(var s=n;i<=s;s--){var o=t.substring(e,e+s);if(o.length<i)return null;if(/^\d+$/.test(o))return o}return null}function l(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(r.substring(e,e+n.length).toLowerCase()==n.toLowerCase())return n.length}return 0}var c=0,e=new Date,h=e.getYear(),d=e.getMonth()+1,u=1,p=0,f=0,m=0,g="",v=this;if(y.each(t.match(/(.).*?\1*/g),function(t,e){switch(e){case"yyyy":null!=(h=a(r,c,4,4))&&(c+=h.length);break;case"yy":null!=(h=a(r,c,2,2))&&(c+=h.length);break;case"y":null!=(h=a(r,c,2,4))&&(c+=h.length);break;case"MMM":case"LLL":for(var i=d=0;i<v.locales.month_names_abbreviated.length;i++){var n=v.locales.month_names_abbreviated[i];if(r.substring(c,c+n.length).toLowerCase()==n.toLowerCase()){d=i+1,c+=n.length;break}}break;case"MMMM":case"LLLL":for(i=d=0;i<v.locales.month_names.length;i++){n=v.locales.month_names[i];if(r.substring(c,c+n.length).toLowerCase()==n.toLowerCase()){d=i+1,c+=n.length;break}}break;case"EEE":case"EE":case"E":case"eee":c+=l(v.locales.day_names_abbreviated,c);break;case"EEEE":case"eeee":case"cccc":c+=l(v.locales.day_names,c);break;case"EEEEEE":case"eeeeee":case"cccccc":c+=l(v.locales.day_names_short,c);break;case"MM":case"M":case"LL":case"L":if(null==(d=a(r,c,e.length,2))||d<1||12<d)return null;c+=d.length;break;case"dd":case"d":if(null==(u=a(r,c,e.length,2))||u<1||31<u)return null;c+=u.length;break;case"hh":case"h":if(null==(p=a(r,c,e.length,2))||p<1||12<p)return null;c+=p.length;break;case"HH":case"H":if(null==(p=a(r,c,e.length,2))||p<0||23<p)return null;c+=p.length;break;case"KK":case"K":if(null==(p=a(r,c,e.length,2))||p<0||11<p)return null;c+=p.length;break;case"kk":case"k":if(null==(p=a(r,c,e.length,2))||p<1||24<p)return null;c+=p.length,p--;break;case"mm":case"m":if(null==(f=a(r,c,e.length,2))||f<0||59<f)return null;c+=f.length;break;case"ss":case"s":if(null==(m=a(r,c,e.length,2))||m<0||59<m)return null;c+=m.length;break;case"a":var s=v.locales.day_periods.am.length,o=v.locales.day_periods.pm.length;if(r.substring(c,c+s)==v.locales.day_periods.am)g="AM",c+=s;else{if(r.substring(c,c+o)!=v.locales.day_periods.pm)return null;g="PM",c+=o}break;default:if(r.substring(c,c+e.length)!=e)return null;c+=e.length}}),c!=r.length)return null;if(null==h)return null;if(2==h.length&&(h=50<h?h-0+1900:h-0+2e3),d<1||12<d)return null;if(2==d)if(h%4==0&&h%100!=0||h%400==0){if(29<u)return null}else if(28<u)return null;return(4==d||6==d||9==d||11==d)&&30<u?null:(p<12&&"PM"==g?p=p-0+12:11<p&&"AM"==g&&(p-=12),new Date(h,d-1,u,p,f,m))},o.prototype.parseDate=function(i){var n=null,s=this;return y.each(this.options.inputFormat,function(t,e){if(null!=(n=s.createDateFromFormat(e,i)))return!1}),null==n&&(n=s.createDateFromFormat(this.options.outputFormat,i)),n},o.prototype.min=function(t){return null!=t&&(this.options.min=t instanceof Date?t:this.parseDate(t),null!=this.options.min&&this.dateObj<this.options.min&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.min),0!=this.options.inline&&this.refresh()),this.options.min},o.prototype.max=function(t){return null!=t&&(this.options.max=t instanceof Date?t:this.parseDate(t),null!=this.options.max&&this.dateObj>this.options.max&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.max),0!=this.options.inline&&this.refresh()),this.options.max},o.prototype.theme=function(t){return null!=t&&(this.$button.removeClass(this.options.theme),this.$calendar.removeClass(this.options.theme),this.options.theme=t,this.$button.addClass(this.options.theme),this.$calendar.addClass(this.options.theme)),this.options.theme},o.prototype.firstDayOfWeek=function(t){return null!=t&&(this.options.firstDayOfWeek=parseInt(t,10),0==this.options.inline?this.drawCalendarHeader():this.refresh()),this.options.firstDayOfWeek},o.prototype.daysOfWeekDisabled=function(t){if(null!=t){this.options.daysOfWeekDisabled=[],y.isArray(t)||(t=[t]);var i=this;y.each(t,function(t,e){"number"==typeof e?i.options.daysOfWeekDisabled.push(e):"string"==typeof e&&i.options.daysOfWeekDisabled.push(parseInt(e,10))})}return this.options.daysOfWeekDisabled},o.prototype.weekDayFormat=function(t){return null!=t&&(this.options.weekDayFormat=t,this.drawCalendarHeader()),this.options.weekDayFormat},o.prototype.inputFormat=function(t){return null!=t&&(y.isArray(t)||(t=[t]),this.$target.attr("placeholder")==this.options.inputFormat[0]&&this.$target.attr("placeholder",t[0]),this.options.inputFormat=t),this.options.inputFormat},o.prototype.outputFormat=function(t){return null!=t&&(this.options.outputFormat=t),this.options.outputFormat},o.prototype.modal=function(t){if(null!=t)if(this.options.modal=t,1==this.options.modal){0==this.options.inline&&(this.showObject(this.$calendar.find(".datepicker-close-wrap")),this.showObject(this.$calendar.find(".datepicker-bn-close-label"))),this.$close=this.$calendar.find(".datepicker-close"),this.$close.html(this.options.closeButtonTitle).attr("title",this.options.closeButtonLabel),this.$calendar.find(".datepicker-bn-close-label").html(this.options.closeButtonLabel);var e=this;this.$close.click(function(t){return e.handleCloseClick(t)}),this.$close.keydown(function(t){return e.handleCloseKeyDown(t)})}else this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label"));return this.options.modal},o.prototype.inline=function(t){null!=t&&(0!=t?(this.hideObject(this.$button),this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label")),("string"==typeof t?y("#"+t):t).append(this.$calendar),this.$calendar.css({position:"relative",left:"0px",top:"0px"}),this.options.inline=t,this.initializeDate(),this.showObject(this.$calendar)):(this.$target.parent().after(this.$calendar),this.showObject(this.$button),1==this.options.modal&&(this.showObject(this.$calendar.find(".datepicker-close-wrap")),this.showObject(this.$calendar.find(".datepicker-bn-close-label"))),"static"===this.$calendar.parent().css("position")&&this.$calendar.parent().css("position","relative"),this.$calendar.css({position:"absolute"}),this.options.inline=t,this.hide()));return this.options.inline},o.prototype.format=function(t){return this.formatDate(t,this.options.outputFormat)},o.prototype.enable=function(){this.$button.removeClass("disabled"),this.$button.attr("aria-disabled",!1),this.$button.attr("tabindex",0)},o.prototype.disable=function(){this.hide(),this.$button.addClass("disabled"),this.$button.attr("aria-disabled",!0),this.$button.attr("tabindex",-1)},o.prototype.datesDisabled=function(t){this.options.datesDisabled=[],y.isArray(t)||(t=[t]);var n=this;y.each(t,function(t,e){if("string"==typeof e){var i=n.parseDate(e);null!==i&&n.options.datesDisabled.push(n.format(i))}else e instanceof Date&&!isNaN(e.valueOf())&&n.options.datesDisabled.push(n.format(e))})},o.prototype.startview=function(t){switch(t){case 1:case"months":this.options.startView=1;break;case 2:case"years":this.options.startView=2;break;default:this.options.startView=0}},o.prototype.setLocales=function(t){this.locales=t,this.options.inputFormat=[this.locales.short_format],this.options.outputFormat=this.locales.short_format,this.options.titleFormat=this.locales.full_format,this.options.firstDayOfWeek=this.locales.firstday_of_week,this.options.buttonTitle=this.locales.texts.buttonTitle,this.$button.find("span").attr("title",this.options.buttonTitle),this.options.buttonLabel=this.locales.texts.buttonLabel,this.options.prevButtonLabel=this.locales.texts.prevButtonLabel,this.options.prevMonthButtonLabel=this.locales.texts.prevMonthButtonLabel,this.options.prevYearButtonLabel=this.locales.texts.prevYearButtonLabel,this.options.nextButtonLabel=this.locales.texts.nextButtonLabel,this.options.nextMonthButtonLabel=this.locales.texts.nextMonthButtonLabel,this.options.nextYearButtonLabel=this.locales.texts.nextYearButtonLabel,this.options.changeMonthButtonLabel=this.locales.texts.changeMonthButtonLabel,this.options.changeYearButtonLabel=this.locales.texts.changeYearButtonLabel,this.options.changeRangeButtonLabel=this.locales.texts.changeRangeButtonLabel,this.options.closeButtonTitle=this.locales.texts.closeButtonTitle,this.options.closeButtonLabel=this.locales.texts.closeButtonLabel,this.options.calendarHelp=this.locales.texts.calendarHelp,this.drawCalendarHeader(),"RTL"===this.locales.directionality?this.$grid.addClass("rtl"):this.$grid.removeClass("rtl")};var t=y.fn.datepicker;y.fn.datepicker=function(n,s){if("string"!=typeof n||1!=y(this).length)return this.each(function(){var t=y(this),e=t.data("ab.datepicker"),i=y.extend({},o.DEFAULTS,t.data(),"object"==typeof n&&n);e||t.data("ab.datepicker",e=new o(this,i)),"string"==typeof n&&e[n](s)});var t=y(this).eq(0).data("ab.datepicker");return t?t[n](s):void 0},y.fn.datepicker.Constructor=o,y.fn.datepicker.noConflict=function(){return y.fn.datepicker=t,this}}),function(a){var t,e=["","-webkit-","-ms-","-moz-","-o-"],i=document.createElement("div"),n=!1,s=!1,b=!1,_=0,o=["56"],r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,l=0,w=[],c={unstick:function(){for(var t,e,i=a(this).data("sticky-id"),n=w.length-1;0<=n;n--)if(w[n].id==i){t=n;break}return void 0!==t&&(e=w.splice(t,1)),void 0!==e&&a(this).removeAttr("style").next("."+e[0].options.holderClass).remove(),this}};if(!function(){if(!window.chrome)return!1;var t=/Chrom(e|ium)\/(\d+)/.exec(navigator.appVersion);return t&&~o.indexOf(t[2])}())for(var h=0,d=e.length;h<d;h++)if(i.setAttribute("style","position:"+e[h]+"sticky"),""!==i.style.position){n=!0;break}function x(t){var e,i,n,s,o,r,a,l={top:0,left:0},c=t&&t.ownerDocument;if(c)return(i=c.body)===t?{top:i.offsetTop,left:i.offsetLeft}:(e=c.documentElement,void 0!==t.getBoundingClientRect&&(l=t.getBoundingClientRect()),n=window,s=e.clientTop||i.clientTop||0,o=e.clientLeft||i.clientLeft||0,r=n.pageYOffset||e.scrollTop,a=n.pageXOffset||e.scrollLeft,{top:l.top+r-s,left:l.left+a-o});options.debug&&console.error("i-sticky: no element.ownerDocument defined")}function u(){var t=_,e=window.pageXOffset||document.documentElement.scrollLeft,i=t+(window.innerHeight||document.documentElement.clientHeight);b=!1;for(var n=0,s=w.length;n<s;n++){var o=w[n],r=o.el.offsetHeight,a=x(o.parent),l=o.style.isStuck?x(o.holder):x(o.el),c=o.style.top?o.style.top.px:0,h=o.style.bottom?o.style.bottom.px:0,d=o.style.home,u=!0,p=o.el.className.split(" "),f=0,m=(a.top,l.top-c),g=a.top+o.parent.offsetHeight-r-c,v=a.top+r+h,y=l.top+r+h;for(f in p)p[f]===o.options.stuckClass&&p.splice(f,1);o.el.className=p.join(" "),o.style.bottom&&i<=v?d=o.style.bottom.opposite:o.style.bottom&&v<i&&i<y?d=o.style.bottom.fixed:o.style.top&&m<t&&t<g?d=o.style.top.fixed:o.style.top&&g<=t?d=o.style.top.opposite:u=!1,o.style.isStuck!==u&&(o.holder.style.display=u?"block":"none"),u&&o.options.stuckClass&&(o.el.className+=" "+o.options.stuckClass),u&&(d+="margin-left:-"+(e-o.style.margin.left)+"px;"),o.options.fixWidth?d+="width:"+(u?o.holder.offsetWidth+"px;":"auto;"):d+="min-width:"+(u?o.holder.offsetWidth+"px;":"auto;"),d!==o.style.current&&(o.el.setAttribute("style",d),o.style.isStuck=u,o.style.current=d),o.options.holderAutoHeight&&u&&r!=o.style.height&&(o.holder.style.height=r+"px",o.style.height=r)}e}function p(){w.length&&(_=document.documentElement.scrollTop||document.body.scrollTop,b||(b=!0,r?r(u):(t&&clearTimeout(t),t=setTimeout(u,15))))}function f(){s||(a(window).on("scroll",p).on("resize",p),p(),s=!0)}a.fn.iSticky=function(t){if(n){if("object"!=typeof t||!t.force)return this;f()}if("string"==typeof t&&c[t])return c[t].apply(this,Array.prototype.slice.call(arguments,1));var o=a.extend({holderClass:"i-sticky__holder",holderAutoHeight:!0,debug:!1,fixWidth:!0,stuckClass:""},t),r=this.selector;return this.each(function(){var t,e,i,n=a(this),s="sticky-"+ ++l;n.hide(),t=n.css("top"),e=n.css("bottom"),n.show(),t||e?(n.data("sticky-id",s).after('<span class="'+o.holderClass+'" style="display:none;"></span>'),i={id:s,el:this,parent:this.parentElement,holder:this.nextSibling,style:{home:"position:static;",top:void 0,bottom:void 0,current:"",height:0,isStuck:!1,margin:{left:parseInt(n.css("margin-left"),10)}},options:{holderClass:o.holderClass,holderAutoHeight:o.holderAutoHeight,fixWidth:o.fixWidth,stuckClass:o.stuckClass||""}},"auto"!==t&&(i.style.top={fixed:"position:fixed;top:"+t+";bottom:auto;",opposite:"position:absolute;bottom:0;top:auto;",px:parseInt(t,10)}),"auto"!==e&&(i.style.bottom={fixed:"position:fixed;bottom:"+e+";top:auto;",opposite:"position:absolute;top:0;bottom:auto;",px:parseInt(e,10)}),w.push(i),p()):o.debug&&console.warn("i-sticky: element `top` or `bottom` properties must be set in pixels",r,this)})},n||f()}(jQuery),function(){var p=document.querySelector(".it-header-sticky");if(p){var t=function(t){var e=!1;if(t){var i=window.getComputedStyle(t);e="none"===i.display||"hidden"===i.visibility}return e}(document.querySelector(".custom-navbar-toggler")),r=!1,f=0,a=void 0;!function(e){var t=document.querySelector(".it-header-slim-wrapper"),i=document.querySelector(".it-header-center-wrapper"),n=document.querySelector(".it-header-navbar-wrapper"),d=n&&n.offsetHeight||0,s=t&&t.offsetHeight||0,u=s;e&&d&&(u=s+i?i.offsetHeight:0);function o(t,e,i){if(void 0===e&&(e=!0),t){var n=document.querySelector(".menu-wrapper");if(e){var s=document.querySelector(".it-brand-wrapper"),o=document.querySelector(".it-search-wrapper"),r=document.querySelector(".it-user-wrapper"),a=s?s.cloneNode(!0):null,l=o?o.cloneNode(!0):null,c=r?r.cloneNode(!0):null;a&&n.insertBefore(a,n.childNodes[0]).classList.add("cloned"),l&&n.appendChild(l).classList.add("cloned"),c&&n.appendChild(c).classList.add("cloned").remove("show")}else{var h=document.getElementsByClassName("cloned");h&&Array.from(h).forEach(function(t){t.parentElement.removeChild(t)}),"function"==typeof i&&i()}}p.nextElementSibling.style.paddingTop=e?d+(t?u-f:d-f)+"px":"0px"}a=function(){var t=d;window.scrollY+f>=u&&!r?(r=!0,p.classList.add("is-sticky"),o(e,!0),t!==d&&(f=d-t)):window.scrollY+f<u&&r&&(r=!1,p.classList.remove("is-sticky"),o(e,!1))},window.addEventListener("scroll",a),a()}(t)}}(),function(){var e=document.getElementsByClassName("sticky-wrapper"),i=document.querySelector(".custom-navbar-toggler"),t=s(i),n=void 0;function s(t){var e=!1;if(t){var i=window.getComputedStyle(t);e="none"===i.display||"hidden"===i.visibility}return e}if(e&&e.length){function o(h){function d(t,e){return h?parseInt((window.getComputedStyle?getComputedStyle(t,null):t.currentStyle)[e]):0}function u(t,e,i){return!h&&t&&"bottom"===i?"0px":!h&&t&&"top"===i?"auto":"bottom"===i?"":e+"px"}var t=h?document.querySelector(".it-header-navbar-wrapper"):document.querySelector(".it-header-center-wrapper");n=function(){var c=t?t.offsetHeight:0;Array.from(e).forEach(function(t){!function(t){var e=t.offsetHeight,i=t.parentNode;i.style.position="relative";var n=i.offsetWidth||0,s=i.offsetHeight,o=d(i,"paddingTop"),r=d(i,"paddingRight"),a=i.getBoundingClientRect().top||0,l=c+o;a<=c?(p=!0,t.classList.add("is-sticky"),t.style.top=u(!0,l,"top"),t.style.bottom=u(!0,l,"bottom"),t.style.width=h?n-r+"px":""):p&&c<a&&(p=!1,t.classList.remove("is-sticky"),t.style.top="",t.style.bottom="",t.style.width=""),p&&h&&(a<0&&Math.abs(a)+e+o+c>s?t.classList.add("at-bottom"):t.classList.remove("at-bottom"))}(t)})},window.addEventListener("scroll",n),n()}var p=!1;window.addEventListener("resize",function(){if(n){window.removeEventListener("scroll",n);var t=s(i);o(t)}}),o(t)}}();var styleNode=document.createElement("style"),__PUBLIC_PATH__=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:"/bootstrap-italia/dist/fonts";styleNode.innerHTML="\n/* Titillium+Web:300,400,600,700 */\n\n/* latin-ext */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n src: local('Titillium Web Light'), local('TitilliumWeb-Light'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n src: local('Titillium Web Light'), local('TitilliumWeb-Light'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Light.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n src: local('Titillium Web Regular'), local('TitilliumWeb-Regular'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n src: local('Titillium Web Regular'), local('TitilliumWeb-Regular'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Regular.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n src: local('Titillium Web SemiBold'), local('TitilliumWeb-SemiBold'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n src: local('Titillium Web SemiBold'), local('TitilliumWeb-SemiBold'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-SemiBold.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n src: local('Titillium Web Bold'), local('TitilliumWeb-Bold'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n src: local('Titillium Web Bold'), local('TitilliumWeb-Bold'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Titillium_Web/TitilliumWeb-Bold.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n\n/* Lora:400,700 */\n\n/* latin-ext */\n@font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n src: local('Lora Regular'), local('Lora-Regular'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n src: local('Lora Regular'), local('Lora-Regular'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Regular.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n src: local('Lora Bold'), local('Lora-Bold'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n src: local('Lora Bold'), local('Lora-Bold'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Lora/Lora-Bold.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n\n/* Roboto+Mono:400,700 */\n\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n src: local('Roboto Mono'), local('RobotoMono-Regular'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n src: local('Roboto Mono'), local('RobotoMono-Regular'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Regular.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n src: local('Roboto Mono Bold'), local('RobotoMono-Bold'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.ttf) format('truetype');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n src: local('Roboto Mono Bold'), local('RobotoMono-Bold'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.woff2) format('woff2'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.woff) format('woff'),\n url("+__PUBLIC_PATH__+"/Roboto_Mono/RobotoMono-Bold.ttf) format('truetype');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n",document.getElementsByTagName("head")[0].appendChild(styleNode),$(function(){$.fn.autocomplete=function(t){return t=$.extend({data:{}},t),this.each(function(){var c=$(this),h=null,d=c.data("autocomplete");d&&Object.keys(d).length&&((h=$('<ul class="autocomplete-list"></ul>')).insertAfter($(this).next()),c.on("keyup",function(t){var e=c.val();if(h.empty(),e.length)for(var i in d){var n=new RegExp("("+e+")","gi"),s=d[i].text.replace(n,"<mark>$1</mark>"),o=d[i].label?"<em>"+d[i].label+"</em>":"",r=d[i].icon?d[i].icon:"",a=d[i].link?d[i].link:"#";if(-1!==s.toLowerCase().indexOf(e.toLowerCase())){$(this).closest(".form-group").find(".autocomplete-list").addClass("autocomplete-list-show");var l=$('<li>\n <a href="'+a+'">\n '+r+'\n <span class="autocomplete-list-text">\n <span>'+s+"</span>\n "+o+"\n </span>\n </a>\n </li>");h.append(l)}}else $(this).closest(".form-group").find(".autocomplete-list").removeClass("autocomplete-list-show")}))})},$(".autocomplete").autocomplete()}),$(function(){var t=$('a[data-attribute*="back-to-top"]');$(window).on("scroll",function(){t.toggleClass("back-to-top-show",t.length&&100<=$(this).scrollTop())}),t.on("click",function(){$("body,html").animate({scrollTop:0},800)})});var ComponenteBase=function(s){var t="componenteBase",o="bs.componente-base",e=s.fn[t],i={CLICK_DATA_API:"click.bs.componente-base.data-api"},n=function(){function n(t){this._element=t}return n.prototype.publicFunction=function(t){console.log(s(t).data("value"),n.VERSION)},n._jQueryInterface=function(i){return this.each(function(){var t=s(this),e=t.data(o);if(e||(e=new n(this),t.data(o,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},n._handleConsole=function(e){return function(t){t&&t.preventDefault(),e.publicFunction(this)}},_createClass2(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return s(document).on(i.CLICK_DATA_API,".componente-base",n._handleConsole(new n)),s.fn[t]=n._jQueryInterface,s.fn[t].Constructor=n,s.fn[t].noConflict=function(){return s.fn[t]=e,n._jQueryInterface},n}($),Cookiebar=function(s){var t="cookiebar",o="bs.cookiebar",e="."+o,i=s.fn[t],r="cookies_consent",n=".cookiebar",a='[data-accept="cookiebar"]',l={CLOSE:"close"+e,CLOSED:"closed"+e,LOAD_DATA_API:"load"+e+".data-api",CLICK_DATA_API:"click"+e+".data-api"},c="cookiebar",h="show",d=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(t){s(t).addClass(h).attr("aria-hidden","false").attr("aria-live","polite")},t.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||(this._setCookieEU(),this._removeElement(e))},t.dispose=function(){s.removeData(this._element,o),this._element=null},t._setCookieEU=function(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();document.cookie=r+"="+e+"; path=/"},t._getSelectorFromElement=function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},t._getRootElement=function(t){var e=this._getSelectorFromElement(t),i=!1;return e&&(i=s(e)[0]),i=i||s(t).closest("."+c)[0]},t._triggerCloseEvent=function(t){var e=s.Event(l.CLOSE);return s(t).trigger(e),e},t._removeElement=function(t){s(t).removeClass(h).attr("aria-hidden","true").attr("aria-live","off"),this._destroyElement(t)},t._destroyElement=function(t){s(t).detach().trigger(l.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=s(this),e=t.data(o);if(e||(e=new n(this),t.data(o,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},n._handleAccept=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n._handleConsent=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n._getCookieEU=function(){var t,e,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(e=n[t].substr(0,n[t].indexOf("=")),i=n[t].substr(n[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==r)return unescape(i)},_createClass2(n,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),n}();return s(document).on(l.CLICK_DATA_API,a,d._handleAccept(new d)),s(window).on(l.LOAD_DATA_API,function(){var t=s.makeArray(s(n));if(!d._getCookieEU())for(var e=t.length;e--;){var i=s(t[e]);d._jQueryInterface.call(i,"show")}}),s.fn[t]=d._jQueryInterface,s.fn[t].Constructor=d,s.fn[t].noConflict=function(){return s.fn[t]=i,d._jQueryInterface},d}($);function notificationShow(t,e){if($("#"+t).fadeIn(300),!$("#"+t).hasClass("dismissable")){if($("#"+t).fadeIn(300),"number"==typeof e)var i=e;else i=7e3;setTimeout(function(){$("#"+t).fadeOut(100)},i)}}$(function(){$(".navbar .dropdown").on("show.bs.dropdown",function(){window.matchMedia("(max-width: 992px)").matches&&$(this).find(".dropdown-menu").first().stop(!0,!0).slideDown(180)}),$(".navbar .dropdown").on("hide.bs.dropdown",function(){window.matchMedia("(max-width: 992px)").matches&&$(this).find(".dropdown-menu").first().stop(!0,!0).slideUp(180)}),$(window).resize(function(){window.matchMedia("(min-width: 993px)").matches&&$(".navbar .dropdown-menu.show").removeAttr("style")})}),$(function(){function o(t){var e=t.siblings("label:not(.active)");if(e&&e.length){var i=e[0].offsetWidth>t[0].offsetWidth-20?t[0].offsetWidth:"auto";$(e[0]).css("width",i)}}var t='input[type="text"],input[type="password"],input[type="email"],input[type="email"],input[type="url"],input[type="tel"],input[type="number"],input[type="search"],textarea',e='input[type="file"]';$(document).on("focus",t,function(t){var e=$(t.target);e.siblings("label, i").addClass("active");var i=e.siblings("label");i&&i.length&&$(i[0]).css("width","auto")}).on("blur",t,function(t){var e=$(t.target),i=!e.val(),n=!e.attr("placeholder");i&&n&&(e.siblings("label, i").removeClass("active"),o(e))}).on("change",t,function(t){var e=$(t.target);s(e),r(e)}).on("blur",e,function(t){$(t.target).siblings("label").addClass("active")}).on("change",e,function(t){var e=$(t.target),n=t.currentTarget.files.length,s="",o="";for(i=0;i<n;i++)fileSize=parseInt(t.currentTarget.files[i].size,10)/1024,filesize=Math.round(fileSize),s=s+t.currentTarget.files[i].name+" ("+filesize+"kb); ";1<n&&(o=n+" file da caricare: "),e.siblings(".form-file-name").text(o+s)});function n(){$("body").find(t).removeClass("valid invalid").each(function(t,e){var i=$(e),n=!!i.val(),s=!!i.attr("placeholder");(n||s)&&i.siblings("label, i").css("transition","none").addClass("active"),n||s||(i.siblings("label, i").removeClass("active"),o(i))})}var s=function(t){var e=t.siblings("label, i"),i=t.val().length,n=!!t.attr("placeholder");i||n?e.addClass("active"):e.removeClass("active")},r=function(t){if(t.hasClass("validate")){var e=t.val(),i=!e.length,n=!t[0].validity.badInput;if(i&&n)t.removeClass("valid").removeClass("invalid");else{var s=t.is(":valid"),o=Number(t.attr("length"))||0;s&&(!o||o>e.length)?t.removeClass("invalid").addClass("valid"):t.removeClass("valid").addClass("invalid")}}};$(window).resize(function(){$(t).each(function(t,e){var i=$(e);o(i)})}),n(),$(document).on("changed.bs.form-control",n)}),$(function(){var e;$(document).on("keydown mousedown",function(t){e="mousedown"===t.type}).on("focusin",function(t){e&&t.target&&$(t.target).addClass("focus--mouse")}).on("focusout",function(t){t.target&&$(t.target).removeClass("focus--mouse")})}),$(function(){$('a[data-attribute*="forward"]').on("click",function(t){var e=$(this.hash);e.length&&(t.preventDefault(),$("html, body").animate({scrollTop:e.offset().top},500))})}),$(function(){var t=$(".custom-navbar-toggler"),e=$(".close-div"),i=$(".overlay"),n=$(".it-back-button"),s=$(".navbar-collapsable a");$(t).on("click",function(t){var e=$(this).attr("data-target"),i=$(e).find(".overlay");$(this).attr("aria-expanded","true"),$(n).fadeIn(),$(e).show(),$(i).fadeIn(),$(e).addClass("expanded")}),$(i).on("click",function(){var t=$(this).closest(".navbar-collapsable"),e=$(this).closest(".navbar").find(".custom-navbar-toggler"),i=$(t).find(".overlay");$(e).attr("aria-expanded","false"),$(t).removeClass("expanded"),$(i).fadeOut(),setTimeout(function(){$(t).hide()},300)}),$(e).on("click",function(t){var e=$(this).closest(".navbar-collapsable"),i=$(this).closest(".navbar").find(".custom-navbar-toggler"),n=$(e).find(".overlay");$(i).attr("aria-expanded","false"),$(e).removeClass("expanded"),$(n).fadeOut(),setTimeout(function(){$(e).hide()},300)}),$(s).on("blur",function(t){closemenu=$(this).closest(".navbar-collapsable").find(".close-div .btn"),$(this).closest(".navbar-collapsable").hasClass("expanded")&&setTimeout(function(){var t=document.activeElement;0==$(t).closest(".navbar-collapsable").length&&$(closemenu).trigger("click")},50)}),$(e).on("blur",function(t){closemenu=$(this),$(this).closest(".navbar-collapsable").hasClass("expanded")&&setTimeout(function(){var t=document.activeElement;0==$(t).closest(".navbar-collapsable").length&&$(closemenu).trigger("click")},50)})}),$(function(){$(".custom-navbar-toggler"),$(".close-div");var i=$(".overlay"),t=$(".it-back-button");$(".navbar-collapsable a");$('.it-bottom-navscroll ul li a[href^="#"]').on("click",function(t){t.preventDefault();var e=this.hash;$("html, body").animate({scrollTop:$(e).offset().top},600,function(){history.pushState?history.pushState(null,null,e):location.hash=e}),$(i).trigger("click")}),$(t).click(function(t){$(i).trigger("click"),$(this).fadeOut(),t.preventDefault()}),$(window).on("scroll",function(){var t=$(".it-page-sections-container").length?$(".it-page-sections-container").offset().top:0,r=$(window).scrollTop()-t;$(".it-page-section").each(function(t){if($(this).position().top<=r){$(".it-navscroll-wrapper .menu-wrapper a.active").removeClass("active"),$(".it-navscroll-wrapper .menu-wrapper a").eq(t).addClass("active");var e=$(".it-navscroll-wrapper .menu-wrapper a").eq(t).closest("ul").prev("a"),i=$(e).closest("ul").prev("a");$(e).addClass("active"),$(i).addClass("active");var n=$(".it-navscroll-wrapper .menu-wrapper a").eq(t).find("span").text(),s=$(".it-navscroll-wrapper .custom-navbar-toggler"),o=s.find("span.it-list");s.text(n),s.prepend(o)}})}).scroll()}),$(function(){$(".go-back").on("click",function(){return window.history.back(),!1})}),$(document).on("click",".notification-close",function(){$(this).closest(".notification").fadeOut(100)}),$(function(){$(".upload-dragdrop:not(.success)").on("drag dragstart dragend dragover dragenter dragleave drop",function(t){t.preventDefault(),t.stopPropagation()}).on("dragover dragenter",function(){$(this).addClass("dragover")}).on("dragleave dragend drop",function(){$(this).removeClass("dragover")}).on("drop",function(t){$(this).addClass("loading"),$(this).find(".upload-progress").circularloader({backgroundColor:"#ffffff",fontColor:"#000000",fontSize:"40px",radius:130,progressBarBackground:"transparent",progressBarColor:"#0073e6",progressBarWidth:96,progressPercent:0})})});var progressDonut=function(i){return{generate:function(t,e){i(t).circularloader({backgroundColor:"#fff",fontColor:"#000",fontSize:40,radius:130,progressBarBackground:"transparent",progressBarColor:"#0073e6",progressBarWidth:96,progressPercent:e}),i(t).next().html("Progresso "+e+"%")},update:function(t,e){i(t).circularloader({progressPercent:e})}}}($);$(function(){$(".it-has-checkbox").on("click",function(t){var e=$(this).find("input");$(e).prop("checked")?($(e).prop("checked",!1),$(this).removeClass("active")):($(e).prop("checked",!0),$(this).addClass("active")),t.preventDefault()})}),$(function(){var t;t=window.navigator.userAgent,/msie|Trident.*rv[ :]*11\./gi.test(t)&&$(".img-wrapper").each(function(){var t=$(this),e=t.find("img").prop("src");e&&t.css("backgroundImage","url("+e+")").addClass("custom-object-fit")})});var numbers=[48,49,50,51,52,53,54,55,56,57],timeRegEx=/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/i;$(document).ready(function(){function w(t){return[8,9,13].includes(t)}function x(t,e,i,n,s){if(t.hasClass("is-open")){if(t.fadeOut(100).toggleClass("is-open").attr("aria-hidden","true"),i&&n){var o=i.attr("value")+":"+n.attr("value");e.val(o)}k(e,s)}}var C={};function k(t,e){var i=t.val();if(i){var n=t.siblings("label");(""!=i?i.match(timeRegEx):"")?n.removeClass("error-label").html(C[e]):n.addClass("error-label").html("Formato ora non valido (hh:mm)")}}$(".it-timepicker-wrapper").each(function(s){function n(t){return t<0&&(t=0),t<10?"0"+t:t}function o(t,e){switch(function(t){h=t.closest(".spinner").find("input"),r=parseInt(h.attr("aria-valuemin")),a=parseInt(h.attr("aria-valuemax")),l=parseInt(h.attr("aria-valuenow")),c=parseInt(h.attr("bb-skip"))}(e),t){case"up":(!a||l<a)&&l++;break;case"down":(!r||r<l)&&l--}if(t&&-1<c)switch(!0){case"up"===t&&c===l:l++;break;case"down"===t&&c===l:l--}switch(!0){case e.hasClass("btnHourUp")||e.hasClass("btnHourDown"):d=n(l);break;case e.hasClass("btnMinUp")||e.hasClass("btnMinDown"):u=n(l)}h.val(n(l)),h.attr("value",n(l)),h.attr("aria-valuenow",n(l)),p.val(d+":"+u)}function i(t,e){var i=n(t.val());t.attr("aria-valuenow",i),o(null,e)}var r,a,l,c,h,d="00",u="00",t=$(this),p=t.find(".txtTime"),e=t.find(".btn-time"),f=t.find(".spinner-control"),m=t.find(".spinnerHour"),g=t.find(".spinnerMin"),v=t.find(".btnHourUp"),y=t.find(".btnHourDown"),b=t.find(".btnMinUp"),_=t.find(".btnMinDown");C[s]=p.siblings("label").text(),t.find(".spinner-control button").attr("aria-hidden","true").attr("tabindex","-1"),e.on("click",function(t){t.stopPropagation(),f.hasClass("is-open")?x(f,p,m,g,s):function(t){t.toggleClass("is-open").attr("aria-hidden","false").fadeIn(100)}(f)}),p.on("keyup",function(t){var e=t.which||t.keyCode,i=p.val();if(i.includes(":")){var n=i.split(":");m.attr("aria-valuenow",n[0].substring(0,2)),m.attr("value",n[0].substring(0,2)),m.val(n[0].substring(0,2)),d=n[0].substring(0,2),g.attr("aria-valuenow",n[1].substring(0,2)),g.attr("value",n[1].substring(0,2)),g.val(n[1].substring(0,2)),u=n[1].substring(0,2)}else m.attr("aria-valuenow",i.substring(0,2)),m.attr("value",i.substring(0,2)),m.val(i.substring(0,2)),d=i.substring(0,2);if(13===e)return k(p,s)}).on("focus",function(t){t.stopPropagation(),p.val()&&k(p,s)}).on("blur",function(t){p.val()&&k(p,s)}),v.on("click",function(t){o("up",v)}),y.on("click",function(t){o("down",y)}),b.on("click",function(t){o("up",b)}),_.on("click",function(t){o("down",_)}),m.on("keydown",function(t){var e=t.which||t.keyCode,i=numbers.includes(e);switch(!0){case 38===e:v.trigger("click");break;case 40===e:y.trigger("click");break;case w(e)||i:return!0}return!1}).on("keyup",function(t){var e=t.which||t.keyCode;numbers.includes(e)&&i(m,v)}),g.on("keydown",function(t){var e=t.which||t.keyCode,i=numbers.includes(e);switch(!0){case 38===e:b.trigger("click");break;case 40===e:_.trigger("click");break;case w(e)||i:return!0}return!1}).on("keyup",function(t){var e=t.which||t.keyCode;numbers.includes(e)&&i(g,b)}),$(document).on("click",function(t){x(f,p,m,g,s)}),f.on("click",function(t){t.stopPropagation()})})}),$(function(){function a(t){var e=t.closest(".input-number");e.hasClass("input-number-adaptive")&&(e.hasClass("input-number-percentage")||(t.css("width","calc(44px + "+t.val().length+"ch)"),isIe()&&t.css("width","calc(44px + (1.5 * "+t.val().length+"ch))")),e.hasClass("input-number-currency")&&(t.css("width","calc(40px + 44px + "+t.val().length+"ch)"),isIe()&&t.css("width","calc(40px + 44px + (1.5 * "+t.val().length+"ch))")))}$(".input-number input[type=number]").each(function(t){a($(this))}),$(".input-number button").click(function(t){t.preventDefault();var e=$(this).closest(".input-number").find("input[type=number]"),i=parseFloat(e.val());if(!isNaN(i)){var n=0,s=parseFloat(e.attr("max")),o=parseFloat(e.attr("min")),r=parseFloat(e.attr("step"));r=r||1,$(this).hasClass("input-number-add")&&(n=!isNaN(s)&&s<=i+r?s:i+r,e.val(n)),$(this).hasClass("input-number-sub")&&(n=!isNaN(o)&&i-r<=o?o:i-r,e.val(n))}a(e)}),$(".input-number input[type=number]").change(function(t){var e=$(this),i=parseFloat(e.val());if(!isNaN(i)){var n=parseFloat(e.attr("max")),s=parseFloat(e.attr("min"));s&&i<s&&(i=s),n&&n<i&&(i=n),e.val(i)}a(e)}),$("input[type=number]").on("keyup",function(t){var e=t&&t.target.value;this.value=e.replace(/[^0-9,.]/g,"")})}),$(function(){var t,e,i,n,s,o,r,a,l,c,h,d,u,p,f,m,g,v,y,b,_,w,x,C,k,E,T,D,A,S,I,L,O,N=$(".owl-carousel.it-carousel-all");$(N).each(function(){$(this).closest(".it-carousel-wrapper").hasClass("it-carousel-landscape-abstract-three-cols")&&(n=[],s=300,o=500,r=200,h=!(c=l=a=!(e=!(t=!0))),u=u,f=!(p=!(d="page")),m=1,b=!(y=!(v=24)),_=2,w=g=40,k=!(C=!(x=24)),S=!(A=!(E=i=3)),I=3,O=L=D=T=0,$(this).hasClass("it-card-bg")&&(w=g=40,L=T=12,O=D=x=v=24),$(this).hasClass("it-img-card")&&(w=g=40,L=T=0,O=D=x=v=24),$(this).hasClass("it-img-card")&&$(this).hasClass("it-big-img")&&(e=!0,v=g=0,w=160,x=24,L=T=320,O=D=48,I=E=_=1),$(this).hasClass("it-img-card")&&$(this).hasClass("it-standard-image")&&(e=!0,g=40,m=1,_=2,T=68,L=w=48,O=D=x=v=24,I=E=3)),$(this).closest(".it-carousel-wrapper").hasClass("it-calendar-wrapper")&&(e=!(t=!0),n=[],s=300,o=500,r=200,h=!(c=l=a=!0),u=u,f=!(p=!(d="page")),m=1,b=!(y=!(g=40)),_=2,k=!(C=!(w=40)),S=!(A=!(E=i=4)),I=4,O=L=D=T=x=v=0,$(this).hasClass("it-card-bg")&&(w=g=40,O=L=D=T=x=v=0),$(this).hasClass("it-img-card")&&(w=g=40,O=L=D=T=x=v=0),$(this).hasClass("it-img-card")&&$(this).hasClass("it-big-img")&&(e=!0,w=160,L=T=320,O=D=x=v=g=0,I=E=_=1),$(this).hasClass("it-img-card")&&$(this).hasClass("it-standard-image")&&(e=!0,g=40,m=1,x=_=2,T=68,L=w=48,O=D=v=0,I=E=4)),$(this).closest(".it-carousel-wrapper").hasClass("it-carousel-landscape-abstract")&&(n=[],s=300,o=500,r=200,h=!(c=l=a=!(e=!(t=!0))),u=u,f=!(p=!(d="page")),b=!(y=!(v=24)),k=!(C=!(x=w=24)),S=!(A=!(E=_=m=i=1)),I=1,O=L=D=T=g=0),$(this).owlCarousel&&$(this).owlCarousel({nav:t,loop:e,margin:24,items:i,navText:n,navSpeed:s,smartSpeed:o,dotsSpeed:r,navElement:"button",dotElement:"button",controlsAriaHidden:a,mouseDrag:l,touchDrag:c,dots:h,slideBy:d,stagePadding:u,responsive:{0:{nav:p,dots:f,items:m,stagePadding:g,margin:v},768:{nav:y,dots:b,stagePadding:w,items:_,margin:x},992:{nav:C,dots:k,items:E,stagePadding:T,margin:D},1200:{nav:A,dots:S,stagePadding:L,items:I,margin:O}},onInitialized:function(t){$(t.target).find(".owl-dot").each(function(t){$(this).attr("aria-labelledby","owl-dot-"+t)})}})})}),$(function(){var t=$(".transfer-header input"),e=$(".transfer-group input"),s=$(".it-transfer-block").find("a.transfer"),o=$(".it-transfer-block").find("a.backtransfer"),n=$(".it-transfer-block").find("a.reset"),a=$(".source .transfer-group .form-check"),l=$(".target .transfer-group .form-check"),c=a.length,h=l.length;function r(t){t.removeClass("active").attr("disabled","disabled").attr("aria-disabled","true")}function d(t){t.addClass("active").removeAttr("disabled").removeAttr("aria-disabled")}function u(t,e){var i=t.find(".transfer-group input:checked"),n=i.closest(".form-check"),s=t.find(".transfer-header input"),o=t.find(".transfer-header span.num"),r=i.length,a=t.find(".transfer-group input").length,l=e.find(".transfer-group"),c=e.find(".transfer-group input").length+r,h=e.find(".transfer-header span.num"),d=e.find(".transfer-header input");n.each(function(){$(this).detach().appendTo(l).find("input").prop("checked",!1)});var u=a-r,p=c;o.text(u),h.text(p),0==u&&s.prop("disabled",!0),0<p&&d.prop("disabled",!1),s.removeClass("semi-checked").prop("checked",!1)}$(a).each(function(t){this}),$(l).each(function(t){this}),$(t).on("click",function(){!function(t){var e=$(t).find(".transfer-group input"),i=$(t).find(".transfer-group input:checked"),n=$(t).find(".transfer-header input");s=t.closest(".it-transfer-block").find("a.transfer"),o=t.closest(".it-transfer-block").find("a.backtransfer"),0<i.length?($(e).prop("checked",!1),$(n).removeClass("semi-checked").prop("checked",!1),t.hasClass("source")?r(s):r(o)):($(e).prop("checked",!0),t.hasClass("source")?d(s):d(o))}($(this).closest(".it-transfer-wrapper"))}),$(e).on("click",function(){!function(t){var e=$(t).find(".transfer-group input"),i=$(t).find(".transfer-group input:checked"),n=$(t).find(".transfer-header input");s=t.closest(".it-transfer-block").find("a.transfer"),o=t.closest(".it-transfer-block").find("a.backtransfer"),0==i.length?(n.removeClass("semi-checked").prop("checked",!1),t.hasClass("source")?r(s):r(o)):(i.length==e.length?n.removeClass("semi-checked").prop("checked",!0):n.addClass("semi-checked").prop("checked",!1),t.hasClass("source")?d(s):d(o))}($(this).closest(".it-transfer-wrapper"))}),$(s).on("click",function(t){var e=$(this).closest(".it-transfer-block").find(".source"),i=$(this).closest(".it-transfer-block").find(".target");d(n=$(this).closest(".it-transfer-block").find("a.reset")),r($(this)),u(e,i),t.preventDefault()}),$(o).on("click",function(t){var e=$(this).closest(".it-transfer-block").find(".source"),i=$(this).closest(".it-transfer-block").find(".target");d(n=$(this).closest(".it-transfer-block").find("a.reset")),r($(this)),u(i,e),t.preventDefault()}),$(n).on("click",function(t){var e=$(this).closest(".it-transfer-block"),i=e.find("a.transfer"),n=e.find("a.backtransfer");r(i),r(n),r($(this)),function(t){var e=t.find(".source .transfer-group"),i=t.find(".target .transfer-group"),n=t.find(".source .transfer-header span.num"),s=t.find(".target .transfer-header span.num"),o=t.find(".transfer-header input"),r=t.find(".transfer-group input");$(e).find(".form-check").detach(),$(i).find(".form-check").detach(),$(e).append(a),$(i).append(l),$(n).text(c),$(s).text(h),$(o).prop("disabled",!1).removeClass("semi-checked"),$(o).prop("checked",!1),$(r).prop("checked",!1)}(e),t.preventDefault()})}),$(function(){function i(){$(".dropdown-menu li.selected").find('input[type="checkbox"]').prop("checked",!0),$(".dropdown-menu li:not(.selected)").find('input[type="checkbox"]').prop("checked",!1)}jQuery.fn.setOptionsToSelect=function(t){var e=$(this).find("select");return $(e).off("changed.bs.select").selectpicker("destroy").empty(),t.forEach(function(t){$(e).append($("<option>",{value:t.value,text:t.text}))}),$(e).selectpicker("refresh").on("changed.bs.select",i),this},$(".bootstrap-select-wrapper select").selectpicker().on("changed.bs.select",i);var t=$(".bootstrap-select-wrapper");t.find("select option.bs-title-option").text("Nessuna opzione"),t.find("select option[data-content]").text("Annulla"),t.find("button.dropdown-toggle").removeAttr("role"),t.find("div.filter-option").replaceWith(function(){return $("<span />").addClass("filter-option").append($(this).contents())}),t.find("div.filter-option-inner").replaceWith(function(){return $("<span />").addClass("filter-option-inner").append($(this).contents())}),t.find("div.filter-option-inner-inner").replaceWith(function(){return $("<span />").addClass("filter-option-inner-inner").append($(this).contents())}),t.find(".bs-searchbox input").attr("title","Cerca").attr("aria-expanded","false")}),$(function(){$(".rating.rating-label input[type=radio]").on("click",function(t){var e=$(this).val(),i="stelle";1==e&&(i="stella"),$(this).closest(".rating-label").find("legend span:not(.sr-only)").text(e+" "+i)})}),$(function(){$.fn.dimmerShow=function(){return this.each(function(){"flex"!=$(this).css("display")&&$(this).css("display","flex").hide().fadeIn(200)})},$.fn.dimmerHide=function(t){return this.each(function(){$(this).fadeOut(200)})}});
//# sourceMappingURL=bootstrap-italia.bundle.min.js.map