1 |
- if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(E,e){"use strict";function g(e){return null!=e&&e===e.window}var t=[],T=E.document,r=Object.getPrototypeOf,s=t.slice,m=t.concat,l=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,u=a.call(Object),y={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||T).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var d="3.4.1",D=function(e,t){return new D.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!b(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}D.fn=D.prototype={jquery:d,constructor:D,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=D.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return D.each(this,e)},map:function(n){return this.pushStack(D.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},D.extend=D.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(D.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||D.isPlainObject(n)?n:{},i=!1,a[t]=D.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},D.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e)||(t=r(e))&&("function"!=typeof(n=v.call(t,"constructor")&&t.constructor)||a.call(n)!==u))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){w(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(f(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(f(Object(e))?D.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(f(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return m.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(D.fn[Symbol.iterator]=t[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function d(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function i(){S()}var e,f,w,o,a,p,h,g,_,l,u,S,E,s,T,m,c,v,y,D="sizzle"+1*new Date,b=n.document,x=0,r=0,C=le(),k=le(),I=le(),R=le(),A=function(e,t){return e===t&&(u=!0),0},M={}.hasOwnProperty,t=[],O=t.pop,N=t.push,P=t.push,L=t.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+j+"*("+z+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+j+"*\\]",U=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",Y=new RegExp(j+"+","g"),B=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),V=new RegExp("^"+j+"*,"+j+"*"),q=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),$=new RegExp(j+"|>"),G=new RegExp(U),Z=new RegExp("^"+z+"$"),Q={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=L.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){N.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,n,r){var i,o,a,s,l,u,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:b)!==E&&S(t),t=t||E,T)){if(11!==h&&(l=te.exec(e)))if(i=l[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&y(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return P.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(i)),n}if(f.qsa&&!R[e+" "]&&(!m||!m.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,d=t,1===h&&$.test(e)){for((s=t.getAttribute("id"))?s=s.replace(ie,oe):t.setAttribute("id",s=D),o=(u=p(e)).length;o--;)u[o]="#"+s+" "+be(u[o]);c=u.join(","),d=ne.test(e)&&ve(t.parentNode)||t}try{return P.apply(n,d.querySelectorAll(c)),n}catch(t){R(e,!0)}finally{s===D&&t.removeAttribute("id")}}}return g(e.replace(B,"$1"),t,n,r)}function le(){var r=[];return function e(t,n){return r.push(t+" ")>w.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function ue(e){return e[D]=!0,e}function ce(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},S=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:b;return r!==E&&9===r.nodeType&&r.documentElement&&(s=(E=r).documentElement,T=!a(E),b!==E&&(n=E.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),f.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ce(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=ee.test(E.getElementsByClassName),f.getById=ce(function(e){return s.appendChild(e).id=D,!E.getElementsByName||!E.getElementsByName(D).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(re,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(re,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},c=[],m=[],(f.qsa=ee.test(E.querySelectorAll))&&(ce(function(e){s.appendChild(e).innerHTML="<a id='"+D+"'></a><select id='"+D+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+D+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+D+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){f.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===b&&y(b,e)?-1:t===E||t.ownerDocument===b&&y(b,t)?1:l?H(l,e)-H(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:l?H(l,e)-H(l,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]===b?-1:s[r]===b?1:0}),E},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&S(e),f.matchesSelector&&T&&!R[t+" "]&&(!c||!c.test(t))&&(!m||!m.test(t)))try{var n=v.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){R(t,!0)}return 0<se(t,E,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==E&&S(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==E&&S(e);var n=w.attrHandle[t.toLowerCase()],r=n&&M.call(w.attrHandle,t.toLowerCase())?n(e,t,!T):void 0;return void 0!==r?r:f.attributes||!T?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ie,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(u=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(A),u){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return l=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(w=se.selectors={cacheLength:50,createPseudo:ue,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,d),e[3]=(e[3]||e[4]||e[5]||"").replace(re,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(Y," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(s=(r=(i=(o=(a=c)[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===x&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(f=s=0)||l.pop();)if(1===a.nodeType&&++f&&a===e){i[p]=[x,s,f];break}}else if(h&&(f=s=(r=(i=(o=(a=e)[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===x&&r[1]),!1===f)for(;(a=++s&&a&&a[u]||(f=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(h&&((i=(o=a[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[x,f]),a!==e)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[D]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=H(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ue(function(e){var r=[],i=[],s=h(e.replace(B,"$1"));return s[D]?ue(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:ue(function(t){return function(e){return 0<se(t,e).length}}),contains:ue(function(t){return t=t.replace(re,d),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return Z.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(re,d).toLowerCase(),function(e){var t;do{if(t=T?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:me(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=pe(e);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(s,e,t){var l=e.dir,u=e.next,c=u||l,d=t&&"parentNode"===c,h=r++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||d)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[x,h];if(n){for(;e=e[l];)if((1===e.nodeType||d)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(i=(o=e[D]||(e[D]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((r=i[c])&&r[0]===x&&r[1]===h)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function _e(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Se(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function Ee(f,p,g,m,v,e){return m&&!m[D]&&(m=Ee(m)),v&&!v[D]&&(v=Ee(v,e)),ue(function(e,t,n,r){var i,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:Se(c,s,f,n,r),h=g?v||(e?f:u||m)?[]:t:d;if(g&&g(d,h,n,r),m)for(i=Se(h,l),m(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[l[o]]=!(d[l[o]]=a));if(e){if(v||f){if(v){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(d[o]=a);v(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=v?H(e,a):s[o])&&(e[i]=!(t[i]=a))}}else h=Se(h===t?h.splice(u,h.length):h),v?v(null,t,h,r):P.apply(t,h)})}function Te(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,l=we(function(e){return e===i},a,!0),u=we(function(e){return-1<H(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==_)||((i=t).nodeType?l(e,t,n):u(e,t,n));return i=null,r}];s<r;s++)if(t=w.relative[e[s].type])c=[we(_e(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[D]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Ee(1<s&&_e(c),1<s&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Te(e.slice(s,n)),n<r&&Te(e=e.slice(n)),n<r&&be(e))}c.push(t)}return _e(c)}return ye.prototype=w.filters=w.pseudos,w.setFilters=new ye,p=se.tokenize=function(e,t){var n,r,i,o,a,s,l,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=w.preFilter;a;){for(o in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=q.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),w.filter)!(r=Q[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):k(e,s).slice(0)},h=se.compile=function(e,t){var n,m,v,y,b,r,i=[],o=[],a=I[e+" "];if(!a){for(n=(t=t||p(e)).length;n--;)(a=Te(t[n]))[D]?i.push(a):o.push(a);(a=I(e,(m=o,y=0<(v=i).length,b=0<m.length,r=function(e,t,n,r,i){var o,a,s,l=0,u="0",c=e&&[],d=[],h=_,f=e||b&&w.find.TAG("*",i),p=x+=null==h?1:Math.random()||.1,g=f.length;for(i&&(_=t===E||t||i);u!==g&&null!=(o=f[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument===E||(S(o),n=!T);s=m[a++];)if(s(o,t||E,n)){r.push(o);break}i&&(x=p)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=O.call(r));d=Se(d)}P.apply(r,d),i&&!e&&0<d.length&&1<l+v.length&&se.uniqueSort(r)}return i&&(x=p,_=h),c},y?ue(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&p(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&T&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(re,d),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Q.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((l=w.find[s])&&(r=l(a.matches[0].replace(re,d),ne.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&be(o)))return P.apply(n,r),n;break}}return(u||h(e,c))(r,t,!T,n,!t||ne.test(e)&&ve(t.parentNode)||t),n},f.sortStable=D.split("").sort(A).join("")===D,f.detectDuplicates=!!u,S(),f.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(F,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(E);D.find=p,D.expr=p.selectors,D.expr[":"]=D.expr.pseudos,D.uniqueSort=D.unique=p.uniqueSort,D.text=p.getText,D.isXMLDoc=p.isXML,D.contains=p.contains,D.escapeSelector=p.escape;function S(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&D(e).is(n))break;r.push(e)}return r}function x(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var C=D.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,n,r){return b(n)?D.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?D.grep(e,function(e){return e===n!==r}):"string"!=typeof n?D.grep(e,function(e){return-1<i.call(n,e)!==r}):D.filter(n,e,r)}D.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?D.find.matchesSelector(r,e)?[r]:[]:D.find.matches(e,D.grep(t,function(e){return 1===e.nodeType}))},D.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(D(e).filter(function(){for(t=0;t<r;t++)if(D.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)D.find(e,i[t],n);return 1<r?D.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&C.test(e)?D(e):e||[],!1).length}});var A,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(D.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(D):D.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof D?t[0]:t,D.merge(this,D.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),I.test(r[1])&&D.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=T.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=D.fn,A=D(T);var O=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}D.fn.extend({has:function(e){var t=D(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(D.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&D(e);if(!C.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&D.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?D.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(D(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),D.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(k(e,"template")&&(e=e.content||e),D.merge([],e.childNodes))}},function(r,i){D.fn[r]=function(e,t){var n=D.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=D.filter(t,n)),1<this.length&&(N[r]||D.uniqueSort(n),O.test(r)&&n.reverse()),this.pushStack(n)}});var L=/[^\x20\t\r\n\f]+/g;function H(e){return e}function F(e){throw e}function j(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}D.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},D.each(e.match(L)||[],function(e,t){n[t]=!0}),n):D.extend({},r);function i(){for(s=s||r.once,a=o=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&r.stopOnFalse&&(c=l.length,t=!1);r.memory||(t=!1),o=!1,s&&(l=t?[]:"")}var o,t,a,s,l=[],u=[],c=-1,d={add:function(){return l&&(t&&!o&&(c=l.length-1,u.push(t)),function n(e){D.each(e,function(e,t){b(t)?r.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==_(t)&&n(t)})}(arguments),t&&!o&&i()),this},remove:function(){return D.each(arguments,function(e,t){for(var n;-1<(n=D.inArray(t,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<D.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=u=[],t||o||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||i()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},D.extend({Deferred:function(e){var o=[["notify","progress",D.Callbacks("memory"),D.Callbacks("memory"),2],["resolve","done",D.Callbacks("once memory"),D.Callbacks("once memory"),0,"resolved"],["reject","fail",D.Callbacks("once memory"),D.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return D.Deferred(function(r){D.each(o,function(e,t){var n=b(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var l=0;function u(i,o,a,s){return function(){function e(){var e,t;if(!(i<l)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,u(l,o,H,s),u(l,o,F,s)):(l++,t.call(e,u(l,o,H,s),u(l,o,F,s),u(l,o,H,o.notifyWith))):(a!==H&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){D.Deferred.exceptionHook&&D.Deferred.exceptionHook(e,t.stackTrace),l<=i+1&&(a!==F&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(D.Deferred.getStackHook&&(t.stackTrace=D.Deferred.getStackHook()),E.setTimeout(t))}}return D.Deferred(function(e){o[0][3].add(u(0,e,b(r)?r:H,e.notifyWith)),o[1][3].add(u(0,e,b(t)?t:H)),o[2][3].add(u(0,e,b(n)?n:F))}).promise()},promise:function(e){return null!=e?D.extend(e,a):a}},s={};return D.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=s.call(arguments),a=D.Deferred();if(n<=1&&(j(e,a.done(t(r)).resolve,a.reject,!n),"pending"===a.state()||b(o[r]&&o[r].then)))return a.then();for(;r--;)j(o[r],t(r),a.reject);return a.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;D.Deferred.exceptionHook=function(e,t){E.console&&E.console.warn&&e&&z.test(e.name)&&E.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},D.readyException=function(e){E.setTimeout(function(){throw e})};var W=D.Deferred();function U(){T.removeEventListener("DOMContentLoaded",U),E.removeEventListener("load",U),D.ready()}D.fn.ready=function(e){return W.then(e).catch(function(e){D.readyException(e)}),this},D.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--D.readyWait:D.isReady)||(D.isReady=!0)!==e&&0<--D.readyWait||W.resolveWith(T,[D])}}),D.ready.then=W.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?E.setTimeout(D.ready):(T.addEventListener("DOMContentLoaded",U),E.addEventListener("load",U));var Y=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===_(n))for(s in i=!0,n)Y(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,b(r)||(a=!0),u&&(t=a?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(D(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},B=/^-ms-/,V=/-([a-z])/g;function q(e,t){return t.toUpperCase()}function $(e){return e.replace(B,"ms-").replace(V,q)}function G(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Z(){this.expando=D.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[$(t)]=n;else for(r in t)i[$(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map($):(t=$(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!D.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!D.isEmptyObject(t)}};var Q=new Z,X=new Z,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}X.set(e,t,n)}else n=void 0;return n}D.extend({hasData:function(e){return X.hasData(e)||Q.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),D.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){X.set(this,n)}):Y(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))?t:void 0!==(t=ee(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=X.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=$(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),D.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,D.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=D.queue(e,t),r=n.length,i=n.shift(),o=D._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){D.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:D.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),D.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?D.queue(this[0],t):void 0===n?this:this.each(function(){var e=D.queue(this,t,n);D._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&D.dequeue(this,t)})},dequeue:function(e){return this.each(function(){D.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=D.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(r=Q.get(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=T.documentElement,oe=function(e){return D.contains(e.ownerDocument,e)},ae={composed:!0};ie.getRootNode&&(oe=function(e){return D.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});function se(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===D.css(e,"display")}function le(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i}function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return D.css(e,t,"")},l=s(),u=n&&n[3]||(D.cssNumber[t]?"":"px"),c=e.nodeType&&(D.cssNumber[t]||"px"!==u&&+l)&&ne.exec(D.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)D.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,D.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ce={};function de(e,t){for(var n,r,i,o,a,s,l,u=[],c=0,d=e.length;c<d;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(u[c]=Q.get(r,"display")||null,u[c]||(r.style.display="")),""===r.style.display&&se(r)&&(u[c]=(l=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(l=ce[s])||(o=a.body.appendChild(a.createElement(s)),l=D.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ce[s]=l)))):"none"!==n&&(u[c]="none",Q.set(r,"display",n)));for(c=0;c<d;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}D.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?D(this).show():D(this).hide()})}});var he=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,ge={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 me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?D.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var ye,be,we=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===_(o))D.merge(h,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(fe.exec(o)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,a.innerHTML=l[1]+D.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;D.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(r&&-1<D.inArray(o,r))i&&i.push(o);else if(u=oe(o),a=me(d.appendChild(o),"script"),u&&ve(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return d}ye=T.createDocumentFragment().appendChild(T.createElement("div")),(be=T.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),y.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var Se=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function xe(){return!1}function Ce(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=xe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return D().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=D.guid++)),e.each(function(){D.event.add(this,t,i,r,n)})}function Ie(e,i,o){o?(Q.set(e,i,!1),D.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(D.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:D.event.trigger(D.extend(r[0],D.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&D.event.add(e,i,De)}D.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,u,c,d,h,f,p,g,m=Q.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&D.find.matchesSelector(ie,i),n.guid||(n.guid=D.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==D&&D.event.triggered!==e.type?D.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(L)||[""]).length;u--;)f=g=(s=Te.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=D.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=D.event.special[f]||{},c=D.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&D.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),D.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,h,f,p,g,m=Q.hasData(e)&&Q.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(f=g=(s=Te.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=D.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||D.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)D.event.remove(e,f+t[u],n,r,!0);D.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=D.event.fix(e),l=new Array(arguments.length),u=(Q.get(this,"events")||{})[s.type]||[],c=D.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=D.event.handlers.call(this,s,u),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((D.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<D(i,this).index(u):D.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(D.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[D.expando]?e:new D.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&k(t,"input")&&Ie(t,"click",De),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&k(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&k(t,"input")&&Q.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},D.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},D.Event=function(e,t){if(!(this instanceof D.Event))return new D.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?De:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&D.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[D.expando]=!0},D.Event.prototype={constructor:D.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=De,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=De,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=De,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},D.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(e){var t=e.button;return null==e.which&&Se.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},D.event.addProp),D.each({focus:"focusin",blur:"focusout"},function(e,t){D.event.special[e]={setup:function(){return Ie(this,e,Ce),!1},trigger:function(){return Ie(this,e),!0},delegateType:t}}),D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){D.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||D.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),D.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,D(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){D.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&D(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n<r;n++)D.event.add(t,i,u[i][n]);X.hasData(e)&&(s=X.access(e),l=D.extend({},s),X.set(t,l))}}function Fe(n,r,i,o){r=m.apply([],r);var e,t,a,s,l,u,c=0,d=n.length,h=d-1,f=r[0],p=b(f);if(p||1<d&&"string"==typeof f&&!y.checkClone&&Me.test(f))return n.each(function(e){var t=n.eq(e);p&&(r[0]=f.call(this,e,t.html())),Fe(t,r,i,o)});if(d&&(t=(e=_e(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=D.map(me(e,"script"),Pe)).length;c<d;c++)l=e,c!==h&&(l=D.clone(l,!0,!0),s&&D.merge(a,me(l,"script"))),i.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,D.map(a,Le),c=0;c<s;c++)l=a[c],pe.test(l.type||"")&&!Q.access(l,"globalEval")&&D.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?D._evalUrl&&!l.noModule&&D._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):w(l.textContent.replace(Oe,""),l,u))}return n}function je(e,t,n){for(var r,i=t?D.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||D.cleanData(me(r)),r.parentNode&&(n&&oe(r)&&ve(me(r,"script")),r.parentNode.removeChild(r));return e}D.extend({htmlPrefilter:function(e){return e.replace(Re,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,u,c=e.cloneNode(!0),d=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(a=me(c),r=0,i=(o=me(e)).length;r<i;r++)s=o[r],"input"===(u=(l=a[r]).nodeName.toLowerCase())&&he.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(c),r=0,i=o.length;r<i;r++)He(o[r],a[r]);else He(e,c);return 0<(a=me(c,"script")).length&&ve(a,!d&&me(e,"script")),c},cleanData:function(e){for(var t,n,r,i=D.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?D.event.remove(n,r):D.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),D.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return Y(this,function(e){return void 0===e?D.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(D.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return D.clone(this,e,t)})},html:function(e){return Y(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=D.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(D.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Fe(this,arguments,function(e){var t=this.parentNode;D.inArray(this,n)<0&&(D.cleanData(me(this)),t&&t.replaceChild(e,this))},n)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){D.fn[e]=function(e){for(var t,n=[],r=D(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),D(r[o])[a](t),l.apply(n,t.get());return this.pushStack(n)}});var ze,We,Ue,Ye,Be,Ve,qe,$e=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=E),t.getComputedStyle(e)},Ze=new RegExp(re.join("|"),"i");function Qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ge(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=D.style(e,t)),!y.pixelBoxStyles()&&$e.test(a)&&Ze.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Je(){if(qe){Ve.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",qe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(Ve).appendChild(qe);var e=E.getComputedStyle(qe);ze="1%"!==e.top,Be=12===Ke(e.marginLeft),qe.style.right="60%",Ye=36===Ke(e.right),We=36===Ke(e.width),qe.style.position="absolute",Ue=12===Ke(qe.offsetWidth/3),ie.removeChild(Ve),qe=null}}function Ke(e){return Math.round(parseFloat(e))}Ve=T.createElement("div"),(qe=T.createElement("div")).style&&(qe.style.backgroundClip="content-box",qe.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===qe.style.backgroundClip,D.extend(y,{boxSizingReliable:function(){return Je(),We},pixelBoxStyles:function(){return Je(),Ye},pixelPosition:function(){return Je(),ze},reliableMarginLeft:function(){return Je(),Be},scrollboxSize:function(){return Je(),Ue}}));var et=["Webkit","Moz","ms"],tt=T.createElement("div").style,nt={};function rt(e){return D.cssProps[e]||nt[e]||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,ot=/^--/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=D.css(e,n+re[a],!0,i)),r?("content"===n&&(l-=D.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(l-=D.css(e,"border"+re[a]+"Width",!0,i))):(l+=D.css(e,"padding"+re[a],!0,i),"padding"!==n?l+=D.css(e,"border"+re[a]+"Width",!0,i):s+=D.css(e,"border"+re[a]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function ct(e,t,n){var r=Ge(e),i=(!y.boxSizingReliable()||n)&&"border-box"===D.css(e,"boxSizing",!1,r),o=i,a=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===D.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===D.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}D.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=$(t),l=ot.test(t),u=e.style;if(l||(t=rt(s)),a=D.cssHooks[t]||D.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(D.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=$(t);return ot.test(t)||(t=rt(s)),(a=D.cssHooks[t]||D.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),D.each(["height","width"],function(e,l){D.cssHooks[l]={get:function(e,t,n){if(t)return!it.test(D.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,l,n):le(e,at,function(){return ct(e,l,n)})},set:function(e,t,n){var r,i=Ge(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===D.css(e,"boxSizing",!1,i),s=n?ut(e,l,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(i[l])-ut(e,l,"border",!1,i)-.5)),s&&(r=ne.exec(t))&&"px"!==(r[3]||"px")&&(e.style[l]=t,t=D.css(e,l)),lt(0,t,s)}}}),D.cssHooks.marginLeft=Xe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-le(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),D.each({margin:"",padding:"",border:"Width"},function(i,o){D.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+re[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(D.cssHooks[i+o].set=lt)}),D.fn.extend({css:function(e,t){return Y(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ge(e),i=t.length;a<i;a++)o[t[a]]=D.css(e,t[a],!1,r);return o}return void 0!==n?D.style(e,t,n):D.css(e,t)},e,t,1<arguments.length)}}),((D.Tween=dt).prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||D.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(D.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=D.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}}).init.prototype=dt.prototype,(dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=D.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){D.fx.step[e.prop]?D.fx.step[e.prop](e):1!==e.elem.nodeType||!D.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:D.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},D.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},D.fx=dt.prototype.init,D.fx.step={};var ht,ft,pt,gt,mt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function yt(){ft&&(!1===T.hidden&&E.requestAnimationFrame?E.requestAnimationFrame(yt):E.setTimeout(yt,D.fx.interval),D.fx.tick())}function bt(){return E.setTimeout(function(){ht=void 0}),ht=Date.now()}function wt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function _t(e,t,n){for(var r,i=(St.tweeners[t]||[]).concat(St.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function St(o,e,t){var n,a,r=0,i=St.prefilters.length,s=D.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=ht||bt(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return s.notifyWith(o,[u,n,t]),n<1&&i?t:(i||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:D.extend({},e),opts:D.extend(!0,{specialEasing:{},easing:D.easing._default},t),originalProperties:e,originalOptions:t,startTime:ht||bt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=D.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=$(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=D.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);r<i;r++)if(n=St.prefilters[r].call(u,o,c,u.opts))return b(n.stop)&&(D._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return D.map(c,_t,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),D.fx.timer(D.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}D.Animation=D.extend(St,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=b(e)?(t=e,["*"]):e.match(L)).length;r<i;r++)n=e[r],St.tweeners[n]=St.tweeners[n]||[],St.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&se(e),m=Q.get(e,"fxshow");for(r in n.queue||(null==(a=D._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,D.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],mt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||D.style(e,r)}if((l=!D.isEmptyObject(t))||!D.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=Q.get(e,"display")),"none"===(c=D.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=D.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===D.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Q.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&de([e],!0),h.done(function(){for(r in g||de([e]),Q.remove(e,"fxshow"),f)D.style(e,r,f[r])})),l=_t(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?St.prefilters.unshift(e):St.prefilters.push(e)}}),D.speed=function(e,t,n){var r=e&&"object"==typeof e?D.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return D.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in D.fx.speeds?r.duration=D.fx.speeds[r.duration]:r.duration=D.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&D.dequeue(this,r.queue)},r},D.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=St(this,D.extend({},t),a);(o||Q.get(this,"finish"))&&e.stop(!0)}var o=D.isEmptyObject(t),a=D.speed(e,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=D.timers,r=Q.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&vt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||D.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Q.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=D.timers,o=n?n.length:0;for(t.finish=!0,D.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),D.each(["toggle","show","hide"],function(e,r){var i=D.fn[r];D.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(wt(r,!0),e,t,n)}}),D.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){D.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),D.timers=[],D.fx.tick=function(){var e,t=0,n=D.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||D.fx.stop(),ht=void 0},D.fx.timer=function(e){D.timers.push(e),D.fx.start()},D.fx.interval=13,D.fx.start=function(){ft||(ft=!0,yt())},D.fx.stop=function(){ft=null},D.fx.speeds={slow:600,fast:200,_default:400},D.fn.delay=function(r,e){return r=D.fx&&D.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=E.setTimeout(e,r);t.stop=function(){E.clearTimeout(n)}})},pt=T.createElement("input"),gt=T.createElement("select").appendChild(T.createElement("option")),pt.type="checkbox",y.checkOn=""!==pt.value,y.optSelected=gt.selected,(pt=T.createElement("input")).value="t",pt.type="radio",y.radioValue="t"===pt.value;var Et,Tt=D.expr.attrHandle;D.fn.extend({attr:function(e,t){return Y(this,D.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){D.removeAttr(this,e)})}}),D.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?D.prop(e,t,n):(1===o&&D.isXMLDoc(e)||(i=D.attrHooks[t.toLowerCase()]||(D.expr.match.bool.test(t)?Et:void 0)),void 0!==n?null===n?void D.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=D.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Et={set:function(e,t,n){return!1===t?D.removeAttr(e,n):e.setAttribute(n,n),n}},D.each(D.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Tt[t]||D.find.attr;Tt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Tt[o],Tt[o]=r,r=null!=a(e,t,n)?o:null,Tt[o]=i),r}});var Dt=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i;function Ct(e){return(e.match(L)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function It(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}D.fn.extend({prop:function(e,t){return Y(this,D.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[D.propFix[e]||e]})}}),D.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&D.isXMLDoc(e)||(t=D.propFix[t]||t,i=D.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=D.find.attr(e,"tabindex");return t?parseInt(t,10):Dt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(D.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){D.propFix[this.toLowerCase()]=this}),D.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(b(t))return this.each(function(e){D(this).addClass(t.call(this,e,kt(this)))});if((e=It(t)).length)for(;n=this[l++];)if(i=kt(n),r=1===n.nodeType&&" "+Ct(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=Ct(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(b(t))return this.each(function(e){D(this).removeClass(t.call(this,e,kt(this)))});if(!arguments.length)return this.attr("class","");if((e=It(t)).length)for(;n=this[l++];)if(i=kt(n),r=1===n.nodeType&&" "+Ct(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=Ct(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"==o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):b(i)?this.each(function(e){D(this).toggleClass(i.call(this,e,kt(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=D(this),r=It(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=kt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+Ct(kt(n))+" ").indexOf(t))return!0;return!1}});var Rt=/\r/g;D.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=b(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,D(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=D.map(t,function(e){return null==e?"":e+""})),(r=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=D.valHooks[t.type]||D.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(Rt,""):null==e?"":e:void 0}}),D.extend({valHooks:{option:{get:function(e){var t=D.find.attr(e,"value");return null!=t?t:Ct(D.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=D(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=D.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<D.inArray(D.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),D.each(["radio","checkbox"],function(){D.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<D.inArray(D(e).val(),t)}},y.checkOn||(D.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in E;function At(e){e.stopPropagation()}var Mt=/^(?:focusinfocus|focusoutblur)$/;D.extend(D.event,{trigger:function(e,t,n,r){var i,o,a,s,l,u,c,d,h=[n||T],f=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||T,3!==n.nodeType&&8!==n.nodeType&&!Mt.test(f+D.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[D.expando]?e:new D.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:D.makeArray(t,[e]),c=D.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!g(n)){for(s=c.delegateType||f,Mt.test(s+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||T)&&h.push(a.defaultView||a.parentWindow||E)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)d=o,e.type=1<i?s:c.bindType||f,(u=(Q.get(o,"events")||{})[e.type]&&Q.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&G(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!G(n)||l&&b(n[f])&&!g(n)&&((a=n[l])&&(n[l]=null),D.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,At),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,At),D.event.triggered=void 0,a&&(n[l]=a)),e.result}},simulate:function(e,t,n){var r=D.extend(new D.Event,n,{type:e,isSimulated:!0});D.event.trigger(r,null,t)}}),D.fn.extend({trigger:function(e,t){return this.each(function(){D.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return D.event.trigger(e,t,n,!0)}}),y.focusin||D.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){D.event.simulate(r,e.target,D.event.fix(e))}D.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=Q.access(e,r);t||e.addEventListener(n,i,!0),Q.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Q.access(e,r)-1;t?Q.access(e,r,t):(e.removeEventListener(n,i,!0),Q.remove(e,r))}}});var Ot=E.location,Nt=Date.now(),Pt=/\?/;D.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new E.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||D.error("Invalid XML: "+e),t};var Lt=/\[\]$/,Ht=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function zt(n,e,r,i){var t;if(Array.isArray(e))D.each(e,function(e,t){r||Lt.test(n)?i(n,t):zt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==_(e))i(n,e);else for(t in e)zt(n+"["+t+"]",e[t],r,i)}D.param=function(e,t){function n(e,t){var n=b(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!D.isPlainObject(e))D.each(e,function(){n(this.name,this.value)});else for(r in e)zt(r,e[r],t,n);return i.join("&")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=D.prop(this,"elements");return e?D.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!D(this).is(":disabled")&&jt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=D(this).val();return null==n?null:Array.isArray(n)?D.map(n,function(e){return{name:t.name,value:e.replace(Ht,"\r\n")}}):{name:t.name,value:n.replace(Ht,"\r\n")}}).get()}});var Wt=/%20/g,Ut=/#.*$/,Yt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vt=/^(?:GET|HEAD)$/,qt=/^\/\//,$t={},Gt={},Zt="*/".concat("*"),Qt=T.createElement("a");function Xt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(L)||[];if(b(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Jt(t,i,o,a){var s={},l=t===Gt;function u(e){var r;return s[e]=!0,D.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||l||s[n]?l?!(r=n):void 0:(i.dataTypes.unshift(n),u(n),!1)}),r}return u(i.dataTypes[0])||!s["*"]&&u("*")}function Kt(e,t){var n,r,i=D.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&D.extend(!0,e,r),e}Qt.href=Ot.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,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":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,D.ajaxSettings),t):Kt(D.ajaxSettings,e)},ajaxPrefilter:Xt($t),ajaxTransport:Xt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,d,h,n,f,r,p,g,i,o,m=D.ajaxSetup({},t),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?D(v):D.event,b=D.Deferred(),w=D.Callbacks("once memory"),_=m.statusCode||{},a={},s={},l="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Bt.exec(h);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==p&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)S.always(e[S.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),u(0,t),this}};if(b.promise(S),m.url=((e||m.url||Ot.href)+"").replace(qt,Ot.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(L)||[""],null==m.crossDomain){r=T.createElement("a");try{r.href=m.url,r.href=r.href,m.crossDomain=Qt.protocol+"//"+Qt.host!=r.protocol+"//"+r.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=D.param(m.data,m.traditional)),Jt($t,m,t,S),p)return S;for(i in(g=D.event&&m.global)&&0==D.active++&&D.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Vt.test(m.type),d=m.url.replace(Ut,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Wt,"+")):(o=m.url.slice(d.length),m.data&&(m.processData||"string"==typeof m.data)&&(d+=(Pt.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(d=d.replace(Yt,"$1"),o=(Pt.test(d)?"&":"?")+"_="+Nt+++o),m.url=d+o),m.ifModified&&(D.lastModified[d]&&S.setRequestHeader("If-Modified-Since",D.lastModified[d]),D.etag[d]&&S.setRequestHeader("If-None-Match",D.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&S.setRequestHeader("Content-Type",m.contentType),S.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Zt+"; q=0.01":""):m.accepts["*"]),m.headers)S.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(!1===m.beforeSend.call(v,S,m)||p))return S.abort();if(l="abort",w.add(m.complete),S.done(m.success),S.fail(m.error),c=Jt(Gt,m,t,S)){if(S.readyState=1,g&&y.trigger("ajaxSend",[S,m]),p)return S;m.async&&0<m.timeout&&(f=E.setTimeout(function(){S.abort("timeout")},m.timeout));try{p=!1,c.send(a,u)}catch(e){if(p)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,r){var i,o,a,s,l,u=t;p||(p=!0,f&&E.clearTimeout(f),c=void 0,h=r||"",S.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a=a||i}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(m,S,n)),s=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(m,s,S,i),i?(m.ifModified&&((l=S.getResponseHeader("Last-Modified"))&&(D.lastModified[d]=l),(l=S.getResponseHeader("etag"))&&(D.etag[d]=l)),204===e||"HEAD"===m.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,i=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),S.status=e,S.statusText=(t||u)+"",i?b.resolveWith(v,[o,u,S]):b.rejectWith(v,[S,u,a]),S.statusCode(_),_=void 0,g&&y.trigger(i?"ajaxSuccess":"ajaxError",[S,m,i?o:a]),w.fireWith(v,[S,u]),g&&(y.trigger("ajaxComplete",[S,m]),--D.active||D.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return D.get(e,t,n,"json")},getScript:function(e,t){return D.get(e,void 0,t,"script")}}),D.each(["get","post"],function(e,i){D[i]=function(e,t,n,r){return b(t)&&(r=r||n,n=t,t=void 0),D.ajax(D.extend({url:e,type:i,dataType:r,data:t,success:n},D.isPlainObject(e)&&e))}}),D._evalUrl=function(e,t){return D.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){D.globalEval(e,t)}})},D.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=D(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(e){D(this).wrapInner(n.call(this,e))}):this.each(function(){var e=D(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=b(t);return this.each(function(e){D(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){D(this).replaceWith(this.childNodes)}),this}}),D.expr.pseudos.hidden=function(e){return!D.expr.pseudos.visible(e)},D.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},D.ajaxSettings.xhr=function(){try{return new E.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=D.ajaxSettings.xhr();y.cors=!!tn&&"withCredentials"in tn,y.ajax=tn=!!tn,D.ajaxTransport(function(i){var o,a;if(y.cors||tn&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(en[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&E.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),D.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return D.globalEval(e),e}}}),D.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),D.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=D("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(r[0])},abort:function(){i&&i()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||D.expando+"_"+Nt++;return this[e]=!0,e}}),D.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||D.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=E[r],E[r]=function(){o=arguments},n.always(function(){void 0===i?D(E).removeProp(r):E[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,rn.push(r)),o&&b(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((nn=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===nn.childNodes.length),D.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(r)):t=T),o=!n&&[],(i=I.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,o),o&&o.length&&D(o).remove(),D.merge([],i.childNodes)));var r,i,o},D.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Ct(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&D.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?D("<div>").append(D.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){D.fn[t]=function(e){return this.on(t,e)}}),D.expr.pseudos.animated=function(t){return D.grep(D.timers,function(e){return t===e.elem}).length},D.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=D.css(e,"position"),c=D(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=D.css(e,"top"),l=D.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,D.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},D.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){D.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===D.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===D.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=D(e).offset()).top+=D.css(e,"borderTopWidth",!0),i.left+=D.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-D.css(r,"marginTop",!0),left:t.left-i.left-D.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===D.css(e,"position");)e=e.offsetParent;return e||ie})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;D.fn[t]=function(e){return Y(this,function(e,t,n){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),D.each(["top","left"],function(e,n){D.cssHooks[n]=Xe(y.pixelPosition,function(e,t){if(t)return t=Qe(e,n),$e.test(t)?D(e).position()[n]+"px":t})}),D.each({Height:"height",Width:"width"},function(a,s){D.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){D.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return Y(this,function(e,t,n){var r;return g(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?D.css(e,t,i):D.style(e,t,n,i)},s,n?e:void 0,n)}})}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){D.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),D.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),D.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),D.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||D.guid++,i},D.holdReady=function(e){e?D.readyWait++:D.ready(!0)},D.isArray=Array.isArray,D.parseJSON=JSON.parse,D.nodeName=k,D.isFunction=b,D.isWindow=g,D.camelCase=$,D.type=_,D.now=Date.now,D.isNumeric=function(e){var t=D.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return D});var an=E.jQuery,sn=E.$;return D.noConflict=function(e){return E.$===D&&(E.$=sn),e&&E.jQuery===D&&(E.jQuery=an),D},e||(E.jQuery=E.$=D),D}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:g(p(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var t=n&&!(!window.MSInputMethodContext||!document.documentMode),i=n&&/MSIE 10/.test(navigator.userAgent);function v(e){return 11===e?t:10===e?i:t||i}function b(e){if(!e)return document.documentElement;for(var t=v(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?b(n):n:e?e.ownerDocument.documentElement:document.documentElement}function l(e){return null!==e.parentNode?l(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||b(e.firstElementChild)===e)}(a)?a:b(a);var s=l(e);return s.host?y(s.host,t):y(e,l(t).host)}function _(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"!==r&&"HTML"!==r)return e[n];var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}function d(e,t){var n="x"===t?"Left":"Top",r="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function s(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],v(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,r=v(10)&&getComputedStyle(n);return{height:s("Height",t,n,r),width:s("Width",t,n,r)}}var e=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e};function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function D(e){return T({},e,{right:e.left+e.width,bottom:e.top+e.height})}function x(e){var t={};try{if(v(10)){t=e.getBoundingClientRect();var n=_(e,"top"),r=_(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?S(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=w(e);l-=d(c,"x"),u-=d(c,"y"),i.width-=l,i.height-=u}return D(i)}function C(e,t,n){var r=2<arguments.length&&void 0!==n&&n,i=v(10),o="HTML"===t.nodeName,a=x(e),s=x(t),l=g(e),u=w(t),c=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);r&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=D({top:a.top-s.top-c,left:a.left-s.left-d,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var f=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);h.top-=c-f,h.bottom-=c-f,h.left-=d-p,h.right-=d-p,h.marginTop=f,h.marginLeft=p}return(i&&!r?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var r=2<arguments.length&&void 0!==n&&n,i=_(t,"top"),o=_(t,"left"),a=r?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function k(e){if(!e||!e.parentElement||v())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function f(e,t,n,r,i){var o=4<arguments.length&&void 0!==i&&i,a={top:0,left:0},s=o?k(e):y(e,m(t));if("viewport"===r)a=function(e,t){var n=1<arguments.length&&void 0!==t&&t,r=e.ownerDocument.documentElement,i=C(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),s=n?0:_(r),l=n?0:_(r,"left");return D({top:s-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:o,height:a})}(s,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=g(p(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var u=C(l,s,o);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===w(t,"position"))return!0;var r=p(t);return!!r&&e(r)}(s))a=u;else{var c=S(e.ownerDocument),d=c.height,h=c.width;a.top+=u.top-u.marginTop,a.bottom=d+u.top,a.left+=u.left-u.marginLeft,a.right=h+u.left}}var f="number"==typeof(n=n||0);return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function c(e,t,r,n,i,o){var a=5<arguments.length&&void 0!==o?o:0;if(-1===e.indexOf("auto"))return e;var s=f(r,n,a,i),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(l).map(function(e){return T({key:e},l[e],{area:function(e){return e.width*e.height}(l[e])})}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}),d=0<c.length?c[0].key:u[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function h(e,t,n,r){var i=3<arguments.length&&void 0!==r?r:null;return C(n,i?k(t):y(t,m(n)),i)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function A(e,t,n){n=n.split("-")[0];var r=I(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[R(s)],i}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function O(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=M(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(n.offsets.popper=D(n.offsets.popper),n.offsets.reference=D(n.offsets.reference),n=t(n,e))}),n}function N(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function P(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function L(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,n,r){n.updateBound=r,L(e).addEventListener("resize",n.updateBound,{passive:!0});var i=g(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(g(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function F(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return L(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function j(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(n,r){Object.keys(r).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&j(r[e])&&(t="px"),n.style[e]=r[e]+t})}var W=n&&/Firefox/i.test(navigator.userAgent);function U(e,t,n){var r=M(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Y=["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"],B=Y.slice(3);function V(e,t){var n=1<arguments.length&&void 0!==t&&t,r=B.indexOf(e),i=B.slice(r+1).concat(B.slice(0,r));return n?i.reverse():i}var q="flip",$="clockwise",G="counterclockwise";function Z(e,i,o,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),r=n.indexOf(M(n,function(e){return-1!==e.search(/,|\s/)}));n[r]&&-1===n[r].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==r?[n.slice(0,r).concat([n[r].split(l)[0]]),[n[r].split(l)[1]].concat(n.slice(r+1))]:[n];return(u=u.map(function(e,t){var n=(1===t?!s:s)?"height":"width",r=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?o:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return D(s)[t]/100*o}(e,n,i,o)})})).forEach(function(n,r){n.forEach(function(e,t){j(e)&&(a[r]+=e*("-"===n[t-1]?-1:1))})}),a}var Q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:E({},l,o[l]),end:E({},l,o[l]+o[u]-a[u])};e.offsets.popper=T({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=j(+n)?[+n,0]:Z(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,r){var t=r.boundariesElement||b(e.instance.popper);e.instance.reference===t&&(t=b(t));var n=P("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n];i.top="",i.left="",i[n]="";var l=f(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o,i.left=a,i[n]=s,r.boundaries=l;var u=r.priority,c=e.offsets.popper,d={primary:function(e){var t=c[e];return c[e]<l[e]&&!r.escapeWithReference&&(t=Math.max(c[e],l[e])),E({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!r.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),E({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=T({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=I(r)[u];s[f]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-p)),s[d]+p>a[f]&&(e.offsets.popper[d]+=s[d]+p-a[f]),e.offsets.popper=D(e.offsets.popper);var g=s[d]+s[u]/2-p/2,m=w(e.instance.popper),v=parseFloat(m["margin"+c]),y=parseFloat(m["border"+c+"Width"]),b=g-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[u]-p,b),0),e.arrowElement=r,e.offsets.arrow=(E(n={},d,Math.round(b)),E(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,m){if(N(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var v=f(g.instance.popper,g.instance.reference,m.padding,m.boundariesElement,g.positionFixed),y=g.placement.split("-")[0],b=R(y),w=g.placement.split("-")[1]||"",_=[];switch(m.behavior){case q:_=[y,b];break;case $:_=V(y);break;case G:_=V(y,!0);break;default:_=m.behavior}return _.forEach(function(e,t){if(y!==e||_.length===t+1)return g;y=g.placement.split("-")[0],b=R(y);var n=g.offsets.popper,r=g.offsets.reference,i=Math.floor,o="left"===y&&i(n.right)>i(r.left)||"right"===y&&i(n.left)<i(r.right)||"top"===y&&i(n.bottom)>i(r.top)||"bottom"===y&&i(n.top)<i(r.bottom),a=i(n.left)<i(v.left),s=i(n.right)>i(v.right),l=i(n.top)<i(v.top),u=i(n.bottom)>i(v.bottom),c="left"===y&&a||"right"===y&&s||"top"===y&&l||"bottom"===y&&u,d=-1!==["top","bottom"].indexOf(y),h=!!m.flipVariations&&(d&&"start"===w&&a||d&&"end"===w&&s||!d&&"start"===w&&l||!d&&"end"===w&&u),f=!!m.flipVariationsByContent&&(d&&"start"===w&&s||d&&"end"===w&&a||!d&&"start"===w&&u||!d&&"end"===w&&l),p=h||f;(o||c||p)&&(g.flipped=!0,(o||c)&&(y=_[t+1]),p&&(w=function(e){return"end"===e?"start":"start"===e?"end":e}(w)),g.placement=y+(w?"-"+w:""),g.offsets.popper=T({},g.offsets.popper,A(g.instance.popper,g.offsets.reference,g.placement)),g=O(g.instance.modifiers,g,"flip"))}),g},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=D(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=M(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=b(e.instance.popper),l=x(s),u={position:i.position},c=function(e,t){function n(e){return e}var r=e.offsets,i=r.popper,o=r.reference,a=Math.round,s=Math.floor,l=a(o.width),u=a(i.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?c||d||l%2==u%2?a:s:n,f=t?a:n;return{left:h(l%2==1&&u%2==1&&!d&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(e,window.devicePixelRatio<2||!W),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",f=P("transform"),p=void 0,g=void 0;if(g="bottom"==d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"==h?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&f)u[f]="translate3d("+p+"px, "+g+"px, 0)",u[d]=0,u[h]=0,u.willChange="transform";else{var m="bottom"==d?-1:1,v="right"==h?-1:1;u[d]=g*m,u[h]=p*v,u.willChange=d+", "+h}var y={"x-placement":e.placement};return e.attributes=T({},y,e.attributes),e.styles=T({},u,e.styles),e.arrowStyles=T({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return z(e.instance.popper,e.styles),function(t,n){Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=h(i,t,e,n.positionFixed),a=c(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),z(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},X=(e(J,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=h(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=c(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=O(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),J);function J(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,J),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=T({},J.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(T({},J.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=T({},J.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return T({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return X.Utils=("undefined"!=typeof window?window:global).PopperUtils,X.placements=Y,X.Defaults=Q,X}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e=e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(e,p,d){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,r;t=i,r=o[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}p=p&&p.hasOwnProperty("default")?p.default:p,d=d&&d.hasOwnProperty("default")?d.default:d;var n="transitionend";function i(e){var t=this,n=!1;return p(this).one(g.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||g.triggerTransitionEnd(t)},e),this}var g={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=p(e).css("transition-duration"),n=p(e).css("transition-delay"),r=parseFloat(t),i=parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){p(e).trigger(n)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],a=o&&g.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if(void 0===p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=p.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};g.jQueryDetection(),p.fn.emulateTransitionEnd=i,p.event.special[g.TRANSITION_END]={bindType:n,delegateType:n,handle:function(e){if(p(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var o="alert",s="bs.alert",u="."+s,c=p.fn[o],h={CLOSE:"close"+u,CLOSED:"closed"+u,CLICK_DATA_API:"click"+u+".data-api"},f="alert",m="fade",v="show",y=function(){function r(e){this._element=e}var e=r.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){p.removeData(this._element,s),this._element=null},e._getRootElement=function(e){var t=g.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n=n||p(e).closest("."+f)[0]},e._triggerCloseEvent=function(e){var t=p.Event(h.CLOSE);return p(e).trigger(t),t},e._removeElement=function(t){var n=this;if(p(t).removeClass(v),p(t).hasClass(m)){var e=g.getTransitionDurationFromElement(t);p(t).one(g.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){p(e).detach().trigger(h.CLOSED).remove()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(s);t||(t=new r(this),e.data(s,t)),"close"===n&&t[n](this)})},r._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(r,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),r}();p(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',y._handleDismiss(new y)),p.fn[o]=y._jQueryInterface,p.fn[o].Constructor=y,p.fn[o].noConflict=function(){return p.fn[o]=c,y._jQueryInterface};var b="button",w="bs.button",_="."+w,S=".data-api",E=p.fn[b],T="active",D="btn",x="focus",C='[data-toggle^="button"]',k='[data-toggle="buttons"]',I='[data-toggle="button"]',R='[data-toggle="buttons"] .btn',A='input:not([type="hidden"])',M=".active",O=".btn",N={CLICK_DATA_API:"click"+_+S,FOCUS_BLUR_DATA_API:"focus"+_+S+" blur"+_+S,LOAD_DATA_API:"load"+_+S},P=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=p(this._element).closest(k)[0];if(n){var r=this._element.querySelector(A);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(T))e=!1;else{var i=n.querySelector(M);i&&p(i).removeClass(T)}else"checkbox"===r.type?"LABEL"===this._element.tagName&&r.checked===this._element.classList.contains(T)&&(e=!1):e=!1;e&&(r.checked=!this._element.classList.contains(T),p(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(T)),e&&p(this._element).toggleClass(T))},e.dispose=function(){p.removeData(this._element,w),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(w);e||(e=new n(this),p(this).data(w,e)),"toggle"===t&&e[t]()})},a(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();p(document).on(N.CLICK_DATA_API,C,function(e){var t=e.target;if(p(t).hasClass(D)||(t=p(t).closest(O)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector(A);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();P._jQueryInterface.call(p(t),"toggle")}}).on(N.FOCUS_BLUR_DATA_API,C,function(e){var t=p(e.target).closest(O)[0];p(t).toggleClass(x,/^focus(in)?$/.test(e.type))}),p(window).on(N.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(R)),t=0,n=e.length;t<n;t++){var r=e[t],i=r.querySelector(A);i.checked||i.hasAttribute("checked")?r.classList.add(T):r.classList.remove(T)}for(var o=0,a=(e=[].slice.call(document.querySelectorAll(I))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(T):s.classList.remove(T)}}),p.fn[b]=P._jQueryInterface,p.fn[b].Constructor=P,p.fn[b].noConflict=function(){return p.fn[b]=E,P._jQueryInterface};var L="carousel",H="bs.carousel",F="."+H,j=".data-api",z=p.fn[L],W={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Y="next",B="prev",V="left",q="right",$={SLIDE:"slide"+F,SLID:"slid"+F,KEYDOWN:"keydown"+F,MOUSEENTER:"mouseenter"+F,MOUSELEAVE:"mouseleave"+F,TOUCHSTART:"touchstart"+F,TOUCHMOVE:"touchmove"+F,TOUCHEND:"touchend"+F,POINTERDOWN:"pointerdown"+F,POINTERUP:"pointerup"+F,DRAG_START:"dragstart"+F,LOAD_DATA_API:"load"+F+j,CLICK_DATA_API:"click"+F+j},G="carousel",Z="active",Q="slide",X="carousel-item-right",J="carousel-item-left",K="carousel-item-next",ee="carousel-item-prev",te="pointer-event",ne=".active",re=".active.carousel-item",ie=".carousel-item",oe=".carousel-item img",ae=".carousel-item-next, .carousel-item-prev",se=".carousel-indicators",le="[data-slide], [data-slide-to]",ue='[data-ride="carousel"]',ce={TOUCH:"touch",PEN:"pen"},de=function(){function o(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(se),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(Y)},e.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(B)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(ae)&&(g.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(re);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)p(this._element).one($.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var r=n<e?Y:B;this._slide(r,this._items[e])}},e.dispose=function(){p(this._element).off(F),p.removeData(this._element,H),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=l({},W,{},e),g.typeCheckConfig(L,e,U),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;(this.touchDeltaX=0)<t&&this.prev(),t<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&p(this._element).on($.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&p(this._element).on($.MOUSEENTER,function(e){return t.pause(e)}).on($.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){t._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};p(this._element.querySelectorAll(oe)).on($.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(p(this._element).on($.POINTERDOWN,function(e){return n(e)}),p(this._element).on($.POINTERUP,function(e){return r(e)}),this._element.classList.add(te)):(p(this._element).on($.TOUCHSTART,function(e){return n(e)}),p(this._element).on($.TOUCHMOVE,function(e){return function(e){e.originalEvent.touches&&1<e.originalEvent.touches.length?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)}),p(this._element).on($.TOUCHEND,function(e){return r(e)}))}},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(ie)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===Y,r=e===B,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===B?-1:1))%this._items.length;return-1==a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(re)),i=p.Event($.SLIDE,{relatedTarget:e,direction:t,from:r,to:n});return p(this._element).trigger(i),i},e._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(ne));p(t).removeClass(Z);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&p(n).addClass(Z)}},e._slide=function(e,t){var n,r,i,o=this,a=this._element.querySelector(re),s=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),u=this._getItemIndex(l),c=Boolean(this._interval);if(i=e===Y?(n=J,r=K,V):(n=X,r=ee,q),l&&p(l).hasClass(Z))this._isSliding=!1;else if(!this._triggerSlideEvent(l,i).isDefaultPrevented()&&a&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var d=p.Event($.SLID,{relatedTarget:l,direction:i,from:s,to:u});if(p(this._element).hasClass(Q)){p(l).addClass(r),g.reflow(l),p(a).addClass(n),p(l).addClass(n);var h=parseInt(l.getAttribute("data-interval"),10);h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=h):this._config.interval=this._config.defaultInterval||this._config.interval;var f=g.getTransitionDurationFromElement(a);p(a).one(g.TRANSITION_END,function(){p(l).removeClass(n+" "+r).addClass(Z),p(a).removeClass(Z+" "+r+" "+n),o._isSliding=!1,setTimeout(function(){return p(o._element).trigger(d)},0)}).emulateTransitionEnd(f)}else p(a).removeClass(Z),p(l).addClass(Z),this._isSliding=!1,p(this._element).trigger(d);c&&this.cycle()}},o._jQueryInterface=function(r){return this.each(function(){var e=p(this).data(H),t=l({},W,{},p(this).data());"object"==typeof r&&(t=l({},t,{},r));var n="string"==typeof r?r:t.slide;if(e||(e=new o(this,t),p(this).data(H,e)),"number"==typeof r)e.to(r);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t=g.getSelectorFromElement(this);if(t){var n=p(t)[0];if(n&&p(n).hasClass(G)){var r=l({},p(n).data(),{},p(this).data()),i=this.getAttribute("data-slide-to");i&&(r.interval=!1),o._jQueryInterface.call(p(n),r),i&&p(n).data(H).to(i),e.preventDefault()}}},a(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return W}}]),o}();p(document).on($.CLICK_DATA_API,le,de._dataApiClickHandler),p(window).on($.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(ue)),t=0,n=e.length;t<n;t++){var r=p(e[t]);de._jQueryInterface.call(r,r.data())}}),p.fn[L]=de._jQueryInterface,p.fn[L].Constructor=de,p.fn[L].noConflict=function(){return p.fn[L]=z,de._jQueryInterface};var he="collapse",fe="bs.collapse",pe="."+fe,ge=p.fn[he],me={toggle:!0,parent:""},ve={toggle:"boolean",parent:"(string|element)"},ye={SHOW:"show"+pe,SHOWN:"shown"+pe,HIDE:"hide"+pe,HIDDEN:"hidden"+pe,CLICK_DATA_API:"click"+pe+".data-api"},be="show",we="collapse",_e="collapsing",Se="collapsed",Ee="width",Te="height",De=".show, .collapsing",xe='[data-toggle="collapse"]',Ce=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(xe)),r=0,i=n.length;r<i;r++){var o=n[r],a=g.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<s.length&&(this._selector=a,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 e=s.prototype;return e.toggle=function(){p(this._element).hasClass(be)?this.hide():this.show()},e.show=function(){var e,t,n=this;if(!this._isTransitioning&&!p(this._element).hasClass(be)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(De)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(we)})).length&&(e=null),!(e&&(t=p(e).not(this._selector).data(fe))&&t._isTransitioning))){var r=p.Event(ye.SHOW);if(p(this._element).trigger(r),!r.isDefaultPrevented()){e&&(s._jQueryInterface.call(p(e).not(this._selector),"hide"),t||p(e).data(fe,null));var i=this._getDimension();p(this._element).removeClass(we).addClass(_e),this._element.style[i]=0,this._triggerArray.length&&p(this._triggerArray).removeClass(Se).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(i[0].toUpperCase()+i.slice(1)),a=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){p(n._element).removeClass(_e).addClass(we).addClass(be),n._element.style[i]="",n.setTransitioning(!1),p(n._element).trigger(ye.SHOWN)}).emulateTransitionEnd(a),this._element.style[i]=this._element[o]+"px"}}},e.hide=function(){var e=this;if(!this._isTransitioning&&p(this._element).hasClass(be)){var t=p.Event(ye.HIDE);if(p(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",g.reflow(this._element),p(this._element).addClass(_e).removeClass(we).removeClass(be);var r=this._triggerArray.length;if(0<r)for(var i=0;i<r;i++){var o=this._triggerArray[i],a=g.getSelectorFromElement(o);if(null!==a)p([].slice.call(document.querySelectorAll(a))).hasClass(be)||p(o).addClass(Se).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var s=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){e.setTransitioning(!1),p(e._element).removeClass(_e).addClass(we).trigger(ye.HIDDEN)}).emulateTransitionEnd(s)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){p.removeData(this._element,fe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=l({},me,{},e)).toggle=Boolean(e.toggle),g.typeCheckConfig(he,e,ve),e},e._getDimension=function(){return p(this._element).hasClass(Ee)?Ee:Te},e._getParent=function(){var e,n=this;g.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(t));return p(r).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){var n=p(e).hasClass(be);t.length&&p(t).toggleClass(Se,!n).attr("aria-expanded",n)},s._getTargetFromElement=function(e){var t=g.getSelectorFromElement(e);return t?document.querySelector(t):null},s._jQueryInterface=function(r){return this.each(function(){var e=p(this),t=e.data(fe),n=l({},me,{},e.data(),{},"object"==typeof r&&r?r:{});if(!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||(t=new s(this,n),e.data(fe,t)),"string"==typeof r){if(void 0===t[r])throw new TypeError('No method named "'+r+'"');t[r]()}})},a(s,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return me}}]),s}();p(document).on(ye.CLICK_DATA_API,xe,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=p(this),t=g.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(t));p(r).each(function(){var e=p(this),t=e.data(fe)?"toggle":n.data();Ce._jQueryInterface.call(e,t)})}),p.fn[he]=Ce._jQueryInterface,p.fn[he].Constructor=Ce,p.fn[he].noConflict=function(){return p.fn[he]=ge,Ce._jQueryInterface};var ke="dropdown",Ie="bs.dropdown",Re="."+Ie,Ae=".data-api",Me=p.fn[ke],Oe=new RegExp("38|40|27"),Ne={HIDE:"hide"+Re,HIDDEN:"hidden"+Re,SHOW:"show"+Re,SHOWN:"shown"+Re,CLICK:"click"+Re,CLICK_DATA_API:"click"+Re+Ae,KEYDOWN_DATA_API:"keydown"+Re+Ae,KEYUP_DATA_API:"keyup"+Re+Ae},Pe="disabled",Le="show",He="dropup",Fe="dropright",je="dropleft",ze="dropdown-menu-right",We="position-static",Ue='[data-toggle="dropdown"]',Ye=".dropdown form",Be=".dropdown-menu",Ve=".navbar-nav",qe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$e="top-start",Ge="top-end",Ze="bottom-start",Qe="bottom-end",Xe="right-start",Je="left-start",Ke={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},et={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tt=function(){function u(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=u.prototype;return e.toggle=function(){if(!this._element.disabled&&!p(this._element).hasClass(Pe)){var e=p(this._menu).hasClass(Le);u._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||p(this._element).hasClass(Pe)||p(this._menu).hasClass(Le))){var t={relatedTarget:this._element},n=p.Event(Ne.SHOW,t),r=u._getParentFromElement(this._element);if(p(r).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===d)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var i=this._element;"parent"===this._config.reference?i=r:g.isElement(this._config.reference)&&(i=this._config.reference,void 0!==this._config.reference.jquery&&(i=this._config.reference[0])),"scrollParent"!==this._config.boundary&&p(r).addClass(We),this._popper=new d(i,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===p(r).closest(Ve).length&&p(document.body).children().on("mouseover",null,p.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),p(this._menu).toggleClass(Le),p(r).toggleClass(Le).trigger(p.Event(Ne.SHOWN,t))}}},e.hide=function(){if(!this._element.disabled&&!p(this._element).hasClass(Pe)&&p(this._menu).hasClass(Le)){var e={relatedTarget:this._element},t=p.Event(Ne.HIDE,e),n=u._getParentFromElement(this._element);p(n).trigger(t),t.isDefaultPrevented()||(this._popper&&this._popper.destroy(),p(this._menu).toggleClass(Le),p(n).toggleClass(Le).trigger(p.Event(Ne.HIDDEN,e)))}},e.dispose=function(){p.removeData(this._element,Ie),p(this._element).off(Re),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;p(this._element).on(Ne.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=l({},this.constructor.Default,{},p(this._element).data(),{},e),g.typeCheckConfig(ke,e,this.constructor.DefaultType),e},e._getMenuElement=function(){if(!this._menu){var e=u._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Be))}return this._menu},e._getPlacement=function(){var e=p(this._element.parentNode),t=Ze;return e.hasClass(He)?(t=$e,p(this._menu).hasClass(ze)&&(t=Ge)):e.hasClass(Fe)?t=Xe:e.hasClass(je)?t=Je:p(this._menu).hasClass(ze)&&(t=Qe),t},e._detectNavbar=function(){return 0<p(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,{},this._config.popperConfig)},u._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(Ie);if(e||(e=new u(this,"object"==typeof t?t:null),p(this).data(Ie,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},u._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Ue)),n=0,r=t.length;n<r;n++){var i=u._getParentFromElement(t[n]),o=p(t[n]).data(Ie),a={relatedTarget:t[n]};if(e&&"click"===e.type&&(a.clickEvent=e),o){var s=o._menu;if(p(i).hasClass(Le)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&p.contains(i,e.target))){var l=p.Event(Ne.HIDE,a);p(i).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),t[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),p(s).removeClass(Le),p(i).removeClass(Le).trigger(p.Event(Ne.HIDDEN,a)))}}}},u._getParentFromElement=function(e){var t,n=g.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},u._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||p(e.target).closest(Be).length)):Oe.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!p(this).hasClass(Pe))){var t=u._getParentFromElement(this),n=p(t).hasClass(Le);if(n||27!==e.which)if(n&&(!n||27!==e.which&&32!==e.which)){var r=[].slice.call(t.querySelectorAll(qe)).filter(function(e){return p(e).is(":visible")});if(0!==r.length){var i=r.indexOf(e.target);38===e.which&&0<i&&i--,40===e.which&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus()}}else{if(27===e.which){var o=t.querySelector(Ue);p(o).trigger("focus")}p(this).trigger("click")}}},a(u,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ke}},{key:"DefaultType",get:function(){return et}}]),u}();p(document).on(Ne.KEYDOWN_DATA_API,Ue,tt._dataApiKeydownHandler).on(Ne.KEYDOWN_DATA_API,Be,tt._dataApiKeydownHandler).on(Ne.CLICK_DATA_API+" "+Ne.KEYUP_DATA_API,tt._clearMenus).on(Ne.CLICK_DATA_API,Ue,function(e){e.preventDefault(),e.stopPropagation(),tt._jQueryInterface.call(p(this),"toggle")}).on(Ne.CLICK_DATA_API,Ye,function(e){e.stopPropagation()}),p.fn[ke]=tt._jQueryInterface,p.fn[ke].Constructor=tt,p.fn[ke].noConflict=function(){return p.fn[ke]=Me,tt._jQueryInterface};var nt="modal",rt="bs.modal",it="."+rt,ot=p.fn[nt],at={backdrop:!0,keyboard:!0,focus:!0,show:!0},st={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},lt={HIDE:"hide"+it,HIDE_PREVENTED:"hidePrevented"+it,HIDDEN:"hidden"+it,SHOW:"show"+it,SHOWN:"shown"+it,FOCUSIN:"focusin"+it,RESIZE:"resize"+it,CLICK_DISMISS:"click.dismiss"+it,KEYDOWN_DISMISS:"keydown.dismiss"+it,MOUSEUP_DISMISS:"mouseup.dismiss"+it,MOUSEDOWN_DISMISS:"mousedown.dismiss"+it,CLICK_DATA_API:"click"+it+".data-api"},ut="modal-dialog-scrollable",ct="modal-scrollbar-measure",dt="modal-backdrop",ht="modal-open",ft="fade",pt="show",gt="modal-static",mt=".modal-dialog",vt=".modal-body",yt='[data-toggle="modal"]',bt='[data-dismiss="modal"]',wt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_t=".sticky-top",St=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(mt),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=i.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){p(this._element).hasClass(ft)&&(this._isTransitioning=!0);var n=p.Event(lt.SHOW,{relatedTarget:e});p(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),p(this._element).on(lt.CLICK_DISMISS,bt,function(e){return t.hide(e)}),p(this._dialog).on(lt.MOUSEDOWN_DISMISS,function(){p(t._element).one(lt.MOUSEUP_DISMISS,function(e){p(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=p.Event(lt.HIDE);if(p(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=p(this._element).hasClass(ft);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p(document).off(lt.FOCUSIN),p(this._element).removeClass(pt),p(this._element).off(lt.CLICK_DISMISS),p(this._dialog).off(lt.MOUSEDOWN_DISMISS),r){var i=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(i)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return p(e).off(it)}),p(document).off(lt.FOCUSIN),p.removeData(this._element,rt),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},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=l({},at,{},e),g.typeCheckConfig(nt,e,st),e},e._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var t=p.Event(lt.HIDE_PREVENTED);if(p(this._element).trigger(t),t.defaultPrevented)return;this._element.classList.add(gt);var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){e._element.classList.remove(gt)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()},e._showElement=function(e){var t=this,n=p(this._element).hasClass(ft),r=this._dialog?this._dialog.querySelector(vt):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),p(this._dialog).hasClass(ut)&&r?r.scrollTop=0:this._element.scrollTop=0,n&&g.reflow(this._element),p(this._element).addClass(pt),this._config.focus&&this._enforceFocus();function i(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p(t._element).trigger(o)}var o=p.Event(lt.SHOWN,{relatedTarget:e});if(n){var a=g.getTransitionDurationFromElement(this._dialog);p(this._dialog).one(g.TRANSITION_END,i).emulateTransitionEnd(a)}else i()},e._enforceFocus=function(){var t=this;p(document).off(lt.FOCUSIN).on(lt.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===p(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?p(this._element).on(lt.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||p(this._element).off(lt.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?p(window).on(lt.RESIZE,function(e){return t.handleUpdate(e)}):p(window).off(lt.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){p(document.body).removeClass(ht),e._resetAdjustments(),e._resetScrollbar(),p(e._element).trigger(lt.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t=this,n=p(this._element).hasClass(ft)?ft:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=dt,n&&this._backdrop.classList.add(n),p(this._backdrop).appendTo(document.body),p(this._element).on(lt.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()}),n&&g.reflow(this._backdrop),p(this._backdrop).addClass(pt),!e)return;if(!n)return void e();var r=g.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(g.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){p(this._backdrop).removeClass(pt);var i=function(){t._removeBackdrop(),e&&e()};if(p(this._element).hasClass(ft)){var o=g.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(g.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}else e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var i=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(wt)),t=[].slice.call(document.querySelectorAll(_t));p(e).each(function(e,t){var n=t.style.paddingRight,r=p(t).css("padding-right");p(t).data("padding-right",n).css("padding-right",parseFloat(r)+i._scrollbarWidth+"px")}),p(t).each(function(e,t){var n=t.style.marginRight,r=p(t).css("margin-right");p(t).data("margin-right",n).css("margin-right",parseFloat(r)-i._scrollbarWidth+"px")});var n=document.body.style.paddingRight,r=p(document.body).css("padding-right");p(document.body).data("padding-right",n).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}p(document.body).addClass(ht)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(wt));p(e).each(function(e,t){var n=p(t).data("padding-right");p(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+_t));p(t).each(function(e,t){var n=p(t).data("margin-right");void 0!==n&&p(t).css("margin-right",n).removeData("margin-right")});var n=p(document.body).data("padding-right");p(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=ct,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},i._jQueryInterface=function(n,r){return this.each(function(){var e=p(this).data(rt),t=l({},at,{},p(this).data(),{},"object"==typeof n&&n?n:{});if(e||(e=new i(this,t),p(this).data(rt,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](r)}else t.show&&e.show(r)})},a(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return at}}]),i}();p(document).on(lt.CLICK_DATA_API,yt,function(e){var t,n=this,r=g.getSelectorFromElement(this);r&&(t=document.querySelector(r));var i=p(t).data(rt)?"toggle":l({},p(t).data(),{},p(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=p(t).one(lt.SHOW,function(e){e.isDefaultPrevented()||o.one(lt.HIDDEN,function(){p(n).is(":visible")&&n.focus()})});St._jQueryInterface.call(p(t),i,this)}),p.fn[nt]=St._jQueryInterface,p.fn[nt].Constructor=St,p.fn[nt].noConflict=function(){return p.fn[nt]=ot,St._jQueryInterface};var Et=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Tt={"*":["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:[]},Dt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,xt=/^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 Ct(e,a,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(a),l=[].slice.call(n.body.querySelectorAll("*")),r=function(e,t){var n=l[e],r=n.nodeName.toLowerCase();if(-1===s.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var i=[].slice.call(n.attributes),o=[].concat(a["*"]||[],a[r]||[]);i.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===Et.indexOf(n)||Boolean(e.nodeValue.match(Dt)||e.nodeValue.match(xt));for(var r=t.filter(function(e){return e instanceof RegExp}),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1}(e,o)&&n.removeAttribute(e.nodeName)})},i=0,o=l.length;i<o;i++)r(i);return n.body.innerHTML}var kt="tooltip",It="bs.tooltip",Rt="."+It,At=p.fn[kt],Mt="bs-tooltip",Ot=new RegExp("(^|\\s)"+Mt+"\\S+","g"),Nt=["sanitize","whiteList","sanitizeFn"],Pt={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",popperConfig:"(null|object)"},Lt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ht={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:Tt,popperConfig:null},Ft="show",jt="out",zt={HIDE:"hide"+Rt,HIDDEN:"hidden"+Rt,SHOW:"show"+Rt,SHOWN:"shown"+Rt,INSERTED:"inserted"+Rt,CLICK:"click"+Rt,FOCUSIN:"focusin"+Rt,FOCUSOUT:"focusout"+Rt,MOUSEENTER:"mouseenter"+Rt,MOUSELEAVE:"mouseleave"+Rt},Wt="fade",Ut="show",Yt=".tooltip-inner",Bt=".arrow",Vt="hover",qt="focus",$t="click",Gt="manual",Zt=function(){function r(e,t){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=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=r.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Ut))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=g.findShadowRoot(this.element),r=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var i=this.getTipElement(),o=g.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(i).addClass(Wt);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var l=this._getContainer();p(i).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(i).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,i,this._getPopperConfig(s)),p(i).addClass(Ut),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===jt&&t._leave(null,t)};if(p(this.tip).hasClass(Wt)){var c=g.getTransitionDurationFromElement(this.tip);p(this.tip).one(g.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},e.hide=function(e){function t(){n._hoverState!==Ft&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,r=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(r).removeClass(Ut),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[$t]=!1,this._activeTrigger[qt]=!1,this._activeTrigger[Vt]=!1,p(this.tip).hasClass(Wt)){var o=g.getTransitionDurationFromElement(r);p(r).one(g.TRANSITION_END,t).emulateTransitionEnd(o)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Mt+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(Yt)),this.getTitle()),p(e).removeClass(Wt+" "+Ut)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Ct(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Bt},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Lt[e.toUpperCase()]},e._setListeners=function(){var r=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(r.element).on(r.constructor.Event.CLICK,r.config.selector,function(e){return r.toggle(e)});else if(e!==Gt){var t=e===Vt?r.constructor.Event.MOUSEENTER:r.constructor.Event.FOCUSIN,n=e===Vt?r.constructor.Event.MOUSELEAVE:r.constructor.Event.FOCUSOUT;p(r.element).on(t,r.config.selector,function(e){return r._enter(e)}).on(n,r.config.selector,function(e){return r._leave(e)})}}),this._hideModalHandler=function(){r.element&&r.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?qt:Vt]=!0),p(t.getTipElement()).hasClass(Ut)||t._hoverState===Ft?t._hoverState=Ft:(clearTimeout(t._timeout),t._hoverState=Ft,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Ft&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?qt:Vt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=jt,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===jt&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Nt.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),g.typeCheckConfig(kt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ct(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Ot);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Wt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(It),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(It,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ht}},{key:"NAME",get:function(){return kt}},{key:"DATA_KEY",get:function(){return It}},{key:"Event",get:function(){return zt}},{key:"EVENT_KEY",get:function(){return Rt}},{key:"DefaultType",get:function(){return Pt}}]),r}();p.fn[kt]=Zt._jQueryInterface,p.fn[kt].Constructor=Zt,p.fn[kt].noConflict=function(){return p.fn[kt]=At,Zt._jQueryInterface};var Qt="popover",Xt="bs.popover",Jt="."+Xt,Kt=p.fn[Qt],en="bs-popover",tn=new RegExp("(^|\\s)"+en+"\\S+","g"),nn=l({},Zt.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>'}),rn=l({},Zt.DefaultType,{content:"(string|element|function)"}),on="fade",an="show",sn=".popover-header",ln=".popover-body",un={HIDE:"hide"+Jt,HIDDEN:"hidden"+Jt,SHOW:"show"+Jt,SHOWN:"shown"+Jt,INSERTED:"inserted"+Jt,CLICK:"click"+Jt,FOCUSIN:"focusin"+Jt,FOCUSOUT:"focusout"+Jt,MOUSEENTER:"mouseenter"+Jt,MOUSELEAVE:"mouseleave"+Jt},cn=function(e){function r(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(r,e);var t=r.prototype;return t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(e){p(this.getTipElement()).addClass(en+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(sn),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ln),t),e.removeClass(on+" "+an)},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(tn);null!==t&&0<t.length&&e.removeClass(t.join(""))},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Xt),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(Xt,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return nn}},{key:"NAME",get:function(){return Qt}},{key:"DATA_KEY",get:function(){return Xt}},{key:"Event",get:function(){return un}},{key:"EVENT_KEY",get:function(){return Jt}},{key:"DefaultType",get:function(){return rn}}]),r}(Zt);p.fn[Qt]=cn._jQueryInterface,p.fn[Qt].Constructor=cn,p.fn[Qt].noConflict=function(){return p.fn[Qt]=Kt,cn._jQueryInterface};var dn="scrollspy",hn="bs.scrollspy",fn="."+hn,pn=p.fn[dn],gn={offset:10,method:"auto",target:""},mn={offset:"number",method:"string",target:"(string|element)"},vn={ACTIVATE:"activate"+fn,SCROLL:"scroll"+fn,LOAD_DATA_API:"load"+fn+".data-api"},yn="dropdown-item",bn="active",wn='[data-spy="scroll"]',_n=".nav, .list-group",Sn=".nav-link",En=".nav-item",Tn=".list-group-item",Dn=".dropdown",xn=".dropdown-item",Cn=".dropdown-toggle",kn="offset",In="position",Rn=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Sn+","+this._config.target+" "+Tn+","+this._config.target+" "+xn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(vn.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?kn:In,i="auto"===this._config.method?e:this._config.method,o=i===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=g.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[p(t)[i]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){p.removeData(this._element,hn),p(this._scrollElement).off(fn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){if("string"!=typeof(e=l({},gn,{},"object"==typeof e&&e?e:{})).target){var t=p(e.target).attr("id");t||(t=g.getUID(dn),p(e.target).attr("id",t)),e.target="#"+t}return g.typeCheckConfig(dn,e,mn),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=p([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(yn)?(n.closest(Dn).find(Cn).addClass(bn),n.addClass(bn)):(n.addClass(bn),n.parents(_n).prev(Sn+", "+Tn).addClass(bn),n.parents(_n).prev(En).children(Sn).addClass(bn)),p(this._scrollElement).trigger(vn.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(bn)}).forEach(function(e){return e.classList.remove(bn)})},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(hn);if(e||(e=new n(this,"object"==typeof t&&t),p(this).data(hn,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}}]),n}();p(window).on(vn.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(wn)),t=e.length;t--;){var n=p(e[t]);Rn._jQueryInterface.call(n,n.data())}}),p.fn[dn]=Rn._jQueryInterface,p.fn[dn].Constructor=Rn,p.fn[dn].noConflict=function(){return p.fn[dn]=pn,Rn._jQueryInterface};var An="bs.tab",Mn="."+An,On=p.fn.tab,Nn={HIDE:"hide"+Mn,HIDDEN:"hidden"+Mn,SHOW:"show"+Mn,SHOWN:"shown"+Mn,CLICK_DATA_API:"click"+Mn+".data-api"},Pn="dropdown-menu",Ln="active",Hn="disabled",Fn="fade",jn="show",zn=".dropdown",Wn=".nav, .list-group",Un=".active",Yn="> li > .active",Bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Vn=".dropdown-toggle",qn="> .dropdown-menu .active",$n=function(){function r(e){this._element=e}var e=r.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Ln)||p(this._element).hasClass(Hn))){var e,r,t=p(this._element).closest(Wn)[0],i=g.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName||"OL"===t.nodeName?Yn:Un;r=(r=p.makeArray(p(t).find(o)))[r.length-1]}var a=p.Event(Nn.HIDE,{relatedTarget:this._element}),s=p.Event(Nn.SHOW,{relatedTarget:r});if(r&&p(r).trigger(a),p(this._element).trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){i&&(e=document.querySelector(i)),this._activate(this._element,t);var l=function(){var e=p.Event(Nn.HIDDEN,{relatedTarget:n._element}),t=p.Event(Nn.SHOWN,{relatedTarget:r});p(r).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){p.removeData(this._element,An),this._element=null},e._activate=function(e,t,n){function r(){return i._transitionComplete(e,o,n)}var i=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(Un):p(t).find(Yn))[0],a=n&&o&&p(o).hasClass(Fn);if(o&&a){var s=g.getTransitionDurationFromElement(o);p(o).removeClass(jn).one(g.TRANSITION_END,r).emulateTransitionEnd(s)}else r()},e._transitionComplete=function(e,t,n){if(t){p(t).removeClass(Ln);var r=p(t.parentNode).find(qn)[0];r&&p(r).removeClass(Ln),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(Ln),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),g.reflow(e),e.classList.contains(Fn)&&e.classList.add(jn),e.parentNode&&p(e.parentNode).hasClass(Pn)){var i=p(e).closest(zn)[0];if(i){var o=[].slice.call(i.querySelectorAll(Vn));p(o).addClass(Ln)}e.setAttribute("aria-expanded",!0)}n&&n()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(An);if(t||(t=new r(this),e.data(An,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),r}();p(document).on(Nn.CLICK_DATA_API,Bn,function(e){e.preventDefault(),$n._jQueryInterface.call(p(this),"show")}),p.fn.tab=$n._jQueryInterface,p.fn.tab.Constructor=$n,p.fn.tab.noConflict=function(){return p.fn.tab=On,$n._jQueryInterface};var Gn="toast",Zn="bs.toast",Qn="."+Zn,Xn=p.fn[Gn],Jn={CLICK_DISMISS:"click.dismiss"+Qn,HIDE:"hide"+Qn,HIDDEN:"hidden"+Qn,SHOW:"show"+Qn,SHOWN:"shown"+Qn},Kn="fade",er="hide",tr="show",nr="showing",rr={animation:"boolean",autohide:"boolean",delay:"number"},ir={animation:!0,autohide:!0,delay:500},or='[data-dismiss="toast"]',ar=function(){function r(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=r.prototype;return e.show=function(){var e=this,t=p.Event(Jn.SHOW);if(p(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add(Kn);var n=function(){e._element.classList.remove(nr),e._element.classList.add(tr),p(e._element).trigger(Jn.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(er),g.reflow(this._element),this._element.classList.add(nr),this._config.animation){var r=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},e.hide=function(){if(this._element.classList.contains(tr)){var e=p.Event(Jn.HIDE);p(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(tr)&&this._element.classList.remove(tr),p(this._element).off(Jn.CLICK_DISMISS),p.removeData(this._element,Zn),this._element=null,this._config=null},e._getConfig=function(e){return e=l({},ir,{},p(this._element).data(),{},"object"==typeof e&&e?e:{}),g.typeCheckConfig(Gn,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;p(this._element).on(Jn.CLICK_DISMISS,or,function(){return e.hide()})},e._close=function(){function e(){t._element.classList.add(er),p(t._element).trigger(Jn.HIDDEN)}var t=this;if(this._element.classList.remove(tr),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Zn);if(t||(t=new r(this,"object"==typeof n&&n),e.data(Zn,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},a(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return rr}},{key:"Default",get:function(){return ir}}]),r}();p.fn[Gn]=ar._jQueryInterface,p.fn[Gn].Constructor=ar,p.fn[Gn].noConflict=function(){return p.fn[Gn]=Xn,ar._jQueryInterface},e.Alert=y,e.Button=P,e.Carousel=de,e.Collapse=Ce,e.Dropdown=tt,e.Modal=St,e.Popover=cn,e.Scrollspy=Rn,e.Tab=$n,e.Toast=ar,e.Tooltip=Zt,e.Util=g,Object.defineProperty(e,"__esModule",{value:!0})}),"undefined"==typeof jQuery)throw new Error("Jasny Bootstrap's JavaScript requires jQuery");!function(r){"use strict";void 0===r.support.transition&&(r.fn.emulateTransitionEnd=function(e){var t=!1,n=this;r(this).one(r.support.transition.end,function(){t=!0});return setTimeout(function(){t||r(n).trigger(r.support.transition.end)},e),this},r(function(){r.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}()}))}(window.jQuery),function(s){"use strict";var o=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i),i=function(e,t){this.$element=s(e),this.options=s.extend({},i.DEFAULTS,t),this.state=null,this.placement=null,this.$calcClone=null,this.calcClone(),this.options.recalc&&s(window).on("resize",s.proxy(this.recalc,this)),this.options.autohide&&!this.options.modal&&(navigator.userAgent.match(/(iPad|iPhone)/i),s(document).on("click touchstart",s.proxy(this.autohide,this))),s(this.$element).on("shown.bs.dropdown",s.proxy(function(e){s(this.$element).find(".dropdown .dropdown-backdrop").remove()},this)),"boolean"==typeof this.options.disablescrolling&&(this.options.disableScrolling=this.options.disablescrolling,delete this.options.disablescrolling),this.options.toggle&&this.toggle()};i.DEFAULTS={toggle:!0,placement:"auto",autohide:!0,recalc:!0,disableScrolling:!0,modal:!1,backdrop:!1,exclude:null},i.prototype.setWidth=function(){var e=this.$element.outerWidth(),t=s(window).width();t-=68,this.$element.css("width",t<e?t:e)},i.prototype.offset=function(){switch(this.placement){case"left":case"right":return this.$element.outerWidth();case"top":case"bottom":return this.$element.outerHeight()}},i.prototype.calcPlacement=function(){function e(e,t){return"auto"===r.css(t)?e:"auto"===r.css(e)?t:parseInt(r.css(e),10)>parseInt(r.css(t),10)?t:e}if("auto"===this.options.placement){this.$element.hasClass("in")||this.$element.css("visiblity","hidden !important").addClass("in");var t=s(window).width()/this.$element.outerWidth(),n=s(window).height()/this.$element.outerHeight(),r=this.$element;this.placement=n<t?e("left","right"):e("top","bottom"),"hidden !important"===this.$element.css("visibility")&&this.$element.removeClass("in").css("visiblity","")}else this.placement=this.options.placement},i.prototype.opposite=function(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";case"right":return"left"}},i.prototype.getCanvasElements=function(){var e=this.options.canvas?s(this.options.canvas):this.$element,t=e.find("*").filter(function(){return"fixed"===getComputedStyle(this).getPropertyValue("position")}).not(this.options.exclude);return e.add(t)},i.prototype.slide=function(e,t,n){if(!s.support.transition){var r={};return r[this.placement]="+="+t,r[this.opposite(this.placement)]="-="+t,e.animate(r,350,n)}var i=this.placement,o=this.opposite(i);e.each(function(){"auto"!==s(this).css(i)&&s(this).css(i,(parseInt(s(this).css(i),10)||0)+t),"auto"!==s(this).css(o)&&s(this).css(o,(parseInt(s(this).css(o),10)||0)-t)}),this.$element.one(s.support.transition.end,n).emulateTransitionEnd(350)},i.prototype.disableScrolling=function(){var e=s("body").width(),t="padding-right";if(void 0===s("body").data("offcanvas-style")&&s("body").data("offcanvas-style",s("body").attr("style")||""),s("body").css("overflow","hidden"),o&&s("body").addClass("lockIphone"),s("body").width()>e){var n=parseInt(s("body").css(t),10)+s("body").width()-e;setTimeout(function(){s("body").css(t,n)},1)}s("body").on("touchmove.bs",function(e){s(event.target).closest(".offcanvas").length||e.preventDefault()})},i.prototype.enableScrolling=function(){s("body").off("touchmove.bs"),s("body").removeClass("lockIphone")},i.prototype.show=function(){if(!this.state){var e=s.Event("show.bs.offcanvas");this.$element.trigger(e),e.isDefaultPrevented()||this.hideOthers(s.proxy(function(){this.state="slide-in",this.$element.css("width",""),this.calcPlacement(),this.setWidth();var e=this.getCanvasElements(),t=this.placement,n=this.opposite(t),r=this.offset();-1!==e.index(this.$element)&&(s(this.$element).data("offcanvas-style",s(this.$element).attr("style")||""),this.$element.css(t,-1*r),this.$element.css(t)),e.addClass("canvas-sliding").each(function(){var e=s(this);void 0===e.data("offcanvas-style")&&e.data("offcanvas-style",e.attr("style")||""),"static"!==e.css("position")||o||e.css("position","relative"),"auto"!==e.css(t)&&"0px"!==e.css(t)||"auto"!==e.css(n)&&"0px"!==e.css(n)||e.css(t,0)}),this.options.disableScrolling&&this.disableScrolling(),(this.options.modal||this.options.backdrop)&&this.toggleBackdrop();function i(){"slide-in"==this.state&&(this.state="slid",e.removeClass("canvas-sliding").addClass("canvas-slid"),this.$element.trigger("shown.bs.offcanvas"))}setTimeout(s.proxy(function(){this.$element.addClass("in"),this.slide(e,r,s.proxy(i,this))},this),1)},this))}},i.prototype.hideOthers=function(i){var o=!1,e=this.$element.attr("id"),t=s('.offcanvas-clone:not([data-id="'+e+'"])');if(!t.length)return i();t.each(function(e,t){var n=s(t).attr("data-id"),r=s("#"+n);(o=r.hasClass("canvas-slid"))&&(r.one("hidden.bs.offcanvas",i),r.offcanvas("hide"))}),o||i()},i.prototype.hide=function(){if("slid"===this.state){var e=s.Event("hide.bs.offcanvas");if(this.$element.trigger(e),!e.isDefaultPrevented()){this.state="slide-out";var t=s(".canvas-slid"),n=(this.placement,-1*this.offset()),r=function(){"slide-out"==this.state&&(this.state=null,this.placement=null,this.$element.removeClass("in"),t.removeClass("canvas-sliding"),t.add(this.$element).add("body").each(function(){s(this).attr("style",s(this).data("offcanvas-style")).removeData("offcanvas-style")}),this.$element.css("width",""),this.$element.trigger("hidden.bs.offcanvas"))};this.options.disableScrolling&&this.enableScrolling(),(this.options.modal||this.options.backdrop)&&this.toggleBackdrop(),t.removeClass("canvas-slid").addClass("canvas-sliding"),setTimeout(s.proxy(function(){this.slide(t,n,s.proxy(r,this))},this),1)}}},i.prototype.toggle=function(){"slide-in"!==this.state&&"slide-out"!==this.state&&this["slid"===this.state?"hide":"show"]()},i.prototype.toggleBackdrop=function(e){e=e||s.noop;if("slide-in"==this.state){var t=s("body"),n=s.support.transition;this.$backdrop=s('<div class="modal-backdrop fade" />'),this.options.backdrop?(this.$backdrop.addClass("allow-navbar"),this.options.canvas&&s(this.options.canvas)[0]!==t[0]?(s(this.options.canvas).addClass("limit-backdrop"),this.$backdrop.appendTo(this.options.canvas)):this.$backdrop.insertAfter(this.$element)):this.$backdrop.insertAfter(this.$element),n&&this.$backdrop[0].offsetWidth,t.addClass("modal-open"),this.$backdrop.addClass("show").show(),this.$backdrop.on("click.bs",s.proxy(this.autohide,this)),n?this.$backdrop.one(s.support.transition.end,e).emulateTransitionEnd(150):e()}else if("slide-out"==this.state&&this.$backdrop){var r=this;if(this.$backdrop.hide().removeClass("show"),s("body").removeClass("modal-open").off("touchmove.bs"),s.support.transition?this.$backdrop.one(s.support.transition.end,function(){r.$backdrop.remove(),e(),r.$backdrop=null}).emulateTransitionEnd(150):(this.$backdrop.remove(),this.$backdrop=null,e()),this.options.canvas&&s(this.options.canvas)[0]!==s("body")[0]){var i=this.options.canvas;setTimeout(function(){s(i).removeClass("limit-backdrop")},150)}}else e&&e()},i.prototype.calcClone=function(){var e=this.$element.attr("id");this.$calcClone=s('.offcanvas-clone[data-id="'+e+'"]'),this.$calcClone.length||(this.$calcClone=this.$element.clone().addClass("offcanvas-clone").attr("data-id",e).removeAttr("id").appendTo(s("body")).html("")),this.$calcClone.removeClass("in")},i.prototype.recalc=function(){if("none"!==this.$calcClone.css("display")&&("slid"===this.state||"slide-in"===this.state)){this.state=null,this.placement=null;var e=this.getCanvasElements();this.$element.trigger("hide.bs.offcanvas"),this.$element.removeClass("in"),e.removeClass("canvas-slid"),e.add(this.$element).add("body").each(function(){s(this).attr("style",s(this).data("offcanvas-style")).removeData("offcanvas-style")}),this.$element.trigger("hidden.bs.offcanvas")}},i.prototype.autohide=function(e){var t=s(e.target);t.hasClass("dropdown-backdrop")||0!==t.closest(this.$element).length||this.hide()};var e=s.fn.offcanvas;s.fn.offcanvas=function(r){return this.each(function(){var e=s(this),t=e.data("bs.offcanvas"),n=s.extend({},i.DEFAULTS,e.data(),"object"==typeof r&&r);e.hasClass("offcanvas-clone")||(t||e.data("bs.offcanvas",t=new i(this,n)),"string"==typeof r&&t[r]())})},s.fn.offcanvas.Constructor=i,s.fn.offcanvas.noConflict=function(){return s.fn.offcanvas=e,this},s(document).on("click.bs.offcanvas.data-api","[data-toggle=offcanvas]",function(e){var t,n=s(this),r=n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""),i=s(r),o=i.data("bs.offcanvas"),a=o?"toggle":s.extend(n.data(),i.data());e.preventDefault(),e.stopPropagation(),o?o.toggle():i.offcanvas(a)})}(window.jQuery),function(i){"use strict";var r=function(e,t){this.$element=i(e),this.options=i.extend({},r.DEFAULTS,t),this.$element.on("click.bs.rowlink mouseup.bs.rowlink","td:not(.rowlink-skip)",i.proxy(this.click,this))};r.DEFAULTS={target:"a"},r.prototype.click=function(e,t){var n=i(e.currentTarget).closest("tr").find(this.options.target)[0];if(void 0!==n&&i(e.target)[0]!==n&&("mouseup"!==e.type||2===e.which))if(e.preventDefault(),!(t=t||e.ctrlKey||"mouseup"===e.type&&2===e.which)&&n.click)n.click();else if(document.createEvent){var r=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,ctrlKey:t});n.dispatchEvent(r)}};var e=i.fn.rowlink;i.fn.rowlink=function(n){return this.each(function(){var e=i(this),t=e.data("bs.rowlink");t||e.data("bs.rowlink",t=new r(this,n))})},i.fn.rowlink.Constructor=r,i.fn.rowlink.noConflict=function(){return i.fn.rowlink=e,this},i(document).on("click.bs.rowlink.data-api mouseup.bs.rowlink.data-api",'[data-link="row"]',function(e){if(("mouseup"!==e.type||2===e.which)&&0===i(e.target).closest(".rowlink-skip").length){var t=i(this);if(!t.data("bs.rowlink")){t.rowlink(t.data());var n=e.ctrlKey||2===e.which;i(e.target).trigger("click.bs.rowlink",[n])}}})}(window.jQuery),function(h){"use strict";var n="Microsoft Internet Explorer"==window.navigator.appName,r=function(e,t){if(this.$element=h(e),this.options=h.extend({},r.DEFAULTS,t),this.$input=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||t.name,this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]'),0===this.$hidden.length&&(this.$hidden=h('<input type="hidden">').insertBefore(this.$input)),this.$preview=this.$element.find(".fileinput-preview");var n=this.$preview.css("height");"inline"!==this.$preview.css("display")&&"0px"!==n&&"none"!==n&&this.$preview.css("line-height",n),this.original={exists:this.$element.hasClass("fileinput-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.listen(),this.reset()}};r.DEFAULTS={clearName:!0},r.prototype.listen=function(){this.$input.on("change.bs.fileinput",h.proxy(this.change,this)),h(this.$input[0].form).on("reset.bs.fileinput",h.proxy(this.reset,this)),this.$element.find('[data-trigger="fileinput"]').on("click.bs.fileinput",h.proxy(this.trigger,this)),this.$element.find('[data-dismiss="fileinput"]').on("click.bs.fileinput",h.proxy(this.clear,this))},r.prototype.verifySizes=function(e){if(void 0===this.options.maxSize)return!0;var t=parseFloat(this.options.maxSize);if(t!==this.options.maxSize)return!0;for(var n=0;n<e.length;n++){var r=void 0!==e[n].size?e[n].size:null;if(null!==r&&(r=r/1e3/1e3)>t)return!1}return!0},r.prototype.change=function(e){var s=void 0===e.target.files?e.target&&e.target.value?[{name:e.target.value.replace(/^.+\\/,"")}]:[]:e.target.files;if(e.stopPropagation(),0===s.length)return this.clear(),void this.$element.trigger("clear.bs.fileinput");if(!this.verifySizes(s))return this.$element.trigger("max_size.bs.fileinput"),this.clear(),void this.$element.trigger("clear.bs.fileinput");this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name);var l=s[0];if(0<this.$preview.length&&(void 0!==l.type?l.type.match(/^image\/(gif|png|jpeg|svg\+xml)$/):l.name.match(/\.(gif|png|jpe?g|svg)$/i))&&"undefined"!=typeof FileReader){var u=this,t=new FileReader,c=this.$preview,d=this.$element;t.onload=function(e){var t=h("<img>");if(t[0].src=e.target.result,s[0].result=e.target.result,d.find(".fileinput-filename").text(l.name),"none"!=c.css("max-height")){var n=parseInt(c.css("max-height"),10)||0,r=parseInt(c.css("padding-top"),10)||0,i=parseInt(c.css("padding-bottom"),10)||0,o=parseInt(c.css("border-top"),10)||0,a=parseInt(c.css("border-bottom"),10)||0;t.css("max-height",n-r-i-o-a)}c.html(t),u.options.exif&&u.setImageTransform(t,l),d.addClass("fileinput-exists").removeClass("fileinput-new"),d.trigger("change.bs.fileinput",s)},t.readAsDataURL(l)}else{var n=l.name,r=this.$element.find(".fileinput-filename");1<s.length&&(n=h.map(s,function(e){return e.name}).join(", ")),r.text(n),this.$preview.text(l.name),this.$element.addClass("fileinput-exists").removeClass("fileinput-new"),this.$element.trigger("change.bs.fileinput")}},r.prototype.setImageTransform=function(r,e){var i=this,o=new FileReader;o.onload=function(e){var t=new DataView(o.result),n=i.getImageExif(t);n&&i.resetOrientation(r,n)},o.readAsArrayBuffer(e)},r.prototype.getImageExif=function(e){if(65496!=e.getUint16(0,!1))return-2;for(var t=e.byteLength,n=2;n<t;){var r=e.getUint16(n,!1);if(n+=2,65505==r){if(1165519206!=e.getUint32(n+=2,!1))return-1;var i=18761==e.getUint16(n+=6,!1);n+=e.getUint32(n+4,i);var o=e.getUint16(n,i);n+=2;for(var a=0;a<o;a++)if(274==e.getUint16(n+12*a,i))return e.getUint16(n+12*a+8,i)}else{if(65280!=(65280&r))break;n+=e.getUint16(n,!1)}}return-1},r.prototype.resetOrientation=function(i,o){var a=new Image;a.onload=function(){var e=a.width,t=a.height,n=document.createElement("canvas"),r=n.getContext("2d");switch(-1<[5,6,7,8].indexOf(o)?(n.width=t,n.height=e):(n.width=e,n.height=t),o){case 2:r.transform(-1,0,0,1,e,0);break;case 3:r.transform(-1,0,0,-1,e,t);break;case 4:r.transform(1,0,0,-1,0,t);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,t,0);break;case 7:r.transform(0,-1,-1,0,t,e);break;case 8:r.transform(0,-1,1,0,0,e);break;default:r.transform(1,0,0,1,0,0)}r.drawImage(a,0,0),i.attr("src",n.toDataURL())},a.src=i.attr("src")},r.prototype.clear=function(e){if(e&&e.preventDefault(),this.$hidden.val(""),this.$hidden.attr("name",this.name),this.options.clearName&&this.$input.attr("name",""),n){var t=this.$input.clone(!0);this.$input.after(t),this.$input.remove(),this.$input=t}else this.$input.val("");this.$preview.html(""),this.$element.find(".fileinput-filename").text(""),this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),void 0!==e&&(this.$input.trigger("change"),this.$element.trigger("clear.bs.fileinput"))},r.prototype.reset=function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.$element.find(".fileinput-filename").text(""),this.original.exists?this.$element.addClass("fileinput-exists").removeClass("fileinput-new"):this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),this.$element.trigger("reseted.bs.fileinput")},r.prototype.trigger=function(e){this.$input.trigger("click"),e.preventDefault()};var e=h.fn.fileinput;h.fn.fileinput=function(n){return this.each(function(){var e=h(this),t=e.data("bs.fileinput");t||e.data("bs.fileinput",t=new r(this,n)),"string"==typeof n&&t[n]()})},h.fn.fileinput.Constructor=r,h.fn.fileinput.noConflict=function(){return h.fn.fileinput=e,this},h(document).on("click.fileinput.data-api",'[data-provides="fileinput"]',function(e){var t=h(this);if(!t.data("bs.fileinput")){t.fileinput(t.data());var n=h(e.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');0<n.length&&(e.preventDefault(),n.trigger("click.bs.fileinput"))}})}(window.jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function y(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)b(t,n)&&(e[n]=t[n]);return b(t,"toString")&&(e.toString=t.toString),b(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function w(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=w(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=p(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var o=y.momentProperties=[];function v(e,t){var n,r,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=w(t)),u(t._locale)||(e._locale=t._locale),0<o.length)for(n=0;n<o.length;n++)u(i=t[r=o[n]])||(e[r]=i);return e}var t=!1;function _(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,y.updateOffset(this),t=!1)}function S(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=E(t)),n}function a(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&T(e[r])!==T(t[r]))&&a++;return a+o}function D(e){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var a=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var r in e+="\n["+n+"] ",arguments[0])e+=r+": "+arguments[0][r]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}D(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var r,x={};function C(e,t){null!=y.deprecationHandler&&y.deprecationHandler(e,t),x[e]||(D(t),x[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,r=f({},e);for(n in t)b(t,n)&&(l(e[n])&&l(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)b(e,n)&&!b(t,n)&&l(e[n])&&(r[n]=f({},r[n]));return r}function R(e){null!=e&&this.set(e)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,r=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)b(e,t)&&n.push(t);return n};var A={};function M(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function O(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)b(e,n)&&(t=O(n))&&(r[t]=e[n]);return r}var P={};function L(e,t){P[e]=t}function H(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},W={};function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return H(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=B(t,e.localeData()),z[t]=z[t]||function(r){var e,i,t,o=r.match(F);for(e=0,i=o.length;e<i;e++)W[o[e]]?o[e]=W[o[e]]:o[e]=(t=o[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=k(o[t])?o[t].call(e,r):o[t];return n}}(t),z[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;0<=n&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var V=/\d/,q=/\d\d/,$=/\d{3}/,G=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function le(e,n,r){se[e]=k(n)?n:function(e,t){return e&&r?r:n}}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ce={};function de(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),c(n)&&(r=function(e,t){t[n]=T(e)}),t=0;t<e.length;t++)ce[e[t]]=r}function he(e,i){de(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var fe=0,pe=1,ge=2,me=3,ve=4,ye=5,be=6,we=7,_e=8;function Se(e){return Ee(e)?366:365}function Ee(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),M("year","y"),L("year",1),le("Y",re),le("YY",Q,q),le("YYYY",ee,G),le("YYYYY",te,Z),le("YYYYYY",te,Z),de(["YYYYY","YYYYYY"],fe),de("YYYY",function(e,t){t[fe]=2===e.length?y.parseTwoDigitYear(e):T(e)}),de("YY",function(e,t){t[fe]=y.parseTwoDigitYear(e)}),de("Y",function(e,t){t[fe]=parseInt(e,10)}),y.parseTwoDigitYear=function(e){return T(e)+(68<T(e)?1900:2e3)};var Te,De=xe("FullYear",!0);function xe(t,n){return function(e){return null!=e?(ke(this,t,e),y.updateOffset(this,n),this):Ce(this,t)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1==n?Ee(e)?29:28:31-n%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),M("month","M"),L("month",8),le("M",Q),le("MM",Q,q),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[pe]=T(e)-1}),de(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[pe]=i:w(n).invalidMonth=e});var Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Oe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Oe(this,e),y.updateOffset(this,!0),this):Ce(this,"Month")}var Pe=ae,Le=ae;function He(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ue(r[t]),i[t]=ue(i[t]);for(t=0;t<24;t++)o[t]=ue(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Fe(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function je(e,t,n){var r=7+t-n;return-(7+Fe(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+je(e,r,i);return a=s<=0?Se(o=e-1)+s:s>Se(e)?(o=e+1,s-Se(e)):(o=e,s),{year:o,dayOfYear:a}}function We(e,t,n){var r,i,o=je(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ue(i=e.year()-1,t,n):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ue(e,t,n){var r=je(e,t,n),i=je(e+1,t,n);return(Se(e)-r+i)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),L("week",5),L("isoWeek",5),le("w",Q),le("ww",Q,q),le("W",Q),le("WW",Q,q),he(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:w(n).invalidWeekday=e}),he(["d","e","E"],function(e,t,n,r){t[r]=T(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=ae,Ge=ae,Ze=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=ue(s[t]),l[t]=ue(l[t]),u[t]=ue(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Je(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Xe),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Xe.apply(this)+H(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Xe.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Je("a",!0),Je("A",!1),M("hour","h"),L("hour",13),le("a",Ke),le("A",Ke),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,q),le("hh",Q,q),le("kk",Q,q),le("hmm",X),le("hmmss",J),le("Hmm",X),le("Hmmss",J),de(["H","HH"],me),de(["k","kk"],function(e,t,n){var r=T(e);t[me]=24===r?0:r}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[me]=T(e),w(n).bigHour=!0}),de("hmm",function(e,t,n){var r=e.length-2;t[me]=T(e.substr(0,r)),t[ve]=T(e.substr(r)),w(n).bigHour=!0}),de("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=T(e.substr(0,r)),t[ve]=T(e.substr(r,2)),t[ye]=T(e.substr(i)),w(n).bigHour=!0}),de("Hmm",function(e,t,n){var r=e.length-2;t[me]=T(e.substr(0,r)),t[ve]=T(e.substr(r))}),de("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=T(e.substr(0,r)),t[ve]=T(e.substr(r,2)),t[ye]=T(e.substr(i))});var et,tt=xe("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Me,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:qe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function ot(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!rt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),st(t)}catch(e){}return rt[e]}function st(e,t){var n;return e&&((n=u(t)?ut(e):lt(e,t))?et=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function lt(e,t){if(null===t)return delete rt[e],null;var n,r=nt;if(t.abbr=e,null!=rt[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])r=rt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;r=n._config}return rt[e]=new R(I(r,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),st(e),rt[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!s(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ot(e[o]).split("-")).length,n=(n=ot(e[o+1]))?n.split("-"):null;0<t;){if(r=at(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}o++}return et}(e)}function ct(e){var t,n=e._a;return n&&-2===w(e).overflow&&(t=n[pe]<0||11<n[pe]?pe:n[ge]<1||n[ge]>Ie(n[fe],n[pe])?ge:n[me]<0||24<n[me]||24===n[me]&&(0!==n[ve]||0!==n[ye]||0!==n[be])?me:n[ve]<0||59<n[ve]?ve:n[ye]<0||59<n[ye]?ye:n[be]<0||999<n[be]?be:-1,w(e)._overflowDayOfYear&&(t<fe||ge<t)&&(t=ge),w(e)._overflowWeeks&&-1===t&&(t=we),w(e)._overflowWeekday&&-1===t&&(t=_e),w(e).overflow=t),e}function dt(e,t,n){return null!=e?e:null!=t?t:n}function ht(e){var t,n,r,i,o,a=[];if(!e._d){var s,l;for(s=e,l=new Date(y.now()),r=s._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],e._w&&null==e._a[ge]&&null==e._a[pe]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=dt(t.GG,e._a[fe],We(xt(),1,4).year),r=dt(t.W,1),((i=dt(t.E,1))<1||7<i)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=We(xt(),o,a);n=dt(t.gg,e._a[fe],u.year),r=dt(t.w,u.week),null!=t.d?((i=t.d)<0||6<i)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||6<t.e)&&(l=!0)):i=o}r<1||r>Ue(n,o,a)?w(e)._overflowWeeks=!0:null!=l?w(e)._overflowWeekday=!0:(s=ze(n,r,i,o,a),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=dt(e._a[fe],r[fe]),(e._dayOfYear>Se(o)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),n=Fe(o,0,e._dayOfYear),e._a[pe]=n.getUTCMonth(),e._a[ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[me]&&0===e._a[ve]&&0===e._a[ye]&&0===e._a[be]&&(e._nextDay=!0,e._a[me]=0),e._d=(e._useUTC?Fe:function(e,t,n,r,i,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[me]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(w(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function bt(e){var t,n,r,i,o,a,s=e._i,l=ft.exec(s)||pt.exec(s);if(l){for(w(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[1])){i=mt[t][0],r=!1!==mt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Et(e)}else e._isValid=!1}var wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var _t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,r,i=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var o=function(e,t,n,r,i,o){var a,s=[(a=parseInt(e,10),a<=49?2e3+a:a<=999?1900+a:a),Me.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=o,r=e,(t=i[1])&&Ve.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(w(r).weekdayMismatch=!0,!(r._isValid=!1)))return;e._a=o,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),e._d=Fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function Et(e){if(e._f!==y.ISO_8601)if(e._f!==y.RFC_2822){e._a=[],w(e).empty=!0;var t,n,r,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(r=B(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)i=r[t],(n=(u.match((v=e,b(se,m=i)?se[m](v._strict,v._locale):new RegExp(ue(m.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))))||[])[0])&&(0<(o=u.substr(0,u.indexOf(n))).length&&w(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),W[i]?(n?w(e).empty=!1:w(e).unusedTokens.push(i),a=i,l=e,null!=(s=n)&&b(ce,a)&&ce[a](s,l._a,l,a)):e._strict&&!n&&w(e).unusedTokens.push(i);w(e).charsLeftOver=c-d,0<u.length&&w(e).unusedInput.push(u),e._a[me]<=12&&!0===w(e).bigHour&&0<e._a[me]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[me]=(h=e._locale,f=e._a[me],null==(p=e._meridiem)?f:null!=h.meridiemHour?h.meridiemHour(f,p):(null!=h.isPM&&((g=h.isPM(p))&&f<12&&(f+=12),g||12!==f||(f=0)),f)),ht(e),ct(e)}else St(e);else bt(e);var h,f,p,g,m,v}function Tt(e){var t,n,r,i,o=e._i,a=e._f;return e._locale=e._locale||ut(e._l),null===o||void 0===a&&""===o?m({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),S(o)?new _(ct(o)):(d(o)?e._d=o:s(a)?function(e){var t,n,r,i,o;if(0===e._f.length)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Et(t),g(t)&&(o+=w(t).charsLeftOver,o+=10*w(t).unusedTokens.length,w(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):a?Et(e):u(n=(t=e)._i)?t._d=new Date(y.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(r=t,null===(i=yt.exec(r._i))?(bt(r),!1===r._isValid&&(delete r._isValid,St(r),!1===r._isValid&&(delete r._isValid,y.createFromInputFallback(r)))):r._d=new Date(+i[1])):s(n)?(t._a=h(n.slice(0),function(e){return parseInt(e,10)}),ht(t)):l(n)?function(e){if(!e._d){var t=N(e._i);e._a=h([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ht(e)}}(t):c(n)?t._d=new Date(n):y.createFromInputFallback(t),g(e)||(e._d=null),e))}function Dt(e,t,n,r,i){var o,a={};return!0!==n&&!1!==n||(r=n,n=void 0),(l(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,(o=new _(ct(Tt(a))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function xt(e,t,n,r){return Dt(e,t,n,r,!1)}y.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var Ct=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),kt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()});function It(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Te.call(Rt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Rt.length;++r)if(e[Rt[r]]){if(n)return!1;parseFloat(e[Rt[r]])!==T(e[Rt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function Mt(e){return e instanceof At}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Nt(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+H(~~(e/60),2)+n+H(~~e%60,2)})}Nt("Z",":"),Nt("ZZ",""),le("Z",oe),le("ZZ",oe),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(oe,e)});var Pt=/([\+\-]|\d\d)/gi;function Lt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Pt)||["-",0,0],i=60*r[1]+T(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ht(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(S(e)||d(e)?e.valueOf():xt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),y.updateOffset(n,!1),n):xt(e).local()}function Ft(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var zt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,i,o,a,s,l=e,u=null;return Mt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(l={},t?l[t]=e:l.milliseconds=e):(u=zt.exec(e))?(n="-"===u[1]?-1:1,l={y:0,d:T(u[ge])*n,h:T(u[me])*n,m:T(u[ve])*n,s:T(u[ye])*n,ms:T(Ot(1e3*u[be]))*n}):(u=Wt.exec(e))?(n="-"===u[1]?-1:1,l={y:Yt(u[2],n),M:Yt(u[3],n),w:Yt(u[4],n),d:Yt(u[5],n),h:Yt(u[6],n),m:Yt(u[7],n),s:Yt(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=xt(l.from),a=xt(l.to),i=o.isValid()&&a.isValid()?(a=Ht(a,o),o.isBefore(a)?s=Bt(o,a):((s=Bt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new At(l),Mt(e)&&b(e,"_locale")&&(r._locale=e._locale),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(C(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,Ut(e="string"==typeof e?+e:e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,o=Ot(t._days),a=Ot(t._months);e.isValid()&&(r=null==r||r,a&&Oe(e,Ce(e,"Month")+a*n),o&&ke(e,"Date",Ce(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&y.updateOffset(e,o||a))}Ut.fn=At.prototype,Ut.invalid=function(){return Ut(NaN)};var $t=Vt(1,"add"),Gt=Vt(-1,"subtract");function Zt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}function Kt(e,t){return(e%t+t)%t}function en(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function nn(e,t){U(0,[e,e.length],0,t)}function rn(e,t,n,r,i){var o;return null==e?We(this,r,i).year:((o=Ue(e,r,i))<t&&(t=o),function(e,t,n,r,i){var o=ze(e,t,n,r,i),a=Fe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),le("G",re),le("g",re),le("GG",Q,q),le("gg",Q,q),le("GGGG",ee,G),le("gggg",ee,G),le("GGGGG",te,Z),le("ggggg",te,Z),he(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),he(["gg","GG"],function(e,t,n,r){t[r]=y.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),M("quarter","Q"),L("quarter",7),le("Q",V),de("Q",function(e,t){t[pe]=3*(T(e)-1)}),U("D",["DD",2],"Do","date"),M("date","D"),L("date",9),le("D",Q),le("DD",Q,q),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ge),de("Do",function(e,t){t[ge]=T(e.match(Q)[0])});var on=xe("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),L("dayOfYear",4),le("DDD",K),le("DDDD",$),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),U("m",["mm",2],0,"minute"),M("minute","m"),L("minute",14),le("m",Q),le("mm",Q,q),de(["m","mm"],ve);var an=xe("Minutes",!1);U("s",["ss",2],0,"second"),M("second","s"),L("second",15),le("s",Q),le("ss",Q,q),de(["s","ss"],ye);var sn,ln=xe("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),M("millisecond","ms"),L("millisecond",16),le("S",K,V),le("SS",K,q),le("SSS",K,$),sn="SSSS";sn.length<=9;sn+="S")le(sn,ne);function un(e,t){t[be]=T(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")de(sn,un);var cn=xe("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=$t,dn.calendar=function(e,t){var n=e||xt(),r=Ht(n,this).startOf("day"),i=y.calendarFormat(this,r)||"sameElse",o=t&&(k(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,xt(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ht(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=O(t)){case"year":o=Zt(this,r)/12;break;case"month":o=Zt(this,r);break;case"quarter":o=Zt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:E(o)},dn.endOf=function(e){var t;if(void 0===(e=O(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?tn:en;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Kt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Kt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Kt(t,1e3)-1}return this._d.setTime(t),y.updateOffset(this,!0),this},dn.format=function(e){e=e||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(xt(),e)},dn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(xt(),e)},dn.get=function(e){return k(this[e=O(e)])?this[e]():this},dn.invalidAt=function(){return w(this).overflow},dn.isAfter=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=S(e)?e:xt(e),o=S(t)?t:xt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},dn.isSame=function(e,t){var n,r=S(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return g(this)},dn.lang=Xt,dn.locale=Qt,dn.localeData=Jt,dn.max=kt,dn.min=Ct,dn.parsingFlags=function(){return f({},w(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:P[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=N(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(k(this[e=O(e)]))return this[e](t);return this},dn.startOf=function(e){var t;if(void 0===(e=O(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?tn:en;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Kt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Kt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Kt(t,1e3)}return this._d.setTime(t),y.updateOffset(this,!0),this},dn.subtract=Gt,dn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},dn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=De,dn.isLeapYear=function(){return Ee(this.year())},dn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Ne,dn.daysInMonth=function(){return Ie(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=We(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},dn.date=on,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,r=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?r:r-7)},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=tt,dn.minute=dn.minutes=an,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Ft(this);if("string"==typeof e){if(null===(e=Lt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=jt,dn.isUTC=jt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=n("dates accessor is deprecated. Use date instead.",on),dn.months=n("months accessor is deprecated. Use month instead",Ne),dn.years=n("years accessor is deprecated. Use year instead",De),dn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Tt(e))._a){var t=e._isUTC?p(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var fn=R.prototype;function pn(e,t,n,r){var i=ut(),o=p().set(r,t);return i[n](o,e)}function gn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function mn(e,t,n,r){"boolean"==typeof e?c(t)&&(n=t,t=void 0):(t=e,e=!1,c(n=t)&&(n=t,t=void 0)),t=t||"";var i,o=ut(),a=e?o._week.dow:0;if(null!=n)return pn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=pn(t,(i+a)%7,r,"day");return s}fn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r},fn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},fn.set=function(e){var t,n;for(n in e)k(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,a))?i:null:-1!==(i=Te.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,a))?i:-1!==(i=Te.call(this._longMonthsParse,a))?i:null:-1!==(i=Te.call(this._longMonthsParse,a))?i:-1!==(i=Te.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(b(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(b(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(b(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(b(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return We(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},fn.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,a))?i:-1!==(i=Te.call(this._weekdaysParse,a))?i:-1!==(i=Te.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(b(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(b(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(b(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},st("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===T(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),y.lang=n("moment.lang is deprecated. Use moment.locale instead.",st),y.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ut);var vn=Math.abs;function yn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var En=Sn("ms"),Tn=Sn("s"),Dn=Sn("m"),xn=Sn("h"),Cn=Sn("d"),kn=Sn("w"),In=Sn("M"),Rn=Sn("Q"),An=Sn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=Mn("milliseconds"),Nn=Mn("seconds"),Pn=Mn("minutes"),Ln=Mn("hours"),Hn=Mn("days"),Fn=Mn("months"),jn=Mn("years"),zn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,M:11},Un=Math.abs;function Yn(e){return(0<e)-(e<0)||+e}function Bn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,r=Un(this._days),i=Un(this._months);t=E((e=E(n/60))/60),n%=60,e%=60;var o=E(i/12),a=i%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Yn(this._months)!==Yn(d)?"-":"",p=Yn(this._days)!==Yn(d)?"-":"",g=Yn(this._milliseconds)!==Yn(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Vn=At.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Vn.add=function(e,t){return yn(this,e,t,1)},Vn.subtract=function(e,t){return yn(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=O(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Vn.asMilliseconds=En,Vn.asSeconds=Tn,Vn.asMinutes=Dn,Vn.asHours=xn,Vn.asDays=Cn,Vn.asWeeks=kn,Vn.asMonths=In,Vn.asQuarters=Rn,Vn.asYears=An,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*bn(_n(s)+a),s=a=0),l.milliseconds=o%1e3,e=E(o/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,s+=i=E(wn(a+=E(n/24))),a-=bn(_n(i)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Vn.clone=function(){return Ut(this)},Vn.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=On,Vn.seconds=Nn,Vn.minutes=Pn,Vn.hours=Ln,Vn.days=Hn,Vn.weeks=function(){return E(this.days()/7)},Vn.months=Fn,Vn.years=jn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,r,i,o,a,s,l,u,c,d=this.localeData(),h=(t=!e,n=d,r=Ut(this).abs(),i=zn(r.as("s")),o=zn(r.as("m")),a=zn(r.as("h")),s=zn(r.as("d")),l=zn(r.as("M")),u=zn(r.as("y")),(c=i<=Wn.ss&&["s",i]||i<Wn.s&&["ss",i]||o<=1&&["m"]||o<Wn.m&&["mm",o]||a<=1&&["h"]||a<Wn.h&&["hh",a]||s<=1&&["d"]||s<Wn.d&&["dd",s]||l<=1&&["M"]||l<Wn.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=t,c[3]=0<+this,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c));return e&&(h=d.pastFuture(+this,h)),d.postformat(h)},Vn.toISOString=Bn,Vn.toString=Bn,Vn.toJSON=Bn,Vn.locale=Qt,Vn.localeData=Jt,Vn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bn),Vn.lang=Xt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",re),le("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),de("x",function(e,t,n){n._d=new Date(T(e))}),y.version="2.24.0",e=xt,y.fn=dn,y.min=function(){return It("isBefore",[].slice.call(arguments,0))},y.max=function(){return It("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=p,y.unix=function(e){return xt(1e3*e)},y.months=function(e,t){return gn(e,t,"months")},y.isDate=d,y.locale=st,y.invalid=m,y.duration=Ut,y.isMoment=S,y.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},y.parseZone=function(){return xt.apply(null,arguments).parseZone()},y.localeData=ut,y.isDuration=Mt,y.monthsShort=function(e,t){return gn(e,t,"monthsShort")},y.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},y.defineLocale=lt,y.updateLocale=function(e,t){if(null!=t){var n,r,i=nt;null!=(r=at(e))&&(i=r._config),(n=new R(t=I(i,t))).parentLocale=rt[e],rt[e]=n,st(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},y.locales=function(){return r(rt)},y.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},y.normalizeUnits=O,y.relativeTimeRounding=function(e){return void 0===e?zn:"function"==typeof e&&(zn=e,!0)},y.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},y.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},y.prototype=dn,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).FullCalendar={})}(this,function(e){"use strict";var o={className:!0,colSpan:!0,rowSpan:!0},t={"<tr":"tbody","<td":"tr"};function a(e,t,n){var r=document.createElement(e);if(t)for(var i in t)"style"===i?p(r,t[i]):o[i]?r[i]=t[i]:r.setAttribute(i,t[i]);return"string"==typeof n?r.innerHTML=n:null!=n&&_(r,n),r}function w(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.firstChild}function s(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.childNodes}(e))}function n(e){return t[e.substr(0,3)]||"div"}function _(e,t){for(var n=l(t),r=0;r<n.length;r++)e.appendChild(n[r])}function v(e,t){for(var n=l(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function l(e){return"string"==typeof e?s(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function r(e){e.parentNode&&e.parentNode.removeChild(e)}var i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,u=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(d(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function c(e,t){return u.call(e,t)}function d(e,t){return i.call(e,t)}function h(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),a=0;a<o.length;a++)r.push(o[a]);return r}var f=/(top|left|right|bottom|width|height)$/i;function p(e,t){for(var n in t)g(e,n,t[n])}function g(e,t,n){null==n?e.style[t]="":"number"==typeof n&&f.test(t)?e.style[t]=n+"px":e.style[t]=n}function m(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}var y=null;function b(){return null===y&&(y=function(){var e=a("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return r(e),t}()),y}function S(e){return e=Math.max(0,e),e=Math.round(e)}function E(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=S(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:S(e.offsetHeight-e.clientHeight-o-a),scrollbarLeft:0,scrollbarRight:0};return b()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function T(e,t){void 0===t&&(t=!1);var n=D(e),r=E(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function D(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function x(e){return e.getBoundingClientRect().height+C(e)}function C(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function k(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function I(e){e.preventDefault()}function R(e,t,n,r){function i(e){var t=c(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var A=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];var M=["sun","mon","tue","wed","thu","fri","sat"];function O(e,t){var n=Y(e);return n[2]+=t,B(n)}function N(e,t){var n=Y(e);return n[6]+=t,B(n)}function P(e,t){return(t.valueOf()-e.valueOf())/864e5}function L(e,t){var n=j(e),r=j(t);return{years:0,months:0,days:Math.round(P(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function H(e,t){var n=F(e,t);return null!==n&&n%7==0?n/7:null}function F(e,t){return q(e)===q(t)?Math.round(P(e,t)):null}function j(e){return B([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function z(e,t,n,r){var i=B([t,0,1+function(e,t,n){var r=7+t-n;return-(7+B([e,0,r]).getUTCDay()-t)%7+r-1}(t,n,r)]),o=j(e),a=Math.round(P(i,o));return Math.floor(a/7)+1}function W(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function U(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Y(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function B(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function V(e){return!isNaN(e.valueOf())}function q(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var $=["years","months","days","milliseconds"],G=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Z(e,t){var n;return"string"==typeof e?function(e){var t=G.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Q(e):"number"==typeof e?Q(((n={})[t||"milliseconds"]=e,n)):null}function Q(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*X(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function X(e){return e.weeks||e.week||0}function J(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function K(e){return ee(e)/864e5}function ee(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function te(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ne(e){e.forEach(function(e){e.style.height=""})}function re(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ie(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=oe(e,t,n[r]))return i;return 0}function oe(e,t,n){return n.func?n.func(e,t):ae(e[n.field],t[n.field])*(n.order||1)}function ae(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function se(e){return e.charAt(0).toUpperCase()+e.slice(1)}function le(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function ue(e){return e%1==0}function ce(e,t,n){if("function"==typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function he(t,n){var r,i,o,a,s,l=function(){var e=(new Date).valueOf()-a;e<n?r=setTimeout(l,n-e):(r=null,s=t.apply(o,i),o=i=null)};return function(){return o=this,i=arguments,a=(new Date).valueOf(),r=r||setTimeout(l,n),s}}function fe(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var a=t[o];void 0!==e[o]?a===Function?i[o]="function"==typeof e[o]?e[o]:null:i[o]=a?a(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:a===String?i[o]="":a&&a!==Number&&a!==Boolean&&a!==Function?i[o]=a(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function pe(e){var t=Math.floor(P(e.start,e.end))||1,n=j(e.start);return{start:n,end:O(n,t)}}function ge(e,t){void 0===t&&(t=Z(0));var n=null,r=null;if(e.end){r=j(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=ee(t)&&(r=O(r,1))}return e.start&&(n=j(e.start),r&&r<=n&&(r=O(n,1))),{start:n,end:r}}function me(e,t,n,r){return"year"===r?Z(n.diffWholeYears(e,t),"year"):"month"===r?Z(n.diffWholeMonths(e,t),"month"):L(e,t)}var ve=function(e,t){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ye(e,t){function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var be=function(){return(be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var we=Object.prototype.hasOwnProperty;function _e(e,t){var n,r,i,o,a,s,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;0<=o;o--)if("object"==typeof(a=e[o][r])&&a)i.unshift(a);else if(void 0!==a){l[r]=a;break}i.length&&(l[r]=_e(i))}for(n=e.length-1;0<=n;n--)for(r in s=e[n])r in l||(l[r]=s[r]);return l}function Se(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ee(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Te(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function De(e){var t=[];for(var n in e)t.push(e[n]);return t}function xe(e,t){for(var n in e)if(we.call(e,n)&&!(n in t))return!1;for(var n in t)if(we.call(t,n)&&e[n]!==t[n])return!1;return!0}function Ce(e,t,n,r){for(var i={defs:{},instances:{}},o=0,a=e;o<a.length;o++){var s=Vt(a[o],t,n,r);s&&ke(s,i)}return i}function ke(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ie(e,t,n){var r,i,o,a,s,l,u=n.dateEnv,c=e.defs,d=e.instances;for(var h in d=Se(d,function(e){return!c[e.defId].recurringDef}),c){var f=c[h];if(f.recurringDef){var p=f.recurringDef.duration;p=p||(f.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var g=0,m=(r=f,i=p,o=t,a=n.dateEnv,s=n.pluginSystem.hooks.recurringTypes,l=void 0,l=s[r.recurringDef.typeId].expand(r.recurringDef.typeData,{start:a.subtract(o.start,i),end:o.end},a),r.allDay&&(l=l.map(j)),l);g<m.length;g++){var v=m[g],y=$t(h,{start:v,end:u.add(v,p)});d[y.instanceId]=y}}}return{defs:c,instances:d}}function Re(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=Ne(e,function(e){return function(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}(r,e)});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function Ae(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],a=t(o);a?n.push(a):null==a&&n.push(o)}}else n=e;return n}function Me(){return{defs:{},instances:{}}}function Oe(e,t){return{defs:be({},e.defs,t.defs),instances:be({},e.instances,t.instances)}}function Ne(e,t){var n=Se(e.defs,t),r=Se(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function Pe(e,t){var n,r,i=[],o=t.start;for(e.sort(Le),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function Le(e,t){return e.start.valueOf()-t.start.valueOf()}function He(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function Fe(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function je(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ze(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function We(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Ue(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Ye(e){var t,n;return function(){return t&&Ue(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function Be(t,n){var r=null;return function(){var e=t.apply(this,arguments);return null!==r&&(r===e||n(r,e))||(r=e),r}}var Ve={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},qe={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},$e=/\s*([ap])\.?m\.?/i,Ge=/,/g,Ze=/\s+/g,Qe=/\u200e/g,Xe=/UTC|GMT/,Je=(Ke.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},Ke.prototype.formatRange=function(e,t,n){var r=this.standardDateProps,i=this.extendedSettings,o=function(e,t,n){return n.getMarkerYear(e)===n.getMarkerYear(t)?n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerDay(e)===n.getMarkerDay(t)?q(e)===q(t)?0:1:2:4:5}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);var a=o;!(1<a)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(a=1);var s=this.format(e,n),l=this.format(t,n);if(s===l)return s;var u=et(function(e,t){var n={};for(var r in e)r in qe&&!(qe[r]<=t)||(n[r]=e[r]);return n}(r,a),i,n),c=u(e),d=u(t),h=function(e,t,n,r){for(var i=0;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var a=e.substr(0,o);i=o+t.length;for(var s=e.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(a===c&&s===d)return{before:a,after:s}}}return null}(s,c,l,d),f=i.separator||"";return h?h.before+c+f+d+h.after:s+f+l},Ke.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},Ke);function Ke(e){var t={},n={},r=0;for(var i in e)i in Ve?(n[i]=e[i],r=Math.max(Ve[i],r)):(t[i]=e[i],i in qe&&(r=Math.max(qe[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ye(et)}function et(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return at(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var i=[];"narrow"===r?i.push(t):"short"===r&&i.push(t," ");i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:function(n,r,i){n=be({},n),r=be({},r),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(n,r),n.timeZone="UTC";var o,a=new Intl.DateTimeFormat(i.locale.codes,n);if(r.omitZeroMinute){var e=be({},n);delete e.minute,o=new Intl.DateTimeFormat(i.locale.codes,e)}return function(e){var t=e.marker;return function(e,t,n,r,i){e=e.replace(Qe,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Xe,function(){return n=!0,t}),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":at(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ge,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace($e,"").trim():"narrow"===r.meridiem?e=e.replace($e,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace($e,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace($e,function(e){return e.toLocaleLowerCase()}));return e=(e=e.replace(Ze," ")).trim()}((o&&!t.getUTCMinutes()?o:a).format(t),e,n,r,i)}}(e,t,n)}var tt=(nt.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,st(e,null,t,this.separator))},nt.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,st(e,t,n,this.separator))},nt);function nt(e,t){this.cmdStr=e,this.separator=t}var rt=(it.prototype.format=function(e,t){return this.func(st(e,null,t))},it.prototype.formatRange=function(e,t,n){return this.func(st(e,t,n))},it);function it(e){this.func=e}function ot(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=be({separator:t},e)),new Je(e)):"string"==typeof e?new tt(e,t):"function"==typeof e?new rt(e):void 0}function at(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+le(i,2)+":"+le(o,2):"GMT"+n+i+(o?":"+le(o,2):"")}function st(e,t,n,r){var i=lt(e,n.calendarSystem);return{date:i,start:i,end:t?lt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function lt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}var ut=(ct.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},ct.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(ct.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),ct);function ct(e,t){this.calendar=e,this.internalEventSource=t}var dt=(ht.prototype.setProp=function(e,t){var n,r;if(e in Yt);else if(e in Ut)"function"==typeof Ut[e]&&(t=Ut[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Lt){var i=void 0;"function"==typeof Lt[e]&&(t=Lt[e](t)),i="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:((r={})[e]=t,r),this.mutate({standardProps:{ui:i}})}},ht.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},ht.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=me(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},ht.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._calendar.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=me(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},ht.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i=this._calendar.dateEnv,o={allDay:n.allDay},a=i.createMarker(e);if(a&&(null==t||(r=i.createMarker(t)))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=pe(s));var l=me(s.start,a,i,n.granularity);if(r){var u=me(s.end,r,i,n.granularity);J(l,u)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},ht.prototype.moveStart=function(e){var t=Z(e);t&&this.mutate({startDelta:t})},ht.prototype.moveEnd=function(e){var t=Z(e);t&&this.mutate({endDelta:t})},ht.prototype.moveDates=function(e){var t=Z(e);t&&this.mutate({datesDelta:t})},ht.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},ht.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=ot(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},ht.prototype.mutate=function(e){var t=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},ht.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(ht.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new ut(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),ht);function ht(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}function ft(e,t,n,r){var i={},o={},a={},s=[],l=[],u=mt(e.defs,t);for(var c in e.defs){"inverse-background"===(w=e.defs[c]).rendering&&(w.groupId?(i[w.groupId]=[],a[w.groupId]||(a[w.groupId]=w)):o[c]=[])}for(var d in e.instances){var h=e.instances[d],f=u[(w=e.defs[h.defId]).defId],p=h.range,g=!w.allDay&&r?ge(p,r):p,m=He(g,n);m&&("inverse-background"===w.rendering?w.groupId?i[w.groupId].push(m):o[h.defId].push(m):("background"===w.rendering?s:l).push({def:w,ui:f,instance:h,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var v in i)for(var y=0,b=Pe(i[v],n);y<b.length;y++){var w,_=b[y];f=u[(w=a[v]).defId];s.push({def:w,ui:f,instance:null,range:_,isStart:!1,isEnd:!1})}for(var c in o)for(var S=0,E=Pe(o[c],n);S<E.length;S++){_=E[S];s.push({def:e.defs[c],ui:u[c],instance:null,range:_,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function pt(e,t,n){var r,i,o=e.calendar,a=e.view;o.hasPublicHandlers("eventRender")&&(t=t.filter(function(e){var t=o.publiclyTrigger("eventRender",[{event:new dt(o,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:a}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)}));for(var s=0,l=t;s<l.length;s++){var u=l[s];r=u.el,i=u,r.fcSeg=i}return t}function gt(e){return e.fcSeg||null}function mt(e,t){return Ee(e,function(e){return vt(e,t)})}function vt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),zt(n)}function yt(e,t,n){var r=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,a=t;o<a.length;o++){var s=a[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new dt(r,s.eventRange.def,s.eventRange.instance),isMirror:n,isStart:s.isStart,isEnd:s.isEnd,el:s.el,view:i}])}r.state.loadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function bt(e,t,n){for(var r=e.calendar,i=e.view,o=0,a=t;o<a.length;o++){var s=a[o];r.trigger("eventElRemove",s.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,u=t;l<u.length;l++){s=u[l];r.publiclyTrigger("eventDestroy",[{event:new dt(r,s.eventRange.def,s.eventRange.instance),isMirror:n,el:s.el,view:i}])}}function wt(e,t,n,r){var i=mt(e.defs,t),o={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];o.defs[a]=_t(s,i[a],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in e.instances){var u=e.instances[l];s=o.defs[u.defId];o.instances[l]=St(u,s,i[u.defId],n,r)}return o}function _t(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var a=be({},e,o,{ui:be({},e.ui,o.ui)});n.extendedProps&&(a.extendedProps=be({},a.extendedProps,n.extendedProps));for(var s=0,l=r;s<l.length;s++){(0,l[s])(a,n,i)}return!a.hasEnd&&i.opt("forceEventDuration")&&(a.hasEnd=!0),a}function St(e,t,n,r,i){var o=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=be({},e);return a&&(l.range=pe(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:j(l.range.start),end:j(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function Et(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var a=Ce(function(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=Ae(e,i)),r&&(e=Ae(e,r)),e}(i,t,o),t.sourceId,o);return r&&(a=Ie(a,r,o)),Oe(Tt(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Ie(t,n,r));return Oe(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return Oe(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?Ie(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return function(e,n,r){var i=e.defs,t=Ee(e.instances,function(e){var t=i[e.defId];return t.allDay||t.recurringDef?e:be({},e,{range:{start:r.createMarker(n.toDate(e.range.start,e.forcedStartTzo)),end:r.createMarker(n.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:e.forcedEndTzo})});return{defs:i,instances:t}}(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return function(e,t,n,r,i){var o=Re(e,t),a=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;return o=wt(o,a,n,i),Oe(e,o)}(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":return Dt(e,t.instances);case"REMOVE_EVENT_DEF":return Ne(e,function(e){return e.defId!==t.defId});case"REMOVE_EVENT_SOURCE":return Tt(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ne(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function Tt(e,t){return Ne(e,function(e){return e.sourceId!==t})}function Dt(e,t){return{defs:e.defs,instances:Se(e.instances,function(e){return!t[e.instanceId]})}}function xt(e,t){return Ct({eventDrag:e},t)}function Ct(e,t){var n=t.view,r=be({businessHours:n?n.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||kt)(r,t)}function kt(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,a=o.defs,s=o.instances,l=mt(a,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(l=Ee(l,r));var u=Dt(e.eventStore,i.affectedEvents.instances),c=u.defs,d=u.instances,h=mt(c,e.eventUiBases);for(var f in s){var p=s[f],g=p.range,m=l[p.defId],v=a[p.defId];if(!It(m.constraints,g,u,e.businessHours,t))return!1;var y=t.opt("eventOverlap");for(var b in"function"!=typeof y&&(y=null),d){var w=d[b];if(je(g,w.range)){if(!1===h[w.defId].overlap&&i.isEvent)return!1;if(!1===m.overlap)return!1;if(y&&!y(new dt(t,c[w.defId],w),new dt(t,v,p)))return!1}}for(var _=t.state.eventStore,S=0,E=m.allows;S<E.length;S++){var T=E[S],D=be({},n,{range:p.range,allDay:v.allDay}),x=_.defs[v.defId],C=_.instances[f],k=void 0;if(k=x?new dt(t,x,C):new dt(t,v),!T(t.buildDateSpanApi(D),k))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var i=e.eventStore,o=i.defs,a=i.instances,s=e.dateSelection,l=s.range,u=t.selectionConfig;r&&(u=r(u));if(!It(u.constraints,l,i,e.businessHours,t))return!1;var c=t.opt("selectOverlap");"function"!=typeof c&&(c=null);for(var d in a){var h=a[d];if(je(l,h.range)){if(!1===u.overlap)return!1;if(c&&!c(new dt(t,o[h.defId],h)))return!1}}for(var f=0,p=u.allows;f<p.length;f++){var g=p[f],m=be({},n,s);if(!g(t.buildDateSpanApi(m),null))return!1}return!0}(e,t,n,r))}function It(e,t,n,r,i){for(var o=0,a=e;o<a.length;o++){if(!Mt(Rt(a[o],t,n,r,i),t))return!1}return!0}function Rt(t,e,n,r,i){return"businessHours"===t?At(Ie(r,e,i)):"string"==typeof t?At(Ne(n,function(e){return e.groupId===t})):"object"==typeof t&&t?At(Ie(t,e,i)):[]}function At(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Mt(e,t){for(var n=0,r=e;n<r.length;n++){if(ze(r[n],t))return!0}return!1}function Ot(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function Nt(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function Pt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Lt={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Pt,classNames:Pt,color:String,backgroundColor:String,borderColor:String,textColor:String};function Ht(e,t,n){var r=fe(e,Lt,{},n),i=function(e,t){return Array.isArray(e)?Ce(e,"",t,!0):"object"==typeof e&&e?Ce([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function Ft(e,t,n,r){var i={},o={};for(var a in Lt){var s=e+se(a);i[a]=t[s],o[s]=!0}if("event"===e&&(i.editable=t.editable),r)for(var a in t)o[a]||(r[a]=t[a]);return Ht(i,n)}var jt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function zt(e){return e.reduce(Wt,jt)}function Wt(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Ut={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Yt={start:null,date:null,end:null,allDay:null},Bt=0;function Vt(e,t,n,r){var i=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),o={},a=function(e,t,n,r,i){for(var o=0;o<r.length;o++){var a={},s=r[o].parse(e,a,n);if(s){var l=a.allDay;return delete a.allDay,null==l&&null==(l=t)&&null==(l=s.allDayGuess)&&(l=!1),be(i,a),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:o}}}return null}(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(a)return(s=qt(o,t,a.allDay,Boolean(a.duration),n)).recurringDef={typeId:a.typeId,typeData:a.typeData,duration:a.duration},{def:s,instance:null};var s,l={},u=function(e,t,n,r,i){var o,a,s=function(e,t){var n=fe(e,Yt,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}(e,r),l=s.allDay,u=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(s.start))u=o.marker;else if(!i)return null;null!=s.end&&(a=n.dateEnv.createMarkerMeta(s.end));null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified));l&&u&&(u=j(u));a&&(d=a.marker,l&&(d=j(d)),u&&d<=u&&(d=null));d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(u,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:l,hasEnd:c,range:{start:u,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(e,i,n,l,r);return u?{def:s=qt(l,t,u.allDay,u.hasEnd,n),instance:$t(s.defId,u.range,u.forcedStartTzo,u.forcedEndTzo)}:null}function qt(e,t,n,r,i){var o={},a=function(e,t,n){var r={},i=fe(e,Ut,{},r),o=Ht(r,t,n);return i.publicId=i.id,delete i.id,i.ui=o,i}(e,i,o);a.defId=String(Bt++),a.sourceId=t,a.allDay=n,a.hasEnd=r;for(var s=0,l=i.pluginSystem.hooks.eventDefParsers;s<l.length;s++){var u={};(0,l[s])(a,o,u),o=u}return a.extendedProps=be(o,a.extendedProps||{}),Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function $t(e,t,n,r){return{instanceId:String(Bt++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var Gt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function Zt(e,t){return Ce(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[];return t=t.map(function(e){return be({},Gt,e)})}(e),"",t)}function Qt(e,n,t){void 0===t&&(t=[]);var r,i,o=[];function a(){if(i){for(var e=0,t=o;e<t.length;e++){t[e].unrender()}n&&n.apply(r,i),i=null}}function s(){i&&Ue(i,arguments)||(a(),r=this,i=arguments,e.apply(this,arguments))}s.dependents=o,s.unrender=a;for(var l=0,u=t;l<u.length;l++){u[l].dependents.push(s)}return s}var Xt={defs:{},instances:{}},Jt=(Kt.prototype.splitProps=function(e){var n=this,t=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=Ee(t,function(e,t){return n.eventUiBuilders[t]||Ye(en)}),t){var d=t[c],h=a[c]||Xt,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,o[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},Kt.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++)t[r[n]]=e;return t},Kt.prototype._getKeysForEventDefs=function(e){var t=this;return Ee(e.defs,function(e){return t.getKeysForEventDef(e)})},Kt.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var a=0,s=t[o];a<s.length;a++)i[h=s[a]]||(i[h]={defs:{},instances:{}}),i[h].defs[o]=n[o];for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var h;i[h=d[c]]&&(i[h].instances[l]=u)}return i},Kt.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var a=o[i];n[a]||(n[a]={}),n[a][r]=e[r]}return n},Kt.prototype._splitInteraction=function(t){var n={};if(t){var r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),e=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,e),o=function(e){n[e]||(n[e]={affectedEvents:r[e]||Xt,mutatedEvents:i[e]||Xt,isEvent:t.isEvent,origSeg:t.origSeg})};for(var a in r)o(a);for(var a in i)o(a)}return n},Kt);function Kt(){this.getKeysForEventDefs=Ye(this._getKeysForEventDefs),this.splitDateSelection=Ye(this._splitDateSpan),this.splitEventStore=Ye(this._splitEventStore),this.splitIndividualUi=Ye(this._splitIndividualUi),this.splitEventDrag=Ye(this._splitInteraction),this.splitEventResize=Ye(this._splitInteraction),this.eventUiBuilders={}}function en(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":zt(r)};return n&&be(i,n),i}function tn(e,t,n,r,i){var o,a,s,l;return n instanceof Date?o=n:(o=n.date,a=n.type,s=n.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:a||"day"},"string"==typeof r&&(i=r,r=null),r=r?" "+function(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+Ot(r)+'"')}return t.join(" ")}(r):"",i=i||"",!s&&e.navLinks?"<a"+r+' data-goto="'+Ot(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function nn(e,t,n,r){var i,o,a=n.calendar,s=n.options,l=n.theme,u=n.dateEnv,c=[];return We(t.activeRange,e)?(c.push("fc-"+M[e.getUTCDay()]),s.monthMode&&u.getMonth(e)!==u.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=O(i=j(a.getNow()),1),e<i?c.push("fc-past"):o<=e?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}function rn(e,t,n){function r(){o||(o=!0,t.apply(this,arguments))}function i(){o||(o=!0,n&&n.apply(this,arguments))}var o=!1,a=e(r,i);a&&"function"==typeof a.then&&a.then(r,i)}var on=(an.mixInto=function(e){this.mixIntoObj(e.prototype)},an.mixIntoObj=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t[e]||(t[e]=n.prototype[e])})},an.mixOver=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t.prototype[e]=n.prototype[e]})},an);function an(){}var sn,ln=(ye(un,sn=on),un.prototype.on=function(e,t){return cn(this._handlers||(this._handlers={}),e,t),this},un.prototype.one=function(e,t){return cn(this._oneHandlers||(this._oneHandlers={}),e,t),this},un.prototype.off=function(e,t){return this._handlers&&dn(this._handlers,e,t),this._oneHandlers&&dn(this._oneHandlers,e,t),this},un.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},un.prototype.triggerWith=function(e,t,n){return this._handlers&&ce(this._handlers[e],t,n),this._oneHandlers&&(ce(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},un.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},un);function un(){return null!==sn&&sn.apply(this,arguments)||this}function cn(e,t,n){(e[t]||(e[t]=[])).push(n)}function dn(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}var hn=(fn.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},fn.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},fn.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},fn.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},fn.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},fn.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},fn.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},fn);function fn(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}var pn=(gn.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},gn.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},gn.prototype.canScrollVertically=function(){return 0<this.getMaxScrollTop()},gn.prototype.canScrollHorizontally=function(){return 0<this.getMaxScrollLeft()},gn.prototype.canScrollUp=function(){return 0<this.getScrollTop()},gn.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},gn.prototype.canScrollLeft=function(){return 0<this.getScrollLeft()},gn.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},gn);function gn(){}var mn,vn=(ye(yn,mn=pn),yn.prototype.getScrollTop=function(){return this.el.scrollTop},yn.prototype.getScrollLeft=function(){return this.el.scrollLeft},yn.prototype.setScrollTop=function(e){this.el.scrollTop=e},yn.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},yn.prototype.getScrollWidth=function(){return this.el.scrollWidth},yn.prototype.getScrollHeight=function(){return this.el.scrollHeight},yn.prototype.getClientHeight=function(){return this.el.clientHeight},yn.prototype.getClientWidth=function(){return this.el.clientWidth},yn);function yn(e){var t=mn.call(this)||this;return t.el=e,t}var bn,wn=(ye(_n,bn=pn),_n.prototype.getScrollTop=function(){return window.pageYOffset},_n.prototype.getScrollLeft=function(){return window.pageXOffset},_n.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},_n.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},_n.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},_n.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},_n.prototype.getClientHeight=function(){return document.documentElement.clientHeight},_n.prototype.getClientWidth=function(){return document.documentElement.clientWidth},_n);function _n(){return null!==bn&&bn.apply(this,arguments)||this}var Sn,En=(ye(Tn,Sn=vn),Tn.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},Tn.prototype.destroy=function(){r(this.el)},Tn.prototype.applyOverflow=function(){p(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},Tn.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),p(this.el,{overflowX:t,overflowY:n})},Tn.prototype.setHeight=function(e){g(this.el,"height",e)},Tn.prototype.getScrollbarWidths=function(){var e=E(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},Tn);function Tn(e,t){var n=Sn.call(this,a("div",{className:"fc-scroller"}))||this;return n.overflowX=e,n.overflowY=t,n.applyOverflow(),n}var Dn=(xn.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},xn.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=be({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},xn.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},xn.prototype.getClass=function(e){return this.classes[e]||""},xn.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},xn.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},xn);function xn(e){this.calendarOptions=e,this.processIconOverride()}Dn.prototype.classes={},Dn.prototype.iconClasses={},Dn.prototype.baseIconClass="",Dn.prototype.iconOverridePrefix="";var Cn=0,kn=(In.prototype.extend=function(e,t){return new In(this.calendar,this.theme,this.dateEnv,e||this.options,t||this.view)},In);function In(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=re(r.eventOrder),this.nextDayThreshold=Z(r.nextDayThreshold)}var Rn=(An.addEqualityFuncs=function(e){this.prototype.equalityFuncs=be({},this.prototype.equalityFuncs,e)},An.prototype.receiveProps=function(e,t){var n=this.context;this.context=t,n||this.firstContext(t);var r=function(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},e,this.equalityFuncs),i=r.anyChanges,o=r.comboProps;this.props=o,i&&(n&&this.beforeUpdate(),this.render(o,t),n&&this.afterUpdate())},An.prototype.render=function(e,t){},An.prototype.firstContext=function(e){},An.prototype.beforeUpdate=function(){},An.prototype.afterUpdate=function(){},An.prototype.destroy=function(){},An);function An(){this.uid=String(Cn++)}Rn.prototype.equalityFuncs={};var Mn,On=(ye(Nn,Mn=Rn),Nn.prototype.destroy=function(){Mn.prototype.destroy.call(this),r(this.el)},Nn.prototype.buildPositionCaches=function(){},Nn.prototype.queryHit=function(e,t,n,r){return null},Nn.prototype.isInteractionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!ze(n.validRange,r[i].range))return!1;return xt(e,t)},Nn.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile;return!(n&&!ze(n.validRange,e.range))&&function(e,t){return Ct({dateSelection:e},t)}(e,t)},Nn.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!c(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},Nn.prototype.isValidDateDownEl=function(e){var t=c(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!c(e,".fc-more")&&!c(e,"a[data-goto]")&&!this.isInPopover(e)},Nn.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},Nn.prototype.isInPopover=function(e){return Boolean(c(e,".fc-popover"))},Nn);function Nn(e){var t=Mn.call(this)||this;return t.el=e,t}On.prototype.fgSegSelector=".fc-event-container > *",On.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var Pn=0;function Ln(e){return{id:String(Pn++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var Hn=(Fn.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=function(e,t){return{reducers:e.reducers.concat(t.reducers),eventDefParsers:e.eventDefParsers.concat(t.eventDefParsers),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:be({},e.views,t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),eventResizeJoinTransforms:e.eventResizeJoinTransforms.concat(t.eventResizeJoinTransforms),viewContainerModifiers:e.viewContainerModifiers.concat(t.viewContainerModifiers),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:be({},e.themeClasses,t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,defaultView:e.defaultView||t.defaultView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:be({},e.optionChangeHandlers,t.optionChangeHandlers)}}(this.hooks,e)}},Fn);function Fn(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}var jn=Ln({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),zn=Ln({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv;rn(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),function(e){t({rawEvents:e})},n)}}]});function Wn(e,t,n,r,i){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Un(t)}(t,n):o=Un(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(200<=a.status&&a.status<400)try{var e=JSON.parse(a.responseText);r(e,a)}catch(e){i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}function Un(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Yn=Ln({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,n,r){var t=e.eventSource.meta,i=function(e,t,n){var r,i,o,a,s=n.dateEnv,l={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(i=e.endParam)&&(i=n.opt("endParam"));null==(o=e.timeZoneParam)&&(o=n.opt("timeZoneParam"));a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};be(l,a),l[r]=s.formatIso(t.start),l[i]=s.formatIso(t.end),"local"!==s.timeZone&&(l[o]=s.timeZone);return l}(t,e.range,e.calendar);Wn(t.method,t.url,i,function(e,t){n({rawEvents:e,xhr:t})},function(e,t){r({message:e,xhr:t})})}}]});var Bn=Ln({recurringTypes:[{parse:function(e,t,n){var r=n.createMarker.bind(n),i=fe(e,{daysOfWeek:null,startTime:Z,endTime:Z,startRecur:r,endRecur:r},{},t),o=!1;for(var a in i)if(null!=i[a]){o=!0;break}if(o){var s=null;return"duration"in t&&(s=Z(t.duration),delete t.duration),!s&&i.startTime&&i.endTime&&(s=function(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}(i.endTime,i.startTime)),{allDayGuess:Boolean(!i.startTime&&!i.endTime),duration:s,typeData:i}}return null},expand:function(e,t,n){var r=He(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?Te(e):null,o=j(n.start),a=n.end,s=[];for(;o<a;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,s.push(l)),o=O(o,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}]});var Vn=Ln({optionChangeHandlers:{events:function(e,t,n){qn([e],t,n)},eventSources:qn,plugins:function(e,t){t.addPluginInputs(e)}}});function qn(e,t,n){for(var r=De(t.state.eventSources),i=[],o=0,a=e;o<a.length;o++){for(var s=a[o],l=!1,u=0;u<r.length;u++)if(n(r[u]._raw,s)){r.splice(u,1),l=!0;break}l||i.push(s)}for(var c=0,d=r;c<d.length;c++){var h=d[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:h.sourceId})}for(var f=0,p=i;f<p.length;f++){var g=p[f];t.addEventSource(g)}}var $n={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},Gn={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},Zn=["header","footer","buttonText","buttonIcons"];var Qn=[jn,zn,Yn,Bn,Vn];var Xn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function Jn(e){for(var t=0<e.length?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(De(r),e),o={en:Xn},a=0,s=i;a<s.length;a++){var l=s[a];o[l.code]=l}return{map:o,defaultCode:t}}function Kn(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;0<i;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(n,t)||Xn;return er(e,n,r)}(e,t):er(e.code,[e.code],e)}function er(e,t,n){var r=_e([Xn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var tr=(nr.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){var r=n?this.dynamicOverrides:this.overrides;be(r,e);for(var i=0,o=t;i<o.length;i++)delete r[o[i]];this.compute()}},nr.prototype.compute=function(){var e=de(this.dynamicOverrides.locales,this.overrides.locales,$n.locales),t=de(this.dynamicOverrides.locale,this.overrides.locale,$n.locale),n=Jn(e),r=Kn(t||n.defaultCode,n.map).options,i="rtl"===de(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?Gn:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=function(e){return _e(e,Zn)}([$n,i,r,this.overrides,this.dynamicOverrides])},nr);function nr(e){this.overrides=be({},e),this.dynamicOverrides={},this.compute()}var rr={};var ir,or=(ar.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},ar.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},ar.prototype.getMarkerDay=function(e){return e.getUTCDate()},ar.prototype.arrayToMarker=function(e){return B(e)},ar.prototype.markerToArray=function(e){return Y(e)},ar);function ar(){}ir=or,rr["gregory"]=ir;var sr=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function lr(e){var t=sr.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(V(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var ur=(cr.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},cr.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):B(W(new Date))},cr.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=B(e)),null!==t&&V(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},cr.prototype.parse=function(e){var t=lr(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},cr.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},cr.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},cr.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},cr.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},cr.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},cr.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},cr.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return q(e)===q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},cr.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return q(e)===q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},cr.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=H(e,t))?{unit:"week",value:n}:null!==(n=F(e,t))?{unit:"day",value:n}:ue(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:ue(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:ue(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},cr.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/function(e){return K(e)/365}(n):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return K(e)/30}(n):n.days&&null!==(r=F(e,t))?r/K(n):(t.valueOf()-e.valueOf())/ee(n)},cr.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?j(e):"hour"===t?function(e){return B([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return B([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return B([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):void 0},cr.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},cr.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},cr.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},cr.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=z(e,r,t,n);if(i<1)return z(e,r-1,t,n);var o=z(e,r+1,t,n);return 1<=o?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},cr.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},cr.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=N(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},cr.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),10<r.length&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",at(t,!0)))),r}(e,n,t.omitTime)},cr.prototype.timestampToMarker=function(e){return"local"===this.timeZone?B(W(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?B(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},cr.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-U(Y(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Y(e)):null},cr.prototype.toDate=function(e,t){return"local"===this.timeZone?U(Y(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Y(e))*60):new Date(e.valueOf()-(t||0))},cr);function cr(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new rr[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}var dr={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},hr=0;function fr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function pr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;0<=r;r--){var i=n[r].parseMeta(e);if(i){var o=gr("object"==typeof e?e:{},i,r,t);return o._raw=e,o}}return null}function gr(e,t,n,r){var i={},o=fe(e,dr,{},i),a={},s=Ht(i,r,a);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(hr++),o.sourceDefId=n,o.meta=t,o.ui=s,o.extendedProps=a,o}function mr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var i={},o=0,a=t;o<a.length;o++){var s=a[o];i[s.sourceId]=s}n&&(i=yr(i,n,r));return be({},e,i)}(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return function(e,t){return Se(e,function(e){return e.sourceId!==t})}(e,t.sourceId);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?yr(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return br(e,t.sourceIds?Te(t.sourceIds):function(e,t){return Se(e,function(e){return fr(e,t)})}(e,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var i,o=e[t];if(o&&n===o.latestFetchId)return be({},e,((i={})[t]=be({},o,{isFetching:!1,fetchRange:r}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}var vr=0;function yr(e,t,n){return br(e,Se(e,function(e){return function(e,t,n){return fr(e,n)?!n.opt("lazyFetching")||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n)}),t,n)}function br(e,t,n,r){var i={};for(var o in e){var a=e[o];t[o]?i[o]=wr(a,n,r):i[o]=a}return i}function wr(o,a,s){var e=s.pluginSystem.hooks.eventSourceDefs[o.sourceDefId],l=String(vr++);return e.fetch({eventSource:o,calendar:s,range:a},function(e){var t,n,r=e.rawEvents,i=s.opt("eventSourceSuccess");o.success&&(n=o.success(r,e.xhr)),i&&(t=i(r,e.xhr)),r=n||t||r,s.dispatch({type:"RECEIVE_EVENTS",sourceId:o.sourceId,fetchId:l,fetchRange:a,rawEvents:r})},function(e){var t=s.opt("eventSourceFailure");console.warn(e.message,e),o.failure&&o.failure(e),t&&t(e),s.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:o.sourceId,fetchId:l,fetchRange:a,error:e})}),be({},o,{isFetching:!0,latestFetchId:l})}var _r=(Sr.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},Sr.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},Sr.prototype.build=function(e,t,n){var r,i,o,a,s,l,u,c;return void 0===n&&(n=!1),r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),a=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=He(u,a.range)),i=Z(this.options.minTime),o=Z(this.options.maxTime),u=He(u=this.adjustActiveRange(u,i,o),r),c=je(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:u,renderRange:l,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}},Sr.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},Sr.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,i=this.dateEnv,o=null,a=null,s=null;return r.duration?(o=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,o,a)):(n=this.options.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=i.greatestWholeUnit(s.start,s.end).unit:(a=te(o=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:s}},Sr.prototype.getFallbackDuration=function(){return Z({day:1})},Sr.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(K(t)<0&&(i=j(i),i=r.add(i,t)),1<K(n)&&(o=O(o=j(o),-1),o=r.add(o,n))),{start:i,end:o}},Sr.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,a,s,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){a=u.startOf(e,c),s=u.add(a,n),l={start:a,end:s}}return c||(i=this.options.dateIncrement,c=i&&ee(o=Z(i))<ee(n)?te(o,!X(i)).unit:r),K(n)<=1&&this.isHiddenDay(a)&&(a=j(a=this.skipHiddenDays(a,t))),d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},Sr.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,a=0,s=e;for(o&&(s=i.startOf(s,o)),s=j(s),r=s=this.skipHiddenDays(s,t);r=O(r,1),this.isHiddenDay(r)||a++,a<n;);return{start:s,end:r}},Sr.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},Sr.prototype.buildRenderRange=function(e,t,n){return e},Sr.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?Z(n):(t=this.options.dateAlignment)?Z(1,t):e||Z({days:1})},Sr.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.options[e];return"function"==typeof r&&(r=r.apply(null,t)),r=(r=r&&function(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(r,this.dateEnv))&&ge(r)},Sr.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},Sr.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t=t&&this.skipHiddenDays(t),n=n&&this.skipHiddenDays(n,-1,!0),null==t||null==n||t<n?{start:t,end:n}:null},Sr.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},Sr.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=O(e,t);return e},Sr);function Sr(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}function Er(e,t,n){for(var r=function(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}(e.viewType,t),i=function(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&We(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var a=i.dateProfileGenerators[r];if(!a)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=a.build(t.dateMarker||n,void 0,!0)}return!o||!o.isValid||e&&function(e,t){return Fe(e.validRange,t.validRange)&&Fe(e.activeRange,t.activeRange)&&Fe(e.renderRange,t.renderRange)&&J(e.minTime,t.minTime)&&J(e.maxTime,t.maxTime)}(e,o)?e:o}(e.dateProfile,t,e.currentDate,r,n),o=mr(e.eventSources,t,i,n),a=be({},e,{viewType:r,dateProfile:i,currentDate:function(e,t,n){switch(t.type){case"PREV":case"NEXT":return We(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!We(n.activeRange,r)?n.currentRange.start:r;default:return e}}(e.currentDate,t,i),eventSources:o,eventStore:Et(e.eventStore,t,o,i,n),dateSelection:function(e,t){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}(e.dateSelection,t),eventSelection:function(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}(e.eventSelection,t),eventDrag:function(e,t){switch(t.type){case"SET_EVENT_DRAG":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}(e.eventDrag,t),eventResize:function(e,t){switch(t.type){case"SET_EVENT_RESIZE":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}(e.eventResize,t),eventSourceLoadingLevel:Tr(o),loadingLevel:Tr(o)}),s=0,l=n.pluginSystem.hooks.reducers;s<l.length;s++){a=(0,l[s])(a,t,n)}return a}function Tr(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}var Dr={start:null,end:null,allDay:Boolean};function xr(e,t,n){var r=function(e,t){var n={},r=fe(e,Dr,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,a=r.allDay;null==a&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=a,n}(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Cr(e,t,n,r){if(t[e])return t[e];var i=function(e,t,n,r){function i(e){return o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null}var o=n[e],a=r[e],s=i("class"),l=i("superType");!l&&s&&(l=kr(s,r)||kr(s,n));var u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=Cr(l,t,n,r)}!s&&u&&(s=u.class);return s?{type:e,class:s,defaults:be({},u?u.defaults:{},o?o.options:{}),overrides:be({},u?u.overrides:{},a?a.options:{})}:null}(e,t,n,r);return i&&(t[e]=i),i}function kr(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function Ir(e){return Ee(e,Ar)}var Rr={type:String,class:null};function Ar(e){"function"==typeof e&&(e={class:e});var t={},n=fe(e,Rr,{},t);return{superType:n.type,class:n.class,options:t}}function Mr(e,t){var n=Ir(e),r=Ir(t.overrides.views);return Ee(function(e,t){var n,r={};for(n in e)Cr(n,r,e,t);for(n in t)Cr(n,r,e,t);return r}(n,r),function(e){return function(r,e,t){var n=r.overrides.duration||r.defaults.duration||t.dynamicOverrides.duration||t.overrides.duration,i=null,o="",a="",s={};if(n&&(i=Z(n))){var l=te(i,!X(n));o=l.unit,1===l.value&&(s=e[a=o]?e[o].options:{})}function u(e){var t=e.buttonText||{},n=r.defaults.buttonTextKey;return null!=n&&null!=t[n]?t[n]:null!=t[r.type]?t[r.type]:null!=t[a]?t[a]:void 0}return{type:r.type,class:r.class,duration:i,durationUnit:o,singleUnit:a,options:be({},$n,r.defaults,t.dirDefaults,t.localeDefaults,t.overrides,s,r.overrides,t.dynamicOverrides),buttonTextOverride:u(t.dynamicOverrides)||u(t.overrides)||r.overrides.buttonText,buttonTextDefault:u(t.localeDefaults)||u(t.dirDefaults)||r.defaults.buttonText||u($n)||r.type}}(e,r,t)})}var Or,Nr=(ye(Pr,Or=Rn),Pr.prototype.destroy=function(){Or.prototype.destroy.call(this),this._renderLayout.unrender(),r(this.el)},Pr.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},Pr.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],_(t,this.renderSection("left",e.left)),_(t,this.renderSection("center",e.center)),_(t,this.renderSection("right",e.right))},Pr.prototype.unrenderLayout=function(){this.el.innerHTML=""},Pr.prototype.renderSection=function(e,t){var f=this,n=this.context,p=n.theme,g=n.calendar,r=g.optionsManager,m=g.viewSpecs,i=a("div",{className:"fc-"+e}),v=r.computed.customButtons||{},y=r.overrides.buttonText||{},b=r.computed.buttonText||{};return t&&t.split(" ").forEach(function(e,t){var n,d=[],h=!0;if(e.split(",").forEach(function(e,t){var n,r,i,o,a,s,l,u,c;"title"===e?(d.push(w("<h2> </h2>")),h=!1):((n=v[e])?(i=function(e){n.click&&n.click.call(u,e)},(o=p.getCustomButtonIconClass(n))||(o=p.getIconClass(e))||(a=n.text)):(r=m[e])?(f.viewsWithButtons.push(e),i=function(){g.changeView(e)},(a=r.buttonTextOverride)||(o=p.getIconClass(e))||(a=r.buttonTextDefault)):g[e]&&(i=function(){g[e]()},(a=y[e])||(o=p.getIconClass(e))||(a=b[e])),i&&(l=["fc-"+e+"-button",p.getClass("button")],a?(s=Ot(a),c=""):o&&(s="<span class='"+o+"'></span>",c=' aria-label="'+e+'"'),(u=w('<button type="button" class="'+l.join(" ")+'"'+c+">"+s+"</button>")).addEventListener("click",i),d.push(u)))}),1<d.length){n=document.createElement("div");var r=p.getClass("buttonGroup");h&&r&&n.classList.add(r),_(n,d),i.appendChild(n)}else _(i,d)}),i},Pr.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},Pr.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},Pr.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},Pr.prototype.updateTitle=function(t){h(this.el,"h2").forEach(function(e){e.innerText=t})},Pr.prototype.updateActiveButton=function(t){var n=this.context.theme.getClass("buttonActive");h(this.el,"button").forEach(function(e){t&&e.classList.contains("fc-"+t+"-button")?e.classList.add(n):e.classList.remove(n)})},Pr.prototype.toggleButtonEnabled=function(e,t){h(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},Pr);function Pr(e){var t=Or.call(this)||this;return t._renderLayout=Qt(t.renderLayout,t.unrenderLayout),t._updateTitle=Qt(t.updateTitle,null,[t._renderLayout]),t._updateActiveButton=Qt(t.updateActiveButton,null,[t._renderLayout]),t._updateToday=Qt(t.updateToday,null,[t._renderLayout]),t._updatePrev=Qt(t.updatePrev,null,[t._renderLayout]),t._updateNext=Qt(t.updateNext,null,[t._renderLayout]),t.el=a("div",{className:"fc-toolbar "+e}),t}var Lr,Hr=(ye(Fr,Lr=Rn),Fr.prototype.render=function(e,t){this.freezeHeight();var n=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},Fr.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),Lr.prototype.destroy.call(this)},Fr.prototype._renderSkeleton=function(e){this.updateElClassNames(e),v(this.el,this.contentEl=a("div",{className:"fc-view-container"}));for(var t=e.calendar,n=0,r=t.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++)(0,r[n])(this.contentEl,t)},Fr.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),r(this.contentEl),this.removeElClassNames()},Fr.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){var r=n[t];e.remove(r)}this.elClassNames=[]},Fr.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var a=o[i];r.add(a)}},Fr.prototype._renderToolbars=function(e,t,n,r){var i=this.context,o=this.header,a=this.footer,s=i.options,l=i.calendar,u=s.header,c=s.footer,d=this.props.dateProfileGenerator,h=l.getNow(),f=d.build(h),p=d.buildPrev(t,n),g=d.buildNext(t,n),m={title:r,activeButton:e.type,isTodayEnabled:f.isValid&&!We(t.currentRange,h),isPrevEnabled:p.isValid,isNextEnabled:g.isValid};u?(o||(o=this.header=new Nr("fc-header-toolbar"),v(this.el,o.el)),o.receiveProps(be({layout:u},m),i)):o&&(o.destroy(),o=this.header=null),c?(a||(a=this.footer=new Nr("fc-footer-toolbar"),_(this.el,a.el)),a.receiveProps(be({layout:c},m),i)):a&&(a.destroy(),a=this.footer=null)},Fr.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},Fr.prototype.renderView=function(e,t){var n=this.view,r=this.context,i=r.calendar,o=r.options,a=e.viewSpec,s=e.dateProfileGenerator;n&&n.viewSpec===a||(n&&n.destroy(),n=this.view=new a.class(a,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(var l={dateProfileGenerator:s,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(a.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},u=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);u<c.length;u++){var d=c[u];be(l,d.transform(l,a,e,o))}n.receiveProps(l,this.buildComponentContext(this.context,a,n))},Fr.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;t&&(!e&&null!=this.isHeightAuto||this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},Fr.prototype.computeHeightVars=function(){var e=this.context.calendar,t=e.opt("height"),n=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===n,"number"==typeof n)this.viewHeight=n;else if("function"==typeof n)this.viewHeight=n();else if("number"==typeof t)this.viewHeight=t-this.queryToolbarsHeight();else if("function"==typeof t)this.viewHeight=t()-this.queryToolbarsHeight();else if("parent"===t){var r=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},Fr.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=x(this.header.el)),this.footer&&(e+=x(this.footer.el)),e},Fr.prototype.freezeHeight=function(){p(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},Fr.prototype.thawHeight=function(){p(this.el,{height:"",overflow:""})},Fr);function Fr(e){var t=Lr.call(this)||this;return t.elClassNames=[],t.renderSkeleton=Qt(t._renderSkeleton,t._unrenderSkeleton),t.renderToolbars=Qt(t._renderToolbars,t._unrenderToolbars,[t.renderSkeleton]),t.buildComponentContext=Ye(zr),t.buildViewPropTransformers=Ye(Wr),t.el=e,t.computeTitle=Ye(jr),t.parseBusinessHours=Ye(function(e){return Zt(e,t.context.calendar)}),t}function jr(e,t){var n;return n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(n.start,n.end,ot(t.titleFormat||function(e){var t=e.currentRangeUnit;{if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=F(e.currentRange.start,e.currentRange.end);return null!==n&&1<n?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function zr(e,t,n){return e.extend(t.options,n)}function Wr(e){return e.map(function(e){return new e})}var Ur=(Yr.prototype.destroy=function(){},Yr);function Yr(e){this.component=e.component}var Br,Vr={},qr=(ye($r,Br=Ur),$r);function $r(e){var u=Br.call(this,e)||this;u.handleSegClick=function(e,t){var n=u.component,r=n.context,i=r.calendar,o=r.view,a=gt(t);if(a&&n.isValidSegDownEl(e.target)){var s=c(e.target,".fc-has-url"),l=s?s.querySelector("a[href]").href:"";i.publiclyTrigger("eventClick",[{el:t,event:new dt(n.context.calendar,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:o}]),l&&!e.defaultPrevented&&(window.location.href=l)}};var t=e.component;return u.destroy=R(t.el,"click",t.fgSegSelector+","+t.bgSegSelector,u.handleSegClick),u}var Gr,Zr=(ye(Qr,Gr=Ur),Qr.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},Qr.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=i.calendar,a=i.view,s=gt(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:new dt(o,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:a}])},Qr);function Qr(e){var n=Gr.call(this,e)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){gt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var t=e.component;return n.removeHoverListeners=function(e,t,r,i){var o;return R(e,"mouseover",t,function(e,t){if(t!==o){r(e,o=t);var n=function(e){o=null,i(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}})}(t.el,t.fgSegSelector+","+t.bgSegSelector,n.handleSegEnter,n.handleSegLeave),t.context.calendar.on("eventElRemove",n.handleEventElRemove),n}var Xr,Jr=(ye(Kr,Xr=Dn),Kr);function Kr(){return null!==Xr&&Xr.apply(this,arguments)||this}Jr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Jr.prototype.baseIconClass="fc-icon",Jr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Jr.prototype.iconOverrideOption="buttonIcons",Jr.prototype.iconOverrideCustomButtonOption="icon",Jr.prototype.iconOverridePrefix="fc-icon-";var ei=(ti.prototype.addPluginInputs=function(e){for(var t=0,n=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if("string"==typeof i){var o="FullCalendar"+se(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return Qn.concat(t)}(e);t<n.length;t++){var r=n[t];this.pluginSystem.add(r)}},Object.defineProperty(ti.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),ti.prototype.render=function(){this.component?this.requestRerender():(this.component=new Hr(this.el),this.renderableEventStore={defs:{},instances:{}},this.bindHandlers(),this.executeRender())},ti.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++)t[e].destroy();this.publiclyTrigger("_destroyed")}},ti.prototype.bindHandlers=function(){var s=this;this.removeNavLinkListener=R(this.el,"click","a[data-goto]",function(e,t){var n=t.getAttribute("data-goto");n=n?JSON.parse(n):{};var r=s.dateEnv,i=r.createMarker(n.date),o=n.type,a=s.viewOpt("navLink"+se(o)+"Click");"function"==typeof a?a(r.toDate(i),e):("string"==typeof a&&(o=a),s.zoomTo(i,o))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=he(this.windowResize.bind(this),this.opt("windowResizeDelay")))},ti.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},ti.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var a=pr(o[i],this);a&&r.push(a)}this.batchRendering(function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})})},ti.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},ti.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},ti.prototype.reduce=function(e,t,n){return Er(e,t,n)},ti.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},ti.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},ti.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},ti.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},ti.prototype.renderComponent=function(){var e=this.state,t=this.component,n=e.viewType,r=this.viewSpecs[n];if(!r)throw new Error('View type "'+n+'" is not valid');var i=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(r.options),a=this.buildEventUiBySource(e.eventSources),s=this.eventUiBases=this.buildEventUiBases(i.defs,o,a);t.receiveProps(be({},e,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:e.dateProfile,eventStore:i,eventUiBases:s,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:t.view,el:t.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:t.view,el:t.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},ti.prototype.setOption=function(e,t){var n;this.mutateOptions(((n={})[e]=t,n),[],!0)},ti.prototype.getOption=function(e){return this.optionsManager.computed[e]},ti.prototype.opt=function(e){return this.optionsManager.computed[e]},ti.prototype.viewOpt=function(e){return this.viewOpts()[e]},ti.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},ti.prototype.mutateOptions=function(e,t,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,a={},s={},l=this.dateEnv,u=!1,c=!1,d=Boolean(t.length);for(var h in e)o[h]?s[h]=e[h]:a[h]=e[h];for(var f in a)/^(height|contentHeight|aspectRatio)$/.test(f)?c=!0:/^(defaultDate|defaultView)$/.test(f)||(d=!0,"timeZone"===f&&(u=!0));this.optionsManager.mutate(a,t,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering(function(){if(d?(u&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),r)for(var e in s)o[e](s[e],i,r)})},ti.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=Z(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=Z(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=Mr(n.views,this.optionsManager),this.dateProfileGenerators=Ee(this.viewSpecs,function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)})},ti.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},ti.prototype._buildSelectionConfig=function(e){return Ft("select",e,this)},ti.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=be({},e,{eventEditable:!0})),Ft("event",e,this)},ti.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},ti.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},ti.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},ti.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},ti.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},ti.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},ti.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},ti.prototype.getUnitViewSpec=function(e){var t,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((n=this.viewSpecs[i[t]])&&n.singleUnit===e)return n},ti.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},ti.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},ti.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},ti.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},ti.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},ti.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},ti.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},ti.prototype.incrementDate=function(e){var t=Z(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},ti.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},ti.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),ot(t))},ti.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),ot(n,this.opt("defaultRangeSeparator")),n)},ti.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},ti.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},ti.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},ti.prototype.registerInteractiveComponent=function(e,t){var n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}(e,t),r=[qr,Zr].concat(this.pluginSystem.hooks.componentInteractions).map(function(e){return new e(n)});this.interactionsStore[e.uid]=r,Vr[e.uid]=n},ti.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++)n[t].destroy();delete this.interactionsStore[e.uid],delete Vr[e.uid]},ti.prototype.select=function(e,t){var n=xr(null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},this.dateEnv,Z({days:1}));n&&(this.dispatch({type:"SELECT_DATES",selection:n}),this.triggerDateSelect(n))},ti.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},ti.prototype.triggerDateSelect=function(e,t){var n=be({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},ti.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},ti.prototype.triggerDateClick=function(e,t,n,r){var i=be({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},ti.prototype.buildDatePointApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.datePointTransforms;n<r.length;n++){var i=r[n];be(t,i(e,this))}return be(t,function(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}(e,this.dateEnv)),t},ti.prototype.buildDateSpanApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.dateSpanTransforms;n<r.length;n++){var i=r[n];be(t,i(e,this))}return be(t,function(e,t){return{start:t.toDate(e.range.start),end:t.toDate(e.range.end),startStr:t.formatIso(e.range.start,{omitTime:e.allDay}),endStr:t.formatIso(e.range.end,{omitTime:e.allDay}),allDay:e.allDay}}(e,this.dateEnv)),t},ti.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},ti.prototype.getDefaultEventEnd=function(e,t){var n=t;return n=e?(n=j(n),this.dateEnv.add(n,this.defaultAllDayEventDuration)):this.dateEnv.add(n,this.defaultTimedEventDuration)},ti.prototype.addEvent=function(e,t){if(e instanceof dt){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:ke({def:n,instance:r})}),e}var i;if(t instanceof ut)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var a=Vt(e,i,this);return a?(this.dispatch({type:"ADD_EVENTS",eventStore:ke(a)}),new dt(this,a.def,a.def.recurringDef?null:a.instance)):null},ti.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;for(var i in e=String(e),n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new dt(this,o,null);for(var a in r){var s=r[a];if(s.defId===o.defId)return new dt(this,o,s)}}}return null},ti.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],a=t[o.defId];r.push(new dt(this,a,o))}return r},ti.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},ti.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},ti.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new ut(this,e[n]));return t},ti.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var n in e=String(e),t)if(t[n].publicId===e)return new ut(this,t[n]);return null},ti.prototype.addEventSource=function(e){if(e instanceof ut)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=pr(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new ut(this,t)):null},ti.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},ti.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},ti.prototype.scrollToTime=function(e){var t=Z(e);t&&this.component.view.scrollToDuration(t)},ti);function ti(e,t){var n=this;this.buildComponentContext=Ye(ni),this.parseRawLocales=Ye(Jn),this.buildLocale=Ye(Kn),this.buildDateEnv=Ye(ri),this.buildTheme=Ye(ii),this.buildEventUiSingleBase=Ye(this._buildEventUiSingleBase),this.buildSelectionConfig=Ye(this._buildSelectionConfig),this.buildEventUiBySource=Be(ai,xe),this.buildEventUiBases=Ye(si),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ye(oi),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new tr(t||{}),this.pluginSystem=new Hn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}function ni(e,t,n){return new kn(this,e,t,n,null)}function ri(e,t,n,r,i,o,a){return new ur({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:a})}function ii(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Jr)(e)}function oi(e){var t=this.tryRerender.bind(this);return null!=e&&(t=he(t,e)),t}function ai(e){return Ee(e,function(e){return e.ui})}function si(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}ln.mixInto(ei);var li,ui=(ye(ci,li=On),ci.prototype.initialize=function(){},Object.defineProperty(ci.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),ci.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},ci.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},ci.prototype.destroy=function(){li.prototype.destroy.call(this),this.renderDatesMem.unrender()},ci.prototype.updateSize=function(e,t,n){var r=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},ci.prototype.updateBaseSize=function(e,t,n){},ci.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:Z(this.context.options.scrollTime)})},ci.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},ci.prototype.renderDates=function(e){},ci.prototype.unrenderDates=function(){},ci.prototype.renderBusinessHours=function(e){},ci.prototype.unrenderBusinessHours=function(){},ci.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},ci.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},ci.prototype.renderDateSelection=function(e){},ci.prototype.unrenderDateSelection=function(e){},ci.prototype.renderEvents=function(e){},ci.prototype.unrenderEvents=function(){},ci.prototype.sliceEvents=function(e,t){var n=this.props;return ft(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},ci.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},ci.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},ci.prototype.renderEventSelection=function(e){},ci.prototype.unrenderEventSelection=function(e){},ci.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},ci.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},ci.prototype.renderEventDrag=function(e){},ci.prototype.unrenderEventDrag=function(e){},ci.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},ci.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},ci.prototype.renderEventResize=function(e){},ci.prototype.unrenderEventResize=function(e){},ci.prototype.startNowIndicator=function(e,t){var n,r,i,o=this,a=this.context,s=a.calendar,l=a.dateEnv;a.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=s.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),Z(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)},i))},ci.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(N(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},ci.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},ci.prototype.getNowIndicatorUnit=function(e,t){},ci.prototype.renderNowIndicator=function(e){},ci.prototype.unrenderNowIndicator=function(){},ci.prototype.addScroll=function(e,t){t&&(e.isForced=t),be(this.queuedScroll||(this.queuedScroll={}),e)},ci.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},ci.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},ci.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&be(e,this.queryDateScroll()),e},ci.prototype.applyScroll=function(e,t){var n=e.duration,r=e.isForced;null==n||r||(delete e.duration,this.props.dateProfile&&be(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},ci.prototype.computeDateScroll=function(e){return{}},ci.prototype.queryDateScroll=function(){return{}},ci.prototype.applyDateScroll=function(e){},ci.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},ci);function ci(e,t){var n=li.call(this,a("div",{className:"fc-view fc-"+e.type+"-view"}))||this;return n.renderDatesMem=Qt(n.renderDatesWrap,n.unrenderDatesWrap),n.renderBusinessHoursMem=Qt(n.renderBusinessHours,n.unrenderBusinessHours,[n.renderDatesMem]),n.renderDateSelectionMem=Qt(n.renderDateSelectionWrap,n.unrenderDateSelectionWrap,[n.renderDatesMem]),n.renderEventsMem=Qt(n.renderEvents,n.unrenderEvents,[n.renderDatesMem]),n.renderEventSelectionMem=Qt(n.renderEventSelectionWrap,n.unrenderEventSelectionWrap,[n.renderEventsMem]),n.renderEventDragMem=Qt(n.renderEventDragWrap,n.unrenderEventDragWrap,[n.renderDatesMem]),n.renderEventResizeMem=Qt(n.renderEventResizeWrap,n.unrenderEventResizeWrap,[n.renderDatesMem]),n.viewSpec=e,n.type=e.type,t.appendChild(n.el),n.initialize(),n}ln.mixInto(ui),ui.prototype.usesMinMaxTime=!1,ui.prototype.dateProfileGeneratorClass=_r;var di=(hi.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,yt(this.context,this.segs,Boolean(n))},hi.prototype.unrender=function(e,t,n){bt(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},hi.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=ot(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(e=n.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=n.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},hi.prototype.renderSegEls=function(r,e){var t,n="";if(r.length){for(t=0;t<r.length;t++)n+=this.renderSegHtml(r[t],e);s(n).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),r=pt(this.context,r,Boolean(e))}return r},hi.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},hi.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},hi.prototype._getTimeText=function(e,t,n,r,i,o,a){var s=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?s.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:a}):s.format(e,r,{forcedTzo:o}):""},hi.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},hi.prototype.computeDisplayEventTime=function(){return!0},hi.prototype.computeDisplayEventEnd=function(){return!0},hi.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},hi.prototype.sortEventSegs=function(e){var n=this.context.eventOrderSpecs,t=e.map(fi);return t.sort(function(e,t){return ie(e,t,n)}),t.map(function(e){return e._seg})},hi.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},hi.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},hi.prototype.computeSegSizes=function(e){},hi.prototype.assignSegSizes=function(e){},hi.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},hi.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},hi.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},hi.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},hi);function hi(){this.segs=[],this.isSizeDirty=!1}function fi(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return be({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}var pi=(gi.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},gi.prototype.renderSegs=function(e,t,n){var r;this.context=t;var i=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&yt(t,i,!1),this.dirtySizeFlags[e]=!0},gi.prototype.unrender=function(e,t){var n=this.segsByType[e];n&&("bgEvent"===e&&bt(t,n,!1),this.detachSegs(e,n))},gi.prototype.renderSegEls=function(e,r){var t,n=this,i="";if(r.length){for(t=0;t<r.length;t++)i+=this.renderSegHtml(e,r[t]);s(i).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),"bgEvent"===e&&(r=pt(this.context,r,!1)),r=r.filter(function(e){return d(e.el,n.fillSegTag)})}return r},gi.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Nt(n)+'"':"")+"></"+this.fillSegTag+">"},gi.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(r),delete this.containerElsByType[e])},gi.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},gi.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},gi.prototype.computeSegSizes=function(e){},gi.prototype.assignSegSizes=function(e){},gi);function gi(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}function mi(e){this.timeZoneName=e}var vi=(yi.prototype.destroy=function(){},yi.prototype.setMirrorIsVisible=function(e){},yi.prototype.setMirrorNeedsRevert=function(e){},yi.prototype.setAutoScrollEnabled=function(e){},yi);function yi(e){this.emitter=new ln}function bi(e){var t=Kn(e.locale||"en",Jn([]).map);return e=be({timeZone:$n.timeZone,calendarSystem:"gregory"},e,{locale:t}),new ur(e)}var wi={startTime:Z,duration:Z,create:Boolean,sourceId:String},_i={create:!0};function Si(e,t){return!e||10<t?{weekday:"short"}:1<t?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function Ei(e,t,n,r,i,o,a,s){var l,u=o.dateEnv,c=o.theme,d=o.options,h=We(t.activeRange,e),f=["fc-day-header",c.getClass("widgetHeader")];return l="function"==typeof d.columnHeaderHtml?d.columnHeaderHtml(u.toDate(e)):"function"==typeof d.columnHeaderText?Ot(d.columnHeaderText(u.toDate(e))):Ot(u.format(e,i)),n?f=f.concat(nn(e,t,o,!0)):f.push("fc-"+M[e.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(h&&n?' data-date="'+u.formatIso(e,{omitTime:!0})+'"':"")+(1<a?' colspan="'+a+'"':"")+(s?" "+s:"")+">"+(h?tn(d,u,{date:e,forceOff:!n||1===r},l):l)+"</th>"}var Ti,Di=(ye(xi,Ti=Rn),xi.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=ot(t.options.columnHeaderFormat||Si(r,n.length)),a=0,s=n;a<s.length;a++){var l=s[a];i.push(Ei(l,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},xi.prototype.destroy=function(){Ti.prototype.destroy.call(this),this.renderSkeleton.unrender()},xi.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=w('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},xi.prototype._unrenderSkeleton=function(){r(this.el)},xi);function xi(e){var t=Ti.call(this)||this;return t.renderSkeleton=Qt(t._renderSkeleton,t._unrenderSkeleton),t.parentEl=e,t}var Ci=(ki.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(O(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},ki.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(P(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},ki);function ki(e,t){for(var n=e.start,r=e.end,i=[],o=[],a=-1;n<r;)t.isHiddenDay(n)?i.push(a+.5):(a++,i.push(a),o.push(n)),n=O(n,1);this.dates=o,this.indices=i,this.cnt=o.length}var Ii=(Ri.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},Ri.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},Ri.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},Ri.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,a=i;a<=o;){var s=Math.floor(a/t),l=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&l-1===o}),a=l}return r},Ri);function Ri(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}var Ai=(Mi.prototype.sliceProps=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,s,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,s,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,s,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,s,t,n,i].concat(o)),eventSelection:e.eventSelection}},Mi.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:N(e,1)},allDay:!1},{},t].concat(n))},Mi.prototype._sliceBusinessHours=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];return e?this._sliceEventStore.apply(this,[Ie(e,Oi(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},Mi.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(e){var s=ft(e,t,Oi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i,o),fg:this.sliceEventRanges(s.fg,i,o)}}return{bg:[],fg:[]}},Mi.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(!e)return null;var s=ft(e.mutatedEvents,t,Oi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},Mi.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o=function(e,t,n){var r=qt({editable:!1},"",e.allDay,!0,n);return{def:r,ui:vt(r,t),instance:$t(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,n.context.calendar),a=this.sliceRange.apply(this,[e.range].concat(r)),s=0,l=a;s<l.length;s++){var u=l[s];u.component=n,u.eventRange=o}return a},Mi.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];r.push.apply(r,this.sliceEventRange(a,t,n))}return r},Mi.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var a=o[i];a.component=t,a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}return r},Mi);function Mi(){this.sliceBusinessHours=Ye(this._sliceBusinessHours),this.sliceDateSelection=Ye(this._sliceDateSpan),this.sliceEventStore=Ye(this._sliceEventStore),this.sliceEventDrag=Ye(this._sliceInteraction),this.sliceEventResize=Ye(this._sliceInteraction)}function Oi(e,t){var n=e.activeRange;return t?n:{start:N(n.start,e.minTime.milliseconds),end:N(n.end,e.maxTime.milliseconds-864e5)}}e.Calendar=ei,e.Component=Rn,e.ComponentContext=kn,e.DateComponent=On,e.DateEnv=ur,e.DateProfileGenerator=_r,e.DayHeader=Di,e.DaySeries=Ci,e.DayTable=Ii,e.ElementDragging=vi,e.ElementScrollController=vn,e.EmitterMixin=ln,e.EventApi=dt,e.FgEventRenderer=di,e.FillRenderer=pi,e.Interaction=Ur,e.Mixin=on,e.NamedTimeZoneImpl=mi,e.PositionCache=hn,e.ScrollComponent=En,e.ScrollController=pn,e.Slicer=Ai,e.Splitter=Jt,e.Theme=Dn,e.View=ui,e.WindowScrollController=wn,e.addDays=O,e.addDurations=function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},e.addMs=N,e.addWeeks=function(e,t){var n=Y(e);return n[2]+=7*t,B(n)},e.allowContextMenu=function(e){e.removeEventListener("contextmenu",I)},e.allowSelection=function(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",I)},e.appendToElement=_,e.applyAll=ce,e.applyMutationToEventStore=wt,e.applyStyle=p,e.applyStyleProp=g,e.asRoughMinutes=function(e){return ee(e)/6e4},e.asRoughMs=ee,e.asRoughSeconds=function(e){return ee(e)/1e3},e.buildGotoAnchorHtml=tn,e.buildSegCompareObj=fi,e.capitaliseFirstLetter=se,e.combineEventUis=zt,e.compareByFieldSpec=oe,e.compareByFieldSpecs=ie,e.compareNumbers=function(e,t){return e-t},e.compensateScroll=function(e,t){t.left&&p(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&p(e,{borderRightWidth:1,marginRight:t.right-1})},e.computeClippingRect=function(e){return k(e).map(function(e){return T(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){return m(e,t)||t})},e.computeEdges=E,e.computeEventDraggable=function(e,t,n){for(var r=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,a=n.startEditable,s=0,l=o;s<l.length;s++){a=(0,l[s])(a,t,n,i)}return a},e.computeEventEndResizable=function(e,t,n){return n.durationEditable},e.computeEventStartResizable=function(e,t,n){return n.durationEditable&&e.options.eventResizableFromStart},e.computeFallbackHeaderFormat=Si,e.computeHeightAndMargins=x,e.computeInnerRect=T,e.computeRect=D,e.computeVisibleDayRange=ge,e.config={},e.constrainPoint=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},e.createDuration=Z,e.createElement=a,e.createEmptyEventStore=Me,e.createEventInstance=$t,e.createFormatter=ot,e.createPlugin=Ln,e.cssToStr=Nt,e.debounce=he,e.diffDates=me,e.diffDayAndTime=L,e.diffDays=P,e.diffPoints=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.diffWeeks=function(e,t){return P(e,t)/7},e.diffWholeDays=F,e.diffWholeWeeks=H,e.disableCursor=function(){document.body.classList.add("fc-not-allowed")},e.distributeHeight=function(o,e,t){var a=Math.floor(e/o.length),s=Math.floor(e-a*(o.length-1)),l=[],u=[],c=[],d=0;ne(o),o.forEach(function(e,t){var n=t===o.length-1?s:a,r=e.getBoundingClientRect().height,i=r+C(e);i<n?(l.push(e),u.push(i),c.push(r)):d+=i}),t&&(e-=d,a=Math.floor(e/l.length),s=Math.floor(e-a*(l.length-1))),l.forEach(function(e,t){var n=t===l.length-1?s:a,r=u[t],i=n-(r-c[t]);r<n&&(e.style.height=i+"px")})},e.elementClosest=c,e.elementMatches=d,e.enableCursor=function(){document.body.classList.remove("fc-not-allowed")},e.eventTupleToStore=ke,e.filterEventStoreDefs=Ne,e.filterHash=Se,e.findChildren=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,a=0;a<o.length;a++){var s=o[a];t&&!d(s,t)||r.push(s)}return r},e.findElements=h,e.flexibleCompare=ae,e.forceClassName=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.formatDate=function(e,t){void 0===t&&(t={});var n=bi(t),r=ot(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatIsoTimeString=function(e){return le(e.getUTCHours(),2)+":"+le(e.getUTCMinutes(),2)+":"+le(e.getUTCSeconds(),2)},e.formatRange=function(e,t,n){var r=bi("object"==typeof n&&n?n:{}),i=ot(n,$n.defaultRangeSeparator),o=r.createMarkerMeta(e),a=r.createMarkerMeta(t);return o&&a?r.formatRange(o.marker,a.marker,i,{forcedStartTzo:o.forcedTzo,forcedEndTzo:a.forcedTzo,isEndExclusive:n.isEndExclusive}):""},e.getAllDayHtml=function(e){return e.allDayHtml||Ot(e.allDayText)},e.getClippingParents=k,e.getDayClasses=nn,e.getElSeg=gt,e.getRectCenter=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},e.getRelevantEvents=Re,e.globalDefaults=$n,e.greatestDurationDenominator=te,e.hasBgRendering=function(e){return"background"===e.rendering||"inverse-background"===e.rendering},e.htmlEscape=Ot,e.htmlToElement=w,e.insertAfterElement=function(e,t){for(var n=l(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)},e.interactionSettingsStore=Vr,e.interactionSettingsToStore=function(e){var t;return(t={})[e.component.uid]=e,t},e.intersectRanges=He,e.intersectRects=m,e.isArraysEqual=Ue,e.isDateSpansEqual=function(e,t){return Fe(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)},e.isInt=ue,e.isInteractionValid=xt,e.isMultiDayRange=function(e){var t=ge(e);return 1<P(t.start,t.end)},e.isPropsEqual=xe,e.isPropsValid=kt,e.isSingleDay=function(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds},e.isValidDate=V,e.listenBySelector=R,e.mapHash=Ee,e.matchCellWidths=function(e){var r=0;return e.forEach(function(e){var t=e.firstChild;if(t instanceof HTMLElement){var n=t.getBoundingClientRect().width;r<n&&(r=n)}}),r++,e.forEach(function(e){e.style.width=r+"px"}),r},e.memoize=Ye,e.memoizeOutput=Be,e.memoizeRendering=Qt,e.mergeEventStores=Oe,e.multiplyDuration=function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},e.padStart=le,e.parseBusinessHours=Zt,e.parseDragMeta=function(e){var t={},n=fe(e,wi,_i,t);return n.leftoverProps=t,n},e.parseEventDef=qt,e.parseFieldSpecs=re,e.parseMarker=lr,e.pointInsideRect=function(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},e.prependToElement=v,e.preventContextMenu=function(e){e.addEventListener("contextmenu",I)},e.preventDefault=I,e.preventSelection=function(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",I)},e.processScopedUiProps=Ft,e.rangeContainsMarker=We,e.rangeContainsRange=ze,e.rangesEqual=Fe,e.rangesIntersect=je,e.refineProps=fe,e.removeElement=r,e.removeExact=function(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n++):r++;return n},e.renderDateCell=Ei,e.requestJson=Wn,e.sliceEventStore=ft,e.startOfDay=j,e.subtractInnerElHeight=function(e,t){var n={position:"relative",left:-1};p(e,n),p(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return p(e,i),p(t,i),r},e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.uncompensateScroll=function(e){p(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})},e.undistributeHeight=ne,e.unpromisify=rn,e.version="4.4.0",e.whenTransitionDone=function(t,n){var r=function(e){n(e),A.forEach(function(e){t.removeEventListener(e,r)})};A.forEach(function(e){t.addEventListener(e,r)})},e.wholeDivideDurations=function(e,t){for(var n=null,r=0;r<$.length;r++){var i=$[r];if(t[i]){var o=e[i]/t[i];if(!ue(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n},Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarDayGrid={},e.FullCalendar)}(this,function(e,x){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u,d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=(t(i,u=x.DateProfileGenerator),i.prototype.buildRenderRange=function(e,t,n){var r,i=this.dateEnv,o=u.prototype.buildRenderRange.call(this,e,t,n),a=o.start,s=o.end;if(/^(year|month)$/.test(t)&&(a=i.startOfWeek(a),(r=i.startOfWeek(s)).valueOf()!==s.valueOf()&&(s=x.addWeeks(r,1))),this.options.monthMode&&this.options.fixedWeekCount){var l=Math.ceil(x.diffWeeks(a,s));s=x.addWeeks(s,6-l)}return{start:a,end:s}},i);function i(){return null!==u&&u.apply(this,arguments)||this}var p=(o.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},o.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},o.prototype.render=function(){var t=this,e=this.options,n=this.el=x.createElement("div",{className:"fc-popover "+(e.className||""),style:{top:"0",left:"0"}});"function"==typeof e.content&&e.content(n),e.parentEl.appendChild(n),x.listenBySelector(n,"click",".fc-close",function(e){t.hide()}),e.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},o.prototype.destroy=function(){this.hide(),this.el&&(x.removeElement(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},o.prototype.position=function(){var e,t,n=this.options,r=this.el,i=r.getBoundingClientRect(),o=x.computeRect(r.offsetParent),a=x.computeClippingRect(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-i.width:0,e=Math.min(e,a.bottom-i.height-this.margin),e=Math.max(e,a.top+this.margin),t=Math.min(t,a.right-i.width-this.margin),t=Math.max(t,a.left+this.margin),x.applyStyle(r,{top:e-o.top,left:t-o.left})},o.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},o);function o(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}var a,s=(t(l,a=x.FgEventRenderer),l.prototype.renderSegHtml=function(e,t){var n,r,i=this.context,o=e.eventRange,a=o.def,s=o.ui,l=a.allDay,u=x.computeEventDraggable(i,a,s),c=l&&e.isStart&&x.computeEventStartResizable(i,a,s),d=l&&e.isEnd&&x.computeEventEndResizable(i,a,s),h=this.getSegClasses(e,u,c||d,t),f=x.cssToStr(this.getSkinCss(s)),p="";return h.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(o))&&(p='<span class="fc-time">'+x.htmlEscape(n)+"</span>"),r='<span class="fc-title">'+(x.htmlEscape(a.title||"")||" ")+"</span>",'<a class="'+h.join(" ")+'"'+(a.url?' href="'+x.htmlEscape(a.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+("rtl"===i.options.dir?r+" "+p:p+" "+r)+"</div>"+(c?'<div class="fc-resizer fc-start-resizer"></div>':"")+(d?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},l.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},l.prototype.computeDisplayEventEnd=function(){return!1},l);function l(){return null!==a&&a.apply(this,arguments)||this}var c,h=(t(f,c=s),f.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},f.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)x.removeElement(e.tbodyEl);this.rowStructs=null},f.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},f.prototype.renderSegRow=function(e,t){var n,r,i,o,a,s,l,u=this.context.isRtl,c=this.dayGrid,d=c.colCnt,h=this.buildSegLevels(t),f=Math.max(1,h.length),p=document.createElement("tbody"),g=[],m=[],v=[];function y(e){for(;i<e;)(l=(v[n-1]||[])[i])?l.rowSpan=(l.rowSpan||1)+1:(l=document.createElement("td"),o.appendChild(l)),m[n][i]=l,v[n][i]=l,i++}for(n=0;n<f;n++){if(r=h[n],i=0,o=document.createElement("tr"),g.push([]),m.push([]),v.push([]),r)for(a=0;a<r.length;a++){s=r[a];var b=u?d-1-s.lastCol:s.firstCol,w=u?d-1-s.firstCol:s.lastCol;for(y(b),l=x.createElement("td",{className:"fc-event-container"},s.el),b!==w?l.colSpan=w-b+1:v[n][i]=l;i<=w;)m[n][i]=l,g[n][i]=s,i++;o.appendChild(l)}y(d);var _=c.renderProps.renderIntroHtml();_&&(u?x.appendToElement(o,_):x.prependToElement(o,_)),p.appendChild(o)}return{row:e,tbodyEl:p,cellMatrix:m,segMatrix:g,segLevels:h,segs:t}},f.prototype.buildSegLevels=function(e){var t,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,a=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<a.length&&g(n,a[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(a[r]||(a[r]=[])).push(n)}for(r=0;r<a.length;r++)a[r].sort(m);return a},f.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},f.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},f);function f(e){var t=c.call(this)||this;return t.dayGrid=e,t}function g(e,t){var n,r;for(n=0;n<t.length;n++)if((r=t[n]).firstCol<=e.lastCol&&r.lastCol>=e.firstCol)return!0;return!1}function m(e,t){return e.leftCol-t.leftCol}var v,y=(t(b,v=h),b.prototype.attachSegs=function(e,t){var i=t.sourceSeg,o=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){var n,r=x.htmlToElement('<div class="fc-mirror-skeleton"><table></table></div>');n=(i&&i.row===t?i.el:e.querySelector(".fc-content-skeleton tbody")||e.querySelector(".fc-content-skeleton table")).getBoundingClientRect().top-e.getBoundingClientRect().top,r.style.top=n+"px",r.querySelector("table").appendChild(o[t].tbodyEl),e.appendChild(r)})},b);function b(){return null!==v&&v.apply(this,arguments)||this}var w,_='<td style="pointer-events:none"></td>',S=(t(E,w=x.FillRenderer),E.prototype.renderSegs=function(e,t,n){"bgEvent"===e&&(n=n.filter(function(e){return e.eventRange.def.allDay})),w.prototype.renderSegs.call(this,e,t,n)},E.prototype.attachSegs=function(e,t){var n,r,i,o=[];for(n=0;n<t.length;n++)r=t[n],i=this.renderFillRow(e,r),this.dayGrid.rowEls[r.row].appendChild(i),o.push(i);return o},E.prototype.renderFillRow=function(e,t){var n,r,i,o=this.dayGrid,a=this.context.isRtl,s=o.colCnt,l=a?s-1-t.lastCol:t.firstCol,u=(a?s-1-t.firstCol:t.lastCol)+1;n="businessHours"===e?"bgevent":e.toLowerCase(),i=(r=x.htmlToElement('<div class="fc-'+n+'-skeleton"><table><tr></tr></table></div>')).getElementsByTagName("tr")[0],0<l&&x.appendToElement(i,new Array(l+1).join(_)),t.el.colSpan=u-l,i.appendChild(t.el),u<s&&x.appendToElement(i,new Array(s-u+1).join(_));var c=o.renderProps.renderIntroHtml();return c&&(a?x.appendToElement(i,c):x.prependToElement(i,c)),r},E);function E(e){var t=w.call(this)||this;return t.fillSegTag="td",t.dayGrid=e,t}var T,D=(t(C,T=x.DateComponent),C.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},C.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},C.prototype.destroy=function(){T.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},C.prototype._renderFrame=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=r.format(e,x.createFormatter(i.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+x.htmlEscape(o)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},C.prototype.queryHit=function(e,t,n,r){var i=this.props.date;if(e<n&&t<r)return{component:this,dateSpan:{allDay:!0,range:{start:i,end:x.addDays(i,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:r},layer:1}},C);function C(e){var t=T.call(this,e)||this,n=t.eventRenderer=new I(t),r=t.renderFrame=x.memoizeRendering(t._renderFrame);return t.renderFgEvents=x.memoizeRendering(n.renderSegs.bind(n),n.unrender.bind(n),[r]),t.renderEventSelection=x.memoizeRendering(n.selectByInstanceId.bind(n),n.unselectByInstanceId.bind(n),[t.renderFgEvents]),t.renderEventDrag=x.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t.renderEventResize=x.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t}var k,I=(t(R,k=s),R.prototype.attachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.dayTile.segContainerEl.appendChild(r.el)}},R.prototype.detachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];x.removeElement(r.el)}},R);function R(e){var t=k.call(this)||this;return t.dayTile=e,t}var A=(M.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var n=0,r=e.cells;n<r.length;n++){var i=r[n];t.push(O(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},M);function M(e){this.context=e}function O(e,t,n,r){var i=n.dateEnv,o=n.theme,a=x.rangeContainsMarker(t.activeRange,e),s=x.getDayClasses(e,t,n);return s.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+s.join(" ")+'"'+(a?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+(r?" "+r:"")+"></td>"}var N,P=x.createFormatter({day:"numeric"}),L=x.createFormatter({week:"numeric"}),H=(t(F,N=x.DateComponent),F.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},F.prototype.destroy=function(){N.prototype.destroy.call(this),this.renderCells.unrender()},F.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:x.addDays(n,1)}},F.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},F.prototype._renderCells=function(e,t){var n,r,i=this.context,o=i.calendar,a=i.view,s=i.isRtl,l=i.dateEnv,u=this.rowCnt,c=this.colCnt,d="";for(n=0;n<u;n++)d+=this.renderDayRowHtml(n,t);for(this.el.innerHTML=d,this.rowEls=x.findElements(this.el,".fc-row"),this.cellEls=x.findElements(this.el,".fc-day, .fc-disabled-day"),s&&this.cellEls.reverse(),this.rowPositions=new x.PositionCache(this.el,this.rowEls,!1,!0),this.colPositions=new x.PositionCache(this.el,this.cellEls.slice(0,c),!0,!1),n=0;n<u;n++)for(r=0;r<c;r++)o.publiclyTrigger("dayRender",[{date:l.toDate(e[n][r].date),el:this.getCellEl(n,r),view:a}]);this.isCellSizesDirty=!0},F.prototype._unrenderCells=function(){this.removeSegPopover()},F.prototype.renderDayRowHtml=function(e,t){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];t&&r.push("fc-rigid");var i=new A(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},F.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},F.prototype.getIsDayNumbersVisible=function(){return 1<this.rowCnt},F.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+"</tr>"},F.prototype.renderNumberCellsHtml=function(e){var t,n,r=[];for(t=0;t<this.colCnt;t++)n=this.props.cells[e][t].date,r.push(this.renderNumberCellHtml(n));return this.context.isRtl&&r.reverse(),r.join("")},F.prototype.renderNumberCellHtml=function(e){var t,n,r=this.context,i=r.dateEnv,o=r.options,a="",s=x.rangeContainsMarker(this.props.dateProfile.activeRange,e),l=this.getIsDayNumbersVisible()&&s;return l||this.renderProps.cellWeekNumbersVisible?((t=x.getDayClasses(e,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=i.weekDow),a+='<td class="'+t.join(" ")+'"'+(s?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(a+=x.buildGotoAnchorHtml(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,L))),l&&(a+=x.buildGotoAnchorHtml(o,i,e,{class:"fc-day-number"},i.format(e,P))),a+="</td>"):"<td></td>"},F.prototype.updateSize=function(e){var t=this.context.calendar,n=this.fillRenderer,r=this.eventRenderer,i=this.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},F.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},F.prototype.buildColPositions=function(){this.colPositions.build()},F.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},F.prototype.positionToHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},F.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},F.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},F.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},F.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},F.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},F.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},F.prototype.limitRows=function(e){var t,n,r=this.eventRenderer.rowStructs||[];for(t=0;t<r.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},F.prototype.computeRowLevelLimit=function(e){var t,n,r=this.rowEls[e].getBoundingClientRect().bottom,i=x.findChildren(this.eventRenderer.rowStructs[e].tbodyEl);for(t=0;t<i.length;t++)if((n=i[t]).classList.remove("fc-limited"),n.getBoundingClientRect().bottom>r)return t;return!1},F.prototype.limitRow=function(t,n){function e(e){for(;E<e;)(l=y.getCellSegs(t,E,n)).length&&(d=i[n-1][E],v=y.renderMoreLink(t,E,l),m=x.createElement("div",null,v),d.appendChild(m),S.push(m)),E++}var r,i,o,a,s,l,u,c,d,h,f,p,g,m,v,y=this,b=this.colCnt,w=this.context.isRtl,_=this.eventRenderer.rowStructs[t],S=[],E=0;if(n&&n<_.segLevels.length){for(r=_.segLevels[n-1],i=_.cellMatrix,(o=x.findChildren(_.tbodyEl).slice(n)).forEach(function(e){e.classList.add("fc-limited")}),a=0;a<r.length;a++){s=r[a];var T=w?b-1-s.lastCol:s.firstCol,D=w?b-1-s.firstCol:s.lastCol;for(e(T),c=[],u=0;E<=D;)l=this.getCellSegs(t,E,n),c.push(l),u+=l.length,E++;if(u){for(h=(d=i[n-1][T]).rowSpan||1,f=[],p=0;p<c.length;p++)g=x.createElement("td",{className:"fc-more-cell",rowSpan:h}),l=c[p],v=this.renderMoreLink(t,T+p,[s].concat(l)),m=x.createElement("div",null,v),g.appendChild(m),f.push(g),S.push(g);d.classList.add("fc-limited"),x.insertAfterElement(d,f),o.push(d)}}e(this.colCnt),_.moreEls=S,_.limitedEls=o}},F.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(x.removeElement),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach(function(e){e.classList.remove("fc-limited")}),t.limitedEls=null)},F.prototype.renderMoreLink=function(u,c,d){var h=this,e=this.context,f=e.calendar,p=e.view,g=e.dateEnv,m=e.options,v=e.isRtl,t=x.createElement("a",{className:"fc-more"});return t.innerText=this.getMoreLinkText(d.length),t.addEventListener("click",function(e){var t=m.eventLimitClick,n=v?h.colCnt-c-1:c,r=h.props.cells[u][n].date,i=e.currentTarget,o=h.getCellEl(u,c),a=h.getCellSegs(u,c),s=h.resliceDaySegs(a,r),l=h.resliceDaySegs(d,r);"function"==typeof t&&(t=f.publiclyTrigger("eventLimitClick",[{date:g.toDate(r),allDay:!0,dayEl:o,moreEl:i,segs:s,hiddenSegs:l,jsEvent:e,view:p}])),"popover"===t?h.showSegPopover(u,c,i,s):"string"==typeof t&&f.zoomTo(r,t)}),t},F.prototype.showSegPopover=function(t,e,n,r){var i,o,a=this,s=this.context,l=s.calendar,u=s.view,c=s.theme,d=s.isRtl,h=d?this.colCnt-e-1:e,f=n.parentNode;i=1===this.rowCnt?u.el:this.rowEls[t],o={className:"fc-more-popover "+c.getClass("popover"),parentEl:u.el,top:x.computeRect(i).top,autoHide:!0,content:function(e){a.segPopoverTile=new D(e),a.updateSegPopoverTile(a.props.cells[t][h].date,r)},hide:function(){a.segPopoverTile.destroy(),a.segPopoverTile=null,a.segPopover.destroy(),a.segPopover=null}},d?o.right=x.computeRect(f).right+1:o.left=x.computeRect(f).left-1,this.segPopover=new p(o),this.segPopover.show(),l.releaseAfterSizingTriggers()},F.prototype.resliceDaySegs=function(e,t){for(var n=t,r={start:n,end:x.addDays(n,1)},i=[],o=0,a=e;o<a.length;o++){var s=a[o],l=s.eventRange,u=l.range,c=x.intersectRanges(u,r);c&&i.push(d({},s,{eventRange:{def:l.def,ui:d({},l.ui,{durationEditable:!1}),instance:l.instance,range:c},isStart:s.isStart&&c.start.valueOf()===u.start.valueOf(),isEnd:s.isEnd&&c.end.valueOf()===u.end.valueOf()}))}return i},F.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"==typeof t?t(e):"+"+e+" "+t},F.prototype.getCellSegs=function(e,t,n){for(var r,i=this.eventRenderer.rowStructs[e].segMatrix,o=n||0,a=[];o<i.length;)(r=i[o][t])&&a.push(r),o++;return a},F);function F(e,t){var n=N.call(this,e)||this;n.bottomCoordPadding=0,n.isCellSizesDirty=!1,n.renderProps=t;var r=n.eventRenderer=new h(n),i=n.fillRenderer=new S(n);n.mirrorRenderer=new y(n);var o=n.renderCells=x.memoizeRendering(n._renderCells,n._unrenderCells);return n.renderBusinessHours=x.memoizeRendering(i.renderSegs.bind(i,"businessHours"),i.unrender.bind(i,"businessHours"),[o]),n.renderDateSelection=x.memoizeRendering(i.renderSegs.bind(i,"highlight"),i.unrender.bind(i,"highlight"),[o]),n.renderBgEvents=x.memoizeRendering(i.renderSegs.bind(i,"bgEvent"),i.unrender.bind(i,"bgEvent"),[o]),n.renderFgEvents=x.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[o]),n.renderEventSelection=x.memoizeRendering(r.selectByInstanceId.bind(r),r.unselectByInstanceId.bind(r),[n.renderFgEvents]),n.renderEventDrag=x.memoizeRendering(n._renderEventDrag,n._unrenderEventDrag,[o]),n.renderEventResize=x.memoizeRendering(n._renderEventResize,n._unrenderEventResize,[o]),n}var j,z=x.createFormatter({week:"numeric"}),W=(t(U,j=x.View),U.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},U.prototype.render=function(e,t){j.prototype.render.call(this,e,t),this.processOptions(t.options),this.renderSkeleton(t)},U.prototype.destroy=function(){j.prototype.destroy.call(this),this.renderSkeleton.unrender()},U.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new x.ScrollComponent("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=x.createElement("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new H(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},U.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},U.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},U.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},U.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},U.prototype.updateSize=function(e,t,n){j.prototype.updateSize.call(this,e,t,n),this.dayGrid.updateSize(e)},U.prototype.updateBaseSize=function(e,t,n){var r,i,o=this.dayGrid,a=this.context.options.eventLimit,s=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=x.matchCellWidths(x.findElements(this.el,".fc-week-number"))),this.scroller.clear(),s&&x.uncompensateScroll(s),o.removeSegPopover(),a&&"number"==typeof a&&o.limitRows(a),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),a&&"number"!=typeof a&&o.limitRows(a),n||(this.scroller.setHeight(r),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(s&&x.compensateScroll(s,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))):n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},U.prototype.computeScrollerHeight=function(e){return e-x.subtractInnerElHeight(this.el,this.scroller.el)},U.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),x.distributeHeight(this.dayGrid.rowEls,e,!t)):t?x.undistributeHeight(this.dayGrid.rowEls):x.distributeHeight(this.dayGrid.rowEls,e,!0)},U.prototype.computeDateScroll=function(e){return{top:0}},U.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},U.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},U);function U(){var a=null!==j&&j.apply(this,arguments)||this;return a.processOptions=x.memoize(a._processOptions),a.renderSkeleton=x.memoizeRendering(a._renderSkeleton,a._unrenderSkeleton),a.renderHeadIntroHtml=function(){var e=a.context,t=e.theme,n=e.options;return a.colWeekNumbersVisible?'<th class="fc-week-number '+t.getClass("widgetHeader")+'" '+a.weekNumberStyleAttr()+"><span>"+x.htmlEscape(n.weekLabel)+"</span></th>":""},a.renderDayGridNumberIntroHtml=function(e,t){var n=a.context,r=n.options,i=n.dateEnv,o=t.props.cells[e][0].date;return a.colWeekNumbersVisible?'<td class="fc-week-number" '+a.weekNumberStyleAttr()+">"+x.buildGotoAnchorHtml(r,i,{date:o,type:"week",forceOff:1===t.colCnt},i.format(o,z))+"</td>":""},a.renderDayGridBgIntroHtml=function(){var e=a.context.theme;return a.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+a.weekNumberStyleAttr()+"></td>":""},a.renderDayGridIntroHtml=function(){return a.colWeekNumbersVisible?'<td class="fc-week-number" '+a.weekNumberStyleAttr()+"></td>":""},a}W.prototype.dateProfileGeneratorClass=n;var Y,B=(t(V,Y=x.DateComponent),V.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},V.prototype.destroy=function(){Y.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},V.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveProps(d({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},V.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},V.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},V);function V(e){var t=Y.call(this,e.el)||this;return t.slicer=new $,t.dayGrid=e,t}var q,$=(t(G,q=x.Slicer),G.prototype.sliceRange=function(e,t){return t.sliceRange(e)},G);function G(){return null!==q&&q.apply(this,arguments)||this}var Z,Q=(t(X,Z=W),X.prototype.render=function(e,t){Z.prototype.render.call(this,e,t);var n=this.props.dateProfile,r=this.dayTable=this.buildDayTable(n,e.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:r,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},t)},X.prototype._renderSkeleton=function(e){Z.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new x.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new B(this.dayGrid)},X.prototype._unrenderSkeleton=function(){Z.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},X);function X(){var e=null!==Z&&Z.apply(this,arguments)||this;return e.buildDayTable=x.memoize(J),e}function J(e,t){var n=new x.DaySeries(e.renderRange,t);return new x.DayTable(n,/year|month|week/.test(e.currentRangeUnit))}var K=x.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:Q,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.AbstractDayGridView=W,e.DayBgRow=A,e.DayGrid=H,e.DayGridSlicer=$,e.DayGridView=Q,e.SimpleDayGrid=B,e.buildBasicDayTable=J,e.default=K,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarGoogleCalendar={},e.FullCalendar)}(this,function(e,l){"use strict";var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n={url:String,googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,data:null},t={parseMeta:function(e){if("string"==typeof e&&(e={url:e}),"object"==typeof e){var t=l.refineProps(e,n);if(!t.googleCalendarId&&t.url&&(t.googleCalendarId=function(e){var t;{if(/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(e))return e;if((t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(e))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^\/]*)/.exec(e)))return decodeURIComponent(t[1])}}(t.url)),delete t.url,t.googleCalendarId)return t}return null},fetch:function(e,n,r){var t=e.calendar,i=e.eventSource.meta,o=i.googleCalendarApiKey||t.opt("googleCalendarApiKey");if(o){var a=function(e){var t=e.googleCalendarApiBase;t=t||"https://www.googleapis.com/calendar/v3/calendars";return t+"/"+encodeURIComponent(e.googleCalendarId)+"/events"}(i),s=function(e,t,n,r){var i,o,a;a=r.canComputeOffset?(o=r.formatIso(e.start),r.formatIso(e.end)):(o=l.addDays(e.start,-1).toISOString(),l.addDays(e.end,1).toISOString());i=u({},n||{},{key:t,timeMin:o,timeMax:a,singleEvents:!0,maxResults:9999}),"local"!==r.timeZone&&(i.timeZone=r.timeZone);return i}(e.range,o,i.data,t.dateEnv);l.requestJson("GET",a,s,function(e,t){e.error?r({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:t}):n({rawEvents:function(e,t){return e.map(function(e){return function(e,t){var n=e.htmlLink||null;n&&t&&(n=function(e,r){return e.replace(/(\?.*?)?(#|$)/,function(e,t,n){return(t?t+"&":"?")+r+n})}(n,"ctz="+t));return{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:n,location:e.location,description:e.description}}(e,t)})}(e.items,s.timeZone),xhr:t})},function(e,t){r({message:e,xhr:t})})}else r({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}};var r=l.createPlugin({eventSourceDefs:[t]});e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}),window.Modernizr=function(e,d,o){function t(e){p.cssText=e}function a(e,t){return typeof e===t}function s(e,t){for(var n in e){var r=e[n];if(!~(""+r).indexOf("-")&&p[r]!==o)return"pfx"!=t||r}return!1}function r(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+v.join(r+" ")+r).split(" ");return a(t,"string")||a(t,"undefined")?s(i,t):function(e,t,n){for(var r in e){var i=t[e[r]];if(i!==o)return!1===n?e[r]:a(i,"function")?i.bind(n||t):i}return!1}(i=(e+" "+y.join(r+" ")+r).split(" "),t,n)}function i(e,t,n,r){var i,o,a,s,l=d.createElement("div"),u=d.body,c=u||d.createElement("body");if(parseInt(n,10))for(;n--;)(a=d.createElement("div")).id=r?r[n]:f+(n+1),l.appendChild(a);return i=["­",'<style id="s',f,'">',e,"</style>"].join(""),l.id=f,(u?l:c).innerHTML+=i,c.appendChild(l),u||(c.style.background="",c.style.overflow="hidden",s=h.style.overflow,h.style.overflow="hidden",h.appendChild(c)),o=t(l,e),u?l.parentNode.removeChild(l):(c.parentNode.removeChild(c),h.style.overflow=s),!!o}var n,l,u={},h=d.documentElement,f="modernizr",c=d.createElement(f),p=c.style,g=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",v=m.split(" "),y=m.toLowerCase().split(" "),b="http://www.w3.org/2000/svg",w={},_=[],S=_.slice,E={}.hasOwnProperty;for(var T in l=a(E,"undefined")||a(E.call,"undefined")?function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")}:function(e,t){return E.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(r){var i=this;if("function"!=typeof i)throw new TypeError;var o=S.call(arguments,1),a=function(){if(this instanceof a){function e(){}e.prototype=i.prototype;var t=new e,n=i.apply(t,o.concat(S.call(arguments)));return Object(n)===n?n:t}return i.apply(r,o.concat(S.call(arguments)))};return a}),w.cssanimations=function(){return r("animationName")},w.csstransforms=function(){return!!r("transform")},w.csstransforms3d=function(){var n=!!r("perspective");return n&&"webkitPerspective"in h.style&&i("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,t){n=9===e.offsetLeft&&3===e.offsetHeight}),n},w.csstransitions=function(){return r("transition")},w.svg=function(){return!!d.createElementNS&&!!d.createElementNS(b,"svg").createSVGRect},w.inlinesvg=function(){var e=d.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==b},w)l(w,T)&&(n=T.toLowerCase(),u[n]=w[T](),_.push((u[n]?"":"no-")+n));return u.addTest=function(e,t){if("object"==typeof e)for(var n in e)l(e,n)&&u.addTest(n,e[n]);else{if(e=e.toLowerCase(),u[e]!==o)return u;t="function"==typeof t?t():t,h.className+=" "+(t?"":"no-")+e,u[e]=t}return u},t(""),c=null,function(e,a){function s(){var e=p.elements;return"string"==typeof e?e.split(" "):e}function l(e){var t=f[e[d]];return t||(t={},h++,e[d]=h,f[h]=t),t}function r(e,t,n){return t=t||a,u?t.createElement(e):!(r=(n=n||l(t)).cache[e]?n.cache[e].cloneNode():c.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren||o.test(e)||r.tagUrn?r:n.frag.appendChild(r);var r}function t(e){var t=l(e=e||a);return!p.shivCSS||n||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||function(t,n){n.cache||(n.cache={},n.createElem=t.createElement,n.createFrag=t.createDocumentFragment,n.frag=n.createFrag()),t.createElement=function(e){return p.shivMethods?r(e,t,n):n.createElem(e)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(e){return n.createElem(e),n.frag.createElement(e),'c("'+e+'")'})+");return n}")(p,n.frag)}(e,t),e}var n,u,i=e.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,d="_html5shiv",h=0,f={};!function(){try{var e=a.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,u=1==e.childNodes.length||function(){a.createElement("a");var e=a.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){u=n=!0}}();var p={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==i.shivCSS,supportsUnknownElements:u,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:t,createElement:r,createDocumentFragment:function(e,t){if(e=e||a,u)return e.createDocumentFragment();for(var n=(t=t||l(e)).frag.cloneNode(),r=0,i=s(),o=i.length;r<o;r++)n.createElement(i[r]);return n}};e.html5=p,t(a)}(this,d),u._version="2.8.3",u._prefixes=g,u._domPrefixes=y,u._cssomPrefixes=v,u.testProp=function(e){return s([e])},u.testAllProps=r,u.testStyles=i,u.prefixed=function(e,t,n){return t?r(e,t,n):r(e,"pfx")},h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+_.join(" "),u}(0,this.document),function(e,h){function d(e){return"[object Function]"==i.call(e)}function f(e){return"string"==typeof e}function p(){}function g(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function m(){var e=w.shift();_=1,e?e.t?y(function(){("c"==e.t?v.injectCss:v.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),m()):_=0}function t(e,t,n,r,i){return _=0,t=t||"j",f(e)?function(n,r,e,t,i,o,a){function s(e){if(!u&&g(l.readyState)&&(d.r=u=1,_||m(),l.onload=l.onreadystatechange=null,e))for(var t in"img"!=n&&y(function(){E.removeChild(l)},50),D[r])D[r].hasOwnProperty(t)&&D[r][t].onload()}a=a||v.errorTimeout;var l=h.createElement(n),u=0,c=0,d={t:e,s:r,e:i,a:o,x:a};1===D[r]&&(c=1,D[r]=[]),"object"==n?l.data=r:(l.src=r,l.type=n),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){s.call(this,c)},w.splice(t,0,d),"img"!=n&&(c||2===D[r]?(E.insertBefore(l,S?null:b),y(s,a)):D[r].push(l))}("c"==t?l:a,e,t,this.i++,n,r,i):(w.splice(this.i++,0,e),1==w.length&&m()),this}function s(){var e=v;return e.loader={load:t,i:0},e}var n,v,r=h.documentElement,y=e.setTimeout,b=h.getElementsByTagName("script")[0],i={}.toString,w=[],_=0,o="MozAppearance"in r.style,S=o&&!!h.createRange().compareNode,E=S?r:b.parentNode,a=(r=e.opera&&"[object Opera]"==i.call(e.opera),r=!!h.attachEvent&&!r,o?"object":r?"script":"img"),l=r?"script":a,u=Array.isArray||function(e){return"[object Array]"==i.call(e)},T=[],D={},x={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};(v=function(e){function c(e,t,n,r,i){var o=function(e){e=e.split("!");var t,n,r,i=T.length,o=e.pop(),a=e.length;for(o={url:o,origUrl:o,prefixes:e},n=0;n<a;n++)r=e[n].split("="),(t=x[r.shift()])&&(o=t(o,r));for(n=0;n<i;n++)o=T[n](o);return o}(e),a=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(t=t&&(d(t)?t:t[e]||t[r]||t[e.split("/").pop().split("?")[0]]),o.instead?o.instead(e,t,n,r,i):(D[o.url]?o.noexec=!0:D[o.url]=1,n.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":void 0,o.noexec,o.attrs,o.timeout),(d(t)||d(a))&&n.load(function(){s(),t&&t(o.origUrl,i,r),a&&a(o.origUrl,i,r),D[o.url]=2})))}function t(e,t){function n(n,e){if(n){if(f(n))e||(s=function(){var e=[].slice.call(arguments);l.apply(this,e),u()}),c(n,s,t,0,o);else if(Object(n)===n)for(i in r=function(){var e,t=0;for(e in n)n.hasOwnProperty(e)&&t++;return t}(),n)n.hasOwnProperty(i)&&(e||--r||(d(s)?s=function(){var e=[].slice.call(arguments);l.apply(this,e),u()}:s[i]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),u()}}(l[i])),c(n[i],s,t,i,o))}else e||u()}var r,i,o=!!e.test,a=e.load||e.both,s=e.callback||p,l=s,u=e.complete||p;n(o?e.yep:e.nope,!!a),a&&n(a)}var n,r,i=this.yepnope.loader;if(f(e))c(e,0,i,0);else if(u(e))for(n=0;n<e.length;n++)f(r=e[n])?c(r,0,i,0):u(r)?v(r):Object(r)===r&&t(r,i);else Object(e)===e&&t(e,i)}).addPrefix=function(e,t){x[e]=t},v.addFilter=function(e){T.push(e)},v.errorTimeout=1e4,null==h.readyState&&h.addEventListener&&(h.readyState="loading",h.addEventListener("DOMContentLoaded",n=function(){h.removeEventListener("DOMContentLoaded",n,0),h.readyState="complete"},0)),e.yepnope=s(),e.yepnope.executeStack=m,e.yepnope.injectJs=function(e,t,n,r,i,o){var a,s,l=h.createElement("script");r=r||v.errorTimeout;for(s in l.src=e,n)l.setAttribute(s,n[s]);t=o?m:t||p,l.onreadystatechange=l.onload=function(){!a&&g(l.readyState)&&(a=1,t(),l.onload=l.onreadystatechange=null)},y(function(){a||t(a=1)},r),i?l.onload():b.parentNode.insertBefore(l,b)},e.yepnope.injectCss=function(e,t,n,r,i,o){var a;r=h.createElement("link"),t=o?m:t||p;for(a in r.href=e,r.rel="stylesheet",r.type="text/css",n)r.setAttribute(a,n[a]);i||(b.parentNode.insertBefore(r,b),y(t,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(u){u.extend(u.fn,{validate:function(e){if(this.length){var r=u.data(this[0],"validator");return r||(this.attr("novalidate","novalidate"),r=new u.validator(e,this[0]),u.data(this[0],"validator",r),r.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){r.settings.submitHandler&&(r.submitButton=e.target),u(e.target).hasClass("cancel")&&(r.cancelSubmit=!0),void 0!==u(e.target).attr("formnovalidate")&&(r.cancelSubmit=!0)}),this.submit(function(n){function e(){var e,t;return!r.settings.submitHandler||(r.submitButton&&(e=u("<input type='hidden'/>").attr("name",r.submitButton.name).val(u(r.submitButton).val()).appendTo(r.currentForm)),t=r.settings.submitHandler.call(r,r.currentForm,n),r.submitButton&&e.remove(),void 0!==t&&t)}return r.settings.debug&&n.preventDefault(),r.cancelSubmit?(r.cancelSubmit=!1,e()):r.form()?r.pendingRequest?!(r.formSubmitted=!0):e():(r.focusInvalid(),!1)})),r)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,t;return u(this[0]).is("form")?e=this.validate().form():(e=!0,t=u(this[0].form).validate(),this.each(function(){e=t.element(this)&&e})),e},removeAttrs:function(e){var n={},r=this;return u.each(e.split(/\s/),function(e,t){n[t]=r.attr(t),r.removeAttr(t)}),n},rules:function(e,t){var n,r,i,o,a,s,l=this[0];if(e)switch(r=(n=u.data(l.form,"validator").settings).rules,i=u.validator.staticRules(l),e){case"add":u.extend(i,u.validator.normalizeRule(t)),delete i.messages,r[l.name]=i,t.messages&&(n.messages[l.name]=u.extend(n.messages[l.name],t.messages));break;case"remove":return t?(s={},u.each(t.split(/\s/),function(e,t){s[t]=i[t],delete i[t],"required"===t&&u(l).removeAttr("aria-required")}),s):(delete r[l.name],i)}return(o=u.validator.normalizeRules(u.extend({},u.validator.classRules(l),u.validator.attributeRules(l),u.validator.dataRules(l),u.validator.staticRules(l)),l)).required&&(a=o.required,delete o.required,o=u.extend({required:a},o),u(l).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=u.extend(o,{remote:a})),o}}),u.extend(u.expr[":"],{blank:function(e){return!u.trim(""+u(e).val())},filled:function(e){return!!u.trim(""+u(e).val())},unchecked:function(e){return!u(e).prop("checked")}}),u.validator=function(e,t){this.settings=u.extend(!0,{},u.validator.defaults,e),this.currentForm=t,this.init()},u.validator.format=function(n,e){return 1===arguments.length?function(){var e=u.makeArray(arguments);return e.unshift(n),u.validator.format.apply(this,e)}:(2<arguments.length&&e.constructor!==Array&&(e=u.makeArray(arguments).slice(1)),e.constructor!==Array&&(e=[e]),u.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})}),n)},u.extend(u.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:u([]),errorLabelContainer:u([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||(e.name in this.submitted||e===this.lastElement)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):u(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):u(e).removeClass(t).addClass(n)}},setDefaults:function(e){u.extend(u.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:u.validator.format("Please enter no more than {0} characters."),minlength:u.validator.format("Please enter at least {0} characters."),rangelength:u.validator.format("Please enter a value between {0} and {1} characters long."),range:u.validator.format("Please enter a value between {0} and {1}."),max:u.validator.format("Please enter a value less than or equal to {0}."),min:u.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=u(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||u(this.currentForm),this.containers=u(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,r=this.groups={};function e(e){var t=u.data(this[0].form,"validator"),n="on"+e.type.replace(/^validate/,""),r=t.settings;r[n]&&!this.is(r.ignore)&&r[n].call(t,this[0],e)}u.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),u.each(e,function(e,t){r[t]=n})}),n=this.settings.rules,u.each(n,function(e,t){n[e]=u.validator.normalizeRule(t)}),u(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",e).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",e),this.settings.invalidHandler&&u(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),u(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),u.extend(this.submitted,this.errorMap),this.invalid=u.extend({},this.errorMap),this.valid()||u(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t=this.clean(e),n=this.validationTargetFor(t),r=!0;return void 0===(this.lastElement=n)?delete this.invalid[t.name]:(this.prepareElement(n),this.currentElements=u(n),(r=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),u(e).attr("aria-invalid",!r),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),r},showErrors:function(t){if(t){for(var e in u.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[e],element:this.findByName(e)[0]});this.successList=u.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){u.fn.resetForm&&u(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{u(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===u.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var e=this,t={};return u(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in t||!e.objectLength(u(this).rules()))&&(t[this.name]=!0)})},clean:function(e){return u(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return u(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=u([]),this.toHide=u([]),this.currentElements=u([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,n=u(e),r=e.type;return"radio"===r||"checkbox"===r?u("input[name='"+e.name+"']:checked").val():"number"===r&&void 0!==e.validity?!e.validity.badInput&&n.val():"string"==typeof(t=n.val())?t.replace(/\r/g,""):t},check:function(t){t=this.validationTargetFor(this.clean(t));var e,n,r,i=u(t).rules(),o=u.map(i,function(e,t){return t}).length,a=!1,s=this.elementValue(t);for(n in i){r={method:n,parameters:i[n]};try{if("dependency-mismatch"===(e=u.validator.methods[n].call(this,s,t,r.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===e)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!e)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e}}if(!a)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(e,t){return u(e).data("msg"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())||u(e).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){return this.findDefined(this.customMessage(e.name,t),this.customDataMessage(e,t),!this.settings.ignoreTitle&&e.title||void 0,u.validator.messages[t],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t.method),r=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,t.parameters,e):r.test(n)&&(n=u.validator.format(n.replace(r,"{$1}"),t.parameters)),this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return u(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n,r,i,o=this.errorsFor(e),a=this.idOrName(e),s=u(e).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(t)):(n=o=u("<"+this.settings.errorElement+">").attr("id",a+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,u(e)):n.insertAfter(e),o.is("label")?o.attr("for",a):0===o.parents("label[for='"+a+"']").length&&(i=o.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),s?s.match(new RegExp("\\b"+i+"\\b"))||(s+=" "+i):s=i,u(e).attr("aria-describedby",s),(r=this.groups[e.name])&&u.each(this.groups,function(e,t){t===r&&u("[name='"+e+"']",this.currentForm).attr("aria-describedby",o.attr("id"))}))),!t&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,e)),this.toShow=this.toShow.add(o)},errorsFor:function(e){var t=this.idOrName(e),n=u(e).attr("aria-describedby"),r="label[for='"+t+"'], label[for='"+t+"'] *";return n&&(r=r+", #"+n.replace(/\s+/g,", #")),this.errors().filter(r)},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),u(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return u(this.currentForm).find("[name='"+e+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return u("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!u(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!u.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(u(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(u(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return u.data(e,"previousValue")||u.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:u.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=u(e).attr("class");return n&&u.each(n.split(" "),function(){this in u.validator.classRuleSettings&&u.extend(t,u.validator.classRuleSettings[this])}),t},attributeRules:function(e){var t,n,r={},i=u(e),o=e.getAttribute("type");for(t in u.validator.methods)n="required"===t?(""===(n=e.getAttribute(t))&&(n=!0),!!n):i.attr(t),/min|max/.test(t)&&(null===o||/number|range|text/.test(o))&&(n=Number(n)),n||0===n?r[t]=n:o===t&&"range"!==o&&(r[t]=!0);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(e){var t,n,r={},i=u(e);for(t in u.validator.methods)void 0!==(n=i.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()))&&(r[t]=n);return r},staticRules:function(e){var t={},n=u.data(e.form,"validator");return n.settings.rules&&(t=u.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(r,i){return u.each(r,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!u(t.depends,i.form).length;break;case"function":n=t.depends.call(i,i)}n?r[e]=void 0===t.param||t.param:delete r[e]}}else delete r[e]}),u.each(r,function(e,t){r[e]=u.isFunction(t)?t(i):t}),u.each(["minlength","maxlength"],function(){r[this]&&(r[this]=Number(r[this]))}),u.each(["rangelength","range"],function(){var e;r[this]&&(u.isArray(r[this])?r[this]=[Number(r[this][0]),Number(r[this][1])]:"string"==typeof r[this]&&(e=r[this].replace(/[\[\]]/g,"").split(/[\s,]+/),r[this]=[Number(e[0]),Number(e[1])]))}),u.validator.autoCreateRanges&&(null!=r.min&&null!=r.max&&(r.range=[r.min,r.max],delete r.min,delete r.max),null!=r.minlength&&null!=r.maxlength&&(r.rangelength=[r.minlength,r.maxlength],delete r.minlength,delete r.maxlength)),r},normalizeRule:function(e){if("string"==typeof e){var t={};u.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){u.validator.methods[e]=t,u.validator.messages[e]=void 0!==n?n:u.validator.messages[e],t.length<3&&u.validator.addClassRules(e,u.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"!==t.nodeName.toLowerCase())return this.checkable(t)?0<this.getLength(e,t):0<u.trim(e).length;var r=u(t).val();return r&&0<r.length},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;var n,r,i=0,o=0,a=!1;if((e=e.replace(/\D/g,"")).length<13||19<e.length)return!1;for(n=e.length-1;0<=n;n--)r=e.charAt(n),o=parseInt(r,10),a&&9<(o*=2)&&(o-=9),i+=o,a=!a;return i%10==0},minlength:function(e,t,n){var r=u.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n<=r},maxlength:function(e,t,n){var r=u.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||r<=n},rangelength:function(e,t,n){var r=u.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||r>=n[0]&&r<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},equalTo:function(e,t,n){var r=u(n);return this.settings.onfocusout&&r.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){u(t).valid()}),e===r.val()},remote:function(o,a,e){if(this.optional(a))return"dependency-mismatch";var s,t,l=this.previousValue(a);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),l.originalMessage=this.settings.messages[a.name].remote,this.settings.messages[a.name].remote=l.message,e="string"==typeof e&&{url:e}||e,l.old===o?l.valid:(l.old=o,(s=this).startRequest(a),(t={})[a.name]=o,u.ajax(u.extend(!0,{url:e,mode:"abort",port:"validate"+a.name,dataType:"json",data:t,context:s.currentForm,success:function(e){var t,n,r,i=!0===e||"true"===e;s.settings.messages[a.name].remote=l.originalMessage,i?(r=s.formSubmitted,s.prepareElement(a),s.formSubmitted=r,s.successList.push(a),delete s.invalid[a.name],s.showErrors()):(t={},n=e||s.defaultMessage(a,"remote"),t[a.name]=l.message=u.isFunction(n)?n(o):n,s.invalid[a.name]=!0,s.showErrors(t)),l.valid=i,s.stopRequest(a,i)}},e)),"pending")}}}),u.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var r,i={};u.ajaxPrefilter?u.ajaxPrefilter(function(e,t,n){var r=e.port;"abort"===e.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(r=u.ajax,u.ajax=function(e){var t=("mode"in e?e:u.ajaxSettings).mode,n=("port"in e?e:u.ajaxSettings).port;return"abort"===t?(i[n]&&i[n].abort(),i[n]=r.apply(this,arguments),i[n]):r.apply(this,arguments)}),u.extend(u.fn,{validateDelegate:function(n,e,r){return this.bind(e,function(e){var t=u(e.target);if(t.is(n))return r.apply(t,arguments)})}})}),function(s,r,i,l){var u=s(r);s.fn.lazyload=function(e){function t(){var t=0;o.each(function(){var e=s(this);if(!a.skip_invisible||e.is(":visible"))if(s.abovethetop(this,a)||s.leftofbegin(this,a));else if(s.belowthefold(this,a)||s.rightoffold(this,a)){if(++t>a.failure_limit)return!1}else e.trigger("appear"),t=0})}var n,o=this,a={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:r,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return e&&(l!==e.failurelimit&&(e.failure_limit=e.failurelimit,delete e.failurelimit),l!==e.effectspeed&&(e.effect_speed=e.effectspeed,delete e.effectspeed),s.extend(a,e)),n=a.container===l||a.container===r?u:s(a.container),0===a.event.indexOf("scroll")&&n.bind(a.event,function(){return t()}),this.each(function(){var r=this,i=s(r);r.loaded=!1,i.attr("src")!==l&&!1!==i.attr("src")||!i.is("img")||i.attr("src",a.placeholder),i.one("appear",function(){if(!this.loaded){if(a.appear){var e=o.length;a.appear.call(r,e,a)}s("<img />").bind("load",function(){var e=i.attr("data-"+a.data_attribute);i.hide(),i.is("img")?i.attr("src",e):i.css("background-image","url('"+e+"')"),i[a.effect](a.effect_speed),r.loaded=!0;var t=s.grep(o,function(e){return!e.loaded});if(o=s(t),a.load){var n=o.length;a.load.call(r,n,a)}}).attr("src",i.attr("data-"+a.data_attribute))}}),0!==a.event.indexOf("scroll")&&i.bind(a.event,function(){r.loaded||i.trigger("appear")})}),u.bind("resize",function(){t()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&o.each(function(){s(this).trigger("appear")})}),s(i).ready(function(){t()}),this},s.belowthefold=function(e,t){return(t.container===l||t.container===r?(r.innerHeight?r.innerHeight:u.height())+u.scrollTop():s(t.container).offset().top+s(t.container).height())<=s(e).offset().top-t.threshold},s.rightoffold=function(e,t){return(t.container===l||t.container===r?u.width()+u.scrollLeft():s(t.container).offset().left+s(t.container).width())<=s(e).offset().left-t.threshold},s.abovethetop=function(e,t){return(t.container===l||t.container===r?u.scrollTop():s(t.container).offset().top)>=s(e).offset().top+t.threshold+s(e).height()},s.leftofbegin=function(e,t){return(t.container===l||t.container===r?u.scrollLeft():s(t.container).offset().left)>=s(e).offset().left+t.threshold+s(e).width()},s.inviewport=function(e,t){return!(s.rightoffold(e,t)||s.leftofbegin(e,t)||s.belowthefold(e,t)||s.abovethetop(e,t))},s.extend(s.expr[":"],{"below-the-fold":function(e){return s.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!s.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return s.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!s.rightoffold(e,{threshold:0})},"in-viewport":function(e){return s.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!s.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return s.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!s.rightoffold(e,{threshold:0})}})}(jQuery,window,document),function(w,_,S){"use strict";function E(e){return t.hasOwnProperty(e)?e:"cover"}var u=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;w.fn.backstretch=function(o,a){var s,l=arguments;return 0===w(_).scrollTop()&&_.scrollTo(0,0),this.each(function(e){var t=w(this),n=t.data("backstretch");if(n){if("string"==typeof l[0]&&"function"==typeof n[l[0]]){var r=n[l[0]].apply(n,Array.prototype.slice.call(l,1));return r===n&&(r=S),void(r!==S&&((s=s||[])[e]=r))}a=w.extend(n.options,a),"object"==typeof n&&"destroy"in n&&n.destroy(!0)}if(!o||o&&0===o.length){var i=t.css("background-image");i&&"none"!==i?o=[{url:t.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:w.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}n=new h(this,o,a||{}),t.data("backstretch",n)}),s?1===s.length?s[0]:s:this},w.backstretch=function(e,t){return w("body").backstretch(e,t).data("backstretch")},w.expr[":"].backstretch=function(e){return w(e).data("backstretch")!==S},w.fn.backstretch.defaults={duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};function v(e){return u.test(e.url)||e.isVideo}var n,c,s={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},T=(c=function(e,t){if("string"==typeof e)e=e.replace(/{{(width|height)}}/g,t);else if(e instanceof Array)for(var n=0;n<e.length;n++)e[n].src?e[n].src=c(e[n].src,t):e[n]=c(e[n],t);return e},function(e,t){for(var n=e.width(),r=e.height(),i=[],o=function(e,t){return"width"===t?n:"height"===t?r:e},a=0;a<t.length;a++)if(w.isArray(t[a])){t[a]=g(t[a]);var s=m(n,r,t[a]);i.push(s)}else{"string"==typeof t[a]&&(t[a]={url:t[a]});var l=w.extend({},t[a]);l.url=c(l.url,o),i.push(l)}return i}),D=(n=[],function e(t,n,r,i,o){if(void 0!==t){w.isArray(t)||(t=[t]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(o=arguments[arguments.length-1]),n="function"!=typeof n&&n?n:0,r="function"==typeof r||!r||r<0?t.length:Math.min(r,t.length),i="function"!=typeof i&&i?i:1,n>=t.length&&(r=n=0),i<0&&(i=r),i=Math.min(i,r);var a=t.slice(n+i,r-i);if(t=t.slice(n,i),!(r=t.length))return void p(t,o,!0);for(var s,l=0,u=function(){++l===r&&(p(t,o,!a),e(a,0,0,i,o))},c=0;c<t.length;c++)v(t[c])||((s=new Image).src=t[c].url,(s=f(s)).complete?u():w(s).on("load error",u))}}),l=function(e){for(var t=[],n=0;n<e.length;n++)"string"==typeof e[n]?t.push({url:e[n]}):w.isArray(e[n])?t.push(l(e[n])):t.push(d(e[n]));return t},d=function(e,t){return(e.centeredX||e.centeredY)&&(_.console&&_.console.log&&_.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),e.centeredX&&(e.alignX=.5),e.centeredY&&(e.alignY=.5)),e.speed!==S&&(_.console&&_.console.log&&_.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),e.transitionDuration=e.speed,e.transition="fade"),e.resolutionChangeRatioTreshold!==S&&(_.console.log("jquery.backstretch: `treshold` is a typo!"),e.resolutionChangeRatioThreshold=e.resolutionChangeRatioTreshold),e.fadeFirst!==S&&(e.animateFirst=e.fadeFirst),e.fade!==S&&(e.transitionDuration=e.fade,e.transition="fade"),e.scale&&(e.scale=E(e.scale)),r(e)},r=function(e,t){return"left"===e.alignX?e.alignX=0:"center"===e.alignX?e.alignX=.5:"right"===e.alignX?e.alignX=1:e.alignX===S&&!t||(e.alignX=parseFloat(e.alignX),isNaN(e.alignX)&&(e.alignX=.5)),"top"===e.alignY?e.alignY=0:"center"===e.alignY?e.alignY=.5:"bottom"===e.alignY?e.alignY=1:e.alignX===S&&!t||(e.alignY=parseFloat(e.alignY),isNaN(e.alignY)&&(e.alignY=.5)),e},t={cover:"cover",fit:"fit","fit-smaller":"fit-smaller",fill:"fill"},h=function(e,t,n){this.options=w.extend({},w.fn.backstretch.defaults,n||{}),this.firstShow=!0,d(this.options,!0),this.images=l(w.isArray(t)?t:[t]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=e===document.body;var r=w(_);this.$container=w(e),this.$root=this.isBody?O?r:w(document):this.$container,this.originalImages=this.images,this.images=T(this.options.alwaysTestWindowResolution?r:this.$root,this.originalImages),D(this.images,this.options.start||0,this.options.preload||1);var i=this.$container.children(".backstretch").first();if(this.$wrap=i.length?i:w('<div class="backstretch"></div>').css(this.options.bypassCss?{}:s.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var o=this.$container.css("position"),a=this.$container.css("zIndex");this.$container.css({position:"static"===o?"relative":o,zIndex:"auto"===a?0:a}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&O?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),r.on("resize.backstretch",w.proxy(this.resize,this)).on("orientationchange.backstretch",w.proxy(function(){this.isBody&&0===_.pageYOffset&&(_.scrollTo(0,1),this.resize())},this))};function f(e){for(var t=0;t<n.length;t++)if(n[t].src===e.src)return n[t];return n.push(e),e}function p(e,t,n){"function"==typeof t&&t.call(e,n)}function g(e){for(var t=1;t<e.length;t++){for(var n=e[t],r=t;e[r-1]&&parseInt(e[r-1].width,10)>parseInt(n.width,10);)e[r]=e[r-1],--r;e[r]=n}return e}function m(e,t,n){for(var r,i,o=_.devicePixelRatio||1,a=A(),s=(M(),e<t?"portrait":t<e?"landscape":"square"),l=0,u=0;u<n.length&&("string"==typeof(i=n[u])&&(i=n[u]={url:i}),i.pixelRatio&&"auto"!==i.pixelRatio&&parseFloat(i.pixelRatio)!==o||i.deviceOrientation&&i.deviceOrientation!==a||i.windowOrientation&&i.windowOrientation!==a||i.orientation&&i.orientation!==s||(l=u,r=e,"auto"===i.pixelRatio&&(e*=o),!(i.width>=r)));u++);return n[Math.min(u,l)]}h.prototype={resize:function(){try{var e=this.options.alwaysTestWindowResolution?w(_):this.$root,t=e.width(),n=e.height(),r=t/(this._lastResizeContainerWidth||0),i=n/(this._lastResizeContainerHeight||0),o=this.options.resolutionChangeRatioThreshold||0;if((t!==this._lastResizeContainerWidth||n!==this._lastResizeContainerHeight)&&(Math.abs(r-1)>=o||isNaN(r)||Math.abs(i-1)>=o||isNaN(i))&&(this._lastResizeContainerWidth=t,this._lastResizeContainerHeight=n,this.images=T(e,this.originalImages),this.options.preload&&D(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var a=this;clearTimeout(a._selectAnotherResolutionTimeout),a._selectAnotherResolutionTimeout=setTimeout(function(){a.show(0)},this.options.resolutionRefreshRate)}var s,l,u={left:0,top:0,right:"auto",bottom:"auto"},c=this.isBody?this.$root.width():this.$root.innerWidth(),d=this.isBody?_.innerHeight?_.innerHeight:this.$root.height():this.$root.innerHeight(),h=this.$itemWrapper.data("width"),f=this.$itemWrapper.data("height"),p=h/f||1,g=this._currentImage.alignX===S?this.options.alignX:this._currentImage.alignX,m=this._currentImage.alignY===S?this.options.alignY:this._currentImage.alignY,v=E(this._currentImage.scale||this.options.scale);if("fit"===v||"fit-smaller"===v){if(l=f,c<(s=h)||d<l||"fit-smaller"===v){var y=c/d;l=p<y?(s=Math.floor(d*p),d):y<p?(s=c,Math.floor(c/p)):(s=c,d)}}else l="fill"===v?(s=c,d):(s=Math.max(d*p,c),Math.max(s/p,d));u.top=-(l-d)*m,u.left=-(s-c)*g,u.width=s,u.height=l,this.options.bypassCss||this.$wrap.css({width:c,height:d}).find(">.backstretch-item").not(".deleteable").each(function(){w(this).find("img,video,iframe").css(u)});var b=w.Event("backstretch.resize",{relatedTarget:this.$container[0]});this.$container.trigger(b,this)}catch(e){}return this},show:function(c,d){if(!(Math.abs(c)>this.images.length-1)){var h=this,f=h.$wrap.find(">.backstretch-item").addClass("deleteable"),p=h.videoWrapper,g={relatedTarget:h.$container[0]};h.$container.trigger(w.Event("backstretch.before",g),[h,c]),this.index=c;var e=h.images[c];clearTimeout(h._cycleTimeout),delete h.videoWrapper;var m=v(e);return m?(h.videoWrapper=new y(e),h.$item=h.videoWrapper.$video.css("pointer-events","none")):h.$item=w("<img />"),h.$itemWrapper=w('<div class="backstretch-item">').append(h.$item),this.options.bypassCss?h.$itemWrapper.css({display:"none"}):(h.$itemWrapper.css(s.itemWrapper),h.$item.css(s.item)),h.$item.bind(m?"canplay":"load",function(e){var t=w(this).parent(),n=t.data("options");d&&(n=w.extend({},n,d));var r=this.naturalWidth||this.videoWidth||this.width,i=this.naturalHeight||this.videoHeight||this.height;t.data("width",r).data("height",i);function o(e){return n[e]!==S?n[e]:h.options[e]}function a(){p&&(p.stop(),p.destroy()),f.remove(),!h.paused&&1<h.images.length&&h.cycle(),h.options.bypassCss||h.isBody||h.$container.css("background-image","none"),w(["after","show"]).each(function(){h.$container.trigger(w.Event("backstretch."+this,g),[h,c])}),m&&h.videoWrapper.play()}var s=o("transition"),l=o("transitionEasing"),u=o("transitionDuration");h.firstShow&&!h.options.animateFirst||!u||!s?(t.show(),a()):function(e){var t=e.transition||"fade";"string"==typeof t&&-1<t.indexOf("|")&&(t=t.split("|")),t instanceof Array&&(t=t[Math.round(Math.random()*(t.length-1))]);var n=e.new,r=e.old?e.old:w([]);switch(t.toString().toLowerCase()){default:case"fade":n.fadeIn({duration:e.duration,complete:e.complete,easing:e.easing||S});break;case"fadeinout":case"fade_in_out":var i=function(){n.fadeIn({duration:e.duration/2,complete:e.complete,easing:e.easing||S})};r.length?r.fadeOut({duration:e.duration/2,complete:i,easing:e.easing||S}):i();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var o=t.match(/^(cover|push)_?(.*)$/),a="left"===o[2]?"right":"right"===o[2]?"left":"down"===o[2]?"top":"up"===o[2]?"bottom":"right",s={display:""},l={};if(s[a]="-100%",l[a]=0,n.css(s).animate(l,{duration:e.duration,complete:function(){n.css(a,""),e.complete.apply(this,arguments)},easing:e.easing||S}),"push"===o[1]&&r.length){var u={};u[a]="100%",r.animate(u,{duration:e.duration,complete:function(){r.css("display","none")},easing:e.easing||S})}}}({new:t,old:f,transition:s,duration:u,easing:l,complete:a}),h.firstShow=!1,h.resize()}),h.$itemWrapper.appendTo(h.$wrap),h.$item.attr("alt",e.alt||""),h.$itemWrapper.data("options",e),m||h.$item.attr("src",e.url),h._currentImage=e,h}},current:function(){return this.index},next:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,e)},prev:function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,e)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(1<this.images.length){clearTimeout(this._cycleTimeout);var e=this._currentImage&&this._currentImage.duration||this.options.duration,t=v(this._currentImage),n=function(){this.$item.off(".cycle"),this.paused||this.next()};if(t){if(!this._currentImage.loop){var r=0;this.$item.on("playing.cycle",function(){var e=w(this).data("player");clearTimeout(r),r=setTimeout(function(){e.pause(),e.$video.trigger("ended")},1e3*(e.getDuration()-e.getCurrentTime()))}).on("ended.cycle",function(){clearTimeout(r)})}this.$item.on("error.cycle initerror.cycle",w.proxy(n,this))}t&&!this._currentImage.duration?this.$item.on("ended.cycle",w.proxy(n,this)):this._cycleTimeout=setTimeout(w.proxy(n,this),e)}return this},destroy:function(e){w(_).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),e||this.$wrap.remove(),this.$container.removeData("backstretch")}};var y=function(){this.init.apply(this,arguments)};y.prototype.init=function(e){function t(){r.$video=n,r.video=n[0]}var n,r=this,i="video";if(e.url instanceof Array||!u.test(e.url)||(i="youtube"),"youtube"===(r.type=i)){y.loadYoutubeAPI(),r.ytId=e.url.match(u)[2];var o="https://www.youtube.com/embed/"+r.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(_.location.origin);r.__ytStartMuted=!!e.mute||e.mute===S,n=w("<iframe />").attr({src_to_load:o}).css({border:0,margin:0,padding:0}).data("player",r),e.loop&&n.on("ended.loop",function(){r.__manuallyStopped||r.play()}),r.ytReady=!1,t(),_.YT&&_.YT.loaded?(r._initYoutube(),n.trigger("initsuccess")):w(_).one("youtube_api_load",function(){r._initYoutube(),n.trigger("initsuccess")})}else{n=w("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!e.loop).prop("muted",!!e.mute||e.mute===S).prop("preload","auto").prop("poster",e.poster||"");for(var a=e.url instanceof Array?e.url:[e.url],s=0;s<a.length;s++){var l=a[s];"string"==typeof l&&(l={src:l}),w("<source>").attr("src",l.src).attr("type",l.type||null).appendTo(n)}n[0].canPlayType&&a.length?n.trigger("initsuccess"):n.trigger("initerror"),t()}},y.prototype._initYoutube=function(){var t=this,n=_.YT;t.$video.attr("src",t.$video.attr("src_to_load")).removeAttr("src_to_load");var e=!!t.$video[0].parentNode;if(!e){var r=w("<div>").css("display","none !important").appendTo(document.body);t.$video.appendTo(r)}var i=new n.Player(t.video,{events:{onReady:function(){t.__ytStartMuted&&i.mute(),e||(t.$video[0].parentNode===r[0]&&t.$video.detach(),r.remove()),t.ytReady=!0,t._updateYoutubeSize(),t.$video.trigger("canplay")},onStateChange:function(e){switch(e.data){case n.PlayerState.PLAYING:t.$video.trigger("playing");break;case n.PlayerState.ENDED:t.$video.trigger("ended");break;case n.PlayerState.PAUSED:t.$video.trigger("pause");break;case n.PlayerState.BUFFERING:t.$video.trigger("waiting");break;case n.PlayerState.CUED:t.$video.trigger("canplay")}},onPlaybackQualityChange:function(){t._updateYoutubeSize(),t.$video.trigger("resize")},onError:function(e){t.hasError=!0,t.$video.trigger({type:"error",error:e})}}});return t.ytPlayer=i,t},y.prototype._updateYoutubeSize=function(){var e=this;switch(e.ytPlayer.getPlaybackQuality()||"medium"){case"small":e.video.videoWidth=426,e.video.videoHeight=240;break;case"medium":e.video.videoWidth=640,e.video.videoHeight=360;break;default:case"large":e.video.videoWidth=854,e.video.videoHeight=480;break;case"hd720":e.video.videoWidth=1280,e.video.videoHeight=720;break;case"hd1080":e.video.videoWidth=1920,e.video.videoHeight=1080;break;case"highres":e.video.videoWidth=2560,e.video.videoHeight=1440}return e},y.prototype.play=function(){return this.__manuallyStopped=!1,"youtube"===this.type?this.ytReady&&(this.$video.trigger("play"),this.ytPlayer.playVideo()):this.video.play(),this},y.prototype.pause=function(){return this.__manuallyStopped=!1,"youtube"===this.type?this.ytReady&&this.ytPlayer.pauseVideo():this.video.pause(),this},y.prototype.stop=function(){return this.__manuallyStopped=!0,"youtube"===this.type?this.ytReady&&(this.ytPlayer.pauseVideo(),this.ytPlayer.seekTo(0)):(this.video.pause(),this.video.currentTime=0),this},y.prototype.destroy=function(){return this.ytPlayer&&this.ytPlayer.destroy(),this.$video.remove(),this},y.prototype.getCurrentTime=function(e){return"youtube"!==this.type?this.video.currentTime:this.ytReady?this.ytPlayer.getCurrentTime():0},y.prototype.setCurrentTime=function(e){return"youtube"===this.type?this.ytReady&&this.ytPlayer.seekTo(e,!0):this.video.currentTime=e,this},y.prototype.getDuration=function(){return"youtube"!==this.type?this.video.duration:this.ytReady?this.ytPlayer.getDuration():0},y.loadYoutubeAPI=function(){_.YT&&_.__yt_load_event_interval__||(_.YT||w("script[src*=www\\.youtube\\.com\\/iframe_api]").length||w('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body"),_.__yt_load_event_interval__=setInterval(function(){_.YT&&_.YT.loaded&&(w(_).trigger("youtube_api_load"),clearTimeout(_.__yt_load_event_interval__),delete _.__yt_load_event_interval__)},50))};var e,i,o,a,b,x,C,k,I,R,A=function(){if("matchMedia"in _){if(_.matchMedia("(orientation: portrait)").matches)return"portrait";if(_.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"},M=function(){return _.innerHeight>_.innerWidth?"portrait":_.innerWidth>_.innerHeight?"landscape":"square"},O=(e=navigator.userAgent,i=navigator.platform,o=e.match(/AppleWebKit\/([0-9]+)/),a=!!o&&o[1],b=e.match(/Fennec\/([0-9]+)/),x=!!b&&b[1],C=e.match(/Opera Mobi\/([0-9]+)/),k=!!C&&C[1],I=e.match(/MSIE ([0-9]+)/),R=!!I&&I[1],!((-1<i.indexOf("iPhone")||-1<i.indexOf("iPad")||-1<i.indexOf("iPod"))&&a&&a<534||_.operamini&&"[object OperaMini]"==={}.toString.call(_.operamini)||C&&k<7458||-1<e.indexOf("Android")&&a&&a<533||x&&x<6||"palmGetResource"in _&&a&&a<534||-1<e.indexOf("MeeGo")&&-1<e.indexOf("NokiaBrowser/8.5.0")||R&&R<=6))}(jQuery,window),window.Rainbow=function(){function a(e){var t,n=e.getAttribute&&e.getAttribute("data-language")||0;if(!n)for(e=e.attributes,t=0;t<e.length;++t)if("data-language"===e[t].nodeName)return e[t].nodeValue;return n}function h(e,t){return'<span class="'+e.replace(/\./g," ")+(n?" "+n:"")+'">'+t+"</span>"}function s(t,l,n,r){if(null==t)r();else{var u=t.exec(n);if(u){++b,l.name||"string"!=typeof l.matches[0]||(l.name=l.matches[0],delete l.matches[0]);function i(){function e(){s(t,l,n,r)}0<b%100?e():setTimeout(e,0)}var c=u[0],o=u.index,a=u[0].length+o;if(function(e,t){for(var n in v[y]){n=parseInt(n,10);var r=v[y][n];if(e==n&&t==r||!(e<=n&&r<=t)||(delete v[y][n],delete m[y][n]),r=v[y][n],n<=e&&e<r||n<t&&t<r)return!0}return!1}(o,a))i();else{var e=f(l.matches),d=function(o,a,s){if(o>=a.length)s(c);else{var t=u[a[o]];if(t){function n(e,t,n){var r,i;for(r=0,i=1;i<a[o];++i)u[i]&&(r+=u[i].length);t=n?h(n,t):t,c=c.substr(0,r)+c.substr(r).replace(e,t),d(++o,a,s)}var r=l.matches[a[o]],e=r.language,i=r.name&&r.matches?r.matches:r;e?g(t,e,function(e){n(t,e)}):"string"==typeof r?n(t,t,r):p(t,i.length?i:[i],function(e){n(t,e,r.matches?r.name:0)})}else d(++o,a,s)}};d(0,e,function(e){l.name&&(e=h(l.name,e)),m[y]||(m[y]={},v[y]={}),m[y][o]={replace:u[0],with:e},v[y][o]=a,i()})}}else r()}}function f(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);return n.sort(function(e,t){return t-e})}function p(r,e,i){++y,function e(t,n){n<t.length?s(t[n].pattern,t[n],r,function(){e(t,++n)}):function(e,t){var n=f(m[y]);!function e(t,n,r,i){if(r<n.length){++w;var o=n[r],a=m[y][o];t=t.substr(0,o)+t.substr(o).replace(a.replace,a.with),o=function(){e(t,n,++r,i)},0<w%250?o():setTimeout(o,0)}else i(t)}(e,n,0,t)}(r,function(e){delete m[y],delete v[y],--y,i(e)})}(e,0)}function g(e,t,n){var r=o[t]||[],i=o[d]||[];t=c[t]?r:r.concat(i),p(e.replace(/</g,"<").replace(/>/g,">").replace(/&(?![\w\#]+;)/g,"&"),t,n)}function l(t,n,r){if(n<t.length){var i=t[n],o=function(e){var t=a(e)||a(e.parentNode);if(!t){var n=/\blang(?:uage)?-(\w+)/;(e=e.className.match(n)||e.parentNode.className.match(n))&&(t=e[1])}return t}(i);return-1<(" "+i.className+" ").indexOf(" rainbow ")||!o?l(t,++n,r):(o=o.toLowerCase(),i.className+=i.className?" rainbow":"rainbow",g(i.innerHTML,o,function(e){i.innerHTML=e,m={},v={},u&&u(i,o),setTimeout(function(){l(t,++n,r)},0)}))}r&&r()}function r(e,t){var n,r=(e=e&&"function"==typeof e.getElementsByTagName?e:document).getElementsByTagName("pre"),i=e.getElementsByTagName("code"),o=[],a=[];for(n=0;n<r.length;++n)r[n].getElementsByTagName("code").length?r[n].innerHTML=r[n].innerHTML.replace(/^\s+/,"").replace(/\s+$/,""):o.push(r[n]);for(n=0;n<i.length;++n)a.push(i[n]);l(a.concat(o),0,t)}var n,u,m={},v={},o={},c={},y=0,d=0,b=0,w=0;return{extend:function(e,t,n){1==arguments.length&&(t=e,e=d),c[e]=n,o[e]=t.concat(o[e]||[])},b:function(e){u=e},a:function(e){n=e},color:function(e,t,n){return"string"==typeof e?g(e,t,n):"function"==typeof e?r(0,e):void r(e,t)}}}(),function(){var n=[];document.onreadystatechange&&n.push(document.onreadystatechange),document.onreadystatechange=function(e){for(var t=0;t<n.length;t++)n[t].call&&n[t].call(this,e);"complete"===document.readyState&&Rainbow.color()}}(),Rainbow.onHighlight=Rainbow.b,Rainbow.addClass=Rainbow.a,Rainbow.extend("c",[{name:"meta.preprocessor",matches:{1:[{matches:{1:"keyword.define",2:"entity.name"},pattern:/(\w+)\s(\w+)\b/g},{name:"keyword.define",pattern:/endif/g},{name:"constant.numeric",pattern:/\d+/g},{matches:{1:"keyword.include",2:"string"},pattern:/(include)\s(.*?)$/g}]},pattern:/\#([\S\s]*?)$/gm},{name:"keyword",pattern:/\b(do|goto|typedef)\b/g},{name:"entity.label",pattern:/\w+:/g},{matches:{1:"storage.type",3:"storage.type",4:"entity.name.function"},pattern:/\b((un)?signed|const)? ?(void|char|short|int|long|float|double)\*? +((\w+)(?= ?\())?/g},{matches:{2:"entity.name.function"},pattern:/(\w|\*) +((\w+)(?= ?\())/g},{name:"storage.modifier",pattern:/\b(static|extern|auto|register|volatile|inline)\b/g},{name:"support.type",pattern:/\b(struct|union|enum)\b/g}]),Rainbow.extend("scheme",[{name:"plain",pattern:/>|</g},{name:"comment",pattern:/;.*$/gm},{name:"constant.language",pattern:/#t|#f|'\(\)/g},{name:"constant.symbol",pattern:/'[^()\s#]+/g},{name:"constant.number",pattern:/\b\d+(?:\.\d*)?\b/g},{name:"string",pattern:/".+?"/g},{matches:{1:"storage.function",2:"variable"},pattern:/\(\s*(define)\s+\(?(\S+)/g},{matches:{1:"keyword"},pattern:/\(\s*(begin|define\-syntax|if|lambda|quasiquote|quote|set!|syntax\-rules|and|and\-let\*|case|cond|delay|do|else|or|let|let\*|let\-syntax|letrec|letrec\-syntax)(?=[\]()\s#])/g},{matches:{1:"entity.function"},pattern:/\(\s*(eqv\?|eq\?|equal\?|number\?|complex\?|real\?|rational\?|integer\?|exact\?|inexact\?|=|<|>|<=|>=|zero\?|positive\?|negative\?|odd\?|even\?|max|min|\+|\-|\*|\/|abs|quotient|remainder|modulo|gcd|lcm|numerator|denominator|floor|ceiling|truncate|round|rationalize|exp|log|sin|cos|tan|asin|acos|atan|sqrt|expt|make\-rectangular|make\-polar|real\-part|imag\-part|magnitude|angle|exact\->inexact|inexact\->exact|number\->string|string\->number|not|boolean\?|pair\?|cons|car|cdr|set\-car!|set\-cdr!|caar|cadr|cdar|cddr|caaar|caadr|cadar|caddr|cdaar|cdadr|cddar|cdddr|caaaar|caaadr|caadar|caaddr|cadaar|cadadr|caddar|cadddr|cdaaar|cdaadr|cdadar|cdaddr|cddaar|cddadr|cdddar|cddddr|null\?|list\?|list|length|append|reverse|list\-tail|list\-ref|memq|memv|member|assq|assv|assoc|symbol\?|symbol\->string|string\->symbol|char\?|char=\?|char<\?|char>\?|char<=\?|char>=\?|char\-ci=\?|char\-ci<\?|char\-ci>\?|char\-ci<=\?|char\-ci>=\?|char\-alphabetic\?|char\-numeric\?|char\-whitespace\?|char\-upper\-case\?|char\-lower\-case\?|char\->integer|integer\->char|char\-upcase|char\-downcase|string\?|make\-string|string|string\-length|string\-ref|string\-set!|string=\?|string\-ci=\?|string<\?|string>\?|string<=\?|string>=\?|string\-ci<\?|string\-ci>\?|string\-ci<=\?|string\-ci>=\?|substring|string\-append|string\->list|list\->string|string\-copy|string\-fill!|vector\?|make\-vector|vector|vector\-length|vector\-ref|vector\-set!|vector\->list|list\->vector|vector\-fill!|procedure\?|apply|map|for\-each|force|call\-with\-current\-continuation|call\/cc|values|call\-with\-values|dynamic\-wind|eval|scheme\-report\-environment|null\-environment|interaction\-environment|call\-with\-input\-file|call\-with\-output\-file|input\-port\?|output\-port\?|current\-input\-port|current\-output\-port|with\-input\-from\-file|with\-output\-to\-file|open\-input\-file|open\-output\-file|close\-input\-port|close\-output\-port|read|read\-char|peek\-char|eof\-object\?|char\-ready\?|write|display|newline|write\-char|load|transcript\-on|transcript\-off)(?=[\]()\s#])/g}],!0),Rainbow.extend("java",[{name:"constant",pattern:/\b(false|null|true|[A-Z_]+)\b/g},{matches:{1:"keyword",2:"support.namespace"},pattern:/(import|package)\s(.+)/g},{name:"keyword",pattern:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/g},{name:"string",pattern:/(".*?")/g},{name:"char",pattern:/(')(.|\\.|\\u[\dA-Fa-f]{4})\1/g},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)L?\b/g},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/).*?$/gm},{name:"support.annotation",pattern:/@\w+/g},{matches:{1:"entity.function"},pattern:/([^@\.\s]+)\(/g},{name:"entity.class",pattern:/\b([A-Z]\w*)\b/g},{name:"operator",pattern:/(\+{1,2}|-{1,2}|~|!|\*|\/|%|(?:<){1,2}|(?:>){1,3}|instanceof|(?:&){1,2}|\^|\|{1,2}|\?|:|(?:=|!|\+|-|\*|\/|%|\^|\||(?:<){1,2}|(?:>){1,3})?=)/g}],!0),Rainbow.extend("d",[{name:"constant",pattern:/\b(false|null|true)\b/gm},{name:"keyword",pattern:/\b(abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__LINE__|__gshared|__traits|__vector|__parameters)\b/gm},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/gm}},pattern:/(typeof)\s([^\$].*?)(\)|;)/gm},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/gm}},pattern:/\b(namespace)\s(.*?);/gm},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class"},pattern:/\b(abstract|sealed)?\s?(class)\s(\w+)(\sextends\s)?([\w\\]*)?\s?\{?(\n|\})/gm},{name:"keyword.static",pattern:/\b(static)\b/gm},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/gm}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;|&)/gm},{name:"string",pattern:/("|')(.*?)\1/gm},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)\b/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|\/\+[\s\S]*?\+\/|(\/\/)[\s\S]*?$/gm},{name:"operator",pattern:/(\/|\/=|&=|&&|&|\|=|\|\|\||\-=|\-\-|\-|\+=|\+\+|\+|<=|<<|<|<<=|<>=|<>|>|>>>=|>>=|>=|>>|>>>|!=|!<>=|!<>|!<=|!<|!>=|!>|!|[|]|\$|==|=|\*=|\*|%=|%|\^\^=|\^=|\^\^|\^|~=|~|@|=>|\:)/gm}],!0),Rainbow.extend("lua",[{matches:{1:{name:"keyword.operator",pattern:/\=/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=)(('|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\-{2}\[{2}\-{2}[\s\S]*?\-{2}\]{2}\-{2}|(\-{2})[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b((a|e)nd|in|repeat|break|local|return|do|for|then|else(if)?|function|not|if|or|until|while)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|nil/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\=|#|\.{2}/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(function)\s+(\w+[\:|\.]?\w+?)(?=\()/g},{matches:{1:"support.function"},pattern:/\b(print|require|module|\w+\.\w+)(?=\()/g}],!0),Rainbow.extend([{matches:{1:[{name:"keyword.operator",pattern:/\=|\+/g},{name:"keyword.dot",pattern:/\./g}],2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=|:|\+|\.)(('|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/|\#)[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b(and|array|as|b(ool(ean)?|reak)|c(ase|atch|har|lass|on(st|tinue))|d(ef|elete|o(uble)?)|e(cho|lse(if)?|xit|xtends|xcept)|f(inally|loat|or(each)?|unction)|global|if|import|int(eger)?|long|new|object|or|pr(int|ivate|otected)|public|return|self|st(ring|ruct|atic)|switch|th(en|is|row)|try|(un)?signed|var|void|while)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|null/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\=/g},{matches:{1:"function.call"},pattern:/(\w+?)(?=\()/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(function)\s(.*?)(?=\()/g}]),Rainbow.extend("javascript",[{name:"selector",pattern:/(\s|^)\$(?=\.|\()/g},{name:"support",pattern:/\b(window|document)\b/g},{matches:{1:"support.property"},pattern:/\.(length|node(Name|Value))\b/g},{matches:{1:"support.function"},pattern:/(setTimeout|setInterval)(?=\()/g},{matches:{1:"support.method"},pattern:/\.(getAttribute|push|getElementById|getElementsByClassName|log|setTimeout|setInterval)(?=\()/g},{name:"string.regexp",matches:{1:"string.regexp.open",2:{name:"constant.regexp.escape",pattern:/\\(.){1}/g},3:"string.regexp.close",4:"string.regexp.modifier"},pattern:/(\/)(?!\*)(.+)(\/)([igm]{0,3})/g},{matches:{1:"storage",3:"entity.function"},pattern:/(var)?(\s|^)(\S*)(?=\s?=\s?function\()/g},{matches:{1:"keyword",2:"entity.function"},pattern:/(new)\s+(.*)(?=\()/g},{name:"entity.function",pattern:/(\w+)(?=:\s{0,}function)/g}]),Rainbow.extend("r",[{matches:{1:{name:"keyword.operator",pattern:/\=|<\-|<-/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=|:)(('|")([^\\\1]|\\.)*?(\3))/gm},{matches:{1:"constant.language"},pattern:/\b(NULL|NA|TRUE|FALSE|T|F|NaN|Inf|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/g},{matches:{1:"constant.symbol"},pattern:/[^0-9a-zA-Z\._](LETTERS|letters|month\.(abb|name)|pi)/g},{name:"keyword.operator",pattern:/<-|<-|-|==|<=|<=|>>|>=|<|>|&&|&&|&|&|!=|\|\|?|\*|\+|\^|\/|%%|%\/%|\=|%in%|%\*%|%o%|%x%|\$|:|~|\[{1,2}|\]{1,2}/g},{matches:{1:"storage",3:"entity.function"},pattern:/(\s|^)(.*)(?=\s?=\s?function\s\()/g},{matches:{1:"storage.function"},pattern:/[^a-zA-Z0-9._](function)(?=\s*\()/g},{matches:{1:"namespace",2:"keyword.operator",3:"function.call"},pattern:/([a-zA-Z][a-zA-Z0-9._]+)([:]{2,3})([.a-zA-Z][a-zA-Z0-9._]*(?=\s*\())\b/g},{name:"support.function",pattern:/(^|[^0-9a-zA-Z\._])(array|character|complex|data\.frame|double|integer|list|logical|matrix|numeric|vector)(?=\s*\()/g}]),Rainbow.extend("html",[{name:"source.php.embedded",matches:{2:{language:"php"}},pattern:/<\?=?(?!xml)(php)?([\s\S]*?)(\?>)/gm},{name:"source.css.embedded",matches:{1:{matches:{1:"support.tag.style",2:[{name:"entity.tag.style",pattern:/^style/g},{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.style.attribute",pattern:/(\w+)/g}],3:"support.tag.style"},pattern:/(<\/?)(style.*?)(>)/g},2:{language:"css"},3:"support.tag.style",4:"entity.tag.style",5:"support.tag.style"},pattern:/(<style.*?>)([\s\S]*?)(<\/)(style)(>)/gm},{name:"source.js.embedded",matches:{1:{matches:{1:"support.tag.script",2:[{name:"entity.tag.script",pattern:/^script/g},{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.script.attribute",pattern:/(\w+)/g}],3:"support.tag.script"},pattern:/(<\/?)(script.*?)(>)/g},2:{language:"javascript"},3:"support.tag.script",4:"entity.tag.script",5:"support.tag.script"},pattern:/(<script(?! src).*?>)([\s\S]*?)(<\/)(script)(>)/gm},{name:"comment.html",pattern:/<\!--[\S\s]*?-->/g},{matches:{1:"support.tag.open",2:"support.tag.close"},pattern:/(<)|(\/?\??>)/g},{name:"support.tag",matches:{1:"support.tag",2:"support.tag.special",3:"support.tag-name"},pattern:/(<\??)(\/|\!?)(\w+)/g},{matches:{1:"support.attribute"},pattern:/([a-z-]+)(?=\=)/gi},{matches:{1:"support.operator",2:"string.quote",3:"string.value",4:"string.quote"},pattern:/(=)('|")(.*?)(\2)/g},{matches:{1:"support.operator",2:"support.value"},pattern:/(=)([a-zA-Z\-0-9]*)\b/g},{matches:{1:"support.attribute"},pattern:/\s(\w+)(?=\s|>)(?![\s\S]*<)/g}],!0),Rainbow.extend("python",[{name:"variable.self",pattern:/self/g},{name:"constant.language",pattern:/None|True|False|NotImplemented|\.\.\./g},{name:"support.object",pattern:/object/g},{name:"support.function.python",pattern:/\b(bs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|bin|file|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern)(?=\()/g},{matches:{1:"keyword"},pattern:/\b(pass|lambda|with|is|not|in|from|elif|raise|del)(?=\(|\b)/g},{matches:{1:"storage.class",2:"entity.name.class",3:"entity.other.inherited-class"},pattern:/(class)\s+(\w+)\((\w+?)\)/g},{matches:{1:"storage.function",2:"support.magic"},pattern:/(def)\s+(__\w+)(?=\()/g},{name:"support.magic",pattern:/__(name)__/g},{matches:{1:"keyword.control",2:"support.exception.type"},pattern:/(except) (\w+):/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(def)\s+(\w+)(?=\()/g},{name:"entity.name.function.decorator",pattern:/@([\w\.]+)/g},{name:"comment.docstring",pattern:/('{3}|"{3})[\s\S]*?\1/gm}]),Rainbow.extend("coffeescript",[{name:"comment.block",pattern:/(\#{3})[\s\S]*\1/gm},{name:"string.block",pattern:/('{3}|"{3})[\s\S]*\1/gm},{name:"string.regex",matches:{2:{name:"comment",pattern:/\#(.*?)\n/g}},pattern:/(\/{3})([\s\S]*)\1/gm},{matches:{1:"keyword"},pattern:/\b(in|when|is|isnt|of|not|unless|until|super)(?=\b)/gi},{name:"keyword.operator",pattern:/\?/g},{name:"constant.language",pattern:/\b(undefined|yes|on|no|off)\b/g},{name:"keyword.variable.coffee",pattern:/@(\w+)/gi},{name:"reset",pattern:/object|class|print/gi},{matches:{1:"entity.name.function",2:"keyword.operator",3:{name:"function.argument.coffee",pattern:/([\@\w]+)/g},4:"keyword.function"},pattern:/(\w+)\s{0,}(=|:)\s{0,}\((.*?)((-|=)>)/gi},{matches:{1:{name:"function.argument.coffee",pattern:/([\@\w]+)/g},2:"keyword.function"},pattern:/\s\((.*?)\)\s{0,}((-|=)>)/gi},{matches:{1:"entity.name.function",2:"keyword.operator",3:"keyword.function"},pattern:/(\w+)\s{0,}(=|:)\s{0,}((-|=)>)/gi},{matches:{1:"storage.class",2:"entity.name.class",3:"storage.modifier.extends",4:"entity.other.inherited-class"},pattern:/\b(class)\s(\w+)(\sextends\s)?([\w\\]*)?\b/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s(.*?)(?=\s)/g}]),Rainbow.extend("haskell",[{name:"comment",pattern:/\{\-\-[\s\S(\w+)]+[\-\-][\}$]/gm},{name:"comment",pattern:/\-\-(.*)/g},{matches:{1:"keyword",2:"support.namespace"},pattern:/\b(module)\s(\w+)\s[\(]?(\w+)?[\)?]\swhere/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\/\=|\||\@|\:|\.|\+{2}|\:|\*|\=|#|\.{2}|(\\)[a-zA-Z_]/g},{name:"keyword",pattern:/\b(case|class|foreign|hiding|qualified|data|family|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|in|otherwise|module|newtype|of|then|type|where)\b/g},{name:"keyword",pattern:/[\`][a-zA-Z_']*?[\`]/g},{matches:{1:"keyword",2:"keyword.operator"},pattern:/\b(infix|infixr|infixl)+\s\d+\s(\w+)*/g},{name:"entity.class",pattern:/\b([A-Z][A-Za-z0-9_']*)/g},{name:"meta.preprocessor",matches:{1:[{matches:{1:"keyword.define",2:"entity.name"},pattern:/(\w+)\s(\w+)\b/g},{name:"keyword.define",pattern:/endif/g},{name:"constant.numeric",pattern:/\d+/g},{matches:{1:"keyword.include",2:"string"},pattern:/(include)\s(.*?)$/g}]},pattern:/^\#([\S\s]*?)$/gm}]),Rainbow.extend("smalltalk",[{name:"keyword.pseudovariable",pattern:/self|thisContext/g},{name:"keyword.constant",pattern:/false|nil|true/g},{name:"string",pattern:/'([^']|'')*'/g},{name:"string.symbol",pattern:/#\w+|#'([^']|'')*'/g},{name:"string.character",pattern:/\$\w+/g},{name:"comment",pattern:/"([^"]|"")*"/g},{name:"constant.numeric",pattern:/-?\d+(\.\d+)?((r-?|s)[A-Za-z0-9]+|e-?[0-9]+)?/g},{name:"entity.name.class",pattern:/\b[A-Z]\w*/g},{name:"entity.name.function",pattern:/\b[a-z]\w*:?/g},{name:"entity.name.binary",pattern:/(<|>|&|[=~\|\\\/!@*\-_+])+/g},{name:"operator.delimiter",pattern:/;[\(\)\[\]\{\}]|#\[|#\(^\./g}],!0),Rainbow.extend("csharp",[{name:"constant",pattern:/\b(false|null|true)\b/g},{name:"keyword",pattern:/\b(abstract|add|alias|ascending|as|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|double|do|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|foreach|for|from|get|global|goto|group|if|implicit|int|interface|internal|into|in|is|join|let|lock|long|namespace|new|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|try|typeof|uint|unchecked|ulong|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/g},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/g}},pattern:/(typeof)\s([^\$].*?)(\)|;)/g},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/g}},pattern:/\b(namespace)\s(.*?);/g},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class"},pattern:/\b(abstract|sealed)?\s?(class)\s(\w+)(\sextends\s)?([\w\\]*)?\s?\{?(\n|\})/g},{name:"keyword.static",pattern:/\b(static)\b/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;|&)/g},{name:"string",pattern:/(")(.*?)\1/g},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)\b/g},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/)[\s\S]*?$/gm},{name:"operator",pattern:/(\+\+|\+=|\+|--|-=|-|<<=|<<|<=|=>|>>=|>>|>=|!=|!|~|\^|\|\||&&|&=|&|\?\?|::|:|\*=|\*|\/=|%=|\|=|==|=)/g},{name:"preprocessor",pattern:/(\#if|\#else|\#elif|\#endif|\#define|\#undef|\#warning|\#error|\#line|\#region|\#endregion|\#pragma)[\s\S]*?$/gm}],!0),Rainbow.extend("go",[{matches:{1:{name:"keyword.operator",pattern:/\=/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\(`|"){1}/g}}},pattern:/(\(|\s|\[|\=|:)((`|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/)[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b(break|c(ase|onst|ontinue)|d(efault|efer)|else|fallthrough|for|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|null|string|byte|rune|u?int(8|16|32|64)?|float(32|64)|complex(64|128)/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\:?=/g},{matches:{1:"function.call"},pattern:/(\w+?)(?=\()/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(func)\s(.*?)(?=\()/g}]),Rainbow.extend("shell",[{name:"shell",matches:{1:{language:"shell"}},pattern:/\$\(([\s\S]*?)\)/gm},{matches:{2:"string"},pattern:/(\(|\s|\[|\=)(('|")[\s\S]*?(\3))/gm},{name:"keyword.operator",pattern:/<|>|&/g},{name:"comment",pattern:/\#[\s\S]*?$/gm},{name:"storage.function",pattern:/(.+?)(?=\(\)\s{0,}\{)/g},{name:"support.command",pattern:/\b(echo|rm|ls|(mk|rm)dir|cd|find|cp|exit|pwd|exec|trap|source|shift|unset)/g},{matches:{1:"keyword"},pattern:/\b(break|case|continue|do|done|elif|else|esac|eval|export|fi|for|function|if|in|local|return|set|then|unset|until|while)(?=\(|\b)/g}],!0),Rainbow.extend("php",[{name:"support",pattern:/\becho\b/g},{matches:{1:"variable.dollar-sign",2:"variable"},pattern:/(\$)(\w+)\b/g},{name:"constant.language",pattern:/true|false|null/gi},{name:"constant",pattern:/\b[A-Z0-9_]{2,}\b/g},{name:"keyword.dot",pattern:/\./g},{name:"keyword",pattern:/\b(die|end(for(each)?|switch|if)|case|require(_once)?|include(_once)?)(?=\(|\b)/g},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/g}},pattern:/(instanceof)\s([^\$].*?)(\)|;)/g},{matches:{1:"support.function"},pattern:/\b(array(_key_exists|_merge|_keys|_shift)?|isset|count|empty|unset|printf|is_(array|string|numeric|object)|sprintf|each|date|time|substr|pos|str(len|pos|tolower|_replace|totime)?|ord|trim|in_array|implode|end|preg_match|explode|fmod|define|link|list|get_class|serialize|file|sort|mail|dir|idate|log|intval|header|chr|function_exists|dirname|preg_replace|file_exists)(?=\()/g},{name:"variable.language.php-tag",pattern:/(<\?(php)?|\?>)/g},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/g}},pattern:/\b(namespace|use)\s(.*?);/g},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class",6:"storage.modifier.extends",7:"entity.other.inherited-class"},pattern:/\b(abstract|final)?\s?(class|interface|trait)\s(\w+)(\sextends\s)?([\w\\]*)?(\simplements\s)?([\w\\]*)?\s?\{?(\n|\})/g},{name:"keyword.static",pattern:/self::|static::/g},{matches:{1:"storage.function",2:"support.magic"},pattern:/(function)\s(__.*?)(?=\()/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;)/g},{matches:{1:{name:"support.class",pattern:/\w+/g},2:"keyword.static"},pattern:/([\w\\]*?)(::)(?=\b|\$)/g},{matches:{2:{name:"support.class",pattern:/\w+/g}},pattern:/(\(|,\s?)([\w\\]*?)(?=\s\$)/g}]),Rainbow.extend("ruby",[{matches:{1:"variable.language",2:{language:null}},pattern:/^(__END__)\n((?:.*\n)*)/gm},{name:"string",matches:{1:"string.open",2:[{name:"string.interpolation",matches:{1:"string.open",2:{language:"ruby"},3:"string.close"},pattern:/(\#\{)(.*?)(\})/g}],3:"string.close"},pattern:/("|`)(.*?[^\\\1])?(\1)/g},{name:"string",pattern:/('|"|`)([^\\\1\n]|\\.)*?\1/g},{name:"string",pattern:/%[qQ](?=(\(|\[|\{|<|.)(.*?)(?:'|\)|\]|\}|>|\1))(?:\(\2\)|\[\2\]|\{\2\}|\<\2>|\1\2\1)/g},{matches:{1:"string",2:"string",3:"string"},pattern:/(<<)(\w+).*?$([\s\S]*?^\2)/gm},{matches:{1:"string",2:"string",3:"string"},pattern:/(<<\-)(\w+).*?$([\s\S]*?\2)/gm},{name:"string.regexp",matches:{1:"string.regexp",2:{name:"string.regexp",pattern:/\\(.){1}/g},3:"string.regexp",4:"string.regexp"},pattern:/(\/)(.*?)(\/)([a-z]*)/g},{name:"string.regexp",matches:{1:"string.regexp",2:{name:"string.regexp",pattern:/\\(.){1}/g},3:"string.regexp",4:"string.regexp"},pattern:/%r(?=(\(|\[|\{|<|.)(.*?)('|\)|\]|\}|>|\1))(?:\(\2\)|\[\2\]|\{\2\}|\<\2>|\1\2\1)([a-z]*)/g},{name:"comment",pattern:/#.*$/gm},{name:"comment",pattern:/^\=begin[\s\S]*?\=end$/gm},{matches:{1:"constant"},pattern:/(\w+:)[^:]/g},{matches:{1:"constant.symbol"},pattern:/[^:](:(?:\w+|(?=['"](.*?)['"])(?:"\2"|'\2')))/g},{name:"constant.numeric",pattern:/\b(0x[\da-f]+|\d+)\b/g},{name:"support.class",pattern:/\b[A-Z]\w*(?=((\.|::)[A-Za-z]|\[))/g},{name:"constant",pattern:/\b[A-Z]\w*\b/g},{matches:{1:"storage.class",2:"entity.name.class",3:"entity.other.inherited-class"},pattern:/\s*(class)\s+((?:(?:::)?[A-Z]\w*)+)(?:\s+<\s+((?:(?:::)?[A-Z]\w*)+))?/g},{matches:{1:"storage.module",2:"entity.name.class"},pattern:/\s*(module)\s+((?:(?:::)?[A-Z]\w*)+)/g},{name:"variable.global",pattern:/\$([a-zA-Z_]\w*)\b/g},{name:"variable.class",pattern:/@@([a-zA-Z_]\w*)\b/g},{name:"variable.instance",pattern:/@([a-zA-Z_]\w*)\b/g},{matches:{1:"keyword.control"},pattern:/[^\.]\b(BEGIN|begin|case|class|do|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![?!])/g},{matches:{1:"keyword.control.pseudo-method"},pattern:/[^\.]\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![?!])|\bdefined\?|\bblock_given\?/g},{matches:{1:"constant.language"},pattern:/\b(nil|true|false)\b(?![?!])/g},{matches:{1:"variable.language"},pattern:/\b(__(FILE|LINE)__|self)\b(?![?!])/g},{matches:{1:"keyword.special-method"},pattern:/\b(require|gem|initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])/g},{name:"keyword.operator",pattern:/\s\?\s|=|<<|<<=|%=|&=|\*=|\*\*=|\+=|\-=|\^=|\|{1,2}=|<<|<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|%|&|\*\*|\*|\+|\-|\/|\||~|>>/g},{matches:{1:"keyword.operator.logical"},pattern:/[^\.]\b(and|not|or)\b/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(def)\s(.*?)(?=(\s|\())/g}],!0),Rainbow.extend("css",[{name:"comment",pattern:/\/\*[\s\S]*?\*\//gm},{name:"constant.hex-color",pattern:/#([a-f0-9]{3}|[a-f0-9]{6})(?=;|\s|,|\))/gi},{matches:{1:"constant.numeric",2:"keyword.unit"},pattern:/(\d+)(px|em|cm|s|%)?/g},{name:"string",pattern:/('|")(.*?)\1/g},{name:"support.css-property",matches:{1:"support.vendor-prefix"},pattern:/(-o-|-moz-|-webkit-|-ms-)?[\w-]+(?=\s?:)(?!.*\{)/g},{matches:{1:[{name:"entity.name.sass",pattern:/&/g},{name:"direct-descendant",pattern:/>/g},{name:"entity.name.class",pattern:/\.[\w\-_]+/g},{name:"entity.name.id",pattern:/\#[\w\-_]+/g},{name:"entity.name.pseudo",pattern:/:[\w\-_]+/g},{name:"entity.name.tag",pattern:/\w+/g}]},pattern:/([\w\ ,\n:\.\#\&\;\-_]+)(?=.*\{)/g},{matches:{2:"support.vendor-prefix",3:"support.css-value"},pattern:/(:|,)\s*(-o-|-moz-|-webkit-|-ms-)?([a-zA-Z-]*)(?=\b)(?!.*\{)/g}],!0),function(s){var i,o=[],a=!1,l=!1,u={interval:250,force_process:!1},c=s(window);function d(){l=!1;for(var e=0,t=o.length;e<t;e++){var n=s(o[e]).filter(function(){return s(this).is(":appeared")});if(n.trigger("appear",[n]),i){var r=i.not(n);r.trigger("disappear",[r])}i=n}}s.expr[":"].appeared=function(e){var t=s(e);if(!t.is(":visible"))return!1;var n=c.scrollLeft(),r=c.scrollTop(),i=t.offset(),o=i.left,a=i.top;return a+t.height()>=r&&a-(t.data("appear-top-offset")||0)<=r+c.height()&&o+t.width()>=n&&o-(t.data("appear-left-offset")||0)<=n+c.width()},s.fn.extend({appear:function(e){var t=s.extend({},u,e||{}),n=this.selector||this;if(!a){function r(){l||(l=!0,setTimeout(d,t.interval))}s(window).scroll(r).resize(r),a=!0}return t.force_process&&setTimeout(d,t.interval),o.push(n),s(n)}}),s.extend({force_appear:function(){return!!a&&(d(),!0)}})}(jQuery),function(e){"use strict";var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")];function n(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function r(e){this.options=n({},this.options),n(this.options,e),this._init()}r.prototype.options={elementId:"svg"},r.prototype._init=function(){this.svg=document.getElementById(this.options.elementId),this.paths=this.svg.querySelectorAll("path"),this._initAnimation()},r.prototype._initAnimation=function(){for(var e=0;e<this.paths.length;e++){var t=this.paths[e],n=t.getTotalLength();t.style.fillOpacity=0,t.style.strokeOpacity=1,t.style.transition=t.style.WebkitTransition="none",t.style.strokeDasharray=n+" "+n,t.style.strokeDashoffset=n,t.getBoundingClientRect(),t.style.transition=t.style.WebkitTransition="stroke-dashoffset 2s ease-in-out",t.style.strokeDashoffset=0,this._fillPath(t)}},r.prototype._fillPath=function(e){e.addEventListener(t,function(){e.style.transition=e.style.WebkitTransition="none",e.style.transition=e.style.WebkitTransition="fill-opacity 1s ease-in-out, stroke-opacity 1s ease-in-out",e.style.fillOpacity=1,e.style.strokeOpacity=0})},r.prototype.replay=function(){this._initAnimation()},e.DrawFillSVG=r}(window),function(i){"use strict";function o(e,t){this.el=i(e),this.options=i.extend({},i.fn.typed.defaults,t),this.baseText=this.el.text()||this.el.attr("placeholder")||"",this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.showCursor=!this.isInput&&this.options.showCursor,this.cursorChar=this.options.cursorChar,this.isInput=this.el.is("input"),this.attr=this.options.attr||(this.isInput?"placeholder":null),this.build()}o.prototype={constructor:o,init:function(){var e=this;e.timeout=setTimeout(function(){e.typewrite(e.strings[e.arrayPos],e.strPos)},e.startDelay)},build:function(){!0===this.showCursor&&(this.cursor=i('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.init()},typewrite:function(r,i){if(!0!==this.stop){var e=Math.round(70*Math.random())+this.typeSpeed,o=this;o.timeout=setTimeout(function(){var e=0,t=r.substr(i);if("^"===t.charAt(0)){var n=1;/^\^\d+/.test(t)&&(n+=(t=/\d+/.exec(t)[0]).length,e=parseInt(t)),r=r.substring(0,i)+r.substring(i+n)}o.timeout=setTimeout(function(){if(i===r.length){if(o.options.onStringTyped(o.arrayPos),o.arrayPos===o.strings.length-1&&(o.options.callback(),o.curLoop++,!1===o.loop||o.curLoop===o.loopCount))return;o.timeout=setTimeout(function(){o.backspace(r,i)},o.backDelay)}else{0===i&&o.options.preStringTyped(o.arrayPos);var e=o.baseText+r.substr(0,i+1);o.attr?o.el.attr(o.attr,e):o.el.text(e),i++,o.typewrite(r,i)}},e)},e)}},backspace:function(t,n){if(!0!==this.stop){var e=Math.round(70*Math.random())+this.backSpeed,r=this;r.timeout=setTimeout(function(){1==r.arrayPos?(r.stopNum=17,r.backDelay=500):2==r.arrayPos?r.stopNum=54:r.stopNum=0;var e=r.baseText+t.substr(0,n);r.attr?r.el.attr(r.attr,e):r.el.text(e),n>r.stopNum?(n--,r.backspace(t,n)):n<=r.stopNum&&(r.arrayPos++,r.arrayPos===r.strings.length?(r.arrayPos=0,r.init()):r.typewrite(r.strings[r.arrayPos],n))},e)}},reset:function(){clearInterval(this.timeout);var e=this.el.attr("id");this.el.after('<span id="'+e+'"/>'),this.el.remove(),this.cursor.remove(),this.options.resetCallback()}},i.fn.typed=function(r){return this.each(function(){var e=i(this),t=e.data("typed"),n="object"==typeof r&&r;t||e.data("typed",t=new o(this,n)),"string"==typeof r&&t[r]()})},i.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],typeSpeed:0,startDelay:0,backSpeed:0,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):t["jquery-scrollto"]=n()}(0,this,function(){var v,y;return v=window.jQuery||require("jquery"),v.propHooks.scrollTop=v.propHooks.scrollLeft={get:function(e,t){var n=null;return"HTML"!==e.tagName&&"BODY"!==e.tagName||("scrollLeft"===t?n=window.scrollX:"scrollTop"===t&&(n=window.scrollY)),null==n&&(n=e[t]),n}},v.Tween.propHooks.scrollTop=v.Tween.propHooks.scrollLeft={get:function(e){return v.propHooks.scrollTop.get(e.elem,e.prop)},set:function(e){"HTML"===e.elem.tagName||"BODY"===e.elem.tagName?(e.options.bodyScrollLeft=e.options.bodyScrollLeft||window.scrollX,e.options.bodyScrollTop=e.options.bodyScrollTop||window.scrollY,"scrollLeft"===e.prop?e.options.bodyScrollLeft=Math.round(e.now):"scrollTop"===e.prop&&(e.options.bodyScrollTop=Math.round(e.now)),window.scrollTo(e.options.bodyScrollLeft,e.options.bodyScrollTop)):e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},y={config:{duration:400,easing:"swing",callback:void 0,durationMode:"each",offsetTop:0,offsetLeft:0},configure:function(e){return v.extend(y.config,e||{}),this},scroll:function(t,n){var e,r,i,o,a,s,l,u,c,d,h,f,p,g,m;return r=(e=t.pop()).$container,i=e.$target,r.prop("tagName"),o=v("<span/>").css({position:"absolute",top:"0px",left:"0px"}),a=r.css("position"),r.css({position:"relative"}),o.appendTo(r),d=o.offset().top,h=i.offset().top-d-parseInt(n.offsetTop,10),f=o.offset().left,p=i.offset().left-f-parseInt(n.offsetLeft,10),s=r.prop("scrollTop"),l=r.prop("scrollLeft"),o.remove(),r.css({position:a}),g={},m=function(e){return 0===t.length?"function"==typeof n.callback&&n.callback():y.scroll(t,n),!0},n.onlyIfOutside&&(u=s+r.height(),c=l+r.width(),s<h&&h<u&&(h=s),l<p&&p<c&&(p=l)),h!==s&&(g.scrollTop=h),p!==l&&(g.scrollLeft=p),r.prop("scrollHeight")===r.width()&&delete g.scrollTop,r.prop("scrollWidth")===r.width()&&delete g.scrollLeft,null!=g.scrollTop||null!=g.scrollLeft?r.animate(g,{duration:n.duration,easing:n.easing,complete:m}):m(),!0},fn:function(e){var t,n,r,i;t=[];var o=v(this);if(0===o.length)return this;for(n=v.extend({},y.config,e),i=(r=o.parent()).get(0);1===r.length&&i!==document.body&&i!==document;){var a,s;a="visible"!==r.css("overflow-y")&&i.scrollHeight!==i.clientHeight,s="visible"!==r.css("overflow-x")&&i.scrollWidth!==i.clientWidth,(a||s)&&(t.push({$container:r,$target:o}),o=r),i=(r=r.parent()).get(0)}return t.push({$container:v("html"),$target:o}),"all"===n.durationMode&&(n.duration/=t.length),y.scroll(t,n),this}},v.ScrollTo=v.ScrollTo||y,v.fn.ScrollTo=v.fn.ScrollTo||y.fn,y}),function(){function t(e,t){return function(){return e.apply(t,arguments)}}var r,e,n,l,i,a=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};function o(){}function s(){this.keys=[],this.values=[]}function u(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}function c(e){null==e&&(e={}),this.scrollCallback=t(this.scrollCallback,this),this.scrollHandler=t(this.scrollHandler,this),this.start=t(this.start,this),this.scrolled=!0,this.config=this.util().extend(e,this.defaults),this.animationNameCache=new n}o.prototype.extend=function(e,t){var n,r;for(n in t)r=t[n],null==e[n]&&(e[n]=r);return e},o.prototype.isMobile=function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},o.prototype.addEvent=function(e,t,n){return null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n},o.prototype.removeEvent=function(e,t,n){return null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]},o.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},e=o,n=this.WeakMap||this.MozWeakMap||(s.prototype.get=function(e){var t,n,r,i;for(t=n=0,r=(i=this.keys).length;n<r;t=++n)if(i[t]===e)return this.values[t]},s.prototype.set=function(e,t){var n,r,i,o;for(n=r=0,i=(o=this.keys).length;r<i;n=++r)if(o[n]===e)return void(this.values[n]=t);return this.keys.push(e),this.values.push(t)},n=s),r=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(u.notSupported=!0,u.prototype.observe=function(){},r=u),l=this.getComputedStyle||function(n,e){return this.getPropertyValue=function(e){var t;return"float"===e&&(e="styleFloat"),i.test(e)&&e.replace(i,function(e,t){return t.toUpperCase()}),(null!=(t=n.currentStyle)?t[e]:void 0)||null},this},i=/(\-([a-z]){1})/g,this.WOW=(c.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},c.prototype.init=function(){var e;return this.element=window.document.documentElement,"interactive"===(e=document.readyState)||"complete"===e?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},c.prototype.start=function(){var i,e,t,n,a;if(this.stopped=!1,this.boxes=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;e<t;e++)i=n[e],r.push(i);return r}.call(this),this.all=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.boxes).length;e<t;e++)i=n[e],r.push(i);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(e=0,t=(n=this.boxes).length;e<t;e++)i=n[e],this.applyStyle(i,!0);this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)}if(this.config.live)return new r((a=this,function(e){var i,o,t,n,r;for(r=[],t=0,n=e.length;t<n;t++)o=e[t],r.push(function(){var e,t,n,r;for(r=[],e=0,t=(n=o.addedNodes||[]).length;e<t;e++)i=n[e],r.push(this.doSync(i));return r}.call(a));return r})).observe(document.body,{childList:!0,subtree:!0})},c.prototype.stop=function(){if(this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval)return clearInterval(this.interval)},c.prototype.sync=function(e){if(r.notSupported)return this.doSync(this.element)},c.prototype.doSync=function(e){var t,n,r,i,o;if(null==e&&(e=this.element),1===e.nodeType){for(o=[],n=0,r=(i=(e=e.parentNode||e).querySelectorAll("."+this.config.boxClass)).length;n<r;n++)t=i[n],a.call(this.all,t)<0?(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),o.push(this.scrolled=!0)):o.push(void 0);return o}},c.prototype.show=function(e){return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass},c.prototype.applyStyle=function(e,t){var n,r,i,o;return r=e.getAttribute("data-wow-duration"),n=e.getAttribute("data-wow-delay"),i=e.getAttribute("data-wow-iteration"),this.animate((o=this,function(){return o.customStyle(e,t,r,n,i)}))},c.prototype.animate="requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()},c.prototype.resetStyle=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.boxes).length;t<n;t++)e=r[t],i.push(e.style.visibility="visible");return i},c.prototype.customStyle=function(e,t,n,r,i){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),r&&this.vendorSet(e.style,{animationDelay:r}),i&&this.vendorSet(e.style,{animationIterationCount:i}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e},c.prototype.vendors=["moz","webkit"],c.prototype.vendorSet=function(i,e){var o,a,s,t;for(o in t=[],e)a=e[o],i[""+o]=a,t.push(function(){var e,t,n,r;for(r=[],e=0,t=(n=this.vendors).length;e<t;e++)s=n[e],r.push(i[""+s+o.charAt(0).toUpperCase()+o.substr(1)]=a);return r}.call(this));return t},c.prototype.vendorCSS=function(e,t){var n,r,i,o,a,s;for(n=(r=l(e)).getPropertyCSSValue(t),o=0,a=(s=this.vendors).length;o<a;o++)i=s[o],n=n||r.getPropertyCSSValue("-"+i+"-"+t);return n},c.prototype.animationName=function(t){var n;try{n=this.vendorCSS(t,"animation-name").cssText}catch(e){n=l(t).getPropertyValue("animation-name")}return"none"===n?"":n},c.prototype.cacheAnimationName=function(e){return this.animationNameCache.set(e,this.animationName(e))},c.prototype.cachedAnimationName=function(e){return this.animationNameCache.get(e)},c.prototype.scrollHandler=function(){return this.scrolled=!0},c.prototype.scrollCallback=function(){var i;if(this.scrolled&&(this.scrolled=!1,this.boxes=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.boxes).length;e<t;e++)(i=n[e])&&(this.isVisible(i)?this.show(i):r.push(i));return r}.call(this),!this.boxes.length&&!this.config.live))return this.stop()},c.prototype.offsetTop=function(e){for(var t;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t},c.prototype.isVisible=function(e){var t,n,r,i,o;return n=e.getAttribute("data-wow-offset")||this.config.offset,i=(o=window.pageYOffset)+Math.min(this.element.clientHeight,this.util().innerHeight())-n,t=(r=this.offsetTop(e))+e.clientHeight,r<=i&&o<=t},c.prototype.util=function(){return null!=this._util?this._util:this._util=new e},c.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},c)}.call(this),function(d,h,f){"use strict";function t(e,o){function r(t,n){n=n||!1;var r=!1,i=!1,e={loaded:function(){var e=r?"ss.onProgressEnd":"ss.onStartEnd";i&&r?i&&u(t):a.one(e,function(){u(t)}),n||h.history.pushState({id:a.prop("id")},s[t].title,t)},fetching:function(){r||(r=!0,a.one("ss.onStartEnd",function(){o.onProgress.render(t,a,null),setTimeout(function(){a.trigger("ss.onProgressEnd"),i=!0},o.onStart.duration)})),setTimeout(function(){s.hasOwnProperty(t)&&e[s[t].status]()},10)},error:function(){h.location=t}};s.hasOwnProperty(t)||c(t),o.onStart.render(t,a,null),setTimeout(function(){a.trigger("ss.onStartEnd")},o.onStart.duration),e[s[t].status]()}function t(e){var t=d(e.currentTarget),n=t.prop("href");m.shouldLoad(t,o.blacklist)&&(e.stopPropagation(),c(n))}function n(e){var t=d(e.currentTarget),n=t.prop("href");e.metaKey||e.ctrlKey||!m.shouldLoad(t,o.blacklist)||(e.stopPropagation(),e.preventDefault(),r(n))}var i,a=d(e),s={},l=h.location.href,u=function(e){var t="#"+a.prop("id"),n=s[e]?m.getContentById(t,s[e].html):null;n?(f.title=s[e].title,a.data("smoothState").href=e,o.onEnd.render(e,a,n),a.one("ss.onEndEnd",function(){o.callback(e,a,n)}),setTimeout(function(){a.trigger("ss.onEndEnd")},o.onEnd.duration)):!n&&o.development&&p?p.warn("No element with an id of "+t+" in response from "+e+" in "+s):h.location=e},c=function(t){if(!s.hasOwnProperty(t)){(s=m.clearIfOverCapacity(s,o.pageCacheSize))[t]={status:"fetching"};var e=o.alterRequestUrl(t)||t,n=d.ajax(e);n.success(function(e){m.storePageIn(s,t,e),a.data("smoothState").cache=s}),n.error(function(){s[t].status="error"})}};return o=d.extend(g,o),null===h.history.state&&h.history.replaceState({id:a.prop("id")},f.title,l),m.storePageIn(s,l,f.documentElement.outerHTML),m.triggerAllAnimationEndEvent(a,"ss.onStartEnd ss.onProgressEnd ss.onEndEnd"),(i=a).on("click",o.anchors,n),o.prefetch&&i.on("mouseover touchstart",o.anchors,t),{href:l,cache:s,load:r,fetch:c,toggleAnimationClass:function(e){var t=a.addClass(e).prop("class");a.removeClass(t),setTimeout(function(){a.addClass(t)},0),a.one("ss.onStartEnd ss.onProgressEnd ss.onEndEnd",function(){a.removeClass(e)})}}}var r=d("html, body"),p=h.console||!1,g={anchors:"a",prefetch:!1,blacklist:".no-smoothstate, [target]",development:!1,pageCacheSize:0,alterRequestUrl:function(e){return e},onStart:{duration:0,render:function(e,t){r.scrollTop(0)}},onProgress:{duration:0,render:function(e,t){r.css("cursor","wait"),r.find("a").css("cursor","wait")}},onEnd:{duration:0,render:function(e,t,n){r.css("cursor","auto"),r.find("a").css("cursor","auto"),t.html(n)}},callback:function(e,t,n){}},m={isExternal:function(e){var t=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&0<t[1].length&&t[1].toLowerCase()!==h.location.protocol||"string"==typeof t[2]&&0<t[2].length&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[h.location.protocol]+")?$"),"")!==h.location.host},isHash:function(e){var t=0<e.indexOf(h.location.pathname),n=0<e.indexOf("#");return t&&n},shouldLoad:function(e,t){var n=e.prop("href");return!m.isExternal(n)&&!m.isHash(n)&&!e.is(t)},htmlDoc:function(e){var n,o=d(),a="ss"+Math.round(1e5*Math.random()),t=e.replace(/<(\/?)(html|head|body|title|base|meta)(\s+[^>]*)?>/gi,function(e,t,n,r){var i={};return t||(o=o.add("<"+n+"/>"),r&&d.each(d("<div"+r+"/>")[0].attributes,function(e,t){i[t.name]=t.value}),o.eq(-1).attr(i)),"<"+t+"div"+(t?"":" id='"+a+(o.length-1)+"'")+">"});return o.length?((n=n||d("<div/>")).html(t),d.each(o,function(e){var t=n.find("#"+a+e).before(o[e]);o.eq(e).html(t.contents()),t.remove()}),n.children().unwrap()):d(e)},clearIfOverCapacity:function(e,t){return Object.keys||(Object.keys=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.keys(e).length>t&&(e={}),e},getContentById:function(e,t){var n=(t=t instanceof jQuery?t:m.htmlDoc(t)).find(e),r=n.length?d.trim(n.html()):t.filter(e).html();return r.length?d(r):null},storePageIn:function(e,t,n){return n=n instanceof jQuery?n:m.htmlDoc(n),e[t]={status:"loaded",title:n.find("title").text(),html:n},e},triggerAllAnimationEndEvent:function(t,e){e=" "+e||"";var n=0;t.on("animationstart webkitAnimationStart oanimationstart MSAnimationStart",function(e){d(e.delegateTarget).is(t)&&(e.stopPropagation(),n++)}),t.on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(e){d(e.delegateTarget).is(t)&&(e.stopPropagation(),0===--n&&t.trigger("allanimationend"))}),t.on("allanimationend"+e,function(){n=0,m.redraw(t)})},redraw:function(e){e.height(0),setTimeout(function(){e.height("auto")},0)}};h.onpopstate=function(e){if(null!==e.state){var t=h.location.href,n=d("#"+e.state.id).data("smoothState");n.href===t||m.isHash(t)||n.load(t,!0)}},d.smoothStateUtility=m,d.fn.smoothState=function(e){return this.each(function(){this.id&&!d.data(this,"smoothState")?d.data(this,"smoothState",new t(this,e)):!this.id&&p&&p.warn("Every smoothState container needs an id but the following one does not have one:",this)})}}(jQuery,window,document),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(f){var r=/\+/g;function p(e){return m.raw?e:encodeURIComponent(e)}function g(e,t){var n=m.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(r," ")),m.json?JSON.parse(e):e}catch(e){}}(e);return f.isFunction(t)?t(n):n}var m=f.cookie=function(e,t,n){if(1<arguments.length&&!f.isFunction(t)){if("number"==typeof(n=f.extend({},m.defaults,n)).expires){var r=n.expires,i=n.expires=new Date;i.setTime(+i+864e5*r)}return document.cookie=[p(e),"=",function(e){return p(m.json?JSON.stringify(e):String(e))}(t),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,a=e?void 0:{},s=document.cookie?document.cookie.split("; "):[],l=0,u=s.length;l<u;l++){var c=s[l].split("="),d=(o=c.shift(),m.raw?o:decodeURIComponent(o)),h=c.join("=");if(e&&e===d){a=g(h,t);break}e||void 0===(h=g(h))||(a[d]=h)}return a};m.defaults={},f.removeCookie=function(e,t){return void 0!==f.cookie(e)&&(f.cookie(e,"",f.extend({},t,{expires:-1})),!f.cookie(e))}}),function(){var t,n,w=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},_=[].slice;t=window,n=function(l,o){var t,a,s,u,n,c,d,i,h,r,f,p,g,m,v,y;function e(e){var t=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+n++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[c]=this.id,d[this.id]=this,e.bind(p,function(){var e;if(!t.didScroll&&!i)return t.didScroll=!0,e=function(){return t.doScroll(),t.didScroll=!1},o.setTimeout(e,l[y].settings.scrollThrottle)}),e.bind(f,function(){var e;if(!t.didResize)return t.didResize=!0,e=function(){return l[y]("refresh"),t.didResize=!1},o.setTimeout(e,l[y].settings.resizeThrottle)})}function b(e,t,n){var r,i;"bottom-in-view"===n.offset&&(n.offset=function(){var e;return e=l[y]("viewportHeight"),l.isWindow(t.element)||(e=t.$element.height()),e-l(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=n.horizontal?"horizontal":"vertical",this.callback=n.handler,this.context=t,this.enabled=n.enabled,this.id="waypoints"+g++,this.offset=null,this.options=n,t.waypoints[this.axis][this.id]=this,(r=null!=(i=(u[this.axis][this.id]=this).element[m])?i:[]).push(this.id),this.element[m]=r}return t=l(o),i=0<=w.call(o,"ontouchstart"),u={horizontal:{},vertical:{}},d={},c="waypoints-context-id",f="resize.waypoints",p="scroll.waypoints",g=n=1,m="waypoints-waypoint-ids",v="waypoint",y="waypoints",e.prototype.doScroll=function(){var e,r=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!i||e.vertical.oldScroll&&e.vertical.newScroll||l[y]("refresh"),l.each(e,function(e,i){var n,t,o;return o=[],t=i.newScroll>i.oldScroll,n=t?i.forward:i.backward,l.each(r.waypoints[e],function(e,t){var n,r;return i.oldScroll<(n=t.offset)&&n<=i.newScroll?o.push(t):i.newScroll<(r=t.offset)&&r<=i.oldScroll?o.push(t):void 0}),o.sort(function(e,t){return e.offset-t.offset}),t||o.reverse(),l.each(o,function(e,t){if(t.options.continuous||e===o.length-1)return t.trigger([n])})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,t,n,r=this;return n=l.isWindow(this.element),t=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:n?0:t.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:t.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?l[y]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},l.each(e,function(e,s){return l.each(r.waypoints[e],function(e,t){var n,r,i,o,a;if(n=t.options.offset,i=t.offset,r=l.isWindow(t.element)?0:t.$element.offset()[s.offsetProp],l.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),-1<t.options.offset.indexOf("%")&&(n=Math.ceil(s.contextDimension*n/100))),t.offset=r-s.contextOffset+s.contextScroll-n,(!t.options.onlyOnScroll||null==i)&&t.enabled)return null!==i&&i<(o=s.oldScroll)&&o<=t.offset?t.trigger([s.backward]):null!==i&&i>(a=s.oldScroll)&&a>=t.offset?t.trigger([s.forward]):null===i&&s.oldScroll>=t.offset?t.trigger([s.forward]):void 0})})},e.prototype.checkEmpty=function(){if(l.isEmptyObject(this.waypoints.horizontal)&&l.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([f,p].join(" ")),delete d[this.id]},a=e,b.prototype.trigger=function(e){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0},b.prototype.disable=function(){return this.enabled=!1},b.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},b.prototype.destroy=function(){return delete u[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},b.getWaypointsByElement=function(e){var t,n;return(n=e[m])?(t=l.extend({},u.horizontal,u.vertical),l.map(n,function(e){return t[e]})):[]},s=b,r={init:function(e,i){return null==(i=l.extend({},l.fn[v].defaults,i)).handler&&(i.handler=e),this.each(function(){var e,t,n,r;return e=l(this),n=null!=(r=i.context)?r:l.fn[v].defaults.context,l.isWindow(n)||(n=e.closest(n)),n=l(n),t=(t=d[n[0][c]])||new a(n),new s(e,t,i)}),l[y]("refresh"),this},disable:function(){return r._invoke.call(this,"disable")},enable:function(){return r._invoke.call(this,"enable")},destroy:function(){return r._invoke.call(this,"destroy")},prev:function(e,t){return r._traverse.call(this,e,t,function(e,t,n){if(0<t)return e.push(n[t-1])})},next:function(e,t){return r._traverse.call(this,e,t,function(e,t,n){if(t<n.length-1)return e.push(n[t+1])})},_traverse:function(t,e,n){var r,i;return null==t&&(t="vertical"),null==e&&(e=o),i=h.aggregate(e),r=[],this.each(function(){var e;return e=l.inArray(this,i[t]),n(r,e,i[t])}),this.pushStack(r)},_invoke:function(n){return this.each(function(){var e;return e=s.getWaypointsByElement(this),l.each(e,function(e,t){return t[n](),!0})}),this}},l.fn[v]=function(){var e,t;return t=arguments[0],e=2<=arguments.length?_.call(arguments,1):[],r[t]?r[t].apply(this,e):l.isFunction(t)?r.init.apply(this,arguments):l.isPlainObject(t)?r.init.apply(this,[null,t]):t?l.error("The "+t+" method does not exist in jQuery Waypoints."):l.error("jQuery Waypoints needs a callback function or handler option.")},l.fn[v].defaults={context:o,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return l.each(d,function(e,t){return t.refresh()})},viewportHeight:function(){var e;return null!=(e=o.innerHeight)?e:t.height()},aggregate:function(e){var t,r,n;return t=u,e&&(t=null!=(n=d[l(e)[0][c]])?n.waypoints:void 0),t?(r={horizontal:[],vertical:[]},l.each(r,function(e,n){return l.each(t[e],function(e,t){return n.push(t)}),n.sort(function(e,t){return e.offset-t.offset}),r[e]=l.map(n,function(e){return e.element}),r[e]=l.unique(r[e])}),r):[]},above:function(e){return null==e&&(e=o),h._filter(e,"vertical",function(e,t){return t.offset<=e.oldScroll.y})},below:function(e){return null==e&&(e=o),h._filter(e,"vertical",function(e,t){return t.offset>e.oldScroll.y})},left:function(e){return null==e&&(e=o),h._filter(e,"horizontal",function(e,t){return t.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=o),h._filter(e,"horizontal",function(e,t){return t.offset>e.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(e,t){return r[e]=t},_invoke:function(n){var e;return e=l.extend({},u.vertical,u.horizontal),l.each(e,function(e,t){return t[n](),!0})},_filter:function(e,t,n){var r,i;return(r=d[l(e)[0][c]])?(i=[],l.each(r.waypoints[t],function(e,t){if(n(r,t))return i.push(t)}),i.sort(function(e,t){return e.offset-t.offset}),l.map(i,function(e){return e.element})):[]}},l[y]=function(){var e,t;return t=arguments[0],e=2<=arguments.length?_.call(arguments,1):[],h[t]?h[t].apply(null,e):h.aggregate.call(null,t)},l[y].settings={resizeThrottle:100,scrollThrottle:30},t.on("load.waypoints",function(){return l[y]("refresh")})},"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(e){return n(e,t)}):n(t.jQuery,t)}.call(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ghembedder=e()}}(function(){return function o(a,s,l){function u(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return u(t||e)},i,i.exports,o,a,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,u){var c=t.exports={_apiBase:"https://api.github.com",_library:{},_rLeadSlash:/^\/+|\/+$/g,_rWhiteSpace:/\s/g};c._decodeContent=function(e){return window.atob(e.replace(c._rWhiteSpace,""))},c._keygen=function(){return"ghembedder_key_"+~~(1e5*Math.random())},c._jsonpCallback=function(l){return window[l]=function(e){var t,n,r,i=c._library[l],o=!1,a=-1<i.lineBegin&&-1<i.lineEnd,s=new Array(i.tabSize+1).join(" ");e.data&&e.data.content&&(i.data=e.data,n=(t=(t=c._decodeContent(e.data.content)).replace(/[&<>"'`]/g,(r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},function(e){return r[e]}))).split("\n"),a&&(n=n.splice(i.lineBegin-1,i.lineEnd-i.lineBegin+1)),i.linenos&&(o=a?i.lineBegin:i.linenos),t=(n=n.map(function(e,t){return'<a class="nocode" id="'+i.fileName+"-L"+(t+i.lineBegin)+'">'+(e?"":" ")+"</a>"+e.replace(/\t/gi,s)})).join("\n"),u.prettyPrintOne&&(t=u.prettyPrintOne(t,i.lang,o)),i.el.className+=" ghe",i.el.innerHTML='<pre><code data-language="javascript">'+t+"</code></pre>"+(i.annotate?c._annotation(l):""),delete window[l],i.onload&&i.onload(null,i))}},c._annotation=function(e){var t=c._library[e],n=-1<t.lineBegin&&-1<t.lineEnd;return'<div class="ghe-annotation">'+t.fileName+(n?", lines "+t.lineBegin+"-"+t.lineEnd:"")+(t.data?'. <a href="'+t.data._links.html+'" target="_blank">Source</a>':"")+"</div>"},c._jsonp=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e+(-1<e.indexOf("?")?"&":"?")+"callback="+t,document.getElementsByTagName("head")[0].appendChild(n)},c._parseNode=function(e){var t,n,r=e.getAttribute("data-ghlines"),i=e.getAttribute("data-ghpath");return r&&-1<r.indexOf("-")?(r=r.split("-"),t=parseInt(r[0],10),n=parseInt(r[1],10)):t=n=r?parseInt(r,10):-1,{path:i,userrepo:e.getAttribute("data-ghuserrepo"),ref:e.getAttribute("data-ghref")||"master",lineBegin:t,lineEnd:n,el:e,fileName:i.split("/").pop(),lang:e.getAttribute("data-ghlang"),linenos:e.getAttribute("data-ghlinenos"),annotate:e.getAttribute("data-ghannotate"),tabSize:parseInt(e.getAttribute("data-ghtabsize"),10)||4}},c.load=function(e,t){var n=c._keygen();e.nodeName&&(e=c._parseNode(e)),t&&(e.onload=t),c._jsonpCallback(n),c._library[n]=e,c._jsonp(c._apiBase+"/repos/"+e.userrepo.replace(c._rLeadSlash,"")+"/contents/"+e.path.replace(c._rLeadSlash,"")+"?ref="+e.ref,n)},c.autoload=function(){var e;e=window.jQuery?window.jQuery("[data-ghpath]"):document.querySelectorAll("[data-ghpath]");for(var t=0;t<e.length;t++)c.load(e[t])}},{}]},{},[1])(1)}),ghembedder.autoload(),jQuery(document).ready(function(s){var l=0;s(".github-widget").each(function(){0==l&&s("head").append('<style type="text/css">.github-box *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}.github-box{font-family:helvetica,arial,sans-serif;font-size:13px;line-height:18px;background:#fafafa;border:1px solid #ddd;color:#666;border-radius:3px}.github-box a{color:#4183c4;border:0;text-decoration:none}.github-box .github-box-title{position:relative;border-bottom:1px solid #ddd;border-radius:3px 3px 0 0;background:#fcfcfc;background:-moz-linear-gradient(#fcfcfc,#ebebeb);background:-webkit-linear-gradient(#fcfcfc,#ebebeb);}.github-box .github-box-title h3{word-wrap:break-word;font-family:helvetica,arial,sans-serif;font-weight:normal;font-size:16px;color:gray;margin:0;padding:10px 10px 10px 30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAMAAAAx3e/WAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQjIyNkJERkM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEQjIyNkJFMEM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkRCMjI2QkREQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkRCMjI2QkRFQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+dka2KgAAAEVQTFRFxMTEyMjI0tLSvb29vr6+zc3Ny8vLxcXFz8/P6enp3t7ex8fH0dHR1NTUw8PDwMDAzs7OvLy8wcHBu7u7v7+/zMzM////budQFwAAABd0Uk5T/////////////////////////////wDmQOZeAAAAcklEQVR42tSQSQ7DMAwD6chOukWs5eX/Ty2coo0T9wOdEzEgdRBuzNmnDofgja52JDyz5TCqUp0O6kfrb4bzSXkRiTviEZZ6JKLMJ5VQ2v8iGbtbfEwXmjFMG0VwdQo10hQNxYqtLMv9O6xvpZ/QeAkwAKjwHiJLaJc3AAAAAElFTkSuQmCC) 7px center no-repeat; width: auto;}.github-box .github-box-title h3 .repo{font-weight:bold}.github-box .github-box-title .github-stats{float:right;position:absolute;top:8px;right:10px;font-size:11px;font-weight:bold;line-height:21px;height:auto;min-height:21px}.github-box .github-box-title .github-stats a{display:inline-block;height:21px;color:#666;border:1px solid #ddd;border-radius:3px;padding:0 5px 0 18px;background: white url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAMAAACEJ4viAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQjIyNkJEQkM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEQjIyNkJEQ0M0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkRCMjI2QkQ5QzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkRCMjI2QkRBQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h1kA9gAAAK5QTFRF+fn5sbGx8fHx09PTmpqa2dnZ/f3919fX9PT00NDQ1dXVpKSk+vr6+/v7vb298vLyycnJ8/PztLS0zc3N6enp/v7+q6ur2NjY9/f3srKy/Pz8p6en7u7uoaGhnJyc4eHhtbW1pqam6Ojo9fX17e3toqKirKys1NTUzs7Ox8fHwcHBwMDA5eXlnZ2dpaWl0dHR9vb25ubm4uLi3d3dqqqqwsLCv7+/oKCgmZmZ////8yEsbwAAAMBJREFUeNrE0tcOgjAUBuDSliUoMhTEvfdef9//xUQjgaLX0Ium/ZLT/+SkRPxZpGykvuf5VMJogy5jY9yjDHcWFhqlcRuHc4o6B1QK0BDg+hcZgNDh3NWTwzItH/bRrhvT+g3zSxZkNGCZpoWGIbU0a3Y6zV5VA6keyeDxiw62P0gUqEW0FbDim4nVikFJbU2zZXybUEaxhCqOQqyh5/G0wpWICUwthyqwD4InOMuXJ7/gs7WkoPdVg1vykF8CDACEFanKO3aSYwAAAABJRU5ErkJggg==) no-repeat}.github-box .github-box-title .github-stats .watchers{border-right:1px solid #ddd}.github-box .github-box-title .github-stats .forks{background-position:-4px -21px;padding-left:15px}.github-box .github-box-content{padding:10px;font-weight:300}.github-box .github-box-content p{margin:0}.github-box .github-box-content .link{font-weight:bold}.github-box .github-box-download{position:relative;border-top:1px solid #ddd;background:white;border-radius:0 0 3px 3px;padding:10px;height:auto;min-height:24px;}.github-box .github-box-download .updated{word-wrap:break-word;margin:0;font-size:11px;color:#666;line-height:24px;font-weight:300;width:auto}.github-box .github-box-download .updated strong{font-weight:bold;color:#000}.github-box .github-box-download .download{float:right;position:absolute;top:10px;right:10px;height:24px;line-height:24px;font-size:12px;color:#666;font-weight:bold;text-shadow:0 1px 0 rgba(255,255,255,0.9);padding:0 10px;border:1px solid #ddd;border-bottom-color:#bbb;border-radius:3px;background:#f5f5f5;background:-moz-linear-gradient(#f5f5f5,#e5e5e5);background:-webkit-linear-gradient(#f5f5f5,#e5e5e5);}.github-box .github-box-download .download:hover{color:#527894;border-color:#cfe3ed;border-bottom-color:#9fc7db;background:#f1f7fa;background:-moz-linear-gradient(#f1f7fa,#dbeaf1);background:-webkit-linear-gradient(#f1f7fa,#dbeaf1);}@media (max-width: 767px) {.github-box .github-box-title{height:auto;min-height:60px}.github-box .github-box-title h3 .repo{display:block}.github-box .github-box-title .github-stats a{display:block;clear:right;float:right;}.github-box .github-box-download{height:auto;min-height:46px;}.github-box .github-box-download .download{top:32px;}}</style>'),l++;var i,e=s(this),t=e.data("repo"),n=t.split("/")[0],r=t.split("/")[1],o="http://github.com/"+n,a="http://github.com/"+n+"/"+r;(i=s('<div class="github-box repo"><div class="github-box-title"><h3><a class="owner" href="'+o+'" title="'+o+'">'+n+'</a>/<a class="repo" href="'+a+'" title="'+a+'">'+r+'</a></h3><div class="github-stats"><a class="watchers" href="'+a+'/watchers" title="See watchers">?</a><a class="forks" href="'+a+'/network/members" title="See forkers">?</a></div></div><div class="github-box-content"><p class="description"><span></span> — <a href="'+a+'#readme">Read More</a></p><p class="link"></p></div><div class="github-box-download"><div class="updated"></div><a class="download" href="'+a+'/zipball/master" title="Get an archive of this repository">Download as zip</a></div></div>')).appendTo(e),s.ajax({url:"https://api.github.com/repos/"+t,dataType:"jsonp",success:function(e){var t,n=e.data,r="unknown";n.pushed_at&&(r=(t=new Date(n.pushed_at)).getMonth()+1+"-"+t.getDate()+"-"+t.getFullYear()),i.find(".watchers").text(n.watchers),i.find(".forks").text(n.forks),i.find(".description span").text(n.description),i.find(".updated").html("Latest commit to the <strong>"+n.default_branch+"</strong> branch on "+r),null!=n.homepage&&i.find(".link").append(s("<a />").attr("href",n.homepage).text(n.homepage))}})})}),function(e){var t;if("function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),!t){var n=window.Cookies,r=window.Cookies=e();r.noConflict=function(){return window.Cookies=n,r}}}(function(){function s(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function u(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(l){function a(){}function n(e,t,n){if("undefined"!=typeof document){"number"==typeof(n=s({path:"/"},a.defaults,n)).expires&&(n.expires=new Date(1*new Date+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var r=JSON.stringify(t);/^[\{\[]/.test(r)&&(t=r)}catch(e){}t=l.write?l.write(t,e):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var i="";for(var o in n)n[o]&&(i+="; "+o,!0!==n[o]&&(i+="="+n[o].split(";")[0]));return document.cookie=e+"="+t+i}}function t(e,t){if("undefined"!=typeof document){for(var n={},r=document.cookie?document.cookie.split("; "):[],i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");t||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var s=u(o[0]);if(a=(l.read||l)(a,s)||u(a),t)try{a=JSON.parse(a)}catch(e){}if(n[s]=a,e===s)break}catch(e){}}return e?n[e]:n}}return a.set=n,a.get=function(e){return t(e,!1)},a.getJSON=function(e){return t(e,!0)},a.remove=function(e,t){n(e,"",s(t,{expires:-1}))},a.defaults={},a.withConverter=e,a}(function(){})});
|